2023-03-21 13:04:19 +08:00
|
|
|
%Import QtWidgets/QtWidgetsmod.sip
|
|
|
|
|
|
|
|
%If (Qt_5_0_0 -)
|
|
|
|
|
|
|
|
namespace ads
|
|
|
|
{
|
|
|
|
|
|
|
|
class CAutoHideDockContainer : QFrame
|
|
|
|
{
|
|
|
|
|
|
|
|
%TypeHeaderCode
|
|
|
|
#include <AutoHideDockContainer.h>
|
|
|
|
%End
|
|
|
|
|
|
|
|
protected:
|
|
|
|
virtual bool eventFilter(QObject* watched, QEvent* event);
|
|
|
|
virtual void resizeEvent(QResizeEvent* event);
|
|
|
|
virtual void leaveEvent(QEvent *event);
|
|
|
|
virtual bool event(QEvent* event);
|
|
|
|
void updateSize();
|
|
|
|
void saveState(QXmlStreamWriter& Stream);
|
|
|
|
|
|
|
|
public:
|
|
|
|
CAutoHideDockContainer(ads::CDockWidget* DockWidget /Transfer/, ads::SideBarLocation area,
|
|
|
|
ads::CDockContainerWidget* parent /TransferThis/);
|
|
|
|
virtual ~CAutoHideDockContainer();
|
2023-08-03 02:23:49 +08:00
|
|
|
ads::CAutoHideSideBar* autoHideSideBar() const;
|
2023-03-21 13:04:19 +08:00
|
|
|
ads::CAutoHideTab* autoHideTab() const;
|
|
|
|
ads::CDockWidget* dockWidget() const;
|
2023-08-03 02:23:49 +08:00
|
|
|
int tabIndex() const;
|
2023-03-21 13:04:19 +08:00
|
|
|
void addDockWidget(ads::CDockWidget* DockWidget /Transfer/);
|
|
|
|
ads::SideBarLocation sideBarLocation() const;
|
|
|
|
void setSideBarLocation(ads::SideBarLocation SideBarLocation);
|
|
|
|
ads::CDockAreaWidget* dockAreaWidget() const;
|
|
|
|
ads::CDockContainerWidget* dockContainer() const;
|
|
|
|
void moveContentsToParent();
|
|
|
|
void cleanupAndDelete();
|
|
|
|
void toggleView(bool Enable);
|
|
|
|
void collapseView(bool Enable);
|
|
|
|
void toggleCollapseState();
|
|
|
|
void setSize(int Size);
|
2023-08-03 02:23:49 +08:00
|
|
|
void resetToInitialDockWidgetSize();
|
|
|
|
Qt::Orientation orientation() const;
|
|
|
|
void moveToNewSideBarLocation(ads::SideBarLocation);
|
2023-03-21 13:04:19 +08:00
|
|
|
};
|
|
|
|
|
|
|
|
};
|
|
|
|
|
|
|
|
%End
|