15#include "../core/Draggable_p.h"
16#include "kddockwidgets/docks_export.h"
50 bool isMDI()
const override;
51 std::unique_ptr<WindowBeingDragged> makeWindow()
override;
52 bool isWindow()
const override;
55 void setTitle(
const QString &title);
59 bool isFloating()
const;
62 bool isStandalone()
const;
70 void setIcon(
const Icon &icon);
73 bool supportsFloatingButton()
const;
76 bool supportsMaximizeButton()
const;
79 bool supportsMinimizeButton()
const;
82 bool supportsAutoHideButton()
const;
84#ifdef DOCKS_TESTING_METHODS
86 bool isFloatButtonVisible()
const;
87 bool isCloseButtonVisible()
const;
88 bool isCloseButtonEnabled()
const;
97 bool isFocused()
const;
99 bool titleBarIsFocusable()
const;
121 void updateButtons();
122 QString floatButtonToolTip()
const;
124 bool onDoubleClicked();
125 void onCloseClicked();
126 void onFloatClicked();
127 void onMaximizeClicked();
128 void onMinimizeClicked();
129 void onAutoHideClicked();
130 void toggleMaximized();
132 bool closeButtonEnabled()
const;
133 bool floatButtonVisible()
const;
134 bool maximizeButtonVisible()
const;
135 void setCloseButtonEnabled(
bool);
136 void setFloatButtonVisible(
bool);
141 Private *dptr()
const;
144 bool isOverlayed()
const;
147 friend class ::TestDocks;
151 void updateAutoHideButton();
152 void updateMaximizeButton();
154 void updateFloatButton();
155 void updateCloseButton();
156 void setFloatButtonToolTip(
const QString &);
167 const bool m_supportsAutoHide;
168 const bool m_isStandalone;
169 bool m_closeButtonEnabled =
true;
170 bool m_floatButtonVisible =
true;
171 bool m_maximizeButtonVisible =
false;
The MainWindow base-class. MainWindow and MainWindowBase are only split in two so we can share some c...