mirror of
https://github.com/githubuser0xFFFF/Qt-Advanced-Docking-System.git
synced 2024-12-25 07:31:33 +08:00
4a8b5dd7ab
* Fix include header in sidebar example * Update SIP files and Python examples Co-authored-by: K Lauer <klauer@users.noreply.github.com> Co-authored-by: K Lauer <klauer@users.noreply.github.com>
53 lines
1.3 KiB
Plaintext
53 lines
1.3 KiB
Plaintext
%Import QtWidgets/QtWidgetsmod.sip
|
|
|
|
%If (Qt_5_0_0 -)
|
|
|
|
namespace ads
|
|
{
|
|
|
|
class CDockWidgetTab : QFrame
|
|
{
|
|
%TypeHeaderCode
|
|
#include <DockWidgetTab.h>
|
|
%End
|
|
|
|
protected:
|
|
virtual void mousePressEvent(QMouseEvent* ev);
|
|
virtual void mouseReleaseEvent(QMouseEvent* ev);
|
|
virtual void mouseMoveEvent(QMouseEvent* ev);
|
|
virtual void contextMenuEvent(QContextMenuEvent* ev);
|
|
virtual void mouseDoubleClickEvent(QMouseEvent *event);
|
|
|
|
public:
|
|
CDockWidgetTab(ads::CDockWidget* DockWidget /TransferThis/, QWidget* parent /TransferThis/ = 0);
|
|
virtual ~CDockWidgetTab();
|
|
bool isActiveTab() const;
|
|
void setActiveTab(bool active);
|
|
void setDockAreaWidget(ads::CDockAreaWidget* DockArea /Transfer/);
|
|
ads::CDockAreaWidget* dockAreaWidget() const;
|
|
ads::CDockWidget* dockWidget() const;
|
|
void setIcon(const QIcon& Icon);
|
|
const QIcon& icon() const;
|
|
QString text() const;
|
|
void setText(const QString& title);
|
|
bool isTitleElided() const;
|
|
bool isClosable() const;
|
|
virtual bool event(QEvent *e);
|
|
void setElideMode(Qt::TextElideMode mode);
|
|
|
|
public slots:
|
|
virtual void setVisible(bool visible);
|
|
|
|
signals:
|
|
void activeTabChanged();
|
|
void clicked();
|
|
void closeRequested();
|
|
void closeOtherTabsRequested();
|
|
void moved(const QPoint& GlobalPos);
|
|
void elidedChanged(bool elided);
|
|
}; // class DockWidgetTab
|
|
};
|
|
// namespace ads
|
|
|
|
%End
|