6#ifndef SWIFT_GUI_DOCKWIDGET_H
7#define SWIFT_GUI_DOCKWIDGET_H
69 QString windowTitleOrBackup()
const;
79 bool isWidgetVisible()
const;
85 void showTitleWhenDocked(
bool show);
88 void resetWasAlreadyFloating();
94 void setPreferredSizeWhenFloating(
const QSize &size);
97 void setOffsetWhenFloating(
const QPoint &point,
bool frameless);
100 void setFrameless(
bool frameless)
override;
103 void toggleFloating();
106 void toggleVisibility();
109 void toggleFrameless();
115 void windowAlwaysOnTop();
118 void windowNotAlwaysOnTop();
124 bool restoreFromSettings();
127 void saveCurrentStateToSettings();
130 void resetSettings();
133 void resetPosition();
136 void setWindowTitle(
const QString &title);
145 static const QString &propertyOuterWidget();
148 static const QString &propertyInnerWidget();
227 QWidget *m_titleBarWidgetEmpty =
nullptr;
228 QWidget *m_titleBarWidgetOriginal =
nullptr;
232 bool m_allowStatusBar =
true;
233 bool m_windowTitleWhenDocked =
true;
234 bool m_wasAlreadyFloating =
false;
235 bool m_selected =
false;
236 bool m_dockWidgetVisible =
false;
237 bool m_wasFrameless =
false;
238 bool m_alwaysOnTop =
false;
241 QSize m_preferredSizeWhenFloating;
242 QSize m_initialDockedMinimumSize;
243 QSize m_lastFloatingSize;
244 QPoint m_offsetWhenFloating;
245 QPoint m_lastFloatingPosition;
251 void onTopLevelChanged(
bool topLevel);
254 void showContextMenu(
const QPoint &pos);
257 void onVisibilityChanged(
bool visible);
260 void menuChangeMargins(
const QMargins &margins);
263 void settingsChanged();
269 void initTitleBarWidgets();
272 void initStatusBarAndProperties();
275 void forceStyleSheetUpdate();
278 void rememberFloatingSizeAndPosition();
281 void restoreFloatingSizeAndPosition();
284 void restoreFloatingSizeAndPositionDeferred();
CEnableForFramelessWindow(WindowMode mode, bool isMainApplicationWindow, const char *framelessPropertyname, QWidget *correspondingWidget)
Constructor.
Class template for accessing a specific value in the CSettingsCache.
Streamable status message, e.g.
Status messages, e.g. from Core -> GUI.
High level reusable GUI components.
QObject * parent() const const
#define SWIFT_GUI_EXPORT
Export a class or function from the library.