bindings_azqtcomponents.xml 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <typesystem package="azqtpyside">
  3. <load-typesystem name="typesystem_widgets.xml" generate="no"/>
  4. <load-typesystem name="typesystem_core.xml" generate="no"/>
  5. <load-typesystem name="typesystem_gui.xml" generate="no"/>
  6. <primitive-type name="uint32_t" target-lang-api-name="PyLong"/>
  7. <!-- Declaring this prevents addition of broken code by Shiboken.-->
  8. <object-type name="QTabWidget" generate="no"/>
  9. <object-type name="QSlider" generate="no"/>
  10. <object-type name="FlowLayout">
  11. <inject-code class="native" position="beginning" file="glue/qtwidgets.cpp" snippet="qlayout-help-functions"/>
  12. </object-type>
  13. <!-- Remove drawFrame class to prevent broken wrapping in BrowseEdit-->
  14. <rejection class="QFrame" function-name="drawFrame"/>
  15. <namespace-type name="AzQtComponents" generate="yes">
  16. <!--Components-->
  17. <object-type name="ButtonDivider"/>
  18. <object-type name="ButtonStripe"/>
  19. <namespace-type name="ConfigHelpers" generate="yes">
  20. <object-type name="GroupGuard"/>
  21. <rejection class="*" function-name="read"/>
  22. </namespace-type>
  23. <object-type name="DockBar">
  24. <enum-type name="DefaultValues"/>
  25. </object-type>
  26. <object-type name="DockBarButton">
  27. <object-type name="Config"/>
  28. <enum-type name="WindowDecorationButton"/>
  29. </object-type>
  30. <object-type name="DockMainWindow"/>
  31. <object-type name="DockTabBar"/>
  32. <object-type name="DockTabWidget"/>
  33. <object-type name="ExtendedLabel"/>
  34. <object-type name="FancyDocking">
  35. <object-type name="WidgetGrab"/>
  36. </object-type>
  37. <object-type name="FancyDockingDropZoneWidget"/>
  38. <object-type name="FancyDockingGhostWidget"/>
  39. <object-type name="FilterCriteriaButton">
  40. <enum-type name="ExtraButtonType"/>
  41. </object-type>
  42. <object-type name="SearchTypeFilter"/>
  43. <object-type name="SearchTypeSelector"/>
  44. <object-type name="FilteredSearchWidget">
  45. <object-type name="Config"/>
  46. </object-type>
  47. <object-type name="GlobalEventFilter"/>
  48. <object-type name="HelpButton"/>
  49. <object-type name="InteractiveWindowGeometryChanger"/>
  50. <object-type name="SearchLineEdit"/>
  51. <object-type name="Style">
  52. <enum-type name="BorderStyle"/>
  53. </object-type>
  54. <object-type name="StyledBusyLabel"/>
  55. <object-type name="StyledDetailsTableModel">
  56. <enum-type name="StyledTableRoles"/>
  57. <enum-type name="ColumnStyle"/>
  58. <enum-type name="StatusType"/>
  59. </object-type>
  60. <object-type name="StyledDetailsTableView"/>
  61. <object-type name="StyledDialog"/>
  62. <object-type name="StyledDockWidget"/>
  63. <object-type name="StyledLineEdit">
  64. <enum-type name="Flavor"/>
  65. </object-type>
  66. <object-type name="StyledDoubleSpinBox"/>
  67. <object-type name="StyledSpinBox"/>
  68. <object-type name="StyleManager">
  69. <inject-code class="native" position="beginning">
  70. #include &lt;AzCore/IO/Path/Path.h&gt;
  71. </inject-code>
  72. <add-function signature="initializePath(QString)">
  73. <inject-code>
  74. AZStd::string pathString(%1.toUtf8());
  75. AZ::IO::PathView pathView(pathString);
  76. QApplication* application = static_cast&lt;QApplication*&gt;(QApplication::instance());
  77. cppSelf->initialize(application, pathView);
  78. </inject-code>
  79. </add-function>
  80. </object-type>
  81. <object-type name="StyleSheetCache"/>
  82. <object-type name="StylesheetPreprocessor"/>
  83. <object-type name="TagSelector"/>
  84. <object-type name="TitleBar">
  85. <object-type name="Config">
  86. <object-type name="TitleBar"/>
  87. <object-type name="Icon"/>
  88. <object-type name="Title"/>
  89. <object-type name="Buttons"/>
  90. </object-type>
  91. <enum-type name="TitleBarDrawMode"/>
  92. </object-type>
  93. <object-type name="TitleBarOverdrawHandler"/>
  94. <object-type name="ToolBarArea"/>
  95. <object-type name="ToolButtonComboBox"/>
  96. <object-type name="ToolButtonLineEdit"/>
  97. <object-type name="ToolButtonWithWidget"/>
  98. <object-type name="VectorEdit"/>
  99. <object-type name="WindowDecorationWrapper"/>
  100. <!--Widgets-->
  101. <object-type name="AssetFolderThumbnailView">
  102. <object-type name="Config">
  103. <object-type name="Thumbnail"/>
  104. <object-type name="ExpandButton"/>
  105. <object-type name="ChildFrame"/>
  106. </object-type>
  107. <enum-type name="ThumbnailSize"/>
  108. </object-type>
  109. <enum-type name="NavigationButton"/>
  110. <object-type name="BreadCrumbs">
  111. <object-type name="Config"/>
  112. </object-type>
  113. <object-type name="BrowseEdit"/>
  114. <object-type name="Card">
  115. <object-type name="Config"/>
  116. </object-type>
  117. <object-type name="CardHeader">
  118. <enum-type name="ContextMenuIcon"/>
  119. <value-type name="s_iconSize"/>
  120. </object-type>
  121. <object-type name="CardNotification"/>
  122. <object-type name="CheckBox">
  123. <object-type name="Config"/>
  124. </object-type>
  125. <object-type name="ComboBoxValidator"/>
  126. <object-type name="ComboBox">
  127. <object-type name="Config"/>
  128. </object-type>
  129. <object-type name="DialogButtonBox"/>
  130. <object-type name="DragAndDrop">
  131. <object-type name="DropIndicator"/>
  132. <object-type name="DragIndicator"/>
  133. <object-type name="Config"/>
  134. </object-type>
  135. <object-type name="ElidingLabel"/>
  136. <object-type name="Eyedropper">
  137. <object-type name="Config"/>
  138. </object-type>
  139. <object-type name="FileDialog">
  140. <modify-function signature="GetSaveFileName(QWidget*,const QString&amp;,const QString&amp;,const QString&amp;,QString*,QFlags&lt;QFileDialog::Option&gt;)" allow-thread="yes">
  141. <inject-documentation format="target" mode="append">
  142. This method is works in the same way as the cpp version, with the exception that the selected filter
  143. is returned in a tuple with the selected filename (filename, filter), rather than being stored in the
  144. filter argument."
  145. </inject-documentation>
  146. <modify-argument index="return">
  147. <replace-type modified-type="(fileName, selectedFilter)"/>
  148. </modify-argument>
  149. <modify-argument index="5">
  150. <replace-type modified-type="QString"/>
  151. <replace-default-expression with="QString()"/>
  152. </modify-argument>
  153. <inject-code class="target" position="end">
  154. //Comment left in to prevent Shiboken including invalid code.
  155. //%RETURN_TYPE retval_ = %CPPSELF.%FUNCTION_NAME(%1, %2, %3, %4, &amp;%5, %6);
  156. %RETURN_TYPE retval_ = %CPPSELF.GetSaveFileName_(%1, %2, %3, %4, &amp;%5, %6);
  157. %PYARG_0 = PyTuple_New(2);
  158. PyTuple_SET_ITEM(%PYARG_0, 0, %CONVERTTOPYTHON[%RETURN_TYPE](retval_));
  159. PyTuple_SET_ITEM(%PYARG_0, 1, %CONVERTTOPYTHON[%ARG5_TYPE](%5));
  160. </inject-code>
  161. </modify-function>
  162. </object-type>
  163. <rejection class="*" function-name="getBorderColor"/>
  164. <rejection class="*" function-name="getBackgroundColor"/>
  165. <rejection class="*" function-name="getLineWidth"/>
  166. <object-type name="LineEdit">
  167. <object-type name="Config"/>
  168. </object-type>
  169. <object-type name="Menu">
  170. <object-type name="Margins"/>
  171. <object-type name="Config"/>
  172. </object-type>
  173. <object-type name="AzMessageBox"/>
  174. <namespace-type name="Internal" generate="yes"/>
  175. <object-type name="OverlayWidgetButton"/>
  176. <object-type name="ProgressBar">
  177. <object-type name="Config"/>
  178. </object-type>
  179. <object-type name="PushButton">
  180. <object-type name="Gradient"/>
  181. <object-type name="ColorSet"/>
  182. <object-type name="Border"/>
  183. <object-type name="Frame"/>
  184. <object-type name="SmallIcon"/>
  185. <object-type name="IconButton"/>
  186. <object-type name="DropdownButton"/>
  187. <object-type name="Config"/>
  188. </object-type>
  189. <object-type name="RadioButton">
  190. <object-type name="Config"/>
  191. </object-type>
  192. <object-type name="ScrollBar">
  193. <enum-type name="ScrollBarMode"/>
  194. <object-type name="Config"/>
  195. </object-type>
  196. <object-type name="SegmentBar"/>
  197. <object-type name="SegmentControl">
  198. <enum-type name="TabPosition"/>
  199. </object-type>
  200. <object-type name="Slider">
  201. <object-type name="Border"/>
  202. <object-type name="GradientSliderConfig"/>
  203. <object-type name="SliderConfig">
  204. <object-type name="HandleConfig"/>
  205. <object-type name="GrooveConfig"/>
  206. </object-type>
  207. <object-type name="Config"/>
  208. </object-type>
  209. <object-type name="SliderInt"/>
  210. <object-type name="SliderDouble"/>
  211. <object-type name="SliderCombo"/>
  212. <object-type name="SliderDoubleCombo"/>
  213. <object-type name="SpinBox">
  214. <object-type name="Config"/>
  215. </object-type>
  216. <object-type name="StatusBar">
  217. <object-type name="Config"/>
  218. </object-type>
  219. <object-type name="TableViewModel">
  220. <enum-type name="TableViewModelRole"/>
  221. </object-type>
  222. <object-type name="TableViewItemDelegate"/>
  223. <object-type name="TabWidget">
  224. <object-type name="Config"/>
  225. </object-type>
  226. <object-type name="TabWidgetActionToolBarContainer"/>
  227. <object-type name="TabBar"/>
  228. <object-type name="TabWidgetActionToolBar"/>
  229. <object-type name="Text">
  230. <object-type name="Config"/>
  231. </object-type>
  232. <object-type name="ToolBar">
  233. <object-type name="ToolBarConfig"/>
  234. <object-type name="Config"/>
  235. <enum-type name="ToolBarIconSize"/>
  236. </object-type>
  237. <object-type name="ToolButton">
  238. <object-type name="Config"/>
  239. </object-type>
  240. <object-type name="VectorEditElement">
  241. <enum-type name="Flavor"/>
  242. </object-type>
  243. <object-type name="VectorElement">
  244. <enum-type name="Coordinate"/>
  245. </object-type>
  246. <object-type name="VectorInput"/>
  247. </namespace-type> <!--AzQtComponents-->
  248. </typesystem>