19 #ifndef KD_DOCKWIDGETS_CONFIG_H
20 #define KD_DOCKWIDGETS_CONFIG_H
22 #include "docks_export.h"
35 class FrameworkWidgetFactory;
70 Flag_NativeTitleBar = 1,
71 Flag_AeroSnapWithClientDecos = 2,
72 Flag_AlwaysTitleBarWhenFloating = 4,
73 Flag_HideTitleBarWhenTabsVisible = 8,
74 Flag_AlwaysShowTabs = 16,
75 Flag_AllowReorderTabs = 32,
76 Flag_TabsHaveCloseButton = 64,
77 Flag_DoubleClickMaximizes = 128,
78 Flag_TitleBarHasMaximizeButton = 256,
79 Flag_TitleBarIsFocusable = 512,
80 Flag_LazyResize = 1024,
81 Flag_DontUseUtilityFloatingWindows = 0x1000,
82 Flag_TitleBarHasMinimizeButton = 0x2000 | Flag_DontUseUtilityFloatingWindows,
83 Flag_TitleBarNoFloatButton = 0x4000,
84 Flag_AutoHideSupport = 0x8000 | Flag_TitleBarNoFloatButton,
85 Flag_KeepAboveIfNotUtilityWindow = 0x10000,
87 Flag_CloseOnlyCurrentTab = 0x20000,
88 Flag_ShowButtonsOnTabBarIfTitleBarHidden = 0x40000,
89 Flag_AllowSwitchingTabsViaMenu = 0x80000,
90 Flag_Default = Flag_AeroSnapWithClientDecos
92 Q_DECLARE_FLAGS(Flags, Flag)
97 CustomizableWidget_None = 0,
104 CustomizableWidget_Separator
106 Q_DECLARE_FLAGS(CustomizableWidgets, CustomizableWidget)
113 InternalFlag_None = 0,
114 InternalFlag_NoAeroSnap = 1,
115 InternalFlag_DontUseParentForFloatingWindows = 2,
116 InternalFlag_DontUseQtToolWindowsForFloatingWindows = 4,
117 InternalFlag_DontShowWhenUnfloatingHiddenWindow = 8,
118 InternalFlag_UseTransparentFloatingWindow = 16,
119 InternalFlag_DisableTranslucency = 32,
120 InternalFlag_TopLevelIndicatorRubberBand = 64
123 Q_DECLARE_FLAGS(InternalFlags, InternalFlag)
132 void setFlags(Flags flags);
182 int separatorThickness()
const;
186 void setSeparatorThickness(
int value);
190 void setDraggedWindowOpacity(qreal opacity);
194 qreal draggedWindowOpacity()
const;
199 void setDropIndicatorsInhibited(
bool inhibit)
const;
203 bool dropIndicatorsInhibited()
const;
235 void setAbsoluteWidgetMinSize(
QSize size);
236 QSize absoluteWidgetMinSize()
const;
241 void setAbsoluteWidgetMaxSize(
QSize size);
242 QSize absoluteWidgetMaxSize()
const;
248 void setDisabledPaintEvents(CustomizableWidgets);
249 Config::CustomizableWidgets disabledPaintEvents()
const;
254 InternalFlags internalFlags()
const;
259 void setInternalFlags(InternalFlags flags);
264 void setMDIPopupThreshold(
int);
265 int mdiPopupThreshold()
const;
267 #ifdef KDDOCKWIDGETS_QTQUICK
268 void setQmlEngine(QQmlEngine *);
270 QQmlEngine *qmlEngine()
const;
282 Q_DECLARE_OPERATORS_FOR_FLAGS(KDDockWidgets::Config::Flags)