ACF $AcfVersion:0$
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.
 
virtual bool RemoveFromMainWindow (QMainWindow &mainWindow)=0
 Remove this component from main window.
 
virtual QString GetTitle () const =0
 Get the title of the main window component.
 
virtual int GetFlags () const =0
 Get properties of of the window component.
 
- 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

◆ WindowComponentFlags

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

◆ AddToMainWindow()

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

Add this component to main window.

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

◆ GetFlags()

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

Get properties of of the window component.

See also
WindowComponentFlags

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

◆ GetTitle()

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

Get the title of the main window component.

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

◆ RemoveFromMainWindow()

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

Remove this component from main window.

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


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