swift
Loading...
Searching...
No Matches
dockwidgetinfoarea.h
Go to the documentation of this file.
1// SPDX-FileCopyrightText: Copyright (C) 2014 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_DOCKWIDGETINFOAREA_H
7#define SWIFT_GUI_DOCKWIDGETINFOAREA_H
8
9#include <QList>
10#include <QObject>
11
12#include "gui/dockwidget.h"
13#include "gui/swiftguiexport.h"
14
15class QMenu;
16
17namespace swift::gui
18{
20 class CInfoArea;
22
27 {
29
30 public:
32 explicit CDockWidgetInfoArea(QWidget *parent = nullptr);
33
35 const CInfoArea *getParentInfoArea() const;
36
39
41 bool isSelectedDockWidget() const;
42
44 bool isVisibleWidget() const;
45
48 void addToContextMenu(QMenu *contextMenu) const override;
49
51 void initialFloating() override;
52
53 private:
56 QList<CEnableForDockWidgetInfoArea *> findEmbeddedDockWidgetInfoAreaComponents();
57
59 QList<CDockWidgetInfoArea *> findNestedInfoAreas();
60
62 QList<const CInfoArea *> findParentInfoAreas() const;
63 };
64} // namespace swift::gui
65
66#endif // SWIFT_GUI_DOCKWIDGETINFOAREA_H
CDockWidget(QWidget *parent=nullptr)
Constructor.
const CInfoArea * getParentInfoArea() const
The parent info area.
CDockWidgetInfoArea(QWidget *parent=nullptr)
Constructor.
void initialFloating()
Widget is initialized by being a floating window for a shot period.
bool isVisibleWidget() const
Visible widget.
bool isSelectedDockWidget() const
Is this the selected widget, means it is not floating, and it is the one selected.
void addToContextMenu(QMenu *contextMenu) const
Contribute to menu.
Helper class: If a component is residing in an dockable widget. This class provides access to its inf...
Info area, hosting dockable widgets.
Definition infoarea.h:41
GUI related classes.
Q_OBJECTQ_OBJECT
QObject * parent() const const
QWidget(QWidget *parent, Qt::WindowFlags f)
#define SWIFT_GUI_EXPORT
Export a class or function from the library.