BALL  1.4.2
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
Public Slots | Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
BALL::VIEW::DockWidget Class Reference

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

Inheritance diagram for BALL::VIEW::DockWidget:
QDockWidget BALL::VIEW::ModularWidget BALL::Embeddable BALL::VIEW::ConnectionObject BALL::VIEW::DockableRegularData1DWidget BALL::VIEW::DockableRegularData2DWidget BALL::VIEW::EditFunctions BALL::VIEW::FileObserver BALL::VIEW::GenericControl BALL::VIEW::HelpViewer BALL::VIEW::LogView BALL::VIEW::PyWidget

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! More...
 
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: More...
 
virtual void registerForHelpSystem (const QObject *widget, const String &url)
 
QGridLayout * getGuestLayout ()
 
- Public Member Functions inherited from BALL::VIEW::ModularWidget
void setWorkingDirFromFilename_ (String filename)
 
virtual void showHelp (const String &url)
 
 ModularWidget (const char *name="<ModularWidget>")
 
 ModularWidget (const ModularWidget &widget)
 
virtual ~ModularWidget ()
 
virtual void destroy ()
 
virtual void clear ()
 
virtual void checkMenu (MainControl &main_control)
 
QAction * insertMenuEntry (Position parent_id, const String &name, const QObject *receiver=0, const char *slot=0, const String &description="", QKeySequence accel=QKeySequence())
 
void setMenuHint (const String &hint)
 
void setMenuHelp (const String &url)
 
virtual void addToolBarEntries (QToolBar *main_tb)
 
void setIcon (const String &filename, bool add_to_main_toolbar=true)
 
virtual void initializePreferencesTab (Preferences &preferences)
 
virtual void finalizePreferencesTab (Preferences &preferences)
 
virtual void applyPreferences ()
 
bool lockComposites ()
 
bool unlockComposites ()
 Unlock the Composites. More...
 
MainControlgetMainControl () const
 
virtual void setStatusbarText (const String &text, bool important=false)
 
virtual void setStatusbarText (const QString &text, bool important=false)
  More...
 
String getWorkingDir ()
 Implemented for convenience. More...
 
void setWorkingDir (const String &dir)
 Implemented for convenience. More...
 
FragmentDBgetFragmentDB () const
 
virtual void dump (std::ostream &s=std::cout, Size depth=0) const
 
virtual void finalizeWidget (MainControl &main_control)
 
virtual bool canHandle (const String &) const
 
virtual bool openFile (const String &)
 
- Public Member Functions inherited from BALL::Embeddable
 Embeddable (const String &identifier="<Embeddable>")
 
 Embeddable (const Embeddable &embeddable)
 
virtual ~Embeddable ()
 
void setIdentifier (const String &identifier)
 
const StringgetIdentifier () const
 
void unregisterThis ()
 
virtual void registerThis ()
 
- Public Member Functions inherited from BALL::VIEW::ConnectionObject
 ConnectionObject ()
 
virtual ~ConnectionObject ()
 
void registerConnectionObject (ConnectionObject &object)
 
void unregisterConnectionObject (ConnectionObject &object)
 
bool isConnectionObjectRegistered (const ConnectionObject &object)
 
ConnectionObjectgetParent () const
 
ConnectionObjectgetRoot ()
 
virtual void onNotify (Message *message)
 
virtual bool isValid () const
 

Protected Member Functions

 DockWidget ()
 
 DockWidget (const DockWidget &)
 

Protected Attributes

QWidgetcontainer_
 
QWidgetguest_
 
QGridLayout * layout_
 
- Protected Attributes inherited from BALL::VIEW::ModularWidget
QAction * window_menu_entry_
 
bool show_window_enty_
 
bool default_visible_
 
QAction * last_action_
 
QList< QAction * > main_toolbar_actions_
 

Additional Inherited Members

- Public Types inherited from BALL::Embeddable
typedef std::vector< Embeddable * > EmbeddableVector
 
- Static Public Member Functions inherited from BALL::VIEW::ModularWidget
static void registerWidget (ModularWidget *mwidget) throw (Exception::NullPointer)
 
- Static Protected Member Functions inherited from BALL::Embeddable
static void registerInstance_ (const std::type_info &type, const Embeddable *instance)
 
static void unregisterInstance_ (const Embeddable *instance)
 
static Size countInstances_ (const std::type_info &type)
 
static EmbeddablegetInstance_ (const std::type_info &type, Position index)
 
static EmbeddablegetInstance_ (const std::type_info &type, const String &identifier)
 

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.

Definition at line 25 of file dockWidget.h.

Constructor & Destructor Documentation

BALL::VIEW::DockWidget::DockWidget ( QWidget parent,
const char *  title = 0 
)

Use this constructor!

virtual BALL::VIEW::DockWidget::~DockWidget ( )
inlinevirtual

Definition at line 39 of file dockWidget.h.

BALL::VIEW::DockWidget::DockWidget ( )
protected
BALL::VIEW::DockWidget::DockWidget ( const DockWidget )
protected

Member Function Documentation

virtual void BALL::VIEW::DockWidget::dragEnterEvent ( QDragEnterEvent *  e)
virtualslot
virtual void BALL::VIEW::DockWidget::dropEvent ( QDropEvent *  e)
virtualslot
virtual void BALL::VIEW::DockWidget::fetchPreferences ( INIFile inifile)
virtual

Load settings from an INIFile

See Also
ModularWidget::fetchPreferences

Reimplemented from BALL::VIEW::ModularWidget.

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

QGridLayout* BALL::VIEW::DockWidget::getGuestLayout ( )
inline

Definition at line 67 of file dockWidget.h.

virtual void BALL::VIEW::DockWidget::initializeWidget ( MainControl main_control)
virtual
virtual void BALL::VIEW::DockWidget::registerForHelpSystem ( const QObject object,
const String url 
)
virtual

Register an QObject for the help system.

See Also
HelpViewer

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 &  )
inlinevirtualslot

Definition at line 78 of file dockWidget.h.

virtual void BALL::VIEW::DockWidget::writePreferences ( INIFile inifile)
virtual

Write settings to an INIFile

See Also
ModularWidget::writePreferences

Reimplemented from BALL::VIEW::ModularWidget.

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

Member Data Documentation

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.