7 #ifndef BALL_VIEW_DATATYPE_DATASET_H
8 #define BALL_VIEW_DATATYPE_DATASET_H
10 #ifndef BALL_DATATYPE_STRING_H
14 #ifndef BALL_DATATYPE_HASHMAP_H
18 #ifndef BALL_DATATYPE_HASHSET_H
22 #ifndef BALL_CONCEPT_EMBEDDABLE_H
26 #include <QtGui/QMenu>
27 #include <QtGui/QTreeWidgetItem>
115 void dump(std::ostream& s,
Size depth)
const;
129 #define BALL_CREATE_DATASET(TYPE)\
130 class BALL_VIEW_EXPORT TYPE##Dataset\
135 TYPE##Dataset(TYPE* data = 0)\
140 TYPE##Dataset(const TYPE##Dataset& set)\
145 TYPE* getData() { return data_;}\
147 void setData(TYPE* data) { data_ = data;}\
204 DatasetController(DatasetController& dc);
207 virtual ~DatasetController();
226 virtual bool insertDataset(
Dataset*
set);
229 virtual bool deleteDataset(
Dataset*
set);
235 virtual bool createMenuEntries();
244 vector<Dataset*> getDatasets();
247 vector<Dataset*> getSelectedDatasets();
286 virtual bool write();
295 virtual bool deleteDatasets();
298 virtual bool deleteDataset();
303 void setStatusbarText(
const String& text,
bool important =
false);
304 void setStatusbarText(
const QString& text,
bool important =
false);
311 QAction* insertMenuEntry_(
Position pid,
const String& name,
const char* slot,
312 const String& description =
"", QKeySequence accel = QKeySequence());
330 #endif // BALL_VIEW_DATATYPE_DATASET_H