19 #ifndef KD_DOCKWIDGETS_CONFIG_H
20 #define KD_DOCKWIDGETS_CONFIG_H
22 #include "docks_export.h"
36 class FrameworkWidgetFactory;
89 Flag_NativeTitleBar = 1,
90 Flag_AeroSnapWithClientDecos = 2,
91 Flag_AlwaysTitleBarWhenFloating = 4,
92 Flag_HideTitleBarWhenTabsVisible = 8,
93 Flag_AlwaysShowTabs = 16,
94 Flag_AllowReorderTabs = 32,
95 Flag_TabsHaveCloseButton = 64,
96 Flag_DoubleClickMaximizes = 128,
97 Flag_TitleBarHasMaximizeButton = 256,
98 Flag_TitleBarIsFocusable = 512,
99 Flag_LazyResize = 1024,
100 Flag_DontUseUtilityFloatingWindows = 0x1000,
101 Flag_TitleBarHasMinimizeButton = 0x2000 | Flag_DontUseUtilityFloatingWindows,
102 Flag_TitleBarNoFloatButton = 0x4000,
103 Flag_AutoHideSupport = 0x8000 | Flag_TitleBarNoFloatButton,
104 Flag_KeepAboveIfNotUtilityWindow = 0x10000,
106 Flag_CloseOnlyCurrentTab = 0x20000,
107 Flag_ShowButtonsOnTabBarIfTitleBarHidden = 0x40000,
108 Flag_AllowSwitchingTabsViaMenu = 0x80000,
109 Flag_Default = Flag_AeroSnapWithClientDecos
111 Q_DECLARE_FLAGS(Flags, Flag)
115 CustomizableWidget_None = 0,
122 CustomizableWidget_Separator
124 Q_DECLARE_FLAGS(CustomizableWidgets, CustomizableWidget)
130 InternalFlag_None = 0,
131 InternalFlag_NoAeroSnap = 1,
132 InternalFlag_DontUseParentForFloatingWindows = 2,
133 InternalFlag_DontUseQtToolWindowsForFloatingWindows = 4,
134 InternalFlag_DontShowWhenUnfloatingHiddenWindow = 8,
135 InternalFlag_UseTransparentFloatingWindow = 16,
136 InternalFlag_DisableTranslucency = 32,
137 InternalFlag_TopLevelIndicatorRubberBand = 64
140 Q_DECLARE_FLAGS(InternalFlags, InternalFlag)
149 void setFlags(Flags flags);
199 int separatorThickness()
const;
203 void setSeparatorThickness(
int value);
207 void setDraggedWindowOpacity(qreal opacity);
211 qreal draggedWindowOpacity()
const;
216 void setDropIndicatorsInhibited(
bool inhibit)
const;
220 bool dropIndicatorsInhibited()
const;
288 void setAbsoluteWidgetMinSize(
QSize size);
289 QSize absoluteWidgetMinSize()
const;
294 void setAbsoluteWidgetMaxSize(
QSize size);
295 QSize absoluteWidgetMaxSize()
const;
301 void setDisabledPaintEvents(CustomizableWidgets);
302 Config::CustomizableWidgets disabledPaintEvents()
const;
307 InternalFlags internalFlags()
const;
312 void setInternalFlags(InternalFlags flags);
317 void setMDIPopupThreshold(
int);
318 int mdiPopupThreshold()
const;
320 #ifdef KDDOCKWIDGETS_QTQUICK
321 void setQmlEngine(QQmlEngine *);
323 QQmlEngine *qmlEngine()
const;
335 Q_DECLARE_OPERATORS_FOR_FLAGS(KDDockWidgets::Config::Flags)