ACF $AcfVersion:0$
IMainWindowComponent.h
Go to the documentation of this file.
1// SPDX-License-Identifier: LGPL-2.1-or-later OR GPL-2.0-or-later OR GPL-3.0-or-later OR LicenseRef-ACF-Commercial
2#pragma once
3
4
5// ACF includes
6#include <iqtgui/iqtgui.h>
7#include <istd/IPolymorphic.h>
8
9
10class QMainWindow;
11
12
13namespace iqtgui
14{
15
16
21{
22public:
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
71
A common interface for main window component such as dock widget, tool bar and so on.
WindowComponentFlags
Flags describing behaviour of the main window component.
@ WCF_FLOATABLE
Element can be float from the main window to be standalone window.
@ WCF_CLOSABLE
Element can be closed.
@ WCF_MOVEABLE
Element can be moved.
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 int GetFlags() const =0
Get properties of of the window component.
virtual QString GetTitle() const =0
Get the title of the main window component.
Base interface for all used interfaces and implementations.
Standard GUI specific interfaces and components based on Qt.