@@ -21,6 +21,7 @@ class CDockContainerWidget : QFrame
2121protected:
2222 virtual bool event(QEvent *e);
2323 QSplitter* rootSplitter() const;
24+ ads::CAutoHideDockContainer* createAndSetupAutoHideContainer(ads::SideBarLocation area, ads::CDockWidget* DockWidget /Transfer/);
2425 void createRootSplitter();
2526 void dropFloatingWidget(ads::CFloatingDockContainer* FloatingWidget, const QPoint& TargetPos);
2627 void dropWidget(QWidget* Widget, DockWidgetArea DropArea, CDockAreaWidget* TargetAreaWidget);
@@ -33,124 +34,44 @@ protected:
3334 ads::CDockAreaWidget* topLevelDockArea() const;
3435 QList<ads::CDockWidget*> dockWidgets() const;
3536 void updateSplitterHandles(QSplitter* splitter);
37+ void registerAutoHideWidget(ads::CAutoHideDockContainer* AutoHideWidget /Transfer/);
38+ void removeAutoHideWidget(ads::CAutoHideDockContainer* AutoHideWidget /TransferBack/);
39+ void handleAutoHideWidgetEvent(QEvent* e, QWidget* w);
3640
3741public:
38- /**
39- * Default Constructor
40- */
4142 CDockContainerWidget(ads::CDockManager* DockManager /TransferThis/, QWidget* parent /TransferThis/ = 0);
42-
43- /**
44- * Virtual Destructor
45- */
4643 virtual ~CDockContainerWidget();
47-
48- /**
49- * Adds dockwidget into the given area.
50- * If DockAreaWidget is not null, then the area parameter indicates the area
51- * into the DockAreaWidget. If DockAreaWidget is null, the Dockwidget will
52- * be dropped into the container.
53- * \return Returns the dock area widget that contains the new DockWidget
54- */
5544 ads::CDockAreaWidget* addDockWidget(ads::DockWidgetArea area, ads::CDockWidget* Dockwidget /Transfer/,
56- ads::CDockAreaWidget* DockAreaWidget /Transfer/ = 0);
57-
58- /**
59- * Removes dockwidget
60- */
45+ ads::CDockAreaWidget* DockAreaWidget /Transfer/ = 0,
46+ int Index = -1);
6147 void removeDockWidget(ads::CDockWidget* Dockwidget) /TransferBack/;
62-
63- /**
64- * Returns the current zOrderIndex
65- */
6648 virtual unsigned int zOrderIndex() const;
67-
68- /**
69- * This function returns true if this container widgets z order index is
70- * higher than the index of the container widget given in Other parameter
71- */
7249 bool isInFrontOf(ads::CDockContainerWidget* Other) const;
73-
74- /**
75- * Returns the dock area at teh given global position or 0 if there is no
76- * dock area at this position
77- */
7850 ads::CDockAreaWidget* dockAreaAt(const QPoint& GlobalPos) const;
79-
80- /**
81- * Returns the dock area at the given Index or 0 if the index is out of
82- * range
83- */
8451 ads::CDockAreaWidget* dockArea(int Index) const;
85-
86- /**
87- * Returns the list of dock areas that are not closed
88- * If all dock widgets in a dock area are closed, the dock area will be closed
89- */
9052 QList<ads::CDockAreaWidget*> openedDockAreas() const;
53+ QList<ads::CDockWidget*> openedDockWidgets() const;
9154 bool hasTopLevelDockWidget() const;
92-
93- /**
94- * Returns the number of dock areas in this container
95- */
9655 int dockAreaCount() const;
97-
98- /**
99- * Returns the number of visible dock areas
100- */
10156 int visibleDockAreaCount() const;
102-
103- /**
104- * This function returns true, if this container is in a floating widget
105- */
10657 bool isFloating() const;
107-
108- /**
109- * Dumps the layout for debugging purposes
110- */
11158 void dumpLayout();
112-
113- /**
114- * This functions returns the dock widget features of all dock widget in
115- * this container.
116- * A bitwise and is used to combine the flags of all dock widgets. That
117- * means, if only dock widget does not support a certain flag, the whole
118- * dock are does not support the flag.
119- */
12059 ads::CDockWidget::DockWidgetFeatures features() const;
121-
122- /**
123- * If this dock container is in a floating widget, this function returns
124- * the floating widget.
125- * Else, it returns a nullptr.
126- */
12760 ads::CFloatingDockContainer* floatingWidget() const;
128-
129- /**
130- * Call this function to close all dock areas except the KeepOpenArea
131- */
13261 void closeOtherAreas(ads::CDockAreaWidget* KeepOpenArea);
62+ ads::CAutoHideSideBar* sideTabBar(SideBarLocation area) const;
63+ QList<ads::CAutoHideDockContainer*> autoHideWidgets() const;
64+ QRect contentRect() const;
65+ QRect contentRectGlobal() const;
66+ ads::CDockManager* dockManager() const;
13367
13468signals:
135- /**
136- * This signal is emitted if one or multiple dock areas has been added to
137- * the internal list of dock areas.
138- * If multiple dock areas are inserted, this signal is emitted only once
139- */
14069 void dockAreasAdded();
141-
142- /**
143- * This signal is emitted if one or multiple dock areas has been removed
144- */
70+ void autoHideWidgetCreated(ads::CAutoHideDockContainer* AutoHideWidget);
14571 void dockAreasRemoved();
146-
147- /**
148- * This signal is emitted if a dock area is opened or closed via
149- * toggleView() function
150- */
15172 void dockAreaViewToggled(ads::CDockAreaWidget* DockArea, bool Open);
152- }; // class DockContainerWidget
15373};
154- // namespace ads
74+
75+ };
15576
15677%End
0 commit comments