IMainWindowComponent.h
Go to the documentation of this file.
1 #ifndef iqtgui_IMainWindowComponent_included
2 #define iqtgui_IMainWindowComponent_included
3 
4 
5 // ACF includes
6 #include <iqtgui/iqtgui.h>
7 #include <istd/IPolymorphic.h>
8 
9 
10 class QMainWindow;
11 
12 
13 namespace iqtgui
14 {
15 
16 
21 {
22 public:
27  {
28  WCF_NONE = 0,
29 
42  };
43 
47  virtual bool AddToMainWindow(QMainWindow& mainWindow) = 0;
48 
52  virtual bool RemoveFromMainWindow(QMainWindow& mainWindow) = 0;
53 
57  virtual QString GetTitle() const = 0;
58 
63  virtual int GetFlags() const = 0;
64 };
65 
66 
67 } // namespace iqtgui
68 
69 
70 #endif // !iqtgui_IMainWindowComponent_included
71 
72 
virtual int GetFlags() const =0
Get properties of of the window component.
virtual QString GetTitle() const =0
Get the title of the main window component.
virtual bool AddToMainWindow(QMainWindow &mainWindow)=0
Add this component to main window.
virtual bool RemoveFromMainWindow(QMainWindow &mainWindow)=0
Remove this component from main window.
A common interface for main window component such as dock widget, tool bar and so on...
Base interface for all used interfaces and implementations.
Definition: IPolymorphic.h:17
Element can be float from the main window to be standalone window.
WindowComponentFlags
Flags describing behaviour of the main window component.

© 2007-2017 Witold Gantzke and Kirill Lepskiy