BALL
1.4.2
Main Page
Related Pages
Modules
Namespaces
Classes
Files
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Friends
Macros
Groups
Pages
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 <QtGui/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
slots:
118
119
// Overloaded from GenericControl
120
// virtual void deleteCurrentItems();
121
122
protected
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
Generated by
1.8.3.1