QuickGraphLib 0.1.0a14__tar.gz → 0.1.0a16__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 (268) hide show
  1. {quickgraphlib-0.1.0a14 → quickgraphlib-0.1.0a16}/.pre-commit-config.yaml +3 -8
  2. {quickgraphlib-0.1.0a14 → quickgraphlib-0.1.0a16}/CMakeLists.txt +5 -0
  3. {quickgraphlib-0.1.0a14 → quickgraphlib-0.1.0a16}/PKG-INFO +4 -3
  4. {quickgraphlib-0.1.0a14 → quickgraphlib-0.1.0a16}/QuickGraphLib/AntialiasingContainer.qml +4 -2
  5. {quickgraphlib-0.1.0a14 → quickgraphlib-0.1.0a16}/QuickGraphLib/Axis.qml +20 -0
  6. {quickgraphlib-0.1.0a14 → quickgraphlib-0.1.0a16}/QuickGraphLib/CMakeLists.txt +52 -26
  7. {quickgraphlib-0.1.0a14 → quickgraphlib-0.1.0a16}/QuickGraphLib/GraphArea.qml +6 -2
  8. {quickgraphlib-0.1.0a14 → quickgraphlib-0.1.0a16}/QuickGraphLib/GraphItems/BasicLegend.qml +2 -0
  9. {quickgraphlib-0.1.0a14 → quickgraphlib-0.1.0a16}/QuickGraphLib/GraphItems/BasicLegendItem.qml +8 -0
  10. {quickgraphlib-0.1.0a14 → quickgraphlib-0.1.0a16}/QuickGraphLib/GraphItems/CMakeLists.txt +2 -4
  11. {quickgraphlib-0.1.0a14 → quickgraphlib-0.1.0a16}/QuickGraphLib/GraphItems/ColorMesh.qml +1 -1
  12. {quickgraphlib-0.1.0a14 → quickgraphlib-0.1.0a16}/QuickGraphLib/GraphItems/Histogram.qml +2 -0
  13. {quickgraphlib-0.1.0a14 → quickgraphlib-0.1.0a16}/QuickGraphLib/GraphItems/Line.qml +2 -1
  14. {quickgraphlib-0.1.0a14 → quickgraphlib-0.1.0a16}/QuickGraphLib/GraphItems/helpers/HistogramHelper.cpp +1 -1
  15. {quickgraphlib-0.1.0a14 → quickgraphlib-0.1.0a16}/QuickGraphLib/ImageView.cpp +47 -31
  16. {quickgraphlib-0.1.0a14 → quickgraphlib-0.1.0a16}/QuickGraphLib/PreFabs/CMakeLists.txt +2 -4
  17. {quickgraphlib-0.1.0a14 → quickgraphlib-0.1.0a16}/QuickGraphLib/PreFabs/ImageAxes.qml +6 -0
  18. {quickgraphlib-0.1.0a14 → quickgraphlib-0.1.0a16}/QuickGraphLib/PreFabs/XYAxes.qml +14 -0
  19. {quickgraphlib-0.1.0a14 → quickgraphlib-0.1.0a16}/QuickGraphLib/ZoomPanHandler.qml +11 -0
  20. {quickgraphlib-0.1.0a14 → quickgraphlib-0.1.0a16}/QuickGraphLib/__init__.py +3 -1
  21. {quickgraphlib-0.1.0a14 → quickgraphlib-0.1.0a16}/QuickGraphLib/_version.py +3 -3
  22. {quickgraphlib-0.1.0a14 → quickgraphlib-0.1.0a16}/QuickGraphLib/bindings/CMakeLists.txt +4 -4
  23. {quickgraphlib-0.1.0a14 → quickgraphlib-0.1.0a16}/QuickGraphLib/doc/index.qdoc +2 -0
  24. {quickgraphlib-0.1.0a14 → quickgraphlib-0.1.0a16}/QuickGraphLib/helpers/Helpers.cpp +54 -11
  25. {quickgraphlib-0.1.0a14 → quickgraphlib-0.1.0a16}/QuickGraphLib/helpers/Helpers.hpp +1 -0
  26. quickgraphlib-0.1.0a16/examples/LogGraph.png +0 -0
  27. quickgraphlib-0.1.0a16/examples/LogGraph.qdoc +15 -0
  28. quickgraphlib-0.1.0a16/examples/LogGraph.qml +44 -0
  29. {quickgraphlib-0.1.0a14 → quickgraphlib-0.1.0a16}/pyproject.toml +6 -6
  30. quickgraphlib-0.1.0a16/requirements.txt +36 -0
  31. {quickgraphlib-0.1.0a14 → quickgraphlib-0.1.0a16}/tests/reference_images/AllTheAxes.dat +0 -0
  32. {quickgraphlib-0.1.0a14 → quickgraphlib-0.1.0a16}/tests/reference_images/AllTheAxes.svg +71 -23
  33. {quickgraphlib-0.1.0a14 → quickgraphlib-0.1.0a16}/tests/reference_images/BasicHistogram.svg +50 -24
  34. {quickgraphlib-0.1.0a14 → quickgraphlib-0.1.0a16}/tests/reference_images/BasicSinGraph.dat +0 -0
  35. quickgraphlib-0.1.0a14/tests/reference_images/ZoomableAsImage.svg → quickgraphlib-0.1.0a16/tests/reference_images/BasicSinGraph.svg +71 -48
  36. {quickgraphlib-0.1.0a14 → quickgraphlib-0.1.0a16}/tests/reference_images/BasicSinGraphNoPrefabs.dat +0 -0
  37. {quickgraphlib-0.1.0a14 → quickgraphlib-0.1.0a16}/tests/reference_images/BasicSinGraphNoPrefabs.svg +71 -23
  38. {quickgraphlib-0.1.0a14 → quickgraphlib-0.1.0a16}/tests/reference_images/BuiltinColormaps.svg +6 -2
  39. {quickgraphlib-0.1.0a14 → quickgraphlib-0.1.0a16}/tests/reference_images/ColorMappedImages.svg +1 -1
  40. {quickgraphlib-0.1.0a14 → quickgraphlib-0.1.0a16}/tests/reference_images/ColorMesh.svg +10 -4
  41. {quickgraphlib-0.1.0a14 → quickgraphlib-0.1.0a16}/tests/reference_images/Complex.dat +0 -0
  42. {quickgraphlib-0.1.0a14 → quickgraphlib-0.1.0a16}/tests/reference_images/Complex.svg +203 -66
  43. quickgraphlib-0.1.0a16/tests/reference_images/Contours.dat +0 -0
  44. {quickgraphlib-0.1.0a14 → quickgraphlib-0.1.0a16}/tests/reference_images/Contours.svg +170 -50
  45. {quickgraphlib-0.1.0a14 → quickgraphlib-0.1.0a16}/tests/reference_images/Conway.svg +16 -7
  46. {quickgraphlib-0.1.0a14 → quickgraphlib-0.1.0a16}/tests/reference_images/DarkSinGraph.dat +0 -0
  47. {quickgraphlib-0.1.0a14 → quickgraphlib-0.1.0a16}/tests/reference_images/DarkSinGraph.svg +71 -23
  48. {quickgraphlib-0.1.0a14 → quickgraphlib-0.1.0a16}/tests/reference_images/DraggableRegion.svg +32 -15
  49. {quickgraphlib-0.1.0a14 → quickgraphlib-0.1.0a16}/tests/reference_images/ImageAlignment.svg +68 -15
  50. {quickgraphlib-0.1.0a14 → quickgraphlib-0.1.0a16}/tests/reference_images/InvertedAxes.svg +14 -6
  51. quickgraphlib-0.1.0a16/tests/reference_images/LogGraph.dat +0 -0
  52. quickgraphlib-0.1.0a16/tests/reference_images/LogGraph.png +0 -0
  53. quickgraphlib-0.1.0a16/tests/reference_images/LogGraph.svg +505 -0
  54. quickgraphlib-0.1.0a16/tests/reference_images/LogGraph_grab.png +0 -0
  55. {quickgraphlib-0.1.0a14 → quickgraphlib-0.1.0a16}/tests/reference_images/PeakButtons.svg +108 -53
  56. {quickgraphlib-0.1.0a14 → quickgraphlib-0.1.0a16}/tests/reference_images/ReadoutLine.svg +36 -17
  57. {quickgraphlib-0.1.0a14 → quickgraphlib-0.1.0a16}/tests/reference_images/ScalingGraph.svg +14 -6
  58. quickgraphlib-0.1.0a16/tests/reference_images/Scatter.svg +250687 -0
  59. {quickgraphlib-0.1.0a14 → quickgraphlib-0.1.0a16}/tests/reference_images/SpansAndLines.svg +34 -16
  60. {quickgraphlib-0.1.0a14 → quickgraphlib-0.1.0a16}/tests/reference_images/Subgraphs.svg +53 -21
  61. {quickgraphlib-0.1.0a14 → quickgraphlib-0.1.0a16}/tests/reference_images/TwinX.svg +23 -9
  62. {quickgraphlib-0.1.0a14 → quickgraphlib-0.1.0a16}/tests/reference_images/ZoomableAsImage.dat +0 -0
  63. quickgraphlib-0.1.0a14/tests/reference_images/BasicSinGraph.svg → quickgraphlib-0.1.0a16/tests/reference_images/ZoomableAsImage.svg +96 -23
  64. {quickgraphlib-0.1.0a14 → quickgraphlib-0.1.0a16}/tests/reference_images/ZoomableAxes.dat +0 -0
  65. {quickgraphlib-0.1.0a14 → quickgraphlib-0.1.0a16}/tests/reference_images/ZoomableAxes.svg +77 -26
  66. quickgraphlib-0.1.0a14/requirements.txt +0 -46
  67. quickgraphlib-0.1.0a14/tests/reference_images/Contours.dat +0 -0
  68. quickgraphlib-0.1.0a14/tests/reference_images/Scatter.svg +0 -210680
  69. {quickgraphlib-0.1.0a14 → quickgraphlib-0.1.0a16}/.clang-format +0 -0
  70. {quickgraphlib-0.1.0a14 → quickgraphlib-0.1.0a16}/.gitignore +0 -0
  71. {quickgraphlib-0.1.0a14 → quickgraphlib-0.1.0a16}/LICENCE +0 -0
  72. {quickgraphlib-0.1.0a14 → quickgraphlib-0.1.0a16}/QuickGraphLib/ColorMaps.cpp +0 -0
  73. {quickgraphlib-0.1.0a14 → quickgraphlib-0.1.0a16}/QuickGraphLib/ColorMaps.hpp +0 -0
  74. {quickgraphlib-0.1.0a14 → quickgraphlib-0.1.0a16}/QuickGraphLib/DataTypes.cpp +0 -0
  75. {quickgraphlib-0.1.0a14 → quickgraphlib-0.1.0a16}/QuickGraphLib/DataTypes.hpp +0 -0
  76. {quickgraphlib-0.1.0a14 → quickgraphlib-0.1.0a16}/QuickGraphLib/Global.hpp +0 -0
  77. {quickgraphlib-0.1.0a14 → quickgraphlib-0.1.0a16}/QuickGraphLib/GraphItems/AxHLine.qml +0 -0
  78. {quickgraphlib-0.1.0a14 → quickgraphlib-0.1.0a16}/QuickGraphLib/GraphItems/AxHSpan.qml +0 -0
  79. {quickgraphlib-0.1.0a14 → quickgraphlib-0.1.0a16}/QuickGraphLib/GraphItems/AxVLine.qml +0 -0
  80. {quickgraphlib-0.1.0a14 → quickgraphlib-0.1.0a16}/QuickGraphLib/GraphItems/AxVSpan.qml +0 -0
  81. {quickgraphlib-0.1.0a14 → quickgraphlib-0.1.0a16}/QuickGraphLib/GraphItems/Contour.qml +0 -0
  82. {quickgraphlib-0.1.0a14 → quickgraphlib-0.1.0a16}/QuickGraphLib/GraphItems/GraphItemDragHandler.qml +0 -0
  83. {quickgraphlib-0.1.0a14 → quickgraphlib-0.1.0a16}/QuickGraphLib/GraphItems/Grid.qml +0 -0
  84. {quickgraphlib-0.1.0a14 → quickgraphlib-0.1.0a16}/QuickGraphLib/GraphItems/Marker.qml +0 -0
  85. {quickgraphlib-0.1.0a14 → quickgraphlib-0.1.0a16}/QuickGraphLib/GraphItems/helpers/GridHelper.cpp +0 -0
  86. {quickgraphlib-0.1.0a14 → quickgraphlib-0.1.0a16}/QuickGraphLib/GraphItems/helpers/GridHelper.hpp +0 -0
  87. {quickgraphlib-0.1.0a14 → quickgraphlib-0.1.0a16}/QuickGraphLib/GraphItems/helpers/HistogramHelper.hpp +0 -0
  88. {quickgraphlib-0.1.0a14 → quickgraphlib-0.1.0a16}/QuickGraphLib/ImageView.hpp +0 -0
  89. {quickgraphlib-0.1.0a14 → quickgraphlib-0.1.0a16}/QuickGraphLib/Plugin.cpp +0 -0
  90. {quickgraphlib-0.1.0a14 → quickgraphlib-0.1.0a16}/QuickGraphLib/QuickGraphLib.hpp +0 -0
  91. {quickgraphlib-0.1.0a14 → quickgraphlib-0.1.0a16}/QuickGraphLib/ScalingContainer.qml +0 -0
  92. {quickgraphlib-0.1.0a14 → quickgraphlib-0.1.0a16}/QuickGraphLib/ShapeRepeater.qml +0 -0
  93. {quickgraphlib-0.1.0a14 → quickgraphlib-0.1.0a16}/QuickGraphLib/TickLabel.qml +0 -0
  94. {quickgraphlib-0.1.0a14 → quickgraphlib-0.1.0a16}/QuickGraphLib/bindings/Bindings.hpp +0 -0
  95. {quickgraphlib-0.1.0a14 → quickgraphlib-0.1.0a16}/QuickGraphLib/bindings/Bindings.xml +0 -0
  96. {quickgraphlib-0.1.0a14 → quickgraphlib-0.1.0a16}/QuickGraphLib/bindings/ShibokenHelpers.cpp +0 -0
  97. {quickgraphlib-0.1.0a14 → quickgraphlib-0.1.0a16}/QuickGraphLib/bindings/ShibokenHelpers.hpp +0 -0
  98. {quickgraphlib-0.1.0a14 → quickgraphlib-0.1.0a16}/QuickGraphLib/bindings/glue/DataTypes.cpp +0 -0
  99. {quickgraphlib-0.1.0a14 → quickgraphlib-0.1.0a16}/QuickGraphLib/bindings/pyigen.py +0 -0
  100. {quickgraphlib-0.1.0a14 → quickgraphlib-0.1.0a16}/QuickGraphLib/consts.py +0 -0
  101. {quickgraphlib-0.1.0a14 → quickgraphlib-0.1.0a16}/QuickGraphLib/contours.py +0 -0
  102. {quickgraphlib-0.1.0a14 → quickgraphlib-0.1.0a16}/QuickGraphLib/doc/AxesGridLayout.drawio +0 -0
  103. {quickgraphlib-0.1.0a14 → quickgraphlib-0.1.0a16}/QuickGraphLib/doc/AxesGridLayout.svg +0 -0
  104. {quickgraphlib-0.1.0a14 → quickgraphlib-0.1.0a16}/QuickGraphLib/doc/export.qdoc +0 -0
  105. {quickgraphlib-0.1.0a14 → quickgraphlib-0.1.0a16}/QuickGraphLib/doc/graphitems.qdoc +0 -0
  106. {quickgraphlib-0.1.0a14 → quickgraphlib-0.1.0a16}/QuickGraphLib/doc/graphstructure.qdoc +0 -0
  107. {quickgraphlib-0.1.0a14 → quickgraphlib-0.1.0a16}/QuickGraphLib/doc/interaction.qdoc +0 -0
  108. {quickgraphlib-0.1.0a14 → quickgraphlib-0.1.0a16}/QuickGraphLib/doc/module-cpp.qdoc +0 -0
  109. {quickgraphlib-0.1.0a14 → quickgraphlib-0.1.0a16}/QuickGraphLib/doc/module.qdoc +0 -0
  110. {quickgraphlib-0.1.0a14 → quickgraphlib-0.1.0a16}/QuickGraphLib/doc/prefabs.qdoc +0 -0
  111. {quickgraphlib-0.1.0a14 → quickgraphlib-0.1.0a16}/QuickGraphLib/doc/python_helpers.qdoc +0 -0
  112. {quickgraphlib-0.1.0a14 → quickgraphlib-0.1.0a16}/QuickGraphLib/helpers/AxisHelper.cpp +0 -0
  113. {quickgraphlib-0.1.0a14 → quickgraphlib-0.1.0a16}/QuickGraphLib/helpers/AxisHelper.hpp +0 -0
  114. {quickgraphlib-0.1.0a14 → quickgraphlib-0.1.0a16}/QuickGraphLib/helpers/Foreign.hpp +0 -0
  115. {quickgraphlib-0.1.0a14 → quickgraphlib-0.1.0a16}/QuickGraphLib/helpers/ShapeRepeaterHelper.cpp +0 -0
  116. {quickgraphlib-0.1.0a14 → quickgraphlib-0.1.0a16}/QuickGraphLib/helpers/ShapeRepeaterHelper.hpp +0 -0
  117. {quickgraphlib-0.1.0a14 → quickgraphlib-0.1.0a16}/QuickGraphLib/py.typed +0 -0
  118. {quickgraphlib-0.1.0a14 → quickgraphlib-0.1.0a16}/README.md +0 -0
  119. {quickgraphlib-0.1.0a14 → quickgraphlib-0.1.0a16}/activate_venv.ps1 +0 -0
  120. {quickgraphlib-0.1.0a14 → quickgraphlib-0.1.0a16}/ci/find_qt.py +0 -0
  121. {quickgraphlib-0.1.0a14 → quickgraphlib-0.1.0a16}/ci/setup_qt.py +0 -0
  122. {quickgraphlib-0.1.0a14 → quickgraphlib-0.1.0a16}/docs/build_docs.py +0 -0
  123. {quickgraphlib-0.1.0a14 → quickgraphlib-0.1.0a16}/docs/config.qdocconf +0 -0
  124. {quickgraphlib-0.1.0a14 → quickgraphlib-0.1.0a16}/docs/style.css +0 -0
  125. {quickgraphlib-0.1.0a14 → quickgraphlib-0.1.0a16}/examples/AllTheAxes.png +0 -0
  126. {quickgraphlib-0.1.0a14 → quickgraphlib-0.1.0a16}/examples/AllTheAxes.qdoc +0 -0
  127. {quickgraphlib-0.1.0a14 → quickgraphlib-0.1.0a16}/examples/AllTheAxes.qml +0 -0
  128. {quickgraphlib-0.1.0a14 → quickgraphlib-0.1.0a16}/examples/BasicHistogram.png +0 -0
  129. {quickgraphlib-0.1.0a14 → quickgraphlib-0.1.0a16}/examples/BasicHistogram.qdoc +0 -0
  130. {quickgraphlib-0.1.0a14 → quickgraphlib-0.1.0a16}/examples/BasicHistogram.qml +0 -0
  131. {quickgraphlib-0.1.0a14 → quickgraphlib-0.1.0a16}/examples/BasicSinGraph.png +0 -0
  132. {quickgraphlib-0.1.0a14 → quickgraphlib-0.1.0a16}/examples/BasicSinGraph.qdoc +0 -0
  133. {quickgraphlib-0.1.0a14 → quickgraphlib-0.1.0a16}/examples/BasicSinGraph.qml +0 -0
  134. {quickgraphlib-0.1.0a14 → quickgraphlib-0.1.0a16}/examples/BasicSinGraphNoPrefabs.png +0 -0
  135. {quickgraphlib-0.1.0a14 → quickgraphlib-0.1.0a16}/examples/BasicSinGraphNoPrefabs.qdoc +0 -0
  136. {quickgraphlib-0.1.0a14 → quickgraphlib-0.1.0a16}/examples/BasicSinGraphNoPrefabs.qml +0 -0
  137. {quickgraphlib-0.1.0a14 → quickgraphlib-0.1.0a16}/examples/BuiltinColormaps.png +0 -0
  138. {quickgraphlib-0.1.0a14 → quickgraphlib-0.1.0a16}/examples/BuiltinColormaps.qdoc +0 -0
  139. {quickgraphlib-0.1.0a14 → quickgraphlib-0.1.0a16}/examples/BuiltinColormaps.qml +0 -0
  140. {quickgraphlib-0.1.0a14 → quickgraphlib-0.1.0a16}/examples/ColorMappedImages.png +0 -0
  141. {quickgraphlib-0.1.0a14 → quickgraphlib-0.1.0a16}/examples/ColorMappedImages.qdoc +0 -0
  142. {quickgraphlib-0.1.0a14 → quickgraphlib-0.1.0a16}/examples/ColorMappedImages.qml +0 -0
  143. {quickgraphlib-0.1.0a14 → quickgraphlib-0.1.0a16}/examples/ColorMesh.png +0 -0
  144. {quickgraphlib-0.1.0a14 → quickgraphlib-0.1.0a16}/examples/ColorMesh.qdoc +0 -0
  145. {quickgraphlib-0.1.0a14 → quickgraphlib-0.1.0a16}/examples/ColorMesh.qml +0 -0
  146. {quickgraphlib-0.1.0a14 → quickgraphlib-0.1.0a16}/examples/Complex.png +0 -0
  147. {quickgraphlib-0.1.0a14 → quickgraphlib-0.1.0a16}/examples/Complex.qdoc +0 -0
  148. {quickgraphlib-0.1.0a14 → quickgraphlib-0.1.0a16}/examples/Complex.qml +0 -0
  149. {quickgraphlib-0.1.0a14 → quickgraphlib-0.1.0a16}/examples/Contours.png +0 -0
  150. {quickgraphlib-0.1.0a14 → quickgraphlib-0.1.0a16}/examples/Contours.qdoc +0 -0
  151. {quickgraphlib-0.1.0a14 → quickgraphlib-0.1.0a16}/examples/Contours.qml +0 -0
  152. {quickgraphlib-0.1.0a14 → quickgraphlib-0.1.0a16}/examples/Conway.png +0 -0
  153. {quickgraphlib-0.1.0a14 → quickgraphlib-0.1.0a16}/examples/Conway.qdoc +0 -0
  154. {quickgraphlib-0.1.0a14 → quickgraphlib-0.1.0a16}/examples/Conway.qml +0 -0
  155. {quickgraphlib-0.1.0a14 → quickgraphlib-0.1.0a16}/examples/DarkSinGraph.png +0 -0
  156. {quickgraphlib-0.1.0a14 → quickgraphlib-0.1.0a16}/examples/DarkSinGraph.qdoc +0 -0
  157. {quickgraphlib-0.1.0a14 → quickgraphlib-0.1.0a16}/examples/DarkSinGraph.qml +0 -0
  158. {quickgraphlib-0.1.0a14 → quickgraphlib-0.1.0a16}/examples/DraggableRegion.png +0 -0
  159. {quickgraphlib-0.1.0a14 → quickgraphlib-0.1.0a16}/examples/DraggableRegion.qdoc +0 -0
  160. {quickgraphlib-0.1.0a14 → quickgraphlib-0.1.0a16}/examples/DraggableRegion.qml +0 -0
  161. {quickgraphlib-0.1.0a14 → quickgraphlib-0.1.0a16}/examples/ExampleGallery.png +0 -0
  162. {quickgraphlib-0.1.0a14 → quickgraphlib-0.1.0a16}/examples/ExampleGallery.qml +0 -0
  163. {quickgraphlib-0.1.0a14 → quickgraphlib-0.1.0a16}/examples/ImageAlignment.png +0 -0
  164. {quickgraphlib-0.1.0a14 → quickgraphlib-0.1.0a16}/examples/ImageAlignment.qdoc +0 -0
  165. {quickgraphlib-0.1.0a14 → quickgraphlib-0.1.0a16}/examples/ImageAlignment.qml +0 -0
  166. {quickgraphlib-0.1.0a14 → quickgraphlib-0.1.0a16}/examples/InvertedAxes.png +0 -0
  167. {quickgraphlib-0.1.0a14 → quickgraphlib-0.1.0a16}/examples/InvertedAxes.qdoc +0 -0
  168. {quickgraphlib-0.1.0a14 → quickgraphlib-0.1.0a16}/examples/InvertedAxes.qml +0 -0
  169. {quickgraphlib-0.1.0a14 → quickgraphlib-0.1.0a16}/examples/PeakButtons.png +0 -0
  170. {quickgraphlib-0.1.0a14 → quickgraphlib-0.1.0a16}/examples/PeakButtons.qdoc +0 -0
  171. {quickgraphlib-0.1.0a14 → quickgraphlib-0.1.0a16}/examples/PeakButtons.qml +0 -0
  172. {quickgraphlib-0.1.0a14 → quickgraphlib-0.1.0a16}/examples/ReadoutLine.png +0 -0
  173. {quickgraphlib-0.1.0a14 → quickgraphlib-0.1.0a16}/examples/ReadoutLine.qdoc +0 -0
  174. {quickgraphlib-0.1.0a14 → quickgraphlib-0.1.0a16}/examples/ReadoutLine.qml +0 -0
  175. {quickgraphlib-0.1.0a14 → quickgraphlib-0.1.0a16}/examples/ScalingGraph.png +0 -0
  176. {quickgraphlib-0.1.0a14 → quickgraphlib-0.1.0a16}/examples/ScalingGraph.qdoc +0 -0
  177. {quickgraphlib-0.1.0a14 → quickgraphlib-0.1.0a16}/examples/ScalingGraph.qml +0 -0
  178. {quickgraphlib-0.1.0a14 → quickgraphlib-0.1.0a16}/examples/Scatter.png +0 -0
  179. {quickgraphlib-0.1.0a14 → quickgraphlib-0.1.0a16}/examples/Scatter.qdoc +0 -0
  180. {quickgraphlib-0.1.0a14 → quickgraphlib-0.1.0a16}/examples/Scatter.qml +0 -0
  181. {quickgraphlib-0.1.0a14 → quickgraphlib-0.1.0a16}/examples/SpansAndLines.png +0 -0
  182. {quickgraphlib-0.1.0a14 → quickgraphlib-0.1.0a16}/examples/SpansAndLines.qdoc +0 -0
  183. {quickgraphlib-0.1.0a14 → quickgraphlib-0.1.0a16}/examples/SpansAndLines.qml +0 -0
  184. {quickgraphlib-0.1.0a14 → quickgraphlib-0.1.0a16}/examples/Subgraphs.png +0 -0
  185. {quickgraphlib-0.1.0a14 → quickgraphlib-0.1.0a16}/examples/Subgraphs.qdoc +0 -0
  186. {quickgraphlib-0.1.0a14 → quickgraphlib-0.1.0a16}/examples/Subgraphs.qml +0 -0
  187. {quickgraphlib-0.1.0a14 → quickgraphlib-0.1.0a16}/examples/TwinX.png +0 -0
  188. {quickgraphlib-0.1.0a14 → quickgraphlib-0.1.0a16}/examples/TwinX.qdoc +0 -0
  189. {quickgraphlib-0.1.0a14 → quickgraphlib-0.1.0a16}/examples/TwinX.qml +0 -0
  190. {quickgraphlib-0.1.0a14 → quickgraphlib-0.1.0a16}/examples/ZoomableAsImage.png +0 -0
  191. {quickgraphlib-0.1.0a14 → quickgraphlib-0.1.0a16}/examples/ZoomableAsImage.qdoc +0 -0
  192. {quickgraphlib-0.1.0a14 → quickgraphlib-0.1.0a16}/examples/ZoomableAsImage.qml +0 -0
  193. {quickgraphlib-0.1.0a14 → quickgraphlib-0.1.0a16}/examples/ZoomableAxes.png +0 -0
  194. {quickgraphlib-0.1.0a14 → quickgraphlib-0.1.0a16}/examples/ZoomableAxes.qdoc +0 -0
  195. {quickgraphlib-0.1.0a14 → quickgraphlib-0.1.0a16}/examples/ZoomableAxes.qml +0 -0
  196. {quickgraphlib-0.1.0a14 → quickgraphlib-0.1.0a16}/examples/__init__.py +0 -0
  197. {quickgraphlib-0.1.0a14 → quickgraphlib-0.1.0a16}/examples/conway.py +0 -0
  198. {quickgraphlib-0.1.0a14 → quickgraphlib-0.1.0a16}/examples/gallery.py +0 -0
  199. {quickgraphlib-0.1.0a14 → quickgraphlib-0.1.0a16}/setup_venv.ps1 +0 -0
  200. {quickgraphlib-0.1.0a14 → quickgraphlib-0.1.0a16}/tests/__init__.py +0 -0
  201. {quickgraphlib-0.1.0a14 → quickgraphlib-0.1.0a16}/tests/fonts/DejaVuSans-Bold.ttf +0 -0
  202. {quickgraphlib-0.1.0a14 → quickgraphlib-0.1.0a16}/tests/fonts/DejaVuSans-BoldOblique.ttf +0 -0
  203. {quickgraphlib-0.1.0a14 → quickgraphlib-0.1.0a16}/tests/fonts/DejaVuSans-Oblique.ttf +0 -0
  204. {quickgraphlib-0.1.0a14 → quickgraphlib-0.1.0a16}/tests/fonts/DejaVuSans.ttf +0 -0
  205. {quickgraphlib-0.1.0a14 → quickgraphlib-0.1.0a16}/tests/fonts/LICENSE +0 -0
  206. {quickgraphlib-0.1.0a14 → quickgraphlib-0.1.0a16}/tests/python_exporter.py +0 -0
  207. {quickgraphlib-0.1.0a14 → quickgraphlib-0.1.0a16}/tests/reference_images/AllTheAxes.png +0 -0
  208. {quickgraphlib-0.1.0a14 → quickgraphlib-0.1.0a16}/tests/reference_images/AllTheAxes_grab.png +0 -0
  209. {quickgraphlib-0.1.0a14 → quickgraphlib-0.1.0a16}/tests/reference_images/BasicHistogram.dat +0 -0
  210. {quickgraphlib-0.1.0a14 → quickgraphlib-0.1.0a16}/tests/reference_images/BasicHistogram.png +0 -0
  211. {quickgraphlib-0.1.0a14 → quickgraphlib-0.1.0a16}/tests/reference_images/BasicHistogram_grab.png +0 -0
  212. {quickgraphlib-0.1.0a14 → quickgraphlib-0.1.0a16}/tests/reference_images/BasicSinGraph.png +0 -0
  213. {quickgraphlib-0.1.0a14 → quickgraphlib-0.1.0a16}/tests/reference_images/BasicSinGraphNoPrefabs.png +0 -0
  214. {quickgraphlib-0.1.0a14 → quickgraphlib-0.1.0a16}/tests/reference_images/BasicSinGraphNoPrefabs_grab.png +0 -0
  215. {quickgraphlib-0.1.0a14 → quickgraphlib-0.1.0a16}/tests/reference_images/BasicSinGraph_grab.png +0 -0
  216. {quickgraphlib-0.1.0a14 → quickgraphlib-0.1.0a16}/tests/reference_images/BuiltinColormaps.dat +0 -0
  217. {quickgraphlib-0.1.0a14 → quickgraphlib-0.1.0a16}/tests/reference_images/BuiltinColormaps.png +0 -0
  218. {quickgraphlib-0.1.0a14 → quickgraphlib-0.1.0a16}/tests/reference_images/BuiltinColormaps_grab.png +0 -0
  219. {quickgraphlib-0.1.0a14 → quickgraphlib-0.1.0a16}/tests/reference_images/ColorMappedImages.dat +0 -0
  220. {quickgraphlib-0.1.0a14 → quickgraphlib-0.1.0a16}/tests/reference_images/ColorMappedImages.png +0 -0
  221. {quickgraphlib-0.1.0a14 → quickgraphlib-0.1.0a16}/tests/reference_images/ColorMappedImages_grab.png +0 -0
  222. {quickgraphlib-0.1.0a14 → quickgraphlib-0.1.0a16}/tests/reference_images/ColorMesh.dat +0 -0
  223. {quickgraphlib-0.1.0a14 → quickgraphlib-0.1.0a16}/tests/reference_images/ColorMesh.png +0 -0
  224. {quickgraphlib-0.1.0a14 → quickgraphlib-0.1.0a16}/tests/reference_images/ColorMesh_grab.png +0 -0
  225. {quickgraphlib-0.1.0a14 → quickgraphlib-0.1.0a16}/tests/reference_images/Complex.png +0 -0
  226. {quickgraphlib-0.1.0a14 → quickgraphlib-0.1.0a16}/tests/reference_images/Complex_grab.png +0 -0
  227. {quickgraphlib-0.1.0a14 → quickgraphlib-0.1.0a16}/tests/reference_images/Contours.png +0 -0
  228. {quickgraphlib-0.1.0a14 → quickgraphlib-0.1.0a16}/tests/reference_images/Contours_grab.png +0 -0
  229. {quickgraphlib-0.1.0a14 → quickgraphlib-0.1.0a16}/tests/reference_images/Conway.dat +0 -0
  230. {quickgraphlib-0.1.0a14 → quickgraphlib-0.1.0a16}/tests/reference_images/Conway.png +0 -0
  231. {quickgraphlib-0.1.0a14 → quickgraphlib-0.1.0a16}/tests/reference_images/Conway_grab.png +0 -0
  232. {quickgraphlib-0.1.0a14 → quickgraphlib-0.1.0a16}/tests/reference_images/DarkSinGraph.png +0 -0
  233. {quickgraphlib-0.1.0a14 → quickgraphlib-0.1.0a16}/tests/reference_images/DarkSinGraph_grab.png +0 -0
  234. {quickgraphlib-0.1.0a14 → quickgraphlib-0.1.0a16}/tests/reference_images/DraggableRegion.dat +0 -0
  235. {quickgraphlib-0.1.0a14 → quickgraphlib-0.1.0a16}/tests/reference_images/DraggableRegion.png +0 -0
  236. {quickgraphlib-0.1.0a14 → quickgraphlib-0.1.0a16}/tests/reference_images/DraggableRegion_grab.png +0 -0
  237. {quickgraphlib-0.1.0a14 → quickgraphlib-0.1.0a16}/tests/reference_images/ImageAlignment.dat +0 -0
  238. {quickgraphlib-0.1.0a14 → quickgraphlib-0.1.0a16}/tests/reference_images/ImageAlignment.png +0 -0
  239. {quickgraphlib-0.1.0a14 → quickgraphlib-0.1.0a16}/tests/reference_images/ImageAlignment_grab.png +0 -0
  240. {quickgraphlib-0.1.0a14 → quickgraphlib-0.1.0a16}/tests/reference_images/InvertedAxes.dat +0 -0
  241. {quickgraphlib-0.1.0a14 → quickgraphlib-0.1.0a16}/tests/reference_images/InvertedAxes.png +0 -0
  242. {quickgraphlib-0.1.0a14 → quickgraphlib-0.1.0a16}/tests/reference_images/InvertedAxes_grab.png +0 -0
  243. {quickgraphlib-0.1.0a14 → quickgraphlib-0.1.0a16}/tests/reference_images/PeakButtons.dat +0 -0
  244. {quickgraphlib-0.1.0a14 → quickgraphlib-0.1.0a16}/tests/reference_images/PeakButtons.png +0 -0
  245. {quickgraphlib-0.1.0a14 → quickgraphlib-0.1.0a16}/tests/reference_images/PeakButtons_grab.png +0 -0
  246. {quickgraphlib-0.1.0a14 → quickgraphlib-0.1.0a16}/tests/reference_images/ReadoutLine.dat +0 -0
  247. {quickgraphlib-0.1.0a14 → quickgraphlib-0.1.0a16}/tests/reference_images/ReadoutLine.png +0 -0
  248. {quickgraphlib-0.1.0a14 → quickgraphlib-0.1.0a16}/tests/reference_images/ReadoutLine_grab.png +0 -0
  249. {quickgraphlib-0.1.0a14 → quickgraphlib-0.1.0a16}/tests/reference_images/ScalingGraph.dat +0 -0
  250. {quickgraphlib-0.1.0a14 → quickgraphlib-0.1.0a16}/tests/reference_images/ScalingGraph.png +0 -0
  251. {quickgraphlib-0.1.0a14 → quickgraphlib-0.1.0a16}/tests/reference_images/ScalingGraph_grab.png +0 -0
  252. {quickgraphlib-0.1.0a14 → quickgraphlib-0.1.0a16}/tests/reference_images/Scatter.dat +0 -0
  253. {quickgraphlib-0.1.0a14 → quickgraphlib-0.1.0a16}/tests/reference_images/Scatter.png +0 -0
  254. {quickgraphlib-0.1.0a14 → quickgraphlib-0.1.0a16}/tests/reference_images/Scatter_grab.png +0 -0
  255. {quickgraphlib-0.1.0a14 → quickgraphlib-0.1.0a16}/tests/reference_images/SpansAndLines.dat +0 -0
  256. {quickgraphlib-0.1.0a14 → quickgraphlib-0.1.0a16}/tests/reference_images/SpansAndLines.png +0 -0
  257. {quickgraphlib-0.1.0a14 → quickgraphlib-0.1.0a16}/tests/reference_images/SpansAndLines_grab.png +0 -0
  258. {quickgraphlib-0.1.0a14 → quickgraphlib-0.1.0a16}/tests/reference_images/Subgraphs.dat +0 -0
  259. {quickgraphlib-0.1.0a14 → quickgraphlib-0.1.0a16}/tests/reference_images/Subgraphs.png +0 -0
  260. {quickgraphlib-0.1.0a14 → quickgraphlib-0.1.0a16}/tests/reference_images/Subgraphs_grab.png +0 -0
  261. {quickgraphlib-0.1.0a14 → quickgraphlib-0.1.0a16}/tests/reference_images/TwinX.dat +0 -0
  262. {quickgraphlib-0.1.0a14 → quickgraphlib-0.1.0a16}/tests/reference_images/TwinX.png +0 -0
  263. {quickgraphlib-0.1.0a14 → quickgraphlib-0.1.0a16}/tests/reference_images/TwinX_grab.png +0 -0
  264. {quickgraphlib-0.1.0a14 → quickgraphlib-0.1.0a16}/tests/reference_images/ZoomableAsImage.png +0 -0
  265. {quickgraphlib-0.1.0a14 → quickgraphlib-0.1.0a16}/tests/reference_images/ZoomableAsImage_grab.png +0 -0
  266. {quickgraphlib-0.1.0a14 → quickgraphlib-0.1.0a16}/tests/reference_images/ZoomableAxes.png +0 -0
  267. {quickgraphlib-0.1.0a14 → quickgraphlib-0.1.0a16}/tests/reference_images/ZoomableAxes_grab.png +0 -0
  268. {quickgraphlib-0.1.0a14 → quickgraphlib-0.1.0a16}/tests/test_exports.py +0 -0
@@ -13,9 +13,9 @@ repos:
13
13
  entry: qDebug
14
14
  language: pygrep
15
15
  files: "(\\.(cpp|hpp))$"
16
- - id: black
17
- name: black
18
- entry: venv/Scripts/black.exe
16
+ - id: ruff
17
+ name: ruff
18
+ entry: venv/Scripts/ruff.exe format
19
19
  language: system
20
20
  types: [python]
21
21
  - id: gersemi
@@ -33,11 +33,6 @@ repos:
33
33
  # entry: venv/Scripts/pyside6-qmllint.exe
34
34
  # files: "\\.qml$"
35
35
  # language: system
36
- - id: isort
37
- name: isort
38
- entry: venv/Scripts/isort.exe --settings-file pyproject.toml
39
- language: system
40
- types: [python]
41
36
  # - id: pylint
42
37
  # name: pylint
43
38
  # entry: venv/Scripts/pylint.exe
@@ -15,6 +15,11 @@ else()
15
15
  add_compile_options(-Wextra -Wpedantic -fno-visibility-inlines-hidden)
16
16
  endif()
17
17
 
18
+ option(
19
+ ENABLE_PYTHON
20
+ "Enable python binding. C++ only if disabled. (default is on)"
21
+ ON
22
+ )
18
23
  option(ENABLE_STUB_GENERATION "Enable .pyi stub generation (defaults to on)" ON)
19
24
  option(
20
25
  ENABLE_MANYLINUX_BUILD
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.2
2
2
  Name: QuickGraphLib
3
- Version: 0.1.0a14
3
+ Version: 0.1.0a16
4
4
  Summary: A scientific graphing library for QtQuick
5
5
  Author-Email: Matthew Joyce <matthew.joyce@refeyn.com>
6
6
  License: MIT License
@@ -38,15 +38,16 @@ Project-URL: Homepage, https://github.com/refeyn/QuickGraphLib
38
38
  Project-URL: Issues, https://github.com/refeyn/QuickGraphLib/issues
39
39
  Project-URL: Documentation, https://refeyn.github.io/QuickGraphLib
40
40
  Project-URL: Source, https://github.com/refeyn/QuickGraphLib
41
+ Requires-Python: >=3.9
41
42
  Requires-Dist: PySide6==6.10.0
42
43
  Requires-Dist: contourpy
43
44
  Requires-Dist: numpy
44
45
  Provides-Extra: analyse
45
- Requires-Dist: black; extra == "analyse"
46
- Requires-Dist: pylint; extra == "analyse"
46
+ Requires-Dist: ruff; extra == "analyse"
47
47
  Requires-Dist: mypy; extra == "analyse"
48
48
  Requires-Dist: pre-commit; extra == "analyse"
49
49
  Requires-Dist: lxml; extra == "analyse"
50
+ Requires-Dist: gersemi; extra == "analyse"
50
51
  Requires-Dist: pytest; extra == "analyse"
51
52
  Requires-Dist: pytest-cov; extra == "analyse"
52
53
  Requires-Dist: scikit-build-core; extra == "analyse"
@@ -24,12 +24,14 @@ Item {
24
24
 
25
25
  /*!
26
26
  Whether MSAA antialiasing is enabled. This can help with rendering when the target display has a
27
- fractional scaling factor. It can also make rendering worse, especially with text. Defaults to \c false.
27
+ fractional scaling factor. It can also make rendering worse, especially with text.
28
+
29
+ \default false
28
30
  */
29
31
  property alias antialiasingEnabled: root.layer.enabled
30
32
 
31
33
  implicitHeight: 100
32
34
  implicitWidth: 100
33
- layer.enabled: false //
35
+ layer.enabled: false
34
36
  layer.samples: 2
35
37
  }
@@ -44,6 +44,8 @@ Item {
44
44
  Number of decimal points the ticks should show.
45
45
 
46
46
  \sa TickLabel::decimalPoints
47
+
48
+ \default 2
47
49
  */
48
50
  property int decimalPoints: 2
49
51
  /*!
@@ -53,6 +55,8 @@ Item {
53
55
  \value Axis.Direction.Right Axis to the right of the GraphArea
54
56
  \value Axis.Direction.Top Axis above of the GraphArea
55
57
  \value Axis.Direction.Bottom Axis below of the GraphArea
58
+
59
+ \default Axis.Direction.Left
56
60
  */
57
61
  property alias direction: helper.direction
58
62
  /*!
@@ -75,22 +79,32 @@ Item {
75
79
  The preferred renderer type for rendering the spine and ticks.
76
80
 
77
81
  \sa Shape::preferredRendererType
82
+
83
+ \default Shape.CurveRenderer
78
84
  */
79
85
  property alias preferredRendererType: shape.preferredRendererType
80
86
  /*!
81
87
  Whether to show a label for each tick.
88
+
89
+ \default true
82
90
  */
83
91
  property bool showTickLabels: true
84
92
  /*!
85
93
  Spacing between the axis label and the tick labels.
94
+
95
+ \default 4
86
96
  */
87
97
  property double spacing: 4
88
98
  /*!
89
99
  Color of the axis spine and ticks.
100
+
101
+ \default "black"
90
102
  */
91
103
  property alias strokeColor: myPath.strokeColor
92
104
  /*!
93
105
  Width of the axis spine and ticks.
106
+
107
+ \default 1
94
108
  */
95
109
  property alias strokeWidth: myPath.strokeWidth
96
110
  /*!
@@ -107,14 +121,20 @@ Item {
107
121
  }
108
122
  /*!
109
123
  The color of the tick labels.
124
+
125
+ \default labelColor
110
126
  */
111
127
  property color tickLabelColor: labelColor
112
128
  /*!
113
129
  The font of the tick labels.
130
+
131
+ \default labelFont
114
132
  */
115
133
  property font tickLabelFont: labelFont
116
134
  /*!
117
135
  The length of each tick.
136
+
137
+ \default 10
118
138
  */
119
139
  property alias tickLength: helper.tickLength
120
140
  /*!
@@ -11,6 +11,28 @@ set(QGL_QML_FILES
11
11
  ShapeRepeater.qml
12
12
  )
13
13
 
14
+ set(QGL_SOURCES
15
+ helpers/Helpers.cpp
16
+ helpers/Helpers.hpp
17
+ helpers/AxisHelper.hpp
18
+ helpers/AxisHelper.cpp
19
+ helpers/Foreign.hpp
20
+ helpers/ShapeRepeaterHelper.hpp
21
+ helpers/ShapeRepeaterHelper.cpp
22
+ ImageView.hpp
23
+ ImageView.cpp
24
+ ColorMaps.hpp
25
+ ColorMaps.cpp
26
+ DataTypes.hpp
27
+ DataTypes.cpp
28
+ QuickGraphLib.hpp
29
+ Global.hpp
30
+ )
31
+
32
+ if(ENABLE_PYTHON)
33
+ list(APPEND QGL_SOURCES bindings/Bindings.hpp)
34
+ endif()
35
+
14
36
  add_library(QuickGraphLibPlugin SHARED Plugin.cpp)
15
37
  target_link_libraries(QuickGraphLibPlugin PRIVATE Qt6::Gui)
16
38
  qt_add_qml_module(QuickGraphLib
@@ -22,11 +44,7 @@ qt_add_qml_module(QuickGraphLib
22
44
  NO_GENERATE_PLUGIN_SOURCE
23
45
  NO_PLUGIN_OPTIONAL
24
46
  DEPENDENCIES QtQuick
25
- SOURCES
26
- helpers/Helpers.cpp helpers/Helpers.hpp helpers/AxisHelper.hpp helpers/AxisHelper.cpp helpers/Foreign.hpp
27
- helpers/ShapeRepeaterHelper.hpp helpers/ShapeRepeaterHelper.cpp
28
- ImageView.hpp ImageView.cpp ColorMaps.hpp ColorMaps.cpp DataTypes.hpp DataTypes.cpp bindings/Bindings.hpp QuickGraphLib.hpp
29
- Global.hpp
47
+ SOURCES ${QGL_SOURCES}
30
48
  )
31
49
  set_property(
32
50
  TARGET QuickGraphLib
@@ -48,25 +66,6 @@ target_include_directories(
48
66
  PUBLIC ${CMAKE_CURRENT_SOURCE_DIR}/helpers
49
67
  )
50
68
 
51
- set(QGL_PYTHON_FILES
52
- __init__.py
53
- consts.py
54
- contours.py
55
- py.typed
56
- _version.py
57
- )
58
- foreach(PYTHON_FILE ${QGL_PYTHON_FILES})
59
- add_custom_command(
60
- OUTPUT ${CMAKE_CURRENT_BINARY_DIR}/${PYTHON_FILE}
61
- COMMAND
62
- ${CMAKE_COMMAND} -E copy ${CMAKE_CURRENT_SOURCE_DIR}/${PYTHON_FILE}
63
- ${CMAKE_CURRENT_BINARY_DIR}/${PYTHON_FILE}
64
- DEPENDS ${CMAKE_CURRENT_SOURCE_DIR}/${PYTHON_FILE}
65
- )
66
- endforeach()
67
- list(TRANSFORM QGL_PYTHON_FILES PREPEND "${CMAKE_CURRENT_BINARY_DIR}/")
68
- add_custom_target(QuickGraphLibPythonFiles ALL DEPENDS ${QGL_PYTHON_FILES})
69
-
70
69
  install(
71
70
  TARGETS QuickGraphLib
72
71
  RUNTIME DESTINATION ${INSTALL_SUBPATH}/QuickGraphLib
@@ -84,8 +83,35 @@ install(
84
83
  ${CMAKE_CURRENT_BINARY_DIR}/QuickGraphLib.qmltypes
85
84
  DESTINATION ${INSTALL_SUBPATH}/QuickGraphLib
86
85
  )
87
- install(FILES ${QGL_PYTHON_FILES} DESTINATION ${INSTALL_SUBPATH}/QuickGraphLib)
88
86
 
89
87
  add_subdirectory(PreFabs)
90
88
  add_subdirectory(GraphItems)
91
- add_subdirectory(bindings)
89
+
90
+ if(ENABLE_PYTHON)
91
+ set(QGL_PYTHON_FILES
92
+ __init__.py
93
+ consts.py
94
+ contours.py
95
+ py.typed
96
+ _version.py
97
+ )
98
+ foreach(PYTHON_FILE ${QGL_PYTHON_FILES})
99
+ add_custom_command(
100
+ OUTPUT ${CMAKE_CURRENT_BINARY_DIR}/${PYTHON_FILE}
101
+ COMMAND
102
+ ${CMAKE_COMMAND} -E copy
103
+ ${CMAKE_CURRENT_SOURCE_DIR}/${PYTHON_FILE}
104
+ ${CMAKE_CURRENT_BINARY_DIR}/${PYTHON_FILE}
105
+ DEPENDS ${CMAKE_CURRENT_SOURCE_DIR}/${PYTHON_FILE}
106
+ )
107
+ endforeach()
108
+ list(TRANSFORM QGL_PYTHON_FILES PREPEND "${CMAKE_CURRENT_BINARY_DIR}/")
109
+ add_custom_target(QuickGraphLibPythonFiles ALL DEPENDS ${QGL_PYTHON_FILES})
110
+
111
+ install(
112
+ FILES ${QGL_PYTHON_FILES}
113
+ DESTINATION ${INSTALL_SUBPATH}/QuickGraphLib
114
+ )
115
+
116
+ add_subdirectory(bindings)
117
+ endif()
@@ -16,8 +16,12 @@ import QtQuick.Shapes as QQS
16
16
 
17
17
  By default, the graph area sets \l {Shape::preferredRendererType} to \c {Shape.CurveRenderer}.
18
18
  This turns on high-quality antialiasing, which generally results in much better looking graphs.
19
- However, it may require more GPU performance, so switching this back to \c {Shape.GeometryRenderer}
20
- may help on low-power systems. See \l {Shape::rendererType} for more details.
19
+
20
+ \warning Using the curve renderer may require more GPU performance, so switching this back to \c {Shape.GeometryRenderer}
21
+ may help on low-power systems. The curve renderer is also newer, and fails to render correctly in
22
+ some cases (although it improves in each release).
23
+
24
+ \sa Shape::rendererType
21
25
  */
22
26
 
23
27
  QQS.Shape {
@@ -21,6 +21,8 @@ Rectangle {
21
21
  default property alias contentChildren: legend.children
22
22
  /*!
23
23
  The spacing between each legend item.
24
+
25
+ \default 0
24
26
  */
25
27
  property alias verticalSpacing: legend.spacing
26
28
 
@@ -17,18 +17,26 @@ Row {
17
17
 
18
18
  /*!
19
19
  Fill color below the line.
20
+
21
+ \default "transparent"
20
22
  */
21
23
  property color fillColor: "transparent"
22
24
  /*!
23
25
  Fill gradient below the line.
26
+
27
+ \default null
24
28
  */
25
29
  property Gradient fillGradient: null
26
30
  /*!
27
31
  Stroke color of the line.
32
+
33
+ \default "black"
28
34
  */
29
35
  property color strokeColor: "black"
30
36
  /*!
31
37
  Stroke width of the line.
38
+
39
+ \default 1
32
40
  */
33
41
  property real strokeWidth: 1
34
42
  /*!
@@ -37,10 +37,8 @@ target_include_directories(
37
37
  )
38
38
 
39
39
  install(
40
- TARGETS
41
- QuickGraphLibGraphItems
42
- DESTINATION
43
- ${INSTALL_SUBPATH}/QuickGraphLib/GraphItems
40
+ TARGETS QuickGraphLibGraphItems
41
+ DESTINATION ${INSTALL_SUBPATH}/QuickGraphLib/GraphItems
44
42
  )
45
43
  install(
46
44
  FILES ${QGL_GI_QML_FILES}
@@ -26,7 +26,7 @@ QuickGraphLib.ImageView {
26
26
  The rect (in data coordinates) the image shall occupy. By default, the center of
27
27
  the top-left pixel is the origin (the 0, 0 point). Adjust this property to position
28
28
  or scale the image differently. By default, \l ImageView::mirrorHorizontally and
29
- \l ImageView::mirrorVertically sre set based on this property.
29
+ \l ImageView::mirrorVertically are set based on this property.
30
30
  */
31
31
  property rect extents: Qt.rect(-0.5, sourceSize.height - 0.5, sourceSize.width, -sourceSize.height)
32
32
 
@@ -41,6 +41,8 @@ QQS.ShapePath {
41
41
  property alias heights: helper.heights
42
42
  /*!
43
43
  Whether to draw the histogram horizontally (i.e. \l bins are X positions) or vertically (i.e. \l bins are Y positions).
44
+
45
+ \default false
44
46
  */
45
47
  property alias vertical: helper.vertical
46
48
 
@@ -11,7 +11,8 @@ import QuickGraphLib as QuickGraphLib
11
11
  \inherits QtQuick::Shapes::ShapePath
12
12
  \brief Displays a line graph.
13
13
 
14
- Graph a line using a list of X,Y points. The style of the line can be adjusted using the \l {ShapePath::strokeColor} {strokeColor} and \l {ShapePath::strokeWidth} {strokeWidth} properties.
14
+ Graph a line using a list of X,Y points. The style of the line can be adjusted using the
15
+ \l {ShapePath::strokeColor} {strokeColor} and \l {ShapePath::strokeWidth} {strokeWidth} properties.
15
16
 
16
17
  \sa {Basic sin graph}
17
18
  */
@@ -3,7 +3,7 @@
3
3
 
4
4
  #include "HistogramHelper.hpp"
5
5
 
6
- HistogramHelper::HistogramHelper(QObject *parent) : QObject{parent} {
6
+ HistogramHelper::HistogramHelper(QObject* parent) : QObject{parent} {
7
7
  pathProp.setBinding([&]() -> QPolygonF {
8
8
  auto bins = binsProp.value();
9
9
  auto heights = heightsProp.value();
@@ -26,7 +26,7 @@
26
26
  \value Qt.KeepAspectRatio Preserve the aspect ratio
27
27
  \value Qt.KeepAspectRatioByExpanding Preserve the aspect ratio by cropping
28
28
 
29
- Defaults to \c Qt.IgnoreAspectRatio.
29
+ \default Qt.IgnoreAspectRatio
30
30
 
31
31
  \sa Qt::AspectRatioMode
32
32
  */
@@ -43,22 +43,33 @@
43
43
  \value Qt.AlignVCenter Center align (vertically)
44
44
  \value Qt.AlignBottom Bottom align
45
45
 
46
- Defaults to \c Qt.AlignCenter (which is \c {Qt.AlignHCenter | Qt.AlignVCenter}).
46
+ \default Qt.AlignHCenter | Qt.AlignVCenter
47
47
 
48
48
  \sa Qt::AlignmentFlag
49
49
  */
50
50
 
51
51
  /*!
52
52
  \qmlproperty bool ImageView::mirrorHorizontally
53
+
54
+ Mirror the image horizontally.
55
+
56
+ \default false
57
+ */
58
+
59
+ /*!
53
60
  \qmlproperty bool ImageView::mirrorVertically
54
61
 
55
- Mirror the image horizontally and/or vertically.
62
+ Mirror the image vertically.
63
+
64
+ \default false
56
65
  */
57
66
 
58
67
  /*!
59
68
  \qmlproperty bool ImageView::transpose
60
69
 
61
70
  Transpose the image.
71
+
72
+ \default false
62
73
  */
63
74
 
64
75
  /*!
@@ -76,7 +87,8 @@
76
87
  \qmlproperty bool ImageView::smooth
77
88
 
78
89
  Sets whether the displayed image should be pixelated or smooth (linearly interpolated).
79
- Unlike other \l {Item}s, this property defaults to \c false.
90
+
91
+ \default false
80
92
  */
81
93
 
82
94
  /*!
@@ -90,11 +102,11 @@
90
102
  or equal to max, it will be assigned the value at 1).
91
103
  To invert a colormap, swap the values of \l min and \l max.
92
104
 
93
- The default colormap is grayscale.
94
-
95
105
  \note This property has no effect when \l source is a QImage.
96
106
 
97
107
  \sa ColorMaps::colors
108
+
109
+ \default ColorMaps.Grayscale
98
110
  */
99
111
 
100
112
  /*!
@@ -114,17 +126,21 @@
114
126
  /*!
115
127
  \qmlproperty bool ImageView::autoMin
116
128
 
117
- Whether the minimum value for the colormap should be determined from \l source. Defaults to \c true.
129
+ Whether the minimum value for the colormap should be determined from \l source.
118
130
 
119
131
  \sa ImageView::min
132
+
133
+ \default true
120
134
  */
121
135
 
122
136
  /*!
123
137
  \qmlproperty bool ImageView::autoMax
124
138
 
125
- Whether the maximum value for the colormap should be determined from \l source. Defaults to \c true.
139
+ Whether the maximum value for the colormap should be determined from \l source.
126
140
 
127
141
  \sa ImageView::max
142
+
143
+ \default true
128
144
  */
129
145
 
130
146
  /*!
@@ -142,7 +158,7 @@
142
158
  If \l fillMode is \c Qt.IgnoreAspectRatio, this will equal \c {Qt.rect(0, 0, width, height)}.
143
159
  */
144
160
 
145
- ImageView::ImageView(QQuickItem *parent) : QQuickItem{parent} {
161
+ ImageView::ImageView(QQuickItem* parent) : QQuickItem{parent} {
146
162
  setFlags(QQuickItem::ItemHasContents);
147
163
  setSmooth(false);
148
164
 
@@ -213,7 +229,7 @@ void ImageView::_layout() {
213
229
  }
214
230
  }
215
231
 
216
- void ImageView::geometryChange(const QRectF &newGeometry, const QRectF &oldGeometry) {
232
+ void ImageView::geometryChange(const QRectF& newGeometry, const QRectF& oldGeometry) {
217
233
  QQuickItem::geometryChange(newGeometry, oldGeometry);
218
234
  _layout();
219
235
  }
@@ -224,9 +240,9 @@ struct ColormapStop {
224
240
  QRgb color;
225
241
  };
226
242
 
227
- QRgb toColor(qreal value, const std::vector<ColormapStop> &colormap) {
243
+ QRgb toColor(qreal value, const std::vector<ColormapStop>& colormap) {
228
244
  // Guaranteed to have at least one element in the colormap
229
- auto right = std::lower_bound(colormap.begin(), colormap.end(), value, [](const ColormapStop &stop, qreal value) {
245
+ auto right = std::lower_bound(colormap.begin(), colormap.end(), value, [](const ColormapStop& stop, qreal value) {
230
246
  return stop.value < value;
231
247
  });
232
248
  if (right == colormap.begin()) {
@@ -257,7 +273,7 @@ QRgb toColor(qreal value, const std::vector<ColormapStop> &colormap) {
257
273
  }
258
274
  }
259
275
 
260
- int indexForCoord(int x, int y, const QSize &size, bool transpose = false) {
276
+ int indexForCoord(int x, int y, const QSize& size, bool transpose = false) {
261
277
  if (transpose) {
262
278
  return y + x * size.height();
263
279
  }
@@ -269,7 +285,7 @@ int indexForCoord(int x, int y, const QSize &size, bool transpose = false) {
269
285
  std::vector<ColormapStop> buildColormap(QVariant cmapVar, qreal min, qreal max) {
270
286
  std::vector<ColormapStop> colormap;
271
287
  auto scale = max - min;
272
- if (auto gradientObj = cmapVar.value<QObject *>()) {
288
+ if (auto gradientObj = cmapVar.value<QObject*>()) {
273
289
  if (gradientObj && gradientObj->inherits("QQuickGradient")) {
274
290
  auto stops = QQmlListReference(gradientObj, "stops");
275
291
  for (auto stopsIndex = 0; stopsIndex < stops.size(); ++stopsIndex) {
@@ -291,7 +307,7 @@ std::vector<ColormapStop> buildColormap(QVariant cmapVar, qreal min, qreal max)
291
307
  if (cmap.length()) {
292
308
  auto step = scale / cmap.size();
293
309
  auto pos = min;
294
- for (const auto &stop : cmap) {
310
+ for (const auto& stop : cmap) {
295
311
  colormap.emplace_back(ColormapStop{pos, step, stop});
296
312
  pos += step;
297
313
  }
@@ -311,7 +327,7 @@ std::vector<ColormapStop> buildColormap(QVariant cmapVar, qreal min, qreal max)
311
327
  }
312
328
 
313
329
  std::optional<std::tuple<QImage, qreal, qreal>> convertToImageFrom1D(
314
- const QList<qreal> &converted, const QSize &size,
330
+ const QList<qreal>& converted, const QSize& size,
315
331
  std::tuple<QVariant, std::optional<qreal>, std::optional<qreal>> colormapArgs, bool transpose
316
332
  ) {
317
333
  if (size.width() * size.height() != converted.size()) {
@@ -331,7 +347,7 @@ std::optional<std::tuple<QImage, qreal, qreal>> convertToImageFrom1D(
331
347
  std::get<2>(colormapArgs).value_or(dataMax)
332
348
  );
333
349
  QImage image(size, QImage::Format_ARGB32_Premultiplied);
334
- QRgb *pixels = reinterpret_cast<QRgb *>(image.bits());
350
+ QRgb* pixels = reinterpret_cast<QRgb*>(image.bits());
335
351
  for (auto x = 0; x < size.width(); ++x) {
336
352
  for (auto y = 0; y < size.height(); ++y) {
337
353
  pixels[indexForCoord(x, y, size, transpose)] = toColor(converted[indexForCoord(x, y, size)], colormap);
@@ -342,18 +358,18 @@ std::optional<std::tuple<QImage, qreal, qreal>> convertToImageFrom1D(
342
358
  }
343
359
 
344
360
  std::optional<std::tuple<QImage, qreal, qreal>> convertToImageFrom2D(
345
- const QList<QList<qreal>> &converted, std::tuple<QVariant, std::optional<qreal>, std::optional<qreal>> colormapArgs,
361
+ const QList<QList<qreal>>& converted, std::tuple<QVariant, std::optional<qreal>, std::optional<qreal>> colormapArgs,
346
362
  bool transpose
347
363
  ) {
348
364
  QSize size(converted.isEmpty() ? 0 : converted[0].size(), converted.size());
349
- for (const auto &row : converted) {
365
+ for (const auto& row : converted) {
350
366
  if (row.size() != size.width()) {
351
367
  return {};
352
368
  }
353
369
  }
354
370
  auto dataMin = std::numeric_limits<qreal>::infinity(), dataMax = -std::numeric_limits<qreal>::infinity();
355
371
  if (!std::get<1>(colormapArgs).has_value() || !std::get<2>(colormapArgs).has_value()) {
356
- for (auto &row : converted) {
372
+ for (auto& row : converted) {
357
373
  for (auto v : row) {
358
374
  dataMin = std::min(dataMin, v);
359
375
  dataMax = std::max(dataMax, v);
@@ -364,9 +380,9 @@ std::optional<std::tuple<QImage, qreal, qreal>> convertToImageFrom2D(
364
380
  auto max = std::get<2>(colormapArgs).value_or(dataMax);
365
381
  auto colormap = buildColormap(std::get<0>(colormapArgs), min, max);
366
382
  QImage image(size, QImage::Format_ARGB32_Premultiplied);
367
- QRgb *pixels = reinterpret_cast<QRgb *>(image.bits());
383
+ QRgb* pixels = reinterpret_cast<QRgb*>(image.bits());
368
384
  for (auto y = 0; y < size.height(); ++y) {
369
- const auto &row = converted[y];
385
+ const auto& row = converted[y];
370
386
  for (auto x = 0; x < size.width(); ++x) {
371
387
  pixels[indexForCoord(x, y, size, transpose)] = toColor(row[x], colormap);
372
388
  }
@@ -375,7 +391,7 @@ std::optional<std::tuple<QImage, qreal, qreal>> convertToImageFrom2D(
375
391
  }
376
392
 
377
393
  std::optional<std::tuple<QImage, qreal, qreal>> convertToImage(
378
- const QVariant &data, QSize suggestedSize,
394
+ const QVariant& data, QSize suggestedSize,
379
395
  std::tuple<QVariant, std::optional<qreal>, std::optional<qreal>> colormapArgs, bool transpose
380
396
  ) {
381
397
  if (data.canConvert<QList<qreal>>()) {
@@ -392,7 +408,7 @@ std::optional<std::tuple<QImage, qreal, qreal>> convertToImage(
392
408
  if (halfWay[0].canConvert<qreal>()) {
393
409
  // 1D
394
410
  QList<qreal> converted;
395
- for (const auto &p : halfWay) {
411
+ for (const auto& p : halfWay) {
396
412
  converted.append(p.toDouble());
397
413
  }
398
414
  return convertToImageFrom1D(converted, suggestedSize, colormapArgs, transpose);
@@ -400,13 +416,13 @@ std::optional<std::tuple<QImage, qreal, qreal>> convertToImage(
400
416
  else {
401
417
  // 2D
402
418
  QList<QList<qreal>> converted;
403
- for (const auto &row : halfWay) {
419
+ for (const auto& row : halfWay) {
404
420
  if (row.canConvert<QList<qreal>>()) {
405
421
  converted.append(row.value<QList<qreal>>());
406
422
  }
407
423
  else if (row.canConvert<QVariantList>()) {
408
424
  QList<qreal> rowConverted;
409
- for (auto &item : row.value<QVariantList>()) {
425
+ for (auto& item : row.value<QVariantList>()) {
410
426
  rowConverted.append(item.toDouble());
411
427
  }
412
428
  converted.append(rowConverted);
@@ -433,8 +449,8 @@ void ImageView::updatePolish() {
433
449
  _coloredImage = source.value<QImage>().convertToFormat(QImage::Format_ARGB32_Premultiplied);
434
450
  if (transpose()) {
435
451
  QImage transposedImage(_coloredImage.height(), _coloredImage.width(), QImage::Format_ARGB32_Premultiplied);
436
- const QRgb *pixels = reinterpret_cast<const QRgb *>(_coloredImage.constBits());
437
- QRgb *transposedPixels = reinterpret_cast<QRgb *>(transposedImage.bits());
452
+ const QRgb* pixels = reinterpret_cast<const QRgb*>(_coloredImage.constBits());
453
+ QRgb* transposedPixels = reinterpret_cast<QRgb*>(transposedImage.bits());
438
454
  for (auto x = 0; x < _coloredImage.width(); ++x) {
439
455
  for (auto y = 0; y < _coloredImage.height(); ++y) {
440
456
  transposedPixels[indexForCoord(x, y, _coloredImage.size(), true)] =
@@ -466,7 +482,7 @@ void ImageView::updatePolish() {
466
482
  }
467
483
 
468
484
  setImplicitSize(_coloredImage.width(), _coloredImage.height());
469
- if (_sourceSize != _coloredImage.size()) {
485
+ if (!_coloredImage.isNull() && _sourceSize != _coloredImage.size()) {
470
486
  _sourceSize = _coloredImage.size();
471
487
  emit sourceSizeChanged();
472
488
  }
@@ -476,10 +492,10 @@ void ImageView::updatePolish() {
476
492
  update();
477
493
  }
478
494
 
479
- QSGNode *ImageView::updatePaintNode(QSGNode *node, UpdatePaintNodeData *) {
495
+ QSGNode* ImageView::updatePaintNode(QSGNode* node, UpdatePaintNodeData*) {
480
496
  Q_ASSERT(window() != nullptr);
481
497
 
482
- QSGImageNode *n = static_cast<QSGImageNode *>(node);
498
+ QSGImageNode* n = static_cast<QSGImageNode*>(node);
483
499
  if (!n) {
484
500
  n = window()->createImageNode();
485
501
  n->setOwnsTexture(true);
@@ -17,10 +17,8 @@ target_compile_definitions(
17
17
  target_link_libraries(QuickGraphLibPreFabs PRIVATE Qt6::Quick)
18
18
 
19
19
  install(
20
- TARGETS
21
- QuickGraphLibPreFabs
22
- DESTINATION
23
- ${INSTALL_SUBPATH}/QuickGraphLib/PreFabs
20
+ TARGETS QuickGraphLibPreFabs
21
+ DESTINATION ${INSTALL_SUBPATH}/QuickGraphLib/PreFabs
24
22
  )
25
23
  install(
26
24
  FILES ${QGL_PF_QML_FILES}
@@ -44,18 +44,24 @@ Item {
44
44
  Maximum number of ticks to show on the colorbar axis.
45
45
 
46
46
  \sa Helpers::tickLocator
47
+
48
+ \default 5
47
49
  */
48
50
  property int numColorbarTicks: 5
49
51
  /*!
50
52
  Maximum number of ticks to show on the X axis.
51
53
 
52
54
  \sa Helpers::tickLocator
55
+
56
+ \default 11
53
57
  */
54
58
  property int numXTicks: 11
55
59
  /*!
56
60
  Maximum number of ticks to show on the Y axis.
57
61
 
58
62
  \sa Helpers::tickLocator
63
+
64
+ \default 11
59
65
  */
60
66
  property int numYTicks: 11
61
67
  /*!