5 #ifndef BALL_VIEW_DATATYPE_DATASET_H
6 #define BALL_VIEW_DATATYPE_DATASET_H
8 #ifndef BALL_DATATYPE_STRING_H
12 #ifndef BALL_DATATYPE_HASHMAP_H
16 #ifndef BALL_DATATYPE_HASHSET_H
20 #ifndef BALL_CONCEPT_EMBEDDABLE_H
24 #ifndef BALL_VIEW_KERNEL_UIOPERATIONMODE_H
28 #include <QtGui/QMenu>
29 #include <QtGui/QTreeWidgetItem>
117 void dump(std::ostream& s,
Size depth)
const;
131 #define BALL_CREATE_DATASET(TYPE)\
132 class BALL_VIEW_EXPORT TYPE##Dataset\
137 TYPE##Dataset(TYPE* data = 0)\
142 TYPE##Dataset(const TYPE##Dataset& set)\
147 TYPE* getData() { return data_;}\
149 void setData(TYPE* data) { data_ = data;}\
206 DatasetController(DatasetController& dc);
209 virtual ~DatasetController();
228 virtual bool insertDataset(
Dataset* set);
231 virtual bool deleteDataset(
Dataset* set);
237 virtual bool createMenuEntries();
246 vector<Dataset*> getDatasets();
249 vector<Dataset*> getSelectedDatasets();
288 virtual bool write();
297 virtual bool deleteDatasets();
300 virtual bool deleteDataset();
305 void setStatusbarText(
const String& text,
bool important =
false);
306 void setStatusbarText(
const QString& text,
bool important =
false);
313 QAction* insertMenuEntry_(
Position pid,
const QString& name,
const char* slot,
314 const String& description =
"", QKeySequence accel = QKeySequence(),
315 const QString& menu_hint =
"",
334 #endif // BALL_VIEW_DATATYPE_DATASET_H
HashMap< QTreeWidgetItem *, Dataset * > item_to_dataset_
vector< String > file_formats_
void setComposite(Composite *composite)
HashMap< Dataset *, QTreeWidgetItem * > dataset_to_item_
HashSet< QAction * > actions_for_one_set_
vector< QAction * > actions_
DatasetControl * control_
void setType(String type)
#define BALL_EMBEDDABLE(TYPE, BASE)
void setName(String name)
DatasetControl * getDatasetControl()
Composite * getComposite() const
vector< String > getSupportedFileFormats()
HashMap class based on the STL map (containing serveral convenience functions)