6#ifndef SWIFT_GUI_INFOAREA_H
7#define SWIFT_GUI_INFOAREA_H
61 int getSelectedDockInfoAreaIndex()
const;
88 QList<int> getAreaIndexesDockedOrFloating(
bool floating)
const;
91 void dockAllWidgets();
94 void adjustSizeForAllDockWidgets();
97 void floatAllWidgets();
100 void allFloatingOnTop();
103 void resetAllFloatingWidgetSettings();
106 void resetAllWidgetSettings();
109 virtual void toggleFloatingWholeInfoArea();
112 void toggleFloatingByIndex(
int areaIndex);
115 void toggleVisibility(
int areaIndex);
118 void selectArea(
int areaIndex);
121 void resetPosition(
int areaIndex);
127 void selectAreaByAction();
130 void resetPositionByAction();
133 void toggleAreaFloatingByAction();
136 void restoreDockWidgetInfoArea();
139 void restoreDockWidgetInfoAreaByIndex(
int areaIndex);
142 void selectLeftTab();
145 void selectRightTab();
197 bool m_showTabTexts =
true;
198 bool m_infoAreaFloating =
false;
199 bool m_showTabBar =
true;
200 bool m_lockTabBar =
false;
203 void toggleTabBarPosition();
206 void tabifyAllWidgets();
209 void unTabifyAllWidgets();
212 bool isValidAreaIndex(
int areaIndex)
const;
215 int getAreaIndexByWindowTitle(
const QString &title)
const;
218 int getTabBarIndexByTitle(
const QString &title)
const;
233 int countDockedWidgetInfoAreas()
const;
236 void setTabPixmaps();
239 void connectTopLevelChanged();
242 void onTabBarDoubleClicked(
int tabBarIndex);
245 void onWidgetTopLevelChanged(
CDockWidget *dockWidget,
bool topLevel);
248 void onStyleSheetChanged();
254 void showTabTexts(
bool show);
257 void showTabBar(
bool show);
263 void setWholeInfoAreaFloating(
bool floating);
266 void emitInfoAreaStatus();
269 void onTabBarIndexChanged(
int tabBarIndex);
CEnableForFramelessWindow(WindowMode mode, bool isMainApplicationWindow, const char *framelessPropertyname, QWidget *correspondingWidget)
Constructor.
~CInfoArea()=default
Destructor.
CInfoArea(QWidget *parent=nullptr)
Constructor.
void changedInfoAreaStatus(int currentTabIndex, QList< int > dockedAreas, QList< int > floatingAreas)
Status of info area changed.
void addToContextMenu(QMenu *menu) const
Add items to context menu.
void closeEvent(QCloseEvent *event)
void setTabBarPosition(QTabWidget::TabPosition position)
Tab position for docked widgets tab.
void paintEvent(QPaintEvent *event)
void initInfoArea()
Init area after(!) GUI is initialized.
void toggleTabBarLocked(bool locked)
Toogle lock tabbar.
void changedInfoAreaTabBarIndex(int index)
Tab bar changed.
virtual QSize getPreferredSizeWhenFloating(int areaIndex) const =0
Preferred size when floating (size hint).
void changedWholeInfoAreaFloating(bool floating)
Whole info area floating.
bool isFloating() const
Is the area floating?
virtual const QPixmap & indexToPixmap(int areaIndex) const =0
Info area (index) to icon.
void keyPressEvent(QKeyEvent *event)
Streamable status message, e.g.
Status messages, e.g. from Core -> GUI.
QMainWindow(QWidget *parent, Qt::WindowFlags flags)
virtual bool event(QEvent *event) override
QObject * parent() const const
#define SWIFT_GUI_EXPORT
Export a class or function from the library.