Main Page | Modules | Namespace List | Class Hierarchy | Class List | Namespace Members | Class Members

VIEW::DockWidget Class Reference
[Modular Widgets]

Class for ModularWidget, which can be docked in the MainApplication window. More...

#include <dockWidget.h>

Inheritance diagram for VIEW::DockWidget:

VIEW::ModularWidget Embeddable VIEW::ConnectionObject VIEW::EditFunctions VIEW::FileObserver VIEW::GenericControl VIEW::HelpViewer VIEW::LogView VIEW::PyWidget VIEW::DatasetControl VIEW::GeometricControl VIEW::MolecularControl List of all members.

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!
void setGuest (QWidget &guest)
 Insert a widget with the content of the window.
virtual void initializeWidget (MainControl &main_control) throw ()
 Initialize the widget.
virtual void fetchPreferences (INIFile &inifile) throw ()
 Load settings from an INIFile.
virtual void writePreferences (INIFile &inifile) throw ()
 Write settings to an INIFile.
virtual void setWidgetVisible (bool state)
 For usage with Python:.
virtual void registerForHelpSystem (const QObject *widget, const String &url)
 Register an QObject for the help system.
QGridLayout * getGuestLayout ()

Protected Member Functions

 DockWidget (const DockWidget &)

Protected Attributes

QWidget * container_
QWidget * guest_
QGridLayout * layout_

Detailed Description

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.


Member Function Documentation

virtual void VIEW::DockWidget::fetchPreferences INIFile inifile  )  throw () [virtual]
 

Load settings from an INIFile.

See also:
ModularWidget::fetchPreferences

Reimplemented from VIEW::ModularWidget.

Reimplemented in VIEW::MolecularControl, and VIEW::PyWidget.

virtual void VIEW::DockWidget::initializeWidget MainControl main_control  )  throw () [virtual]
 

Initialize the widget.

See also:
ModularWidget::initializeWidget

Reimplemented from VIEW::ModularWidget.

Reimplemented in VIEW::DatasetControl, VIEW::EditFunctions, VIEW::FileObserver, VIEW::GenericControl, VIEW::GeometricControl, VIEW::HelpViewer, VIEW::LogView, VIEW::MolecularControl, and VIEW::PyWidget.

virtual void VIEW::DockWidget::registerForHelpSystem const QObject *  widget,
const String url
[virtual]
 

Register an QObject for the help system.

See also:
HelpViewer

Reimplemented from VIEW::ModularWidget.

Reimplemented in VIEW::HelpViewer.

void VIEW::DockWidget::setGuest QWidget &  guest  ) 
 

Insert a widget with the content of the window.

virtual void VIEW::DockWidget::writePreferences INIFile inifile  )  throw () [virtual]
 

Write settings to an INIFile.

See also:
ModularWidget::writePreferences

Reimplemented from VIEW::ModularWidget.

Reimplemented in VIEW::MolecularControl, and VIEW::PyWidget.