BALL::VIEW::DatasetControl Class Reference
[Modular Widgets]

#include <BALL/VIEW/WIDGETS/datasetControl.h>

Inheritance diagram for BALL::VIEW::DatasetControl:
Inheritance graph
[legend]

List of all members.

Public Member Functions

 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)
DatasetControllergetController (const String &type)
DatasetControllergetController (QTreeWidgetItem *item)
vector< Dataset * > getDatasets (const String &type)
Size getSelectionSize ()
 Return the number of selected entries.
String getType (QTreeWidgetItem *item)
 Get the type for one QTreeWidgetItem.
virtual void deleteCurrentItems ()
 Deletes the currently selected items.

Protected Slots

virtual void showGuestContextMenu (const QPoint &pos)
void updateSelection ()

Protected Member Functions

 DatasetControl (const DatasetControl &control)

Protected Attributes

vector< DatasetController * > controllers_

Detailed Description

DatasetControl is a widget to manage and manipulate arbitrary data types. For each type a derived DatasetController class must be registered. The DatasetControl has three columns: Name, from (Composite) and Type.

See also:
DatasetControl
Dataset
DatasetMessage

Definition at line 36 of file datasetControl.h.


Constructor & Destructor Documentation

BALL::VIEW::DatasetControl::DatasetControl ( QWidget parent = 0,
const char *  name = 0 
)

Default Constructor. Calls registerWidget().

Parameters:
parent the parent widget of the DatasetControl
name the name of the DatasetControl
See also:
ModularWidget
virtual BALL::VIEW::DatasetControl::~DatasetControl (  )  [virtual]

Destructor.

BALL::VIEW::DatasetControl::DatasetControl ( const DatasetControl control  )  [protected]

Member Function Documentation

virtual bool BALL::VIEW::DatasetControl::canHandle ( const String fileformat  )  const [virtual]

Test if this ModularWidget can handle a given file format. (Overloaded from ModularWidget) Calls DatasetControl::getSupportedFileFormats.

Parameters:
fileform short string with the file extension (e.g. PDB)
See also:
openFile

Reimplemented from BALL::VIEW::ModularWidget.

virtual void BALL::VIEW::DatasetControl::checkMenu ( MainControl main_control  )  [virtual]

Check the menu entries. Calls DatasetController::checkMenu

Reimplemented from BALL::VIEW::ModularWidget.

virtual void BALL::VIEW::DatasetControl::deleteCurrentItems (  )  [virtual]

Deletes the currently selected items.

Reimplemented from BALL::VIEW::GenericControl.

DatasetController* BALL::VIEW::DatasetControl::getController ( QTreeWidgetItem item  ) 

Get the DatasetController, that is responsible for the item.

DatasetController* BALL::VIEW::DatasetControl::getController ( const String type  ) 

Return the registered DatasetController with the given type.

vector<Dataset*> BALL::VIEW::DatasetControl::getDatasets ( const String type  ) 

Get all Datasets with one type

See also:
Datset::getType
DatasetController::getType
Size BALL::VIEW::DatasetControl::getSelectionSize (  ) 

Return the number of selected entries.

String BALL::VIEW::DatasetControl::getType ( QTreeWidgetItem item  ) 

Get the type for one QTreeWidgetItem.

virtual void BALL::VIEW::DatasetControl::initializeWidget ( MainControl main_control  )  [virtual]

Initialize the widget.

Reimplemented from BALL::VIEW::GenericControl.

virtual void BALL::VIEW::DatasetControl::onNotify ( Message message  )  [virtual]

Overload this method to react to further messages Reacts to DatasetMessage, it will be passed on to the corresponding DatasetController.

Reimplemented from BALL::VIEW::GenericControl.

virtual bool BALL::VIEW::DatasetControl::openFile ( const String filename  )  [virtual]

Tell this ModularWidget to open a given file. (Overloaded from ModularWidget) Will call DatasetController::openFile.

See also:
canHandle

Reimplemented from BALL::VIEW::ModularWidget.

virtual bool BALL::VIEW::DatasetControl::registerController ( DatasetController con  )  [virtual]

Register a DatasetController. The DatasetController must be created on the heap and will be deleted together with the DatasetControl.

virtual void BALL::VIEW::DatasetControl::showGuestContextMenu ( const QPoint &  pos  )  [protected, virtual, slot]

Reimplemented from BALL::VIEW::DockWidget.

void BALL::VIEW::DatasetControl::updateSelection (  )  [protected, virtual, slot]

Called when the item selection changes. Sends a DatasetMessage with type DatasetMessage::SELECTED.

Reimplemented from BALL::VIEW::GenericControl.


Member Data Documentation

Definition at line 136 of file datasetControl.h.

Generated by  doxygen 1.6.3