You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/DockManager.h
+27-1Lines changed: 27 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -114,10 +114,25 @@ class ADS_EXPORT CDockManager : public CDockContainerWidget
114
114
XmlAutoFormattingEnabled
115
115
};
116
116
117
+
/**
118
+
* These global configuration flags configure some global dock manager
119
+
* settings.
120
+
*/
121
+
enum eConfigFlag
122
+
{
123
+
ActiveTabHasCloseButton = 0x01, //!< If this flag is set, the active tab in a tab area has a close button
124
+
DockAreaHasCloseButton = 0x02, //!< If the flag is set each dock area has a close button
125
+
DockAreaCloseButtonClosesTab = 0x04,//!< If the flag is set, the dock area close button closes the active tab, if not set, it closes the complete cock area
126
+
DefaultConfig = ActiveTabHasCloseButton | DockAreaHasCloseButton, ///< the default configuration
127
+
};
128
+
Q_DECLARE_FLAGS(ConfigFlags, eConfigFlag)
129
+
117
130
/**
118
131
* Default Constructor.
119
132
* If the given parent is a QMainWindow, the dock manager sets itself as the
120
-
* central widget
133
+
* central widget.
134
+
* Before you create any dock widgets, you should properly setup the
135
+
* configuration flags via setConfigFlags()
121
136
*/
122
137
CDockManager(QWidget* parent = 0);
123
138
@@ -126,6 +141,17 @@ class ADS_EXPORT CDockManager : public CDockContainerWidget
126
141
*/
127
142
virtual~CDockManager();
128
143
144
+
/**
145
+
* This function returns the global configuration flags
146
+
*/
147
+
ConfigFlags configFlags() const;
148
+
149
+
/**
150
+
* Sets the global configuration flags for the whole docking system.
151
+
* Call this function before you create your first dock widget.
152
+
*/
153
+
voidsetConfigFlags(const ConfigFlags Flags);
154
+
129
155
/**
130
156
* Adds dockwidget into the given area.
131
157
* If DockAreaWidget is not null, then the area parameter indicates the area
0 commit comments