Skip to content

Commit

Permalink
Update bindings to QtAds 4.0.1
Browse files Browse the repository at this point in the history
  • Loading branch information
n-elie authored Mar 30, 2023
1 parent 311df1f commit c490f7f
Show file tree
Hide file tree
Showing 3 changed files with 84 additions and 6 deletions.
7 changes: 6 additions & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,10 @@ set(typesystem_file ${CMAKE_CURRENT_SOURCE_DIR}/src/bindings.xml)
# Specify which C++ files will be generated by shiboken. This includes the module wrapper
# and a '.cpp' file per C++ type. These are needed for generating the module shared
# library.
set(generated_sources
set(generated_sources
${CMAKE_CURRENT_BINARY_DIR}/${bindings_library}/ads_cautohidedockcontainer_wrapper.cpp
${CMAKE_CURRENT_BINARY_DIR}/${bindings_library}/ads_cautohidesidebar_wrapper.cpp
${CMAKE_CURRENT_BINARY_DIR}/${bindings_library}/ads_cautohidetab_wrapper.cpp
${CMAKE_CURRENT_BINARY_DIR}/${bindings_library}/ads_cdockareatabbar_wrapper.cpp
${CMAKE_CURRENT_BINARY_DIR}/${bindings_library}/ads_cdockareatitlebar_wrapper.cpp
${CMAKE_CURRENT_BINARY_DIR}/${bindings_library}/ads_cdockareawidget_wrapper.cpp
Expand All @@ -68,6 +71,8 @@ set(generated_sources
${CMAKE_CURRENT_BINARY_DIR}/${bindings_library}/ads_cspacerwidget_wrapper.cpp
${CMAKE_CURRENT_BINARY_DIR}/${bindings_library}/ads_ctitlebarbutton_wrapper.cpp
${CMAKE_CURRENT_BINARY_DIR}/${bindings_library}/ads_ifloatingwidget_wrapper.cpp
${CMAKE_CURRENT_BINARY_DIR}/${bindings_library}/ads_cpushbutton_wrapper.cpp
${CMAKE_CURRENT_BINARY_DIR}/${bindings_library}/ads_cresizehandle_wrapper.cpp
${CMAKE_CURRENT_BINARY_DIR}/${bindings_library}/ads_wrapper.cpp
${CMAKE_CURRENT_BINARY_DIR}/${bindings_library}/pyside6qtads_module_wrapper.cpp
)
Expand Down
5 changes: 5 additions & 0 deletions src/bindings.h
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
#ifndef BINDINGS_H
#define BINDINGS_H
#include <AutoHideDockContainer.h>
#include <AutoHideSideBar.h>
#include <AutoHideTab.h>
#include <DockAreaTabBar.h>
#include <DockAreaTitleBar.h>
#include <DockAreaTitleBar_p.h>
Expand All @@ -16,6 +19,8 @@
#include <ElidingLabel.h>
#include <FloatingDockContainer.h>
#include <FloatingDragPreview.h>
#include <PushButton.h>
#include <ResizeHandle.h>
#include <IconProvider.h>
#include <ads_globals.h>
#endif // BINDINGS_H
78 changes: 73 additions & 5 deletions src/bindings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@
<enum-type name="eDragState" />
<enum-type name="eIcon" />
<enum-type name="eBitwiseOperator" />
<enum-type name="SideBarLocation" />

<object-type name="CDockAreaTabBar">
<modify-function signature="CDockAreaTabBar(ads::CDockAreaWidget*)">
Expand Down Expand Up @@ -94,6 +95,11 @@
<parent index="this" action="add"/>
</modify-argument>
</modify-function>
<modify-function signature="createDockWidgetSideTab(ads::CDockWidget*) const">
<modify-argument index="1">
<parent index="this" action="add"/>
</modify-argument>
</modify-function>
<modify-function signature="createDockAreaTabBar(ads::CDockAreaWidget*) const">
<modify-argument index="1">
<parent index="this" action="add"/>
Expand Down Expand Up @@ -122,6 +128,11 @@
</object-type>

<object-type name="CDockContainerWidget">
<modify-function signature="createAndSetupAutoHideContainer(ads::SideBarLocation, ads::CDockWidget*)">
<modify-argument index="2">
<parent index="this" action="add"/>
</modify-argument>
</modify-function>
<modify-function signature="dropFloatingWidget(ads::CFloatingDockContainer*, const QPoint&amp;)">
<modify-argument index="1">
<parent index="this" action="add"/>
Expand All @@ -132,6 +143,16 @@
<parent index="this" action="add"/>
</modify-argument>
</modify-function>
<modify-function signature="registerAutoHideWidget(ads::CAutoHideDockContainer*)">
<modify-argument index="1">
<parent index="this" action="add"/>
</modify-argument>
</modify-function>
<modify-function signature="removeAutoHideWidget(ads::CAutoHideDockContainer*)">
<modify-argument index="1">
<parent index="this" action="remove"/>
</modify-argument>
</modify-function>
<modify-function signature="addDockArea(ads::CDockAreaWidget*, ads::DockWidgetArea)">
<modify-argument index="1">
<parent index="this" action="add"/>
Expand All @@ -150,7 +171,7 @@
<parent index="this" action="add"/>
</modify-argument>
</modify-function>
<modify-function signature="addDockWidget(ads::DockWidgetArea, ads::CDockWidget*, ads::CDockAreaWidget*)">
<modify-function signature="addDockWidget(ads::DockWidgetArea, ads::CDockWidget*, ads::CDockAreaWidget*, int)">
<modify-argument index="2">
<parent index="this" action="add"/>
</modify-argument>
Expand All @@ -165,7 +186,7 @@
</modify-function>
</object-type>

<object-type name="CDockFocusController">
<object-type name="CDockFocusController">
<modify-function signature="CDockFocusController(ads::CDockManager*)">
<modify-argument index="1">
<parent index="this" action="add"/>
Expand Down Expand Up @@ -202,20 +223,30 @@
<parent index="this" action="add"/>
</modify-argument>
</modify-function>
<modify-function signature="addDockWidget(ads::DockWidgetArea, ads::CDockWidget*, ads::CDockAreaWidget*)">
<modify-function signature="addDockWidget(ads::DockWidgetArea, ads::CDockWidget*, ads::CDockAreaWidget*, int)">
<modify-argument index="2">
<parent index="this" action="add"/>
</modify-argument>
<modify-argument index="3">
<parent index="this" action="add"/>
</modify-argument>
</modify-function>
<modify-function signature="addDockWidgetToContainer(ads::DockWidgetArea, ads::CDockWidget*, ads::CDockContainerWidget*)">
<modify-argument index="2">
<parent index="this" action="add"/>
</modify-argument>
</modify-function>
<modify-function signature="addAutoHideDockWidget(SideBarLocation, ads::CDockWidget*)">
<modify-argument index="2">
<parent index="this" action="add"/>
</modify-argument>
</modify-function>
<modify-function signature="addDockWidgetTab(ads::DockWidgetArea, ads::CDockWidget*)">
<modify-argument index="2">
<parent index="this" action="add"/>
</modify-argument>
</modify-function>
<modify-function signature="addDockWidgetTabToArea(ads::CDockWidget*, ads::CDockAreaWidget*)">
<modify-function signature="addDockWidgetTabToArea(ads::CDockWidget*, ads::CDockAreaWidget*, int)">
<modify-argument index="1">
<parent index="this" action="add"/>
</modify-argument>
Expand Down Expand Up @@ -312,6 +343,11 @@
<parent index="this" action="add"/>
</modify-argument>
</modify-function>
<modify-function signature="setSideTabWidget(ads::CAutoHideTab*)">
<modify-argument index="1">
<parent index="this" action="add"/>
</modify-argument>
</modify-function>
<modify-function signature="setTitleBarActions(QList&lt;QAction*&gt;)">
<modify-argument index="1">
<parent index="this" action="add"/>
Expand Down Expand Up @@ -373,7 +409,39 @@
</modify-argument>
</modify-function>
</object-type>


<object-type name="CAutoHideDockContainer">
<modify-function signature="addDockWidget(ads::CDockWidget*)">
<modify-argument index="1">
<parent index="this" action="add"/>
</modify-argument>
</modify-function>
</object-type>

<object-type name="CAutoHideTab" />

<object-type name="CAutoHideSideBar">
<modify-function signature="insertDockWidget(int, ads::CDockWidget*)">
<modify-argument index="2">
<parent index="this" action="add"/>
</modify-argument>
</modify-function>
<modify-function signature="removeAutoHideWidget(ads::CAutoHideDockContainer*)">
<modify-argument index="1">
<parent index="this" action="remove"/>
</modify-argument>
</modify-function>
<modify-function signature="addAutoHideWidget(ads::CAutoHideDockContainer*)">
<modify-argument index="1">
<parent index="this" action="add"/>
</modify-argument>
</modify-function>
</object-type>

<object-type name="CPushButton" />

<object-type name="CResizeHandle" />

<object-type name="CDockOverlayCross">
<enum-type name="eIconColor"/>
</object-type>
Expand Down

0 comments on commit c490f7f

Please sign in to comment.