mirror of
https://github.com/githubuser0xFFFF/Qt-Advanced-Docking-System.git
synced 2024-12-25 23:51:33 +08:00
57 lines
1.5 KiB
Plaintext
57 lines
1.5 KiB
Plaintext
%Import QtWidgets/QtWidgetsmod.sip
|
|
|
|
%If (Qt_5_0_0 -)
|
|
|
|
namespace ads
|
|
{
|
|
|
|
class CDockAreaTabBar : QScrollArea
|
|
{
|
|
%TypeHeaderCode
|
|
#include <DockAreaTabBar.h>
|
|
%End
|
|
|
|
protected:
|
|
virtual void wheelEvent(QWheelEvent* Event);
|
|
virtual void mousePressEvent(QMouseEvent* ev);
|
|
virtual void mouseReleaseEvent(QMouseEvent* ev);
|
|
virtual void mouseMoveEvent(QMouseEvent* ev);
|
|
virtual void mouseDoubleClickEvent(QMouseEvent *event);
|
|
void startFloating(const QPoint& Offset);
|
|
ads::IFloatingWidget* makeAreaFloating(const QPoint& Offset,
|
|
ads::eDragState DragState);
|
|
ads::eDragState dragState() const;
|
|
|
|
public:
|
|
CDockAreaTabBar(ads::CDockAreaWidget* parent /TransferThis/);
|
|
virtual ~CDockAreaTabBar();
|
|
void insertTab(int Index, ads::CDockWidgetTab* Tab /Transfer/);
|
|
void removeTab(ads::CDockWidgetTab* Tab) /TransferBack/;
|
|
int count() const;
|
|
int currentIndex() const;
|
|
ads::CDockWidgetTab* currentTab() const;
|
|
ads::CDockWidgetTab* tab(int Index) const;
|
|
virtual bool eventFilter(QObject *watched, QEvent *event);
|
|
bool isTabOpen(int Index) const;
|
|
virtual QSize minimumSizeHint() const;
|
|
virtual QSize sizeHint() const;
|
|
|
|
public slots:
|
|
void setCurrentIndex(int Index);
|
|
void closeTab(int Index);
|
|
|
|
signals:
|
|
void currentChanging(int Index);
|
|
void currentChanged(int Index);
|
|
void tabBarClicked(int index);
|
|
void tabCloseRequested(int index);
|
|
void tabClosed(int index);
|
|
void tabOpened(int index);
|
|
void tabMoved(int from, int to);
|
|
void removingTab(int index);
|
|
void tabInserted(int index);
|
|
};
|
|
|
|
};
|
|
|
|
%End |