swift
enablefordockwidgetinfoarea.h
Go to the documentation of this file.
1 // SPDX-FileCopyrightText: Copyright (C) 2013 swift Project Community / Contributors
2 // SPDX-License-Identifier: GPL-3.0-or-later OR LicenseRef-swift-pilot-client-1
3 
5 
6 #ifndef SWIFT_GUI_ENABLEFORDOCKWIDGETINFOAREA_H
7 #define SWIFT_GUI_ENABLEFORDOCKWIDGETINFOAREA_H
8 
9 #include "gui/swiftguiexport.h"
10 #include "misc/connectionguard.h"
11 
12 class QWidget;
13 
14 namespace swift::gui
15 {
16  class CDockWidgetInfoArea;
17  class CEnableForFramelessWindow;
18  class CInfoArea;
19 
23  {
24  public:
26  CDockWidgetInfoArea *getDockWidgetInfoArea() const { return m_parentDockableInfoArea; }
27 
29  bool hasDockWidgetArea() const { return m_parentDockableInfoArea; }
30 
33  virtual bool setParentDockWidgetInfoArea(CDockWidgetInfoArea *parentDockableWidget);
34 
36  CInfoArea *getParentInfoArea() const;
37 
39  bool isParentDockWidgetFloating() const;
40 
42  bool isVisibleWidget() const;
43 
45  CEnableForFramelessWindow *mainApplicationWindow() const;
46 
48  QWidget *mainApplicationWindowWidget() const;
49 
51  void displayMyself();
52 
53  protected:
56  CEnableForDockWidgetInfoArea(CDockWidgetInfoArea *parentInfoArea = nullptr);
57 
60 
61  CDockWidgetInfoArea *m_parentDockableInfoArea = nullptr;
63  };
64 } // namespace swift::gui
65 
66 #endif // SWIFT_GUI_ENABLEFORDOCKWIDGETINFOAREA_H
Specialized class for dock widgets serving as info area.
Helper class: If a component is residing in an dockable widget. This class provides access to its inf...
CDockWidgetInfoArea * getDockWidgetInfoArea() const
Corresponding dockable widget in info area.
swift::misc::CConnectionGuard m_connections
connections
Main window which can be frameless.
Info area, hosting dockable widgets.
Definition: infoarea.h:41
List of QMetaObject::Connection.
GUI related classes.
#define SWIFT_GUI_EXPORT
Export a class or function from the library.