1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85
|
<?xml version="1.0"?>
<!-- The package name -->
<typesystem package="KDDockWidgets">
<!-- Pre-defined typesystem that contains types used by our class
PySide has one typesystem for each module, here we use only the widgets
typesystem because it already include gui and core typesystem -->
<load-typesystem name="typesystem_widgets.xml" generate="no" />
<rejection class="KDDockWidgets" function-name="qt_getEnumMetaObject" />
<rejection class="KDDockWidgets" function-name="qt_getEnumName" />
<!-- Our classes are declared in a namespace, so we should define this -->
<namespace-type name="KDDockWidgets" visible="no">
<!-- this is used in a public virtual pure function we need to declare it
otherwise shiboken will ignore the function and will fail to create a wrapper -->
<primitive-type name="DropArea" />
<primitive-type name="SideBar" />
<!-- Some plublic enum and flags -->
<enum-type name="Location"/>
<enum-type name="MainWindowOption" flags="MainWindowOptions" />
<enum-type name="DockWidgetOption" flags="DockWidgetOptions" />
<enum-type name="LayoutSaverOption" flags="LayoutSaverOptions" />
<enum-type name="IconPlace" flags="IconPlaces" />
<enum-type name="FrontendType" />
<enum-type name="InitialVisibilityOption" />
<enum-type name="RestoreOption" flags="RestoreOptions" />
<enum-type name="SizePolicy" />
<enum-type name="SideBarLocation" />
<enum-type name="TitleBarButtonType" />
<enum-type name="DropLocation" />
<enum-type name="DropIndicatorType" />
<enum-type name="AddingOption" />
<enum-type name="WindowState" flags="WindowStates" />
<!-- Internal - just to avoid generation warning -->
<enum-type name="SuggestedGeometryHint" flags="SuggestedGeometryHints" />
<enum-type name="CursorPosition" flags="CursorPositions" />
<enum-type name="FrameOption" flags="FrameOptions" />
<enum-type name="StackOption" flags="StackOptions" />
<enum-type name="FloatingWindowFlag" flags="FloatingWindowFlags" />
<enum-type name="DefaultSizeMode" />
<!-- our classes
For class we can use two types:
object-type: class that does not have a copy-contructor and can not be passed as value to functions;
value-type: class that can be passed as value for functions
Here we only use 'object-type' since all our classes are derived from QWidget
-->
<value-type name="InitialOption">
<include file-name="kddockwidgets/KDDockWidgets.h" location="global"/>
</value-type>
<object-type name="LayoutSaver">
<include file-name="kddockwidgets/LayoutSaver.h" location="global"/>
</object-type>
<object-type name="Config">
<include file-name="kddockwidgets/Config.h" location="global"/>
<enum-type name="Flag" flags="Flags" />
<enum-type name="CustomizableWidget" flags="CustomizableWidgets" />
<enum-type name="InternalFlag" flags="InternalFlags" />
</object-type>
<namespace-type name="Core" visible="no">
<enum-type name="ViewType" />
<object-type name="DockWidgetViewInterface" >
<include file-name="kddockwidgets/core/views/DockWidgetViewInterface.h" location="global"/>
</object-type>
<object-type name="MainWindowViewInterface">
<include file-name="kddockwidgets/core/views/MainWindowViewInterface.h" location="global"/>
<modify-function signature="addDockWidget(KDDockWidgets::Core::DockWidgetViewInterface*,KDDockWidgets::Location,KDDockWidgets::Core::DockWidgetViewInterface*,KDDockWidgets::InitialOption)" rename="addKDockWidget" />
</object-type>
</namespace-type>
<namespace-type name="QtWidgets" visible="no">
<object-type name="MainWindow">
<include file-name="kddockwidgets/qtwidgets/views/MainWindow.h" location="global"/>
</object-type>
<object-type name="DockWidget">
<include file-name="kddockwidgets/qtwidgets/views/DockWidget.h" location="global"/>
</object-type>
</namespace-type>
</namespace-type>
</typesystem>
|