Public Types | Public Member Functions | List of all members
iqtgui::IMainWindowComponent Class Referenceabstract

A common interface for main window component such as dock widget, tool bar and so on. More...

#include <IMainWindowComponent.h>

Inheritance diagram for iqtgui::IMainWindowComponent:
istd::IPolymorphic iqtgui::CDockWidgetGuiComp iqtgui::CStatusBarWidgetComp iqtgui::CToolBarGuiCompBase iqtgui::CCommandsToolBarGuiComp iqtgui::CToolBarWidgetGuiComp

Public Types

enum  WindowComponentFlags { WCF_NONE = 0, WCF_CLOSABLE = 1, WCF_MOVEABLE = 2, WCF_FLOATABLE = 4 }
 Flags describing behaviour of the main window component. More...
 

Public Member Functions

virtual bool AddToMainWindow (QMainWindow &mainWindow)=0
 Add this component to main window. More...
 
virtual bool RemoveFromMainWindow (QMainWindow &mainWindow)=0
 Remove this component from main window. More...
 
virtual QString GetTitle () const =0
 Get the title of the main window component. More...
 
virtual int GetFlags () const =0
 Get properties of of the window component. More...
 
- Public Member Functions inherited from istd::IPolymorphic
virtual ~IPolymorphic ()
 

Detailed Description

A common interface for main window component such as dock widget, tool bar and so on.

Definition at line 20 of file IMainWindowComponent.h.

Member Enumeration Documentation

Flags describing behaviour of the main window component.

Enumerator
WCF_NONE 
WCF_CLOSABLE 

Element can be closed.

WCF_MOVEABLE 

Element can be moved.

WCF_FLOATABLE 

Element can be float from the main window to be standalone window.

Definition at line 26 of file IMainWindowComponent.h.

Member Function Documentation

virtual bool iqtgui::IMainWindowComponent::AddToMainWindow ( QMainWindow &  mainWindow)
pure virtual

Add this component to main window.

Implemented in iqtgui::CToolBarGuiCompBase, iqtgui::CDockWidgetGuiComp, and iqtgui::CStatusBarWidgetComp.

virtual int iqtgui::IMainWindowComponent::GetFlags ( ) const
pure virtual

Get properties of of the window component.

See Also
WindowComponentFlags

Implemented in iqtgui::CToolBarGuiCompBase, iqtgui::CDockWidgetGuiComp, and iqtgui::CStatusBarWidgetComp.

virtual QString iqtgui::IMainWindowComponent::GetTitle ( ) const
pure virtual

Get the title of the main window component.

Implemented in iqtgui::CToolBarGuiCompBase, iqtgui::CDockWidgetGuiComp, and iqtgui::CStatusBarWidgetComp.

virtual bool iqtgui::IMainWindowComponent::RemoveFromMainWindow ( QMainWindow &  mainWindow)
pure virtual

Remove this component from main window.

Implemented in iqtgui::CToolBarGuiCompBase, iqtgui::CDockWidgetGuiComp, and iqtgui::CStatusBarWidgetComp.


The documentation for this class was generated from the following file:

© 2007-2017 Witold Gantzke and Kirill Lepskiy