BALL
1.5.0
include
BALL
VIEW
WIDGETS
datasetControl.h
Go to the documentation of this file.
1
// -*- Mode: C++; tab-width: 2; -*-
2
// vi: set ts=2:
3
//
4
// $Id: datasetControl.h,v 1.19.16.1 2007/03/25 21:26:18 oliver Exp $
5
//
6
7
#ifndef BALL_VIEW_WIDGETS_DATASETCONTROL_H
8
#define BALL_VIEW_WIDGETS_DATASETCONTROL_H
9
10
#ifndef BALL_KERNEL_SYSTEM_H
11
# include <
BALL/KERNEL/system.h
>
12
#endif
13
14
#ifndef BALL_VIEW_WIDGETS_GENERICCONTROL_H
15
# include <
BALL/VIEW/WIDGETS/genericControl.h
>
16
#endif
17
18
#include <QtWidgets/QTreeWidgetItem>
19
20
namespace
BALL
21
{
22
namespace
VIEW
23
{
24
class
Dataset;
25
class
DatasetController;
26
class
Message;
27
36
class
BALL_VIEW_EXPORT
DatasetControl
37
:
public
GenericControl
38
{
39
Q_OBJECT
40
41
public
:
42
43
BALL_EMBEDDABLE
(
DatasetControl
,
GenericControl
)
44
45
51
DatasetControl
(
QWidget
* parent = 0, const
char
* name = 0);
52
55
virtual ~
DatasetControl
();
56
61
virtual
void
onNotify(
Message
*message);
62
65
virtual
void
initializeWidget(
MainControl
& main_control);
66
70
virtual
void
checkMenu(
MainControl
& main_control);
71
78
virtual
bool
canHandle(const
String
& fileformat) const;
79
85
virtual
bool
openFile(const
String
& filename);
86
91
virtual
bool
registerController(
DatasetController
* con);
92
95
DatasetController
* getController(const
String
& type);
96
100
DatasetController
* getController(
QTreeWidgetItem
* item);
101
106
vector<
Dataset
*> getDatasets(const
String
& type);
107
109
Size
getSelectionSize();
110
112
String
getType(
QTreeWidgetItem
* item);
113
115
virtual
void
deleteCurrentItems();
116
117
public Q_SLOTS:
118
119
// Overloaded from GenericControl
120
// virtual void deleteCurrentItems();
121
122
protected Q_SLOTS:
123
124
virtual
void
showGuestContextMenu(const QPoint& pos);
125
129
void
updateSelection();
130
131
protected:
132
133
// only for Python Interface
134
DatasetControl
(const
DatasetControl
& control);
135
136
vector<
DatasetController
*> controllers_;
137
};
138
139
} }
// namespaces
140
141
#endif // BALL_VIEW_WIDGETS_DATASETCONTROL_H
BALL::VIEW::Message
Definition:
message.h:53
genericControl.h
BALL::String
Definition:
string.h:57
BALL_EMBEDDABLE
#define BALL_EMBEDDABLE(TYPE, BASE)
Definition:
embeddable.h:31
BALL::VIEW::GenericControl
Definition:
genericControl.h:52
BALL::VIEW::MainControl
Definition:
mainControl.h:118
BALL
Definition:
constants.h:13
BALL::VIEW::DatasetController
Definition:
dataset.h:193
QWidget
BALL::VIEW::DatasetControl
Definition:
datasetControl.h:38
BALL_SIZE_TYPE
BALL_VIEW_EXPORT
#define BALL_VIEW_EXPORT
Definition:
COMMON/global.h:52
QTreeWidgetItem
BALL::VIEW::Dataset
Definition:
dataset.h:61
system.h
Generated by
1.8.20