2023-03-21 13:04:19 +08:00
|
|
|
%Import QtWidgets/QtWidgetsmod.sip
|
|
|
|
|
|
|
|
%If (Qt_5_0_0 -)
|
|
|
|
|
|
|
|
namespace ads
|
|
|
|
{
|
|
|
|
|
|
|
|
class CAutoHideTab : CPushButton
|
|
|
|
{
|
|
|
|
|
|
|
|
%TypeHeaderCode
|
|
|
|
#include <AutoHideTab.h>
|
|
|
|
%End
|
|
|
|
|
|
|
|
protected:
|
|
|
|
void setSideBar(ads::CAutoHideSideBar *SideTabBar);
|
|
|
|
void removeFromSideBar();
|
|
|
|
virtual bool event(QEvent* event);
|
2023-08-03 02:23:49 +08:00
|
|
|
virtual void contextMenuEvent(QContextMenuEvent* ev);
|
|
|
|
virtual void mousePressEvent(QMouseEvent* ev);
|
|
|
|
virtual void mouseReleaseEvent(QMouseEvent* ev);
|
|
|
|
virtual void mouseMoveEvent(QMouseEvent* ev);
|
2023-03-21 13:04:19 +08:00
|
|
|
|
|
|
|
public:
|
|
|
|
CAutoHideTab(QWidget* parent /TransferThis/ = 0);
|
|
|
|
virtual ~CAutoHideTab();
|
|
|
|
void updateStyle();
|
|
|
|
ads::SideBarLocation sideBarLocation() const;
|
|
|
|
void setOrientation(Qt::Orientation Orientation);
|
|
|
|
Qt::Orientation orientation() const;
|
|
|
|
bool isActiveTab() const;
|
|
|
|
ads::CDockWidget* dockWidget() const;
|
|
|
|
void setDockWidget(ads::CDockWidget* DockWidget);
|
|
|
|
bool iconOnly() const;
|
|
|
|
ads::CAutoHideSideBar* sideBar() const;
|
2023-08-03 02:23:49 +08:00
|
|
|
int tabIndex() const;
|
|
|
|
void setDockWidgetFloating();
|
|
|
|
void unpinDockWidget();
|
|
|
|
void requestCloseDockWidget();
|
2023-03-21 13:04:19 +08:00
|
|
|
};
|
|
|
|
|
|
|
|
};
|
|
|
|
|
|
|
|
%End
|