QuickGraphLib 0.1.0a7__tar.gz → 0.1.0a8__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (153) hide show
  1. {quickgraphlib-0.1.0a7 → quickgraphlib-0.1.0a8}/PKG-INFO +1 -1
  2. {quickgraphlib-0.1.0a7 → quickgraphlib-0.1.0a8}/QuickGraphLib/CMakeLists.txt +2 -0
  3. {quickgraphlib-0.1.0a7 → quickgraphlib-0.1.0a8}/QuickGraphLib/GraphArea.qml +1 -1
  4. {quickgraphlib-0.1.0a7 → quickgraphlib-0.1.0a8}/QuickGraphLib/PreFabs/ImageAxes.qml +1 -1
  5. {quickgraphlib-0.1.0a7 → quickgraphlib-0.1.0a8}/QuickGraphLib/_version.py +1 -1
  6. {quickgraphlib-0.1.0a7 → quickgraphlib-0.1.0a8}/QuickGraphLib/bindings/CMakeLists.txt +71 -55
  7. {quickgraphlib-0.1.0a7 → quickgraphlib-0.1.0a8}/examples/BuiltinColormaps.qml +0 -2
  8. {quickgraphlib-0.1.0a7 → quickgraphlib-0.1.0a8}/examples/ColorMesh.qml +0 -1
  9. {quickgraphlib-0.1.0a7 → quickgraphlib-0.1.0a8}/examples/Complex.qml +1 -0
  10. {quickgraphlib-0.1.0a7 → quickgraphlib-0.1.0a8}/examples/ImageAlignment.qml +1 -2
  11. quickgraphlib-0.1.0a7/QuickGraphLib/bindings/pyside_config.py +0 -416
  12. {quickgraphlib-0.1.0a7 → quickgraphlib-0.1.0a8}/.clang-format +0 -0
  13. {quickgraphlib-0.1.0a7 → quickgraphlib-0.1.0a8}/.gitignore +0 -0
  14. {quickgraphlib-0.1.0a7 → quickgraphlib-0.1.0a8}/.pre-commit-config.yaml +0 -0
  15. {quickgraphlib-0.1.0a7 → quickgraphlib-0.1.0a8}/CMakeLists.txt +0 -0
  16. {quickgraphlib-0.1.0a7 → quickgraphlib-0.1.0a8}/LICENCE +0 -0
  17. {quickgraphlib-0.1.0a7 → quickgraphlib-0.1.0a8}/QuickGraphLib/AntialiasingContainer.qml +0 -0
  18. {quickgraphlib-0.1.0a7 → quickgraphlib-0.1.0a8}/QuickGraphLib/Axis.qml +0 -0
  19. {quickgraphlib-0.1.0a7 → quickgraphlib-0.1.0a8}/QuickGraphLib/ColorMaps.cpp +0 -0
  20. {quickgraphlib-0.1.0a7 → quickgraphlib-0.1.0a8}/QuickGraphLib/ColorMaps.hpp +0 -0
  21. {quickgraphlib-0.1.0a7 → quickgraphlib-0.1.0a8}/QuickGraphLib/DataTypes.cpp +0 -0
  22. {quickgraphlib-0.1.0a7 → quickgraphlib-0.1.0a8}/QuickGraphLib/DataTypes.hpp +0 -0
  23. {quickgraphlib-0.1.0a7 → quickgraphlib-0.1.0a8}/QuickGraphLib/GraphItems/AxHLine.qml +0 -0
  24. {quickgraphlib-0.1.0a7 → quickgraphlib-0.1.0a8}/QuickGraphLib/GraphItems/AxHSpan.qml +0 -0
  25. {quickgraphlib-0.1.0a7 → quickgraphlib-0.1.0a8}/QuickGraphLib/GraphItems/AxVLine.qml +0 -0
  26. {quickgraphlib-0.1.0a7 → quickgraphlib-0.1.0a8}/QuickGraphLib/GraphItems/AxVSpan.qml +0 -0
  27. {quickgraphlib-0.1.0a7 → quickgraphlib-0.1.0a8}/QuickGraphLib/GraphItems/BasicLegend.qml +0 -0
  28. {quickgraphlib-0.1.0a7 → quickgraphlib-0.1.0a8}/QuickGraphLib/GraphItems/BasicLegendItem.qml +0 -0
  29. {quickgraphlib-0.1.0a7 → quickgraphlib-0.1.0a8}/QuickGraphLib/GraphItems/CMakeLists.txt +0 -0
  30. {quickgraphlib-0.1.0a7 → quickgraphlib-0.1.0a8}/QuickGraphLib/GraphItems/ColorMesh.qml +0 -0
  31. {quickgraphlib-0.1.0a7 → quickgraphlib-0.1.0a8}/QuickGraphLib/GraphItems/Contour.qml +0 -0
  32. {quickgraphlib-0.1.0a7 → quickgraphlib-0.1.0a8}/QuickGraphLib/GraphItems/GraphItemDragHandler.qml +0 -0
  33. {quickgraphlib-0.1.0a7 → quickgraphlib-0.1.0a8}/QuickGraphLib/GraphItems/Grid.qml +0 -0
  34. {quickgraphlib-0.1.0a7 → quickgraphlib-0.1.0a8}/QuickGraphLib/GraphItems/Histogram.qml +0 -0
  35. {quickgraphlib-0.1.0a7 → quickgraphlib-0.1.0a8}/QuickGraphLib/GraphItems/Line.qml +0 -0
  36. {quickgraphlib-0.1.0a7 → quickgraphlib-0.1.0a8}/QuickGraphLib/GraphItems/Marker.qml +0 -0
  37. {quickgraphlib-0.1.0a7 → quickgraphlib-0.1.0a8}/QuickGraphLib/GraphItems/helpers/GridHelper.cpp +0 -0
  38. {quickgraphlib-0.1.0a7 → quickgraphlib-0.1.0a8}/QuickGraphLib/GraphItems/helpers/GridHelper.hpp +0 -0
  39. {quickgraphlib-0.1.0a7 → quickgraphlib-0.1.0a8}/QuickGraphLib/GraphItems/helpers/HistogramHelper.cpp +0 -0
  40. {quickgraphlib-0.1.0a7 → quickgraphlib-0.1.0a8}/QuickGraphLib/GraphItems/helpers/HistogramHelper.hpp +0 -0
  41. {quickgraphlib-0.1.0a7 → quickgraphlib-0.1.0a8}/QuickGraphLib/ImageView.cpp +0 -0
  42. {quickgraphlib-0.1.0a7 → quickgraphlib-0.1.0a8}/QuickGraphLib/ImageView.hpp +0 -0
  43. {quickgraphlib-0.1.0a7 → quickgraphlib-0.1.0a8}/QuickGraphLib/Plugin.cpp +0 -0
  44. {quickgraphlib-0.1.0a7 → quickgraphlib-0.1.0a8}/QuickGraphLib/PreFabs/CMakeLists.txt +0 -0
  45. {quickgraphlib-0.1.0a7 → quickgraphlib-0.1.0a8}/QuickGraphLib/PreFabs/XYAxes.qml +0 -0
  46. {quickgraphlib-0.1.0a7 → quickgraphlib-0.1.0a8}/QuickGraphLib/QuickGraphLib.hpp +0 -0
  47. {quickgraphlib-0.1.0a7 → quickgraphlib-0.1.0a8}/QuickGraphLib/ScalingContainer.qml +0 -0
  48. {quickgraphlib-0.1.0a7 → quickgraphlib-0.1.0a8}/QuickGraphLib/ShapeRepeater.qml +0 -0
  49. {quickgraphlib-0.1.0a7 → quickgraphlib-0.1.0a8}/QuickGraphLib/TickLabel.qml +0 -0
  50. {quickgraphlib-0.1.0a7 → quickgraphlib-0.1.0a8}/QuickGraphLib/ZoomPanHandler.qml +0 -0
  51. {quickgraphlib-0.1.0a7 → quickgraphlib-0.1.0a8}/QuickGraphLib/__init__.py +0 -0
  52. {quickgraphlib-0.1.0a7 → quickgraphlib-0.1.0a8}/QuickGraphLib/bindings/Bindings.hpp +0 -0
  53. {quickgraphlib-0.1.0a7 → quickgraphlib-0.1.0a8}/QuickGraphLib/bindings/Bindings.xml +0 -0
  54. {quickgraphlib-0.1.0a7 → quickgraphlib-0.1.0a8}/QuickGraphLib/bindings/ShibokenHelpers.cpp +0 -0
  55. {quickgraphlib-0.1.0a7 → quickgraphlib-0.1.0a8}/QuickGraphLib/bindings/ShibokenHelpers.hpp +0 -0
  56. {quickgraphlib-0.1.0a7 → quickgraphlib-0.1.0a8}/QuickGraphLib/bindings/glue/DataTypes.cpp +0 -0
  57. {quickgraphlib-0.1.0a7 → quickgraphlib-0.1.0a8}/QuickGraphLib/bindings/pyigen.py +0 -0
  58. {quickgraphlib-0.1.0a7 → quickgraphlib-0.1.0a8}/QuickGraphLib/consts.py +0 -0
  59. {quickgraphlib-0.1.0a7 → quickgraphlib-0.1.0a8}/QuickGraphLib/contours.py +0 -0
  60. {quickgraphlib-0.1.0a7 → quickgraphlib-0.1.0a8}/QuickGraphLib/doc/AxesGridLayout.drawio +0 -0
  61. {quickgraphlib-0.1.0a7 → quickgraphlib-0.1.0a8}/QuickGraphLib/doc/AxesGridLayout.svg +0 -0
  62. {quickgraphlib-0.1.0a7 → quickgraphlib-0.1.0a8}/QuickGraphLib/doc/export.qdoc +0 -0
  63. {quickgraphlib-0.1.0a7 → quickgraphlib-0.1.0a8}/QuickGraphLib/doc/graphitems.qdoc +0 -0
  64. {quickgraphlib-0.1.0a7 → quickgraphlib-0.1.0a8}/QuickGraphLib/doc/graphstructure.qdoc +0 -0
  65. {quickgraphlib-0.1.0a7 → quickgraphlib-0.1.0a8}/QuickGraphLib/doc/index.qdoc +0 -0
  66. {quickgraphlib-0.1.0a7 → quickgraphlib-0.1.0a8}/QuickGraphLib/doc/interaction.qdoc +0 -0
  67. {quickgraphlib-0.1.0a7 → quickgraphlib-0.1.0a8}/QuickGraphLib/doc/module-cpp.qdoc +0 -0
  68. {quickgraphlib-0.1.0a7 → quickgraphlib-0.1.0a8}/QuickGraphLib/doc/module.qdoc +0 -0
  69. {quickgraphlib-0.1.0a7 → quickgraphlib-0.1.0a8}/QuickGraphLib/doc/prefabs.qdoc +0 -0
  70. {quickgraphlib-0.1.0a7 → quickgraphlib-0.1.0a8}/QuickGraphLib/doc/python_helpers.qdoc +0 -0
  71. {quickgraphlib-0.1.0a7 → quickgraphlib-0.1.0a8}/QuickGraphLib/helpers/AxisHelper.cpp +0 -0
  72. {quickgraphlib-0.1.0a7 → quickgraphlib-0.1.0a8}/QuickGraphLib/helpers/AxisHelper.hpp +0 -0
  73. {quickgraphlib-0.1.0a7 → quickgraphlib-0.1.0a8}/QuickGraphLib/helpers/Foreign.hpp +0 -0
  74. {quickgraphlib-0.1.0a7 → quickgraphlib-0.1.0a8}/QuickGraphLib/helpers/Helpers.cpp +0 -0
  75. {quickgraphlib-0.1.0a7 → quickgraphlib-0.1.0a8}/QuickGraphLib/helpers/Helpers.hpp +0 -0
  76. {quickgraphlib-0.1.0a7 → quickgraphlib-0.1.0a8}/QuickGraphLib/py.typed +0 -0
  77. {quickgraphlib-0.1.0a7 → quickgraphlib-0.1.0a8}/README.md +0 -0
  78. {quickgraphlib-0.1.0a7 → quickgraphlib-0.1.0a8}/activate_venv.ps1 +0 -0
  79. {quickgraphlib-0.1.0a7 → quickgraphlib-0.1.0a8}/ci/find_qt.py +0 -0
  80. {quickgraphlib-0.1.0a7 → quickgraphlib-0.1.0a8}/ci/setup_qt.py +0 -0
  81. {quickgraphlib-0.1.0a7 → quickgraphlib-0.1.0a8}/docs/build_docs.py +0 -0
  82. {quickgraphlib-0.1.0a7 → quickgraphlib-0.1.0a8}/docs/config.qdocconf +0 -0
  83. {quickgraphlib-0.1.0a7 → quickgraphlib-0.1.0a8}/docs/style.css +0 -0
  84. {quickgraphlib-0.1.0a7 → quickgraphlib-0.1.0a8}/examples/AllTheAxes.png +0 -0
  85. {quickgraphlib-0.1.0a7 → quickgraphlib-0.1.0a8}/examples/AllTheAxes.qdoc +0 -0
  86. {quickgraphlib-0.1.0a7 → quickgraphlib-0.1.0a8}/examples/AllTheAxes.qml +0 -0
  87. {quickgraphlib-0.1.0a7 → quickgraphlib-0.1.0a8}/examples/BasicHistogram.png +0 -0
  88. {quickgraphlib-0.1.0a7 → quickgraphlib-0.1.0a8}/examples/BasicHistogram.qdoc +0 -0
  89. {quickgraphlib-0.1.0a7 → quickgraphlib-0.1.0a8}/examples/BasicHistogram.qml +0 -0
  90. {quickgraphlib-0.1.0a7 → quickgraphlib-0.1.0a8}/examples/BasicSinGraph.png +0 -0
  91. {quickgraphlib-0.1.0a7 → quickgraphlib-0.1.0a8}/examples/BasicSinGraph.qdoc +0 -0
  92. {quickgraphlib-0.1.0a7 → quickgraphlib-0.1.0a8}/examples/BasicSinGraph.qml +0 -0
  93. {quickgraphlib-0.1.0a7 → quickgraphlib-0.1.0a8}/examples/BasicSinGraphNoPrefabs.png +0 -0
  94. {quickgraphlib-0.1.0a7 → quickgraphlib-0.1.0a8}/examples/BasicSinGraphNoPrefabs.qdoc +0 -0
  95. {quickgraphlib-0.1.0a7 → quickgraphlib-0.1.0a8}/examples/BasicSinGraphNoPrefabs.qml +0 -0
  96. {quickgraphlib-0.1.0a7 → quickgraphlib-0.1.0a8}/examples/BuiltinColormaps.png +0 -0
  97. {quickgraphlib-0.1.0a7 → quickgraphlib-0.1.0a8}/examples/BuiltinColormaps.qdoc +0 -0
  98. {quickgraphlib-0.1.0a7 → quickgraphlib-0.1.0a8}/examples/ColorMappedImages.png +0 -0
  99. {quickgraphlib-0.1.0a7 → quickgraphlib-0.1.0a8}/examples/ColorMappedImages.qdoc +0 -0
  100. {quickgraphlib-0.1.0a7 → quickgraphlib-0.1.0a8}/examples/ColorMappedImages.qml +0 -0
  101. {quickgraphlib-0.1.0a7 → quickgraphlib-0.1.0a8}/examples/ColorMesh.png +0 -0
  102. {quickgraphlib-0.1.0a7 → quickgraphlib-0.1.0a8}/examples/ColorMesh.qdoc +0 -0
  103. {quickgraphlib-0.1.0a7 → quickgraphlib-0.1.0a8}/examples/Complex.png +0 -0
  104. {quickgraphlib-0.1.0a7 → quickgraphlib-0.1.0a8}/examples/Complex.qdoc +0 -0
  105. {quickgraphlib-0.1.0a7 → quickgraphlib-0.1.0a8}/examples/Contours.png +0 -0
  106. {quickgraphlib-0.1.0a7 → quickgraphlib-0.1.0a8}/examples/Contours.qdoc +0 -0
  107. {quickgraphlib-0.1.0a7 → quickgraphlib-0.1.0a8}/examples/Contours.qml +0 -0
  108. {quickgraphlib-0.1.0a7 → quickgraphlib-0.1.0a8}/examples/Conway.png +0 -0
  109. {quickgraphlib-0.1.0a7 → quickgraphlib-0.1.0a8}/examples/Conway.qdoc +0 -0
  110. {quickgraphlib-0.1.0a7 → quickgraphlib-0.1.0a8}/examples/Conway.qml +0 -0
  111. {quickgraphlib-0.1.0a7 → quickgraphlib-0.1.0a8}/examples/DarkSinGraph.png +0 -0
  112. {quickgraphlib-0.1.0a7 → quickgraphlib-0.1.0a8}/examples/DarkSinGraph.qdoc +0 -0
  113. {quickgraphlib-0.1.0a7 → quickgraphlib-0.1.0a8}/examples/DarkSinGraph.qml +0 -0
  114. {quickgraphlib-0.1.0a7 → quickgraphlib-0.1.0a8}/examples/DraggableRegion.png +0 -0
  115. {quickgraphlib-0.1.0a7 → quickgraphlib-0.1.0a8}/examples/DraggableRegion.qdoc +0 -0
  116. {quickgraphlib-0.1.0a7 → quickgraphlib-0.1.0a8}/examples/DraggableRegion.qml +0 -0
  117. {quickgraphlib-0.1.0a7 → quickgraphlib-0.1.0a8}/examples/ExampleGallery.png +0 -0
  118. {quickgraphlib-0.1.0a7 → quickgraphlib-0.1.0a8}/examples/ExampleGallery.qml +0 -0
  119. {quickgraphlib-0.1.0a7 → quickgraphlib-0.1.0a8}/examples/ImageAlignment.png +0 -0
  120. {quickgraphlib-0.1.0a7 → quickgraphlib-0.1.0a8}/examples/ImageAlignment.qdoc +0 -0
  121. {quickgraphlib-0.1.0a7 → quickgraphlib-0.1.0a8}/examples/InvertedAxes.png +0 -0
  122. {quickgraphlib-0.1.0a7 → quickgraphlib-0.1.0a8}/examples/InvertedAxes.qdoc +0 -0
  123. {quickgraphlib-0.1.0a7 → quickgraphlib-0.1.0a8}/examples/InvertedAxes.qml +0 -0
  124. {quickgraphlib-0.1.0a7 → quickgraphlib-0.1.0a8}/examples/ReadoutLine.png +0 -0
  125. {quickgraphlib-0.1.0a7 → quickgraphlib-0.1.0a8}/examples/ReadoutLine.qdoc +0 -0
  126. {quickgraphlib-0.1.0a7 → quickgraphlib-0.1.0a8}/examples/ReadoutLine.qml +0 -0
  127. {quickgraphlib-0.1.0a7 → quickgraphlib-0.1.0a8}/examples/ScalingGraph.png +0 -0
  128. {quickgraphlib-0.1.0a7 → quickgraphlib-0.1.0a8}/examples/ScalingGraph.qdoc +0 -0
  129. {quickgraphlib-0.1.0a7 → quickgraphlib-0.1.0a8}/examples/ScalingGraph.qml +0 -0
  130. {quickgraphlib-0.1.0a7 → quickgraphlib-0.1.0a8}/examples/Scatter.png +0 -0
  131. {quickgraphlib-0.1.0a7 → quickgraphlib-0.1.0a8}/examples/Scatter.qdoc +0 -0
  132. {quickgraphlib-0.1.0a7 → quickgraphlib-0.1.0a8}/examples/Scatter.qml +0 -0
  133. {quickgraphlib-0.1.0a7 → quickgraphlib-0.1.0a8}/examples/SpansAndLines.png +0 -0
  134. {quickgraphlib-0.1.0a7 → quickgraphlib-0.1.0a8}/examples/SpansAndLines.qdoc +0 -0
  135. {quickgraphlib-0.1.0a7 → quickgraphlib-0.1.0a8}/examples/SpansAndLines.qml +0 -0
  136. {quickgraphlib-0.1.0a7 → quickgraphlib-0.1.0a8}/examples/Subgraphs.png +0 -0
  137. {quickgraphlib-0.1.0a7 → quickgraphlib-0.1.0a8}/examples/Subgraphs.qdoc +0 -0
  138. {quickgraphlib-0.1.0a7 → quickgraphlib-0.1.0a8}/examples/Subgraphs.qml +0 -0
  139. {quickgraphlib-0.1.0a7 → quickgraphlib-0.1.0a8}/examples/TwinX.png +0 -0
  140. {quickgraphlib-0.1.0a7 → quickgraphlib-0.1.0a8}/examples/TwinX.qdoc +0 -0
  141. {quickgraphlib-0.1.0a7 → quickgraphlib-0.1.0a8}/examples/TwinX.qml +0 -0
  142. {quickgraphlib-0.1.0a7 → quickgraphlib-0.1.0a8}/examples/ZoomableAsImage.png +0 -0
  143. {quickgraphlib-0.1.0a7 → quickgraphlib-0.1.0a8}/examples/ZoomableAsImage.qdoc +0 -0
  144. {quickgraphlib-0.1.0a7 → quickgraphlib-0.1.0a8}/examples/ZoomableAsImage.qml +0 -0
  145. {quickgraphlib-0.1.0a7 → quickgraphlib-0.1.0a8}/examples/ZoomableAxes.png +0 -0
  146. {quickgraphlib-0.1.0a7 → quickgraphlib-0.1.0a8}/examples/ZoomableAxes.qdoc +0 -0
  147. {quickgraphlib-0.1.0a7 → quickgraphlib-0.1.0a8}/examples/ZoomableAxes.qml +0 -0
  148. {quickgraphlib-0.1.0a7 → quickgraphlib-0.1.0a8}/examples/conway.py +0 -0
  149. {quickgraphlib-0.1.0a7 → quickgraphlib-0.1.0a8}/examples/gallery.py +0 -0
  150. {quickgraphlib-0.1.0a7 → quickgraphlib-0.1.0a8}/pyproject.toml +0 -0
  151. {quickgraphlib-0.1.0a7 → quickgraphlib-0.1.0a8}/requirements.txt +0 -0
  152. {quickgraphlib-0.1.0a7 → quickgraphlib-0.1.0a8}/setup.cfg +0 -0
  153. {quickgraphlib-0.1.0a7 → quickgraphlib-0.1.0a8}/setup_venv.ps1 +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: QuickGraphLib
3
- Version: 0.1.0a7
3
+ Version: 0.1.0a8
4
4
  Summary: A scientific graphing library for QtQuick
5
5
  Author-Email: Matthew Joyce <matthew.joyce@refeyn.com>
6
6
  License: MIT License
@@ -67,10 +67,12 @@ add_custom_target(QuickGraphLibPythonFiles ALL DEPENDS ${QGL_PYTHON_FILES})
67
67
  install(
68
68
  TARGETS QuickGraphLib
69
69
  RUNTIME DESTINATION ${INSTALL_SUBPATH}/QuickGraphLib
70
+ LIBRARY DESTINATION ${INSTALL_SUBPATH}/QuickGraphLib
70
71
  )
71
72
  install(
72
73
  TARGETS QuickGraphLibPlugin
73
74
  RUNTIME DESTINATION ${INSTALL_SUBPATH}/QuickGraphLib
75
+ LIBRARY DESTINATION ${INSTALL_SUBPATH}/QuickGraphLib
74
76
  )
75
77
  install(FILES ${QGL_QML_FILES} DESTINATION ${INSTALL_SUBPATH}/QuickGraphLib)
76
78
  install(
@@ -65,7 +65,7 @@ QQS.Shape {
65
65
  /*!
66
66
  Convert a base transform \a baseTransform into a view transform suitable for \l viewTransform.
67
67
  */
68
- function viewTransformFromBaseTransform(baseTransform: matrix4x4) {
68
+ function viewTransformFromBaseTransform(baseTransform: matrix4x4): matrix4x4 {
69
69
  return Qt.matrix4x4(baseTransform.m11, baseTransform.m12, baseTransform.m13, baseTransform.m14 * width, baseTransform.m21, baseTransform.m22, baseTransform.m23, baseTransform.m24 * height, baseTransform.m31, baseTransform.m32, baseTransform.m33, baseTransform.m34, baseTransform.m41, baseTransform.m42, baseTransform.m43, baseTransform.m44);
70
70
  }
71
71
 
@@ -146,7 +146,7 @@ QuickGraphLib.AntialiasingContainer {
146
146
  gradient: Gradient {
147
147
  id: grad
148
148
 
149
- property var colors: QuickGraphLib.ColorMaps.colors(colorMesh.colormap)
149
+ property var colors: QuickGraphLib.ColorMaps.colors(root.colorMesh.colormap)
150
150
 
151
151
  stops: colors.map((color, i) => gradStop.createObject(grad, {
152
152
  "color": color,
@@ -12,5 +12,5 @@ __version__: str
12
12
  __version_tuple__: VERSION_TUPLE
13
13
  version_tuple: VERSION_TUPLE
14
14
 
15
- __version__ = version = '0.1.0a7'
15
+ __version__ = version = '0.1.0a8'
16
16
  __version_tuple__ = version_tuple = (0, 1, 0)
@@ -5,45 +5,53 @@
5
5
  set(CMAKE_PROGRAM_PATH "${CMAKE_PROGRAM_PATH};${CMAKE_SOURCE_DIR}/venv/Scripts")
6
6
  find_package(Python COMPONENTS Interpreter Development.SABIModule REQUIRED)
7
7
 
8
- # Macro to get various pyside / python include / link flags and paths.
9
- # Uses the not entirely supported utils/pyside_config.py file.
10
- macro(pyside_config option output_var)
11
- if(${ARGC} GREATER 2)
12
- set(is_list ${ARGV2})
13
- else()
14
- set(is_list "")
15
- endif()
16
-
17
- execute_process(
18
- COMMAND
19
- ${Python_EXECUTABLE} "${CMAKE_CURRENT_SOURCE_DIR}/pyside_config.py"
20
- ${option}
21
- OUTPUT_VARIABLE ${output_var}
22
- OUTPUT_STRIP_TRAILING_WHITESPACE
23
- )
24
-
25
- if("${${output_var}}" STREQUAL "")
26
- message(
27
- FATAL_ERROR
28
- "Error: Calling pyside_config.py ${option} returned no output."
29
- )
30
- endif()
31
- if(is_list)
32
- string(REPLACE " " ";" ${output_var} "${${output_var}}")
33
- endif()
34
- endmacro()
35
-
36
8
  # Query for the shiboken generator path, Python path, include paths and linker flags.
37
- pyside_config(--shiboken-generator-path shiboken_generator_path)
38
- pyside_config(--pyside-path pyside_path)
39
- pyside_config(--pyside-include-path pyside_include_dir 1)
40
- pyside_config(--shiboken-generator-include-path shiboken_include_dir 1)
41
- pyside_config(--shiboken-module-shared-libraries-cmake shiboken_shared_libraries 0)
42
- pyside_config(--pyside-shared-libraries-cmake pyside_shared_libraries 0)
43
-
44
- set(shiboken_path
45
- "${shiboken_generator_path}/shiboken6${CMAKE_EXECUTABLE_SUFFIX}"
9
+ set(CMAKE_FIND_DEBUG_MODE TRUE)
10
+ find_program(shiboken_path NAMES shiboken6 REQUIRED)
11
+ find_path(
12
+ pyside_typesystems_path
13
+ NAMES PySide6/typesystems
14
+ PATH_SUFFIXES share
15
+ PATHS "${Python_SITELIB}"
16
+ REQUIRED
17
+ )
18
+ find_path(
19
+ shiboken_include_dir
20
+ NAMES sbkpython.h
21
+ PATH_SUFFIXES shiboken6 shiboken6_generator/include
22
+ PATHS "${Python_SITELIB}"
23
+ REQUIRED
24
+ )
25
+ find_path(
26
+ pyside_include_dir
27
+ NAMES pyside.h
28
+ PATH_SUFFIXES PySide6 PySide6/include
29
+ PATHS "${Python_SITELIB}"
30
+ REQUIRED
31
+ )
32
+ find_library(
33
+ shiboken_shared_libraries
34
+ NAMES shiboken6 shiboken6.abi3 libshiboken6.abi3.so.6.5
35
+ PATH_SUFFIXES shiboken6
36
+ PATHS "${Python_SITELIB}"
37
+ REQUIRED
38
+ )
39
+ find_library(
40
+ pyside_shared_library
41
+ NAMES pyside6 pyside6.abi3 libpyside6.abi3.so.6.5
42
+ PATH_SUFFIXES PySide6
43
+ PATHS "${Python_SITELIB}"
44
+ REQUIRED
46
45
  )
46
+ find_library(
47
+ pyside_qml_shared_library
48
+ NAMES pyside6qml pyside6qml.abi3 libpyside6qml.abi3.so.6.5
49
+ PATH_SUFFIXES PySide6
50
+ PATHS "${Python_SITELIB}"
51
+ REQUIRED
52
+ )
53
+ set(CMAKE_FIND_DEBUG_MODE FALSE)
54
+
47
55
  if(NOT EXISTS ${shiboken_path})
48
56
  message(
49
57
  FATAL_ERROR
@@ -55,29 +63,35 @@ if(EXISTS $ENV{LLVM_PATH})
55
63
  # Update shiboken's libclang to fix parsing of recent MSVC C++ headers
56
64
  configure_file(
57
65
  "$ENV{LLVM_PATH}/bin/libclang.dll"
58
- "${shiboken_generator_path}/libclang.dll"
66
+ "${Python_SITELIB}/shiboken6_generator/libclang.dll"
59
67
  COPYONLY
60
68
  )
61
69
  endif()
62
70
 
63
71
  # Set up the options to pass to shiboken.
64
72
  set(INCLUDES "")
65
- get_property(
66
- QT_CORE_INCLUDE_DIRS
67
- TARGET Qt6::Core
68
- PROPERTY INTERFACE_INCLUDE_DIRECTORIES
69
- )
70
- foreach(INCLUDE_DIR ${QT_CORE_INCLUDE_DIRS})
71
- list(APPEND INCLUDES "-I${INCLUDE_DIR}")
72
- endforeach()
73
- get_property(
74
- QT_GUI_INCLUDE_DIRS
75
- TARGET Qt6::Gui
76
- PROPERTY INTERFACE_INCLUDE_DIRECTORIES
77
- )
78
- foreach(INCLUDE_DIR ${QT_GUI_INCLUDE_DIRS})
79
- list(APPEND INCLUDES "-I${INCLUDE_DIR}")
80
- endforeach()
73
+ if(DEFINED QT_HOST_PATH)
74
+ list(APPEND INCLUDES "-I${QT_HOST_PATH}/include")
75
+ list(APPEND INCLUDES "-I${QT_HOST_PATH}/include/QtCore")
76
+ list(APPEND INCLUDES "-I${QT_HOST_PATH}/include/QtGui")
77
+ else()
78
+ get_property(
79
+ QT_CORE_INCLUDE_DIRS
80
+ TARGET Qt6::Core
81
+ PROPERTY INTERFACE_INCLUDE_DIRECTORIES
82
+ )
83
+ foreach(INCLUDE_DIR ${QT_CORE_INCLUDE_DIRS})
84
+ list(APPEND INCLUDES "-I${INCLUDE_DIR}")
85
+ endforeach()
86
+ get_property(
87
+ QT_GUI_INCLUDE_DIRS
88
+ TARGET Qt6::Gui
89
+ PROPERTY INTERFACE_INCLUDE_DIRECTORIES
90
+ )
91
+ foreach(INCLUDE_DIR ${QT_GUI_INCLUDE_DIRS})
92
+ list(APPEND INCLUDES "-I${INCLUDE_DIR}")
93
+ endforeach()
94
+ endif()
81
95
 
82
96
  # We need to include the headers for the module bindings that we use.
83
97
  set(pyside_additional_includes "")
@@ -96,7 +110,7 @@ set(shiboken_options
96
110
  ${INCLUDES}
97
111
  -I${CMAKE_SOURCE_DIR}
98
112
  -T${CMAKE_SOURCE_DIR}
99
- -T${pyside_path}/typesystems
113
+ -T${pyside_typesystems_path}/PySide6/typesystems
100
114
  --output-directory=${CMAKE_CURRENT_BINARY_DIR}
101
115
  --compiler-path=${CMAKE_CXX_COMPILER}
102
116
  )
@@ -148,6 +162,8 @@ target_link_libraries(
148
162
  _QuickGraphLib
149
163
  PRIVATE
150
164
  ${pyside_shared_libraries}
165
+ ${pyside_shared_library}
166
+ ${pyside_qml_shared_library}
151
167
  ${shiboken_shared_libraries}
152
168
  QuickGraphLib
153
169
  Qt6::Core
@@ -5,8 +5,6 @@ import QtQuick
5
5
  import QtQuick.Controls as QQC
6
6
  import QtQuick.Layouts as QQL
7
7
  import QuickGraphLib as QuickGraphLib
8
- import QuickGraphLib.GraphItems as QGLGraphItems
9
- import QuickGraphLib.PreFabs as QGLPreFabs
10
8
 
11
9
  Item {
12
10
  id: root
@@ -3,7 +3,6 @@
3
3
 
4
4
  import QtQuick
5
5
  import QuickGraphLib as QuickGraphLib
6
- import QuickGraphLib.GraphItems as QGLGraphItems
7
6
  import QuickGraphLib.PreFabs as QGLPreFabs
8
7
 
9
8
  QGLPreFabs.ImageAxes {
@@ -1,6 +1,7 @@
1
1
  // SPDX-FileCopyrightText: Copyright (c) 2024 Refeyn Ltd and other QuickGraphLib contributors
2
2
  // SPDX-License-Identifier: MIT
3
3
 
4
+ pragma ComponentBehavior: Bound
4
5
  import QtQuick
5
6
  import QtQuick.Shapes as QQS
6
7
  import QtQuick.Layouts as QQL
@@ -1,12 +1,11 @@
1
1
  // SPDX-FileCopyrightText: Copyright (c) 2024 Refeyn Ltd+other QuickGraphLib contributors
2
2
  // SPDX-License-Identifier: MIT
3
3
 
4
+ pragma ComponentBehavior: Bound
4
5
  import QtQuick
5
6
  import QtQuick.Controls as QQC
6
7
  import QtQuick.Layouts as QQL
7
8
  import QuickGraphLib as QuickGraphLib
8
- import QuickGraphLib.GraphItems as QGLGraphItems
9
- import QuickGraphLib.PreFabs as QGLPreFabs
10
9
 
11
10
  QQL.GridLayout {
12
11
  id: root
@@ -1,416 +0,0 @@
1
- # Copyright (C) 2022 The Qt Company Ltd.
2
- # SPDX-License-Identifier: LicenseRef-Qt-Commercial OR BSD-3-Clause
3
- # pylint: skip-file
4
- # type: ignore
5
- import glob
6
- import os
7
- import re
8
- import sys
9
- import sysconfig
10
- from enum import Enum
11
-
12
- PYSIDE = "pyside6"
13
- PYSIDE_MODULE = "PySide6"
14
- SHIBOKEN = "shiboken6"
15
-
16
-
17
- class Package(Enum):
18
- SHIBOKEN_MODULE = 1
19
- SHIBOKEN_GENERATOR = 2
20
- PYSIDE_MODULE = 3
21
-
22
-
23
- generic_error = (
24
- "Did you forget to activate your virtualenv? Or perhaps"
25
- f" you forgot to build / install {PYSIDE_MODULE} into your currently active Python"
26
- " environment?"
27
- )
28
- pyside_error = f"Unable to locate {PYSIDE_MODULE}. {generic_error}"
29
- shiboken_module_error = f"Unable to locate {SHIBOKEN}-module. {generic_error}"
30
- shiboken_generator_error = f"Unable to locate shiboken-generator. {generic_error}"
31
- pyside_libs_error = f"Unable to locate the PySide shared libraries. {generic_error}"
32
- python_link_error = "Unable to locate the Python library for linking."
33
- python_include_error = "Unable to locate the Python include headers directory."
34
-
35
- options = []
36
-
37
- # option, function, error, description
38
- options.append(
39
- (
40
- "--shiboken-module-path",
41
- lambda: find_shiboken_module(),
42
- shiboken_module_error,
43
- "Print shiboken module location",
44
- )
45
- )
46
- options.append(
47
- (
48
- "--shiboken-generator-path",
49
- lambda: find_shiboken_generator(),
50
- shiboken_generator_error,
51
- "Print shiboken generator location",
52
- )
53
- )
54
- options.append(
55
- (
56
- "--pyside-path",
57
- lambda: find_pyside(),
58
- pyside_error,
59
- f"Print {PYSIDE_MODULE} location",
60
- )
61
- )
62
-
63
- options.append(
64
- (
65
- "--python-include-path",
66
- lambda: get_python_include_path(),
67
- python_include_error,
68
- "Print Python include path",
69
- )
70
- )
71
- options.append(
72
- (
73
- "--shiboken-generator-include-path",
74
- lambda: get_package_include_path(Package.SHIBOKEN_GENERATOR),
75
- pyside_error,
76
- "Print shiboken generator include paths",
77
- )
78
- )
79
- options.append(
80
- (
81
- "--pyside-include-path",
82
- lambda: get_package_include_path(Package.PYSIDE_MODULE),
83
- pyside_error,
84
- "Print PySide6 include paths",
85
- )
86
- )
87
-
88
- options.append(
89
- (
90
- "--python-link-flags-qmake",
91
- lambda: python_link_flags_qmake(),
92
- python_link_error,
93
- "Print python link flags for qmake",
94
- )
95
- )
96
- options.append(
97
- (
98
- "--python-link-flags-cmake",
99
- lambda: python_link_flags_cmake(),
100
- python_link_error,
101
- "Print python link flags for cmake",
102
- )
103
- )
104
-
105
- options.append(
106
- (
107
- "--shiboken-module-qmake-lflags",
108
- lambda: get_package_qmake_lflags(Package.SHIBOKEN_MODULE),
109
- pyside_error,
110
- "Print shiboken6 shared library link flags for qmake",
111
- )
112
- )
113
- options.append(
114
- (
115
- "--pyside-qmake-lflags",
116
- lambda: get_package_qmake_lflags(Package.PYSIDE_MODULE),
117
- pyside_error,
118
- "Print PySide6 shared library link flags for qmake",
119
- )
120
- )
121
-
122
- options.append(
123
- (
124
- "--shiboken-module-shared-libraries-qmake",
125
- lambda: get_shared_libraries_qmake(Package.SHIBOKEN_MODULE),
126
- pyside_libs_error,
127
- "Print paths of shiboken shared libraries (.so's, .dylib's, .dll's) for qmake",
128
- )
129
- )
130
- options.append(
131
- (
132
- "--shiboken-module-shared-libraries-cmake",
133
- lambda: get_shared_libraries_cmake(Package.SHIBOKEN_MODULE),
134
- pyside_libs_error,
135
- "Print paths of shiboken shared libraries (.so's, .dylib's, .dll's) for cmake",
136
- )
137
- )
138
-
139
- options.append(
140
- (
141
- "--pyside-shared-libraries-qmake",
142
- lambda: get_shared_libraries_qmake(Package.PYSIDE_MODULE),
143
- pyside_libs_error,
144
- "Print paths of f{PYSIDE_MODULE} shared libraries (.so's, .dylib's, .dll's) "
145
- "for qmake",
146
- )
147
- )
148
- options.append(
149
- (
150
- "--pyside-shared-libraries-cmake",
151
- lambda: get_shared_libraries_cmake(Package.PYSIDE_MODULE),
152
- pyside_libs_error,
153
- f"Print paths of {PYSIDE_MODULE} shared libraries (.so's, .dylib's, .dll's) "
154
- "for cmake",
155
- )
156
- )
157
-
158
- options_usage = ""
159
- for i, (flag, _, _, description) in enumerate(options):
160
- options_usage += f" {flag:<45} {description}"
161
- if i < len(options) - 1:
162
- options_usage += "\n"
163
-
164
- usage = f"""
165
- Utility to determine include/link options of shiboken/PySide and Python for qmake/CMake projects
166
- that would like to embed or build custom shiboken/PySide bindings.
167
-
168
- Usage: pyside_config.py [option]
169
- Options:
170
- {options_usage}
171
- -a Print all options and their values
172
- --help/-h Print this help
173
- """
174
-
175
- option = sys.argv[1] if len(sys.argv) == 2 else "-a"
176
- if option == "-h" or option == "--help":
177
- print(usage)
178
- sys.exit(0)
179
-
180
-
181
- def clean_path(path):
182
- return path if sys.platform != "win32" else path.replace("\\", "/")
183
-
184
-
185
- def shared_library_suffix():
186
- if sys.platform == "win32":
187
- return "lib"
188
- elif sys.platform == "darwin":
189
- return "dylib"
190
- # Linux
191
- else:
192
- return "so.*"
193
-
194
-
195
- def import_suffixes():
196
- import importlib.machinery
197
-
198
- return importlib.machinery.EXTENSION_SUFFIXES
199
-
200
-
201
- def is_debug():
202
- debug_suffix = "_d.pyd" if sys.platform == "win32" else "_d.so"
203
- return any([s.endswith(debug_suffix) for s in import_suffixes()])
204
-
205
-
206
- def shared_library_glob_pattern():
207
- glob = "*." + shared_library_suffix()
208
- return glob if sys.platform == "win32" else "lib" + glob
209
-
210
-
211
- def filter_shared_libraries(libs_list):
212
- def predicate(lib_name):
213
- basename = os.path.basename(lib_name)
214
- if "shiboken" in basename or "pyside6" in basename:
215
- return True
216
- return False
217
-
218
- result = [lib for lib in libs_list if predicate(lib)]
219
- return result
220
-
221
-
222
- # Return qmake link option for a library file name
223
- def link_option(lib):
224
- # On Linux:
225
- # Since we cannot include symlinks with wheel packages
226
- # we are using an absolute path for the libpyside and libshiboken
227
- # libraries when compiling the project
228
- baseName = os.path.basename(lib)
229
- link = " -l"
230
- if sys.platform in [
231
- "linux",
232
- "linux2",
233
- ]: # Linux: 'libfoo.so' -> '/absolute/path/libfoo.so'
234
- link = lib
235
- elif sys.platform in ["darwin"]: # Darwin: 'libfoo.so' -> '-lfoo'
236
- link += os.path.splitext(baseName[3:])[0]
237
- else: # Windows: 'libfoo.dll' -> 'libfoo.dll'
238
- link += os.path.splitext(baseName)[0]
239
- return link
240
-
241
-
242
- # Locate PySide6 via sys.path package path.
243
- def find_pyside():
244
- return find_package_path(PYSIDE_MODULE)
245
-
246
-
247
- def find_shiboken_module():
248
- return find_package_path(SHIBOKEN)
249
-
250
-
251
- def find_shiboken_generator():
252
- return find_package_path(f"{SHIBOKEN}_generator")
253
-
254
-
255
- def find_package(which_package):
256
- if which_package == Package.SHIBOKEN_MODULE:
257
- return find_shiboken_module()
258
- if which_package == Package.SHIBOKEN_GENERATOR:
259
- return find_shiboken_generator()
260
- if which_package == Package.PYSIDE_MODULE:
261
- return find_pyside()
262
- return None
263
-
264
-
265
- def find_package_path(dir_name):
266
- for p in sys.path:
267
- if "site-" in p:
268
- package = os.path.join(p, dir_name)
269
- if os.path.exists(package):
270
- return clean_path(os.path.realpath(package))
271
- return None
272
-
273
-
274
- # Return version as "x.y" (e.g. 3.9, 3.12, etc)
275
- def python_version():
276
- return str(sys.version_info[0]) + "." + str(sys.version_info[1])
277
-
278
-
279
- def get_python_include_path():
280
- return sysconfig.get_path("include")
281
-
282
-
283
- def python_link_flags_qmake():
284
- flags = python_link_data()
285
- if sys.platform == "win32":
286
- libdir = flags["libdir"]
287
- # This will add the "~1" shortcut for directories that
288
- # contain white spaces
289
- # e.g.: "Program Files" to "Progra~1"
290
- for d in libdir.split("\\"):
291
- if " " in d:
292
- libdir = libdir.replace(d, d.split(" ")[0][:-1] + "~1")
293
- lib_flags = flags["lib"]
294
- return f"-L{libdir} -l{lib_flags}"
295
- elif sys.platform == "darwin":
296
- libdir = flags["libdir"]
297
- lib_flags = flags["lib"]
298
- return f"-L{libdir} -l{lib_flags}"
299
- else:
300
- # Linux and anything else
301
- libdir = flags["libdir"]
302
- lib_flags = flags["lib"]
303
- return f"-L{libdir} -l{lib_flags}"
304
-
305
-
306
- def python_link_flags_cmake():
307
- flags = python_link_data()
308
- libdir = flags["libdir"]
309
- lib = re.sub(r".dll$", ".lib", flags["lib"])
310
- return f"{libdir};{lib}"
311
-
312
-
313
- def python_link_data():
314
- # @TODO Fix to work with static builds of Python
315
- libdir = sysconfig.get_config_var("LIBDIR")
316
- if libdir is None:
317
- libdir = os.path.abspath(
318
- os.path.join(sysconfig.get_config_var("LIBDEST"), "..", "libs")
319
- )
320
- version = python_version()
321
- version_no_dots = version.replace(".", "")
322
-
323
- flags = {}
324
- flags["libdir"] = libdir
325
- if sys.platform == "win32":
326
- suffix = "_d" if is_debug() else ""
327
- flags["lib"] = f"python{version_no_dots}{suffix}"
328
-
329
- elif sys.platform == "darwin":
330
- flags["lib"] = f"python{version}"
331
-
332
- # Linux and anything else
333
- else:
334
- flags["lib"] = f"python{version}{sys.abiflags}"
335
-
336
- return flags
337
-
338
-
339
- def get_package_include_path(which_package):
340
- package_path = find_package(which_package)
341
- if package_path is None:
342
- return None
343
-
344
- includes = f"{package_path}/include"
345
-
346
- return includes
347
-
348
-
349
- def get_package_qmake_lflags(which_package):
350
- package_path = find_package(which_package)
351
- if package_path is None:
352
- return None
353
-
354
- link = f"-L{package_path}"
355
- glob_result = glob.glob(os.path.join(package_path, shared_library_glob_pattern()))
356
- for lib in filter_shared_libraries(glob_result):
357
- link += " "
358
- link += link_option(lib)
359
- return link
360
-
361
-
362
- def get_shared_libraries_data(which_package):
363
- package_path = find_package(which_package)
364
- if package_path is None:
365
- return None
366
-
367
- glob_result = glob.glob(os.path.join(package_path, shared_library_glob_pattern()))
368
- filtered_libs = filter_shared_libraries(glob_result)
369
- libs = []
370
- if sys.platform == "win32":
371
- for lib in filtered_libs:
372
- libs.append(os.path.realpath(lib))
373
- else:
374
- for lib in filtered_libs:
375
- libs.append(lib)
376
- return libs
377
-
378
-
379
- def get_shared_libraries_qmake(which_package):
380
- libs = get_shared_libraries_data(which_package)
381
- if libs is None:
382
- return None
383
-
384
- if sys.platform == "win32":
385
- if not libs:
386
- return ""
387
- dlls = ""
388
- for lib in libs:
389
- dll = os.path.splitext(lib)[0] + ".dll"
390
- dlls += dll + " "
391
-
392
- return dlls
393
- else:
394
- libs_string = ""
395
- for lib in libs:
396
- libs_string += lib + " "
397
- return libs_string
398
-
399
-
400
- def get_shared_libraries_cmake(which_package):
401
- libs = get_shared_libraries_data(which_package)
402
- result = ";".join(libs)
403
- return result
404
-
405
-
406
- print_all = option == "-a"
407
- for argument, handler, error, _ in options:
408
- if option == argument or print_all:
409
- handler_result = handler()
410
- if handler_result is None:
411
- sys.exit(error)
412
-
413
- line = handler_result
414
- if print_all:
415
- line = f"{argument:<40}: {line}"
416
- print(line)
File without changes