#include <BALL/VIEW/WIDGETS/genericControl.h>
Public Types | |
typedef QList< QTreeWidgetItem * > | ItemList |
typedef | |
Public Slots | |
virtual void | deleteCurrentItems () |
Called by if del is pressed. | |
Public Member Functions | |
Constructors and Destructors | |
Embeddable Macro. | |
GenericControl (QWidget *parent=0, const char *name=0) | |
virtual | ~GenericControl () |
ItemList | getSelectedItems () |
QTreeWidgetItem * | addRow (const QStringList &entries) |
virtual void | onNotify (Message *message) |
virtual void | initializeWidget (MainControl &main_control) |
Protected Slots | |
virtual void | deselectOtherControls_ () |
virtual void | updateSelection () |
virtual void | onItemClicked (QTreeWidgetItem *, int) |
Protected Member Functions | |
virtual void | removeItem_ (QTreeWidgetItem *item) |
Protected Attributes | |
QTreeWidgetItem * | context_item_ |
TreeWidget * | listview |
bool | checkable_ |
GenericControl is a widget to display the structure of Composite objects. It uses the datastructure QListView from the QT-libary. There are two columns. The Name column and the Type column. In the Name column the item tree will be shown and in the Type column the type of each item. There are methods available to change the structure as well as copy or paste objects into the GenericControl. Various virtual methods can be overridden to customize the behavior of these structure changing methods. To use this widget in the application just create it with MainGenericControl as parent.
Definition at line 50 of file genericControl.h.
typedef QList<QTreeWidgetItem*> BALL::VIEW::GenericControl::ItemList |
typedef
Definition at line 58 of file genericControl.h.
BALL::VIEW::GenericControl::GenericControl | ( | QWidget * | parent = 0 , |
|
const char * | name = 0 | |||
) |
Default Constructor. (See documentation of QT-library for information concerning widgets and signal/slot mechanism.)
parent | the parent widget of the GenericControl | |
name | the name of the GenericControl |
virtual BALL::VIEW::GenericControl::~GenericControl | ( | ) | [virtual] |
Destructor.
QTreeWidgetItem* BALL::VIEW::GenericControl::addRow | ( | const QStringList & | entries | ) |
virtual void BALL::VIEW::GenericControl::deleteCurrentItems | ( | ) | [inline, virtual, slot] |
Called by if del is pressed.
Reimplemented in BALL::VIEW::DatasetControl, BALL::VIEW::GeometricControl, and BALL::VIEW::MolecularControl.
Definition at line 114 of file genericControl.h.
virtual void BALL::VIEW::GenericControl::deselectOtherControls_ | ( | ) | [protected, virtual, slot] |
ItemList BALL::VIEW::GenericControl::getSelectedItems | ( | ) |
virtual void BALL::VIEW::GenericControl::initializeWidget | ( | MainControl & | main_control | ) | [virtual] |
Initialize the menu entries:
main_control | the MainControl object to be initialized with this ModularWidget |
Reimplemented from BALL::VIEW::DockWidget.
Reimplemented in BALL::VIEW::DatasetControl, BALL::VIEW::GeometricControl, and BALL::VIEW::MolecularControl.
virtual void BALL::VIEW::GenericControl::onItemClicked | ( | QTreeWidgetItem * | , | |
int | ||||
) | [inline, protected, virtual, slot] |
Reimplemented in BALL::VIEW::GeometricControl, and BALL::VIEW::MolecularControl.
Definition at line 125 of file genericControl.h.
virtual void BALL::VIEW::GenericControl::onNotify | ( | Message * | message | ) | [virtual] |
React to a DeselectControlsMessage. If such a message is send from other GenericControls, this GenericControl deselects all its items, so that only one GenericControl has a Selection at any time. Call this Method in the derived Classes in their onNotify().
Reimplemented from BALL::VIEW::ConnectionObject.
Reimplemented in BALL::VIEW::DatasetControl, BALL::VIEW::GeometricControl, and BALL::VIEW::MolecularControl.
virtual void BALL::VIEW::GenericControl::removeItem_ | ( | QTreeWidgetItem * | item | ) | [protected, virtual] |
virtual void BALL::VIEW::GenericControl::updateSelection | ( | ) | [protected, virtual, slot] |
Reimplemented in BALL::VIEW::DatasetControl, BALL::VIEW::GeometricControl, and BALL::VIEW::MolecularControl.
bool BALL::VIEW::GenericControl::checkable_ [protected] |
Definition at line 133 of file genericControl.h.
QTreeWidgetItem* BALL::VIEW::GenericControl::context_item_ [protected] |
Reimplemented in BALL::VIEW::MolecularControl.
Definition at line 131 of file genericControl.h.
TreeWidget* BALL::VIEW::GenericControl::listview [protected] |
Definition at line 132 of file genericControl.h.