BALL 1.5.0
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
16#endif
17
18#include <QtWidgets/QTreeWidgetItem>
19
20namespace BALL
21{
22 namespace VIEW
23 {
24 class Dataset;
25 class DatasetController;
26 class Message;
27
37 : public GenericControl
38 {
39 Q_OBJECT
40
41 public:
42
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
135
136 vector<DatasetController*> controllers_;
137 };
138
139} } // namespaces
140
141#endif // BALL_VIEW_WIDGETS_DATASETCONTROL_H
#define BALL_EMBEDDABLE(TYPE, BASE)
Definition: embeddable.h:31
Definition: constants.h:13
#define BALL_VIEW_EXPORT
Definition: COMMON/global.h:52