mirror of
https://github.com/githubuser0xFFFF/Qt-Advanced-Docking-System.git
synced 2024-12-26 08:01:32 +08:00
68 lines
1.6 KiB
Plaintext
68 lines
1.6 KiB
Plaintext
%Import QtWidgets/QtWidgetsmod.sip
|
|
|
|
%If (Qt_5_0_0 -)
|
|
|
|
namespace ads
|
|
{
|
|
|
|
class CTitleBarButton : QToolButton
|
|
{
|
|
%TypeHeaderCode
|
|
#include <DockAreaTitleBar.h>
|
|
%End
|
|
|
|
public:
|
|
CTitleBarButton(bool ShowInTitleBar, bool HideWhenDisabled, TitleBarButton ButtonId,
|
|
QWidget* /TransferThis/ = Q_NULLPTR );
|
|
virtual void setVisible(bool);
|
|
void setShowInTitleBar(bool);
|
|
|
|
TitleBarButton buttonId() const;
|
|
ads::CDockAreaTitleBar* titleBar() const;
|
|
bool isInAutoHideArea() const;
|
|
|
|
protected:
|
|
bool event(QEvent *ev);
|
|
};
|
|
|
|
class CDockAreaTitleBar : QFrame
|
|
{
|
|
%TypeHeaderCode
|
|
#include <DockAreaTitleBar.h>
|
|
%End
|
|
|
|
protected:
|
|
virtual void mousePressEvent(QMouseEvent* ev);
|
|
virtual void mouseReleaseEvent(QMouseEvent* ev);
|
|
virtual void mouseMoveEvent(QMouseEvent* ev);
|
|
virtual void mouseDoubleClickEvent(QMouseEvent *event);
|
|
virtual void contextMenuEvent(QContextMenuEvent *event);
|
|
|
|
public slots:
|
|
void markTabsMenuOutdated();
|
|
|
|
|
|
public:
|
|
CDockAreaTitleBar(ads::CDockAreaWidget* parent /TransferThis/);
|
|
virtual ~CDockAreaTitleBar();
|
|
ads::CDockAreaTabBar* tabBar() const;
|
|
ads::CTitleBarButton* button(ads::TitleBarButton which) const;
|
|
ads::CElidingLabel* autoHideTitleLabel() const;
|
|
ads::CDockAreaWidget* dockAreaWidget() const;
|
|
void updateDockWidgetActionsButtons();
|
|
virtual void setVisible(bool Visible);
|
|
void insertWidget(int index, QWidget *widget /Transfer/ );
|
|
int indexOf(QWidget *widget) const;
|
|
QString titleBarButtonToolTip(ads::TitleBarButton Button) const;
|
|
void setAreaFloating();
|
|
void showAutoHideControls(bool Show);
|
|
bool isAutoHide() const;
|
|
|
|
signals:
|
|
void tabBarClicked(int index);
|
|
};
|
|
|
|
};
|
|
|
|
%End
|