ICF 3.0.5.47
Technical documentation of ICF Libraries
istdgui::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 istdgui::IMainWindowComponent:
Collaboration diagram for istdgui::IMainWindowComponent:

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.
 

Detailed Description

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

Definition at line 25 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 31 of file IMainWindowComponent.h.

Member Function Documentation

◆ AddToMainWindow()

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

Add this component to main window.

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

◆ GetFlags()

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

Get properties of of the window component.

See also
WindowComponentFlags

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

◆ GetTitle()

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

Get the title of the main window component.

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

◆ RemoveFromMainWindow()

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

Remove this component from main window.

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


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

© Witold Gantzke and Kirill Lepskiy