Loading...
Searching...
No Matches
datasetControl.h
Go to the documentation of this file.
// -*- Mode: C++; tab-width: 2; -*-
// vi: set ts=2:
//
// $Id: datasetControl.h,v 1.19.16.1 2007/03/25 21:26:18 oliver Exp $
//
#ifndef BALL_VIEW_WIDGETS_DATASETCONTROL_H
#define BALL_VIEW_WIDGETS_DATASETCONTROL_H
#ifndef BALL_KERNEL_SYSTEM_H
# include <BALL/KERNEL/system.h>
#endif
#ifndef BALL_VIEW_WIDGETS_GENERICCONTROL_H
# include <BALL/VIEW/WIDGETS/genericControl.h>
#endif
#include <QtWidgets/QTreeWidgetItem>
namespace BALL
{
namespace VIEW
{
class Dataset;
class DatasetController;
class Message;
class BALL_VIEW_EXPORT DatasetControl
: public GenericControl
{
Q_OBJECT
public:
BALL_EMBEDDABLE(DatasetControl,GenericControl)
DatasetControl(QWidget* parent = 0, const char* name = 0);
virtual ~DatasetControl();
virtual void onNotify(Message *message);
virtual void initializeWidget(MainControl& main_control);
virtual void checkMenu(MainControl& main_control);
virtual bool canHandle(const String& fileformat) const;
virtual bool openFile(const String& filename);
virtual bool registerController(DatasetController* con);
DatasetController* getController(const String& type);
DatasetController* getController(QTreeWidgetItem* item);
vector<Dataset*> getDatasets(const String& type);
Size getSelectionSize();
String getType(QTreeWidgetItem* item);
virtual void deleteCurrentItems();
public Q_SLOTS:
// Overloaded from GenericControl
// virtual void deleteCurrentItems();
protected Q_SLOTS:
virtual void showGuestContextMenu(const QPoint& pos);
void updateSelection();
protected:
// only for Python Interface
DatasetControl(const DatasetControl& control);
vector<DatasetController*> controllers_;
};
} } // namespaces
#endif // BALL_VIEW_WIDGETS_DATASETCONTROL_H
BALL_VIEW_EXPORT
#define BALL_VIEW_EXPORT
Definition COMMON/global.h:52
system.h
BALL::String
Definition string.h:57
BALL::VIEW::DatasetControl::deleteCurrentItems
virtual void deleteCurrentItems()
Deletes the currently selected items.
BALL::VIEW::DatasetControl::DatasetControl
DatasetControl(QWidget *parent=0, const char *name=0)
BALL::VIEW::DatasetControl::openFile
virtual bool openFile(const String &filename)
BALL::VIEW::DatasetControl::getSelectionSize
Size getSelectionSize()
Return the number of selected entries.
BALL::VIEW::DatasetControl::onNotify
virtual void onNotify(Message *message)
BALL::VIEW::DatasetControl::showGuestContextMenu
virtual void showGuestContextMenu(const QPoint &pos)
BALL::VIEW::DatasetControl::initializeWidget
virtual void initializeWidget(MainControl &main_control)
BALL::VIEW::DatasetControl::registerController
virtual bool registerController(DatasetController *con)
BALL::VIEW::DatasetControl::getType
String getType(QTreeWidgetItem *item)
Get the type for one QTreeWidgetItem.
BALL::VIEW::DatasetControl::canHandle
virtual bool canHandle(const String &fileformat) const
BALL::VIEW::DatasetControl::getController
DatasetController * getController(const String &type)
BALL::VIEW::DatasetControl::controllers_
vector< DatasetController * > controllers_
Definition datasetControl.h:136
BALL::VIEW::DatasetControl::checkMenu
virtual void checkMenu(MainControl &main_control)
BALL::VIEW::DatasetControl::getDatasets
vector< Dataset * > getDatasets(const String &type)
BALL::VIEW::DatasetControl::updateSelection
void updateSelection()
BALL::VIEW::DatasetController
Definition dataset.h:193
BALL::VIEW::Dataset
Definition dataset.h:61
BALL::VIEW::GenericControl::GenericControl
GenericControl(QWidget *parent=0, const char *name=0)
BALL::VIEW::MainControl
Definition mainControl.h:118
BALL::VIEW::Message
Definition message.h:53
QTreeWidgetItem
QWidget
BALL_EMBEDDABLE
#define BALL_EMBEDDABLE(TYPE, BASE)
Definition embeddable.h:31
genericControl.h
BALL::VIEW
Definition constraints.h:35
BALL
Definition constants.h:13
BALL::Size
BALL_SIZE_TYPE Size
Definition COMMON/global.h:114