mirror of
https://github.com/githubuser0xFFFF/Qt-Advanced-Docking-System.git
synced 2024-11-15 13:15:43 +08:00
c90fb9413c
* (Python) WIP: attempt to update to 3.2.0 * (Python) MAINT: move demo.py to demo/ to avoid PyQtAds import issue * (Python) STY: remove trailing whitespace * (Python) Missing/incorrect /Transfer/ annotations * (Python) n-elie's fix for setup.py moc generation * (Python) FIX: Q_OS_LINUX is not defined by default with moc * (Python) FIX: split FloatingDockContainer.sip to be platform-specific %If (Platform) blocks around the class definition in FloatingDockContainer.sip did not seem to work. Co-authored-by: K Lauer <klauer@users.noreply.github.com>
70 lines
2.1 KiB
Plaintext
70 lines
2.1 KiB
Plaintext
%Import QtWidgets/QtWidgetsmod.sip
|
|
|
|
%If (Qt_5_0_0 -)
|
|
|
|
namespace ads
|
|
{
|
|
|
|
class CDockAreaWidget : QFrame
|
|
{
|
|
|
|
%TypeHeaderCode
|
|
#include <DockAreaWidget.h>
|
|
%End
|
|
|
|
protected:
|
|
void insertDockWidget(int index, ads::CDockWidget* DockWidget /Transfer/, bool Activate = true);
|
|
void addDockWidget(ads::CDockWidget* DockWidget /Transfer/);
|
|
void removeDockWidget(ads::CDockWidget* DockWidget) /TransferBack/;
|
|
void toggleDockWidgetView(ads::CDockWidget* DockWidget, bool Open);
|
|
CDockWidget* nextOpenDockWidget(ads::CDockWidget* DockWidget) const;
|
|
int index(ads::CDockWidget* DockWidget);
|
|
void hideAreaWithNoVisibleContent();
|
|
void updateTitleBarVisibility();
|
|
void internalSetCurrentDockWidget(ads::CDockWidget* DockWidget /Transfer/);
|
|
void markTitleBarMenuOutdated();
|
|
|
|
protected slots:
|
|
void toggleView(bool Open);
|
|
|
|
public:
|
|
CDockAreaWidget(ads::CDockManager* DockManager /TransferThis/, ads::CDockContainerWidget* parent /TransferThis/);
|
|
virtual ~CDockAreaWidget();
|
|
ads::CDockManager* dockManager() const;
|
|
ads::CDockContainerWidget* dockContainer() const;
|
|
QRect titleBarGeometry() const;
|
|
QRect contentAreaGeometry() const;
|
|
int dockWidgetsCount() const;
|
|
QList<ads::CDockWidget*> dockWidgets() const;
|
|
int openDockWidgetsCount() const;
|
|
QList<ads::CDockWidget*> openedDockWidgets() const;
|
|
ads::CDockWidget* dockWidget(int Index) const;
|
|
int currentIndex() const;
|
|
int indexOfFirstOpenDockWidget() const;
|
|
ads::CDockWidget* currentDockWidget() const;
|
|
void setCurrentDockWidget(ads::CDockWidget* DockWidget);
|
|
void saveState(QXmlStreamWriter& Stream) const;
|
|
ads::CDockWidget::DockWidgetFeatures features(ads::eBitwiseOperator Mode = ads::BitwiseAnd) const;
|
|
QAbstractButton* titleBarButton(ads::TitleBarButton which) const;
|
|
virtual void setVisible(bool Visible);
|
|
|
|
void setAllowedAreas(DockWidgetAreas areas);
|
|
DockWidgetAreas allowedAreas() const;
|
|
CDockAreaTitleBar* titleBar() const;
|
|
|
|
public slots:
|
|
void setCurrentIndex(int index);
|
|
void closeArea();
|
|
void closeOtherAreas();
|
|
|
|
signals:
|
|
void tabBarClicked(int index);
|
|
void currentChanging(int index);
|
|
void currentChanged(int index);
|
|
void viewToggled(bool Open);
|
|
};
|
|
|
|
};
|
|
|
|
%End
|