#include <BALL/VIEW/WIDGETS/dockWidget.h>
Public Slots | |
virtual void | dropEvent (QDropEvent *e) |
virtual void | dragEnterEvent (QDragEnterEvent *e) |
virtual void | showGuestContextMenu (const QPoint &) |
Public Member Functions | |
DockWidget (QWidget *parent, const char *title=0) | |
Use this constructor! | |
virtual | ~DockWidget () |
void | setGuest (QWidget &guest) |
virtual void | initializeWidget (MainControl &main_control) |
virtual void | fetchPreferences (INIFile &inifile) |
virtual void | writePreferences (INIFile &inifile) |
virtual void | setWidgetVisible (bool state) |
For usage with Python: | |
virtual void | registerForHelpSystem (const QObject *widget, const String &url) |
QGridLayout * | getGuestLayout () |
Protected Member Functions | |
DockWidget () | |
DockWidget (const DockWidget &) | |
Protected Attributes | |
QWidget * | container_ |
QWidget * | guest_ |
QGridLayout * | layout_ |
Class for ModularWidget, which can be docked in the MainApplication window. Insert the widget with the main content as member with setGuest(). This class is very generic, to understand its concept better, have a look at the implementation in LogView.
Definition at line 25 of file dockWidget.h.
BALL::VIEW::DockWidget::DockWidget | ( | QWidget * | parent, | |
const char * | title = 0 | |||
) |
Use this constructor!
virtual BALL::VIEW::DockWidget::~DockWidget | ( | ) | [inline, virtual] |
Definition at line 39 of file dockWidget.h.
BALL::VIEW::DockWidget::DockWidget | ( | ) | [protected] |
BALL::VIEW::DockWidget::DockWidget | ( | const DockWidget & | ) | [protected] |
virtual void BALL::VIEW::DockWidget::dragEnterEvent | ( | QDragEnterEvent * | e | ) | [virtual, slot] |
virtual void BALL::VIEW::DockWidget::dropEvent | ( | QDropEvent * | e | ) | [virtual, slot] |
virtual void BALL::VIEW::DockWidget::fetchPreferences | ( | INIFile & | inifile | ) | [virtual] |
Load settings from an INIFile
Reimplemented from BALL::VIEW::ModularWidget.
Reimplemented in BALL::VIEW::MolecularControl, and BALL::VIEW::PyWidget.
QGridLayout* BALL::VIEW::DockWidget::getGuestLayout | ( | ) | [inline] |
Definition at line 67 of file dockWidget.h.
virtual void BALL::VIEW::DockWidget::initializeWidget | ( | MainControl & | main_control | ) | [virtual] |
Initialize the widget.
Reimplemented from BALL::VIEW::ModularWidget.
Reimplemented in BALL::VIEW::DatasetControl, BALL::VIEW::EditFunctions, BALL::VIEW::FileObserver, BALL::VIEW::GenericControl, BALL::VIEW::GeometricControl, BALL::VIEW::HelpViewer, BALL::VIEW::LogView, BALL::VIEW::MolecularControl, and BALL::VIEW::PyWidget.
virtual void BALL::VIEW::DockWidget::registerForHelpSystem | ( | const QObject * | object, | |
const String & | url | |||
) | [virtual] |
Register an QObject for the help system.
Reimplemented from BALL::VIEW::ModularWidget.
Reimplemented in BALL::VIEW::HelpViewer.
void BALL::VIEW::DockWidget::setGuest | ( | QWidget & | guest | ) |
Insert a widget with the content of the window.
virtual void BALL::VIEW::DockWidget::setWidgetVisible | ( | bool | state | ) | [virtual] |
For usage with Python:
virtual void BALL::VIEW::DockWidget::showGuestContextMenu | ( | const QPoint & | ) | [inline, virtual, slot] |
Reimplemented in BALL::VIEW::DatasetControl, BALL::VIEW::GeometricControl, BALL::VIEW::LogView, and BALL::VIEW::MolecularControl.
Definition at line 78 of file dockWidget.h.
virtual void BALL::VIEW::DockWidget::writePreferences | ( | INIFile & | inifile | ) | [virtual] |
Write settings to an INIFile
Reimplemented from BALL::VIEW::ModularWidget.
Reimplemented in BALL::VIEW::MolecularControl, and BALL::VIEW::PyWidget.
QWidget* BALL::VIEW::DockWidget::container_ [protected] |
Definition at line 86 of file dockWidget.h.
QWidget* BALL::VIEW::DockWidget::guest_ [protected] |
Definition at line 87 of file dockWidget.h.
QGridLayout* BALL::VIEW::DockWidget::layout_ [protected] |
Definition at line 88 of file dockWidget.h.