diff --git a/.gitignore b/.gitignore
index 0bfb625..3961125 100644
--- a/.gitignore
+++ b/.gitignore
@@ -2,10 +2,10 @@
build/
dist/
deb_dist/
-linux/flatpak/AppDir
-linux/flatpak/repo
-linux/flatpak/build-dir
-linux/flatpak/.flatpak-builder
+assets/linux/flatpak/AppDir
+assets/linux/flatpak/repo
+assets/linux/flatpak/build-dir
+assets/linux/flatpak/.flatpak-builder
*.snap
*.spec
*.zip
@@ -38,7 +38,7 @@ docs/html
*.lgg
# npm
-node_modules
-coverage/
-.coverage
-LogarithmPlotter/qml/eu/ad5001/LogarithmPlotter/js/index.mjs*
+common/node_modules
+common/coverage/
+common/.coverage
+runtime-pyside6/LogarithmPlotter/qml/eu/ad5001/LogarithmPlotter/js/index.mjs*
diff --git a/.gitmodules b/.gitmodules
index df81e42..042c634 100644
--- a/.gitmodules
+++ b/.gitmodules
@@ -1,3 +1,3 @@
-[submodule "LogarithmPlotter/qml/eu/ad5001/MixedMenu"]
- path = LogarithmPlotter/qml/eu/ad5001/MixedMenu
+[submodule "runtime-pyside6/LogarithmPlotter/qml/eu/ad5001/MixedMenu"]
+ path = runtime-pyside6/LogarithmPlotter/qml/eu/ad5001/MixedMenu
url = https://git.ad5001.eu/Ad5001/MixedMenu
diff --git a/LogarithmPlotter/i18n/lp_de.ts b/assets/i18n/lp_de.ts
similarity index 100%
rename from LogarithmPlotter/i18n/lp_de.ts
rename to assets/i18n/lp_de.ts
diff --git a/LogarithmPlotter/i18n/lp_en.ts b/assets/i18n/lp_en.ts
similarity index 100%
rename from LogarithmPlotter/i18n/lp_en.ts
rename to assets/i18n/lp_en.ts
diff --git a/LogarithmPlotter/i18n/lp_es.ts b/assets/i18n/lp_es.ts
similarity index 100%
rename from LogarithmPlotter/i18n/lp_es.ts
rename to assets/i18n/lp_es.ts
diff --git a/LogarithmPlotter/i18n/lp_fr.ts b/assets/i18n/lp_fr.ts
similarity index 100%
rename from LogarithmPlotter/i18n/lp_fr.ts
rename to assets/i18n/lp_fr.ts
diff --git a/LogarithmPlotter/i18n/lp_hu.ts b/assets/i18n/lp_hu.ts
similarity index 100%
rename from LogarithmPlotter/i18n/lp_hu.ts
rename to assets/i18n/lp_hu.ts
diff --git a/LogarithmPlotter/i18n/lp_nb_NO.ts b/assets/i18n/lp_nb_NO.ts
similarity index 100%
rename from LogarithmPlotter/i18n/lp_nb_NO.ts
rename to assets/i18n/lp_nb_NO.ts
diff --git a/LogarithmPlotter/i18n/lp_template.ts b/assets/i18n/lp_template.ts
similarity index 100%
rename from LogarithmPlotter/i18n/lp_template.ts
rename to assets/i18n/lp_template.ts
diff --git a/LogarithmPlotter/i18n/release.sh b/assets/i18n/release.sh
similarity index 100%
rename from LogarithmPlotter/i18n/release.sh
rename to assets/i18n/release.sh
diff --git a/LogarithmPlotter/i18n/update.sh b/assets/i18n/update.sh
similarity index 100%
rename from LogarithmPlotter/i18n/update.sh
rename to assets/i18n/update.sh
diff --git a/LogarithmPlotter/qml/eu/ad5001/LogarithmPlotter/icons/common/angle.svg b/assets/icons/common/angle.svg
similarity index 100%
rename from LogarithmPlotter/qml/eu/ad5001/LogarithmPlotter/icons/common/angle.svg
rename to assets/icons/common/angle.svg
diff --git a/LogarithmPlotter/qml/eu/ad5001/LogarithmPlotter/icons/common/appearance.svg b/assets/icons/common/appearance.svg
similarity index 100%
rename from LogarithmPlotter/qml/eu/ad5001/LogarithmPlotter/icons/common/appearance.svg
rename to assets/icons/common/appearance.svg
diff --git a/LogarithmPlotter/qml/eu/ad5001/LogarithmPlotter/icons/common/arrow.svg b/assets/icons/common/arrow.svg
similarity index 100%
rename from LogarithmPlotter/qml/eu/ad5001/LogarithmPlotter/icons/common/arrow.svg
rename to assets/icons/common/arrow.svg
diff --git a/LogarithmPlotter/qml/eu/ad5001/LogarithmPlotter/icons/common/close.svg b/assets/icons/common/close.svg
similarity index 100%
rename from LogarithmPlotter/qml/eu/ad5001/LogarithmPlotter/icons/common/close.svg
rename to assets/icons/common/close.svg
diff --git a/LogarithmPlotter/qml/eu/ad5001/LogarithmPlotter/icons/common/delete.svg b/assets/icons/common/delete.svg
similarity index 100%
rename from LogarithmPlotter/qml/eu/ad5001/LogarithmPlotter/icons/common/delete.svg
rename to assets/icons/common/delete.svg
diff --git a/LogarithmPlotter/qml/eu/ad5001/LogarithmPlotter/icons/common/label.svg b/assets/icons/common/label.svg
similarity index 100%
rename from LogarithmPlotter/qml/eu/ad5001/LogarithmPlotter/icons/common/label.svg
rename to assets/icons/common/label.svg
diff --git a/LogarithmPlotter/qml/eu/ad5001/LogarithmPlotter/icons/common/manual.svg b/assets/icons/common/manual.svg
similarity index 100%
rename from LogarithmPlotter/qml/eu/ad5001/LogarithmPlotter/icons/common/manual.svg
rename to assets/icons/common/manual.svg
diff --git a/LogarithmPlotter/qml/eu/ad5001/LogarithmPlotter/icons/common/new.svg b/assets/icons/common/new.svg
similarity index 100%
rename from LogarithmPlotter/qml/eu/ad5001/LogarithmPlotter/icons/common/new.svg
rename to assets/icons/common/new.svg
diff --git a/LogarithmPlotter/qml/eu/ad5001/LogarithmPlotter/icons/common/position.svg b/assets/icons/common/position.svg
similarity index 100%
rename from LogarithmPlotter/qml/eu/ad5001/LogarithmPlotter/icons/common/position.svg
rename to assets/icons/common/position.svg
diff --git a/LogarithmPlotter/qml/eu/ad5001/LogarithmPlotter/icons/common/settings.svg b/assets/icons/common/settings.svg
similarity index 100%
rename from LogarithmPlotter/qml/eu/ad5001/LogarithmPlotter/icons/common/settings.svg
rename to assets/icons/common/settings.svg
diff --git a/LogarithmPlotter/qml/eu/ad5001/LogarithmPlotter/icons/common/target.svg b/assets/icons/common/target.svg
similarity index 100%
rename from LogarithmPlotter/qml/eu/ad5001/LogarithmPlotter/icons/common/target.svg
rename to assets/icons/common/target.svg
diff --git a/LogarithmPlotter/qml/eu/ad5001/LogarithmPlotter/icons/common/text.svg b/assets/icons/common/text.svg
similarity index 100%
rename from LogarithmPlotter/qml/eu/ad5001/LogarithmPlotter/icons/common/text.svg
rename to assets/icons/common/text.svg
diff --git a/LogarithmPlotter/qml/eu/ad5001/LogarithmPlotter/icons/history/appearance.svg b/assets/icons/history/appearance.svg
similarity index 100%
rename from LogarithmPlotter/qml/eu/ad5001/LogarithmPlotter/icons/history/appearance.svg
rename to assets/icons/history/appearance.svg
diff --git a/LogarithmPlotter/qml/eu/ad5001/LogarithmPlotter/icons/history/create.svg b/assets/icons/history/create.svg
similarity index 100%
rename from LogarithmPlotter/qml/eu/ad5001/LogarithmPlotter/icons/history/create.svg
rename to assets/icons/history/create.svg
diff --git a/LogarithmPlotter/qml/eu/ad5001/LogarithmPlotter/icons/history/delete.svg b/assets/icons/history/delete.svg
similarity index 100%
rename from LogarithmPlotter/qml/eu/ad5001/LogarithmPlotter/icons/history/delete.svg
rename to assets/icons/history/delete.svg
diff --git a/LogarithmPlotter/qml/eu/ad5001/LogarithmPlotter/icons/history/modify.svg b/assets/icons/history/modify.svg
similarity index 100%
rename from LogarithmPlotter/qml/eu/ad5001/LogarithmPlotter/icons/history/modify.svg
rename to assets/icons/history/modify.svg
diff --git a/LogarithmPlotter/qml/eu/ad5001/LogarithmPlotter/icons/history/name.svg b/assets/icons/history/name.svg
similarity index 100%
rename from LogarithmPlotter/qml/eu/ad5001/LogarithmPlotter/icons/history/name.svg
rename to assets/icons/history/name.svg
diff --git a/LogarithmPlotter/qml/eu/ad5001/LogarithmPlotter/icons/history/position.svg b/assets/icons/history/position.svg
similarity index 100%
rename from LogarithmPlotter/qml/eu/ad5001/LogarithmPlotter/icons/history/position.svg
rename to assets/icons/history/position.svg
diff --git a/LogarithmPlotter/qml/eu/ad5001/LogarithmPlotter/icons/history/visibility.svg b/assets/icons/history/visibility.svg
similarity index 100%
rename from LogarithmPlotter/qml/eu/ad5001/LogarithmPlotter/icons/history/visibility.svg
rename to assets/icons/history/visibility.svg
diff --git a/LogarithmPlotter/qml/eu/ad5001/LogarithmPlotter/icons/logarithmplotter.svg b/assets/icons/logarithmplotter.svg
similarity index 100%
rename from LogarithmPlotter/qml/eu/ad5001/LogarithmPlotter/icons/logarithmplotter.svg
rename to assets/icons/logarithmplotter.svg
diff --git a/LogarithmPlotter/qml/eu/ad5001/LogarithmPlotter/icons/objects/Function.svg b/assets/icons/objects/Function.svg
similarity index 100%
rename from LogarithmPlotter/qml/eu/ad5001/LogarithmPlotter/icons/objects/Function.svg
rename to assets/icons/objects/Function.svg
diff --git a/LogarithmPlotter/qml/eu/ad5001/LogarithmPlotter/icons/objects/Gain Bode.svg b/assets/icons/objects/Gain Bode.svg
similarity index 100%
rename from LogarithmPlotter/qml/eu/ad5001/LogarithmPlotter/icons/objects/Gain Bode.svg
rename to assets/icons/objects/Gain Bode.svg
diff --git a/LogarithmPlotter/qml/eu/ad5001/LogarithmPlotter/icons/objects/Phase Bode.svg b/assets/icons/objects/Phase Bode.svg
similarity index 100%
rename from LogarithmPlotter/qml/eu/ad5001/LogarithmPlotter/icons/objects/Phase Bode.svg
rename to assets/icons/objects/Phase Bode.svg
diff --git a/LogarithmPlotter/qml/eu/ad5001/LogarithmPlotter/icons/objects/Point.svg b/assets/icons/objects/Point.svg
similarity index 100%
rename from LogarithmPlotter/qml/eu/ad5001/LogarithmPlotter/icons/objects/Point.svg
rename to assets/icons/objects/Point.svg
diff --git a/LogarithmPlotter/qml/eu/ad5001/LogarithmPlotter/icons/objects/Repartition.svg b/assets/icons/objects/Repartition.svg
similarity index 100%
rename from LogarithmPlotter/qml/eu/ad5001/LogarithmPlotter/icons/objects/Repartition.svg
rename to assets/icons/objects/Repartition.svg
diff --git a/LogarithmPlotter/qml/eu/ad5001/LogarithmPlotter/icons/objects/Sequence.svg b/assets/icons/objects/Sequence.svg
similarity index 100%
rename from LogarithmPlotter/qml/eu/ad5001/LogarithmPlotter/icons/objects/Sequence.svg
rename to assets/icons/objects/Sequence.svg
diff --git a/LogarithmPlotter/qml/eu/ad5001/LogarithmPlotter/icons/objects/Text.svg b/assets/icons/objects/Text.svg
similarity index 100%
rename from LogarithmPlotter/qml/eu/ad5001/LogarithmPlotter/icons/objects/Text.svg
rename to assets/icons/objects/Text.svg
diff --git a/LogarithmPlotter/qml/eu/ad5001/LogarithmPlotter/icons/objects/X Cursor.svg b/assets/icons/objects/X Cursor.svg
similarity index 100%
rename from LogarithmPlotter/qml/eu/ad5001/LogarithmPlotter/icons/objects/X Cursor.svg
rename to assets/icons/objects/X Cursor.svg
diff --git a/LogarithmPlotter/qml/eu/ad5001/LogarithmPlotter/icons/settings/color.svg b/assets/icons/settings/color.svg
similarity index 100%
rename from LogarithmPlotter/qml/eu/ad5001/LogarithmPlotter/icons/settings/color.svg
rename to assets/icons/settings/color.svg
diff --git a/LogarithmPlotter/qml/eu/ad5001/LogarithmPlotter/icons/settings/custom/Definition Domain.svg b/assets/icons/settings/custom/Definition Domain.svg
similarity index 100%
rename from LogarithmPlotter/qml/eu/ad5001/LogarithmPlotter/icons/settings/custom/Definition Domain.svg
rename to assets/icons/settings/custom/Definition Domain.svg
diff --git a/LogarithmPlotter/qml/eu/ad5001/LogarithmPlotter/icons/settings/custom/Destination Domain.svg b/assets/icons/settings/custom/Destination Domain.svg
similarity index 100%
rename from LogarithmPlotter/qml/eu/ad5001/LogarithmPlotter/icons/settings/custom/Destination Domain.svg
rename to assets/icons/settings/custom/Destination Domain.svg
diff --git a/LogarithmPlotter/qml/eu/ad5001/LogarithmPlotter/icons/settings/custom/Display Mode.svg b/assets/icons/settings/custom/Display Mode.svg
similarity index 100%
rename from LogarithmPlotter/qml/eu/ad5001/LogarithmPlotter/icons/settings/custom/Display Mode.svg
rename to assets/icons/settings/custom/Display Mode.svg
diff --git a/LogarithmPlotter/qml/eu/ad5001/LogarithmPlotter/icons/settings/custom/Display Style.svg b/assets/icons/settings/custom/Display Style.svg
similarity index 100%
rename from LogarithmPlotter/qml/eu/ad5001/LogarithmPlotter/icons/settings/custom/Display Style.svg
rename to assets/icons/settings/custom/Display Style.svg
diff --git a/LogarithmPlotter/qml/eu/ad5001/LogarithmPlotter/icons/settings/custom/Expression.svg b/assets/icons/settings/custom/Expression.svg
similarity index 100%
rename from LogarithmPlotter/qml/eu/ad5001/LogarithmPlotter/icons/settings/custom/Expression.svg
rename to assets/icons/settings/custom/Expression.svg
diff --git a/LogarithmPlotter/qml/eu/ad5001/LogarithmPlotter/icons/settings/custom/Gain.svg b/assets/icons/settings/custom/Gain.svg
similarity index 100%
rename from LogarithmPlotter/qml/eu/ad5001/LogarithmPlotter/icons/settings/custom/Gain.svg
rename to assets/icons/settings/custom/Gain.svg
diff --git a/LogarithmPlotter/qml/eu/ad5001/LogarithmPlotter/icons/settings/custom/Label Position.svg b/assets/icons/settings/custom/Label Position.svg
similarity index 100%
rename from LogarithmPlotter/qml/eu/ad5001/LogarithmPlotter/icons/settings/custom/Label Position.svg
rename to assets/icons/settings/custom/Label Position.svg
diff --git a/LogarithmPlotter/qml/eu/ad5001/LogarithmPlotter/icons/settings/custom/Label X.svg b/assets/icons/settings/custom/Label X.svg
similarity index 100%
rename from LogarithmPlotter/qml/eu/ad5001/LogarithmPlotter/icons/settings/custom/Label X.svg
rename to assets/icons/settings/custom/Label X.svg
diff --git a/LogarithmPlotter/qml/eu/ad5001/LogarithmPlotter/icons/settings/custom/Pass.svg b/assets/icons/settings/custom/Pass.svg
similarity index 100%
rename from LogarithmPlotter/qml/eu/ad5001/LogarithmPlotter/icons/settings/custom/Pass.svg
rename to assets/icons/settings/custom/Pass.svg
diff --git a/LogarithmPlotter/qml/eu/ad5001/LogarithmPlotter/icons/settings/custom/Phase.svg b/assets/icons/settings/custom/Phase.svg
similarity index 100%
rename from LogarithmPlotter/qml/eu/ad5001/LogarithmPlotter/icons/settings/custom/Phase.svg
rename to assets/icons/settings/custom/Phase.svg
diff --git a/LogarithmPlotter/qml/eu/ad5001/LogarithmPlotter/icons/settings/custom/Point Style.svg b/assets/icons/settings/custom/Point Style.svg
similarity index 100%
rename from LogarithmPlotter/qml/eu/ad5001/LogarithmPlotter/icons/settings/custom/Point Style.svg
rename to assets/icons/settings/custom/Point Style.svg
diff --git a/LogarithmPlotter/qml/eu/ad5001/LogarithmPlotter/icons/settings/custom/Rounding.svg b/assets/icons/settings/custom/Rounding.svg
similarity index 100%
rename from LogarithmPlotter/qml/eu/ad5001/LogarithmPlotter/icons/settings/custom/Rounding.svg
rename to assets/icons/settings/custom/Rounding.svg
diff --git a/LogarithmPlotter/qml/eu/ad5001/LogarithmPlotter/icons/settings/custom/Target Element.svg b/assets/icons/settings/custom/Target Element.svg
similarity index 100%
rename from LogarithmPlotter/qml/eu/ad5001/LogarithmPlotter/icons/settings/custom/Target Element.svg
rename to assets/icons/settings/custom/Target Element.svg
diff --git a/LogarithmPlotter/qml/eu/ad5001/LogarithmPlotter/icons/settings/custom/Target Value Position.svg b/assets/icons/settings/custom/Target Value Position.svg
similarity index 100%
rename from LogarithmPlotter/qml/eu/ad5001/LogarithmPlotter/icons/settings/custom/Target Value Position.svg
rename to assets/icons/settings/custom/Target Value Position.svg
diff --git a/LogarithmPlotter/qml/eu/ad5001/LogarithmPlotter/icons/settings/custom/Text.svg b/assets/icons/settings/custom/Text.svg
similarity index 100%
rename from LogarithmPlotter/qml/eu/ad5001/LogarithmPlotter/icons/settings/custom/Text.svg
rename to assets/icons/settings/custom/Text.svg
diff --git a/LogarithmPlotter/qml/eu/ad5001/LogarithmPlotter/icons/settings/custom/Unit.svg b/assets/icons/settings/custom/Unit.svg
similarity index 100%
rename from LogarithmPlotter/qml/eu/ad5001/LogarithmPlotter/icons/settings/custom/Unit.svg
rename to assets/icons/settings/custom/Unit.svg
diff --git a/LogarithmPlotter/qml/eu/ad5001/LogarithmPlotter/icons/settings/custom/X.svg b/assets/icons/settings/custom/X.svg
similarity index 100%
rename from LogarithmPlotter/qml/eu/ad5001/LogarithmPlotter/icons/settings/custom/X.svg
rename to assets/icons/settings/custom/X.svg
diff --git a/LogarithmPlotter/qml/eu/ad5001/LogarithmPlotter/icons/settings/custom/Y.svg b/assets/icons/settings/custom/Y.svg
similarity index 100%
rename from LogarithmPlotter/qml/eu/ad5001/LogarithmPlotter/icons/settings/custom/Y.svg
rename to assets/icons/settings/custom/Y.svg
diff --git a/LogarithmPlotter/qml/eu/ad5001/LogarithmPlotter/icons/settings/custom/ω_0.svg b/assets/icons/settings/custom/ω_0.svg
similarity index 100%
rename from LogarithmPlotter/qml/eu/ad5001/LogarithmPlotter/icons/settings/custom/ω_0.svg
rename to assets/icons/settings/custom/ω_0.svg
diff --git a/LogarithmPlotter/qml/eu/ad5001/LogarithmPlotter/icons/settings/label.svg b/assets/icons/settings/label.svg
similarity index 100%
rename from LogarithmPlotter/qml/eu/ad5001/LogarithmPlotter/icons/settings/label.svg
rename to assets/icons/settings/label.svg
diff --git a/LogarithmPlotter/qml/eu/ad5001/LogarithmPlotter/icons/settings/linewidth.svg b/assets/icons/settings/linewidth.svg
similarity index 100%
rename from LogarithmPlotter/qml/eu/ad5001/LogarithmPlotter/icons/settings/linewidth.svg
rename to assets/icons/settings/linewidth.svg
diff --git a/LogarithmPlotter/qml/eu/ad5001/LogarithmPlotter/icons/settings/text.svg b/assets/icons/settings/text.svg
similarity index 100%
rename from LogarithmPlotter/qml/eu/ad5001/LogarithmPlotter/icons/settings/text.svg
rename to assets/icons/settings/text.svg
diff --git a/LogarithmPlotter/qml/eu/ad5001/LogarithmPlotter/icons/settings/textsize.svg b/assets/icons/settings/textsize.svg
similarity index 100%
rename from LogarithmPlotter/qml/eu/ad5001/LogarithmPlotter/icons/settings/textsize.svg
rename to assets/icons/settings/textsize.svg
diff --git a/LogarithmPlotter/qml/eu/ad5001/LogarithmPlotter/icons/settings/timeline.svg b/assets/icons/settings/timeline.svg
similarity index 100%
rename from LogarithmPlotter/qml/eu/ad5001/LogarithmPlotter/icons/settings/timeline.svg
rename to assets/icons/settings/timeline.svg
diff --git a/LogarithmPlotter/qml/eu/ad5001/LogarithmPlotter/icons/settings/update.svg b/assets/icons/settings/update.svg
similarity index 100%
rename from LogarithmPlotter/qml/eu/ad5001/LogarithmPlotter/icons/settings/update.svg
rename to assets/icons/settings/update.svg
diff --git a/LogarithmPlotter/qml/eu/ad5001/LogarithmPlotter/icons/settings/xaxisstep.svg b/assets/icons/settings/xaxisstep.svg
similarity index 100%
rename from LogarithmPlotter/qml/eu/ad5001/LogarithmPlotter/icons/settings/xaxisstep.svg
rename to assets/icons/settings/xaxisstep.svg
diff --git a/LogarithmPlotter/qml/eu/ad5001/LogarithmPlotter/icons/settings/xlabel.svg b/assets/icons/settings/xlabel.svg
similarity index 100%
rename from LogarithmPlotter/qml/eu/ad5001/LogarithmPlotter/icons/settings/xlabel.svg
rename to assets/icons/settings/xlabel.svg
diff --git a/LogarithmPlotter/qml/eu/ad5001/LogarithmPlotter/icons/settings/xmax.svg b/assets/icons/settings/xmax.svg
similarity index 100%
rename from LogarithmPlotter/qml/eu/ad5001/LogarithmPlotter/icons/settings/xmax.svg
rename to assets/icons/settings/xmax.svg
diff --git a/LogarithmPlotter/qml/eu/ad5001/LogarithmPlotter/icons/settings/xmin.svg b/assets/icons/settings/xmin.svg
similarity index 100%
rename from LogarithmPlotter/qml/eu/ad5001/LogarithmPlotter/icons/settings/xmin.svg
rename to assets/icons/settings/xmin.svg
diff --git a/LogarithmPlotter/qml/eu/ad5001/LogarithmPlotter/icons/settings/xzoom.svg b/assets/icons/settings/xzoom.svg
similarity index 100%
rename from LogarithmPlotter/qml/eu/ad5001/LogarithmPlotter/icons/settings/xzoom.svg
rename to assets/icons/settings/xzoom.svg
diff --git a/LogarithmPlotter/qml/eu/ad5001/LogarithmPlotter/icons/settings/yaxisstep.svg b/assets/icons/settings/yaxisstep.svg
similarity index 100%
rename from LogarithmPlotter/qml/eu/ad5001/LogarithmPlotter/icons/settings/yaxisstep.svg
rename to assets/icons/settings/yaxisstep.svg
diff --git a/LogarithmPlotter/qml/eu/ad5001/LogarithmPlotter/icons/settings/ylabel.svg b/assets/icons/settings/ylabel.svg
similarity index 100%
rename from LogarithmPlotter/qml/eu/ad5001/LogarithmPlotter/icons/settings/ylabel.svg
rename to assets/icons/settings/ylabel.svg
diff --git a/LogarithmPlotter/qml/eu/ad5001/LogarithmPlotter/icons/settings/ymax.svg b/assets/icons/settings/ymax.svg
similarity index 100%
rename from LogarithmPlotter/qml/eu/ad5001/LogarithmPlotter/icons/settings/ymax.svg
rename to assets/icons/settings/ymax.svg
diff --git a/LogarithmPlotter/qml/eu/ad5001/LogarithmPlotter/icons/settings/ymin.svg b/assets/icons/settings/ymin.svg
similarity index 100%
rename from LogarithmPlotter/qml/eu/ad5001/LogarithmPlotter/icons/settings/ymin.svg
rename to assets/icons/settings/ymin.svg
diff --git a/LogarithmPlotter/qml/eu/ad5001/LogarithmPlotter/icons/settings/yzoom.svg b/assets/icons/settings/yzoom.svg
similarity index 100%
rename from LogarithmPlotter/qml/eu/ad5001/LogarithmPlotter/icons/settings/yzoom.svg
rename to assets/icons/settings/yzoom.svg
diff --git a/LogarithmPlotter/logarithmplotter.svg b/assets/logarithmplotter.svg
similarity index 100%
rename from LogarithmPlotter/logarithmplotter.svg
rename to assets/logarithmplotter.svg
diff --git a/logplotterfile.svg b/assets/logplotterfile.svg
similarity index 100%
rename from logplotterfile.svg
rename to assets/logplotterfile.svg
diff --git a/linux/debian/changelog b/assets/native/linux/debian/changelog
similarity index 100%
rename from linux/debian/changelog
rename to assets/native/linux/debian/changelog
diff --git a/linux/debian/control b/assets/native/linux/debian/control
similarity index 100%
rename from linux/debian/control
rename to assets/native/linux/debian/control
diff --git a/linux/debian/copyright b/assets/native/linux/debian/copyright
similarity index 100%
rename from linux/debian/copyright
rename to assets/native/linux/debian/copyright
diff --git a/linux/debian/depends b/assets/native/linux/debian/depends
similarity index 100%
rename from linux/debian/depends
rename to assets/native/linux/debian/depends
diff --git a/linux/debian/recommends b/assets/native/linux/debian/recommends
similarity index 100%
rename from linux/debian/recommends
rename to assets/native/linux/debian/recommends
diff --git a/linux/debian/rules b/assets/native/linux/debian/rules
similarity index 100%
rename from linux/debian/rules
rename to assets/native/linux/debian/rules
diff --git a/linux/eu.ad5001.LogarithmPlotter.metainfo.xml b/assets/native/linux/eu.ad5001.LogarithmPlotter.metainfo.xml
similarity index 100%
rename from linux/eu.ad5001.LogarithmPlotter.metainfo.xml
rename to assets/native/linux/eu.ad5001.LogarithmPlotter.metainfo.xml
diff --git a/linux/logarithmplotter.desktop b/assets/native/linux/logarithmplotter.desktop
similarity index 100%
rename from linux/logarithmplotter.desktop
rename to assets/native/linux/logarithmplotter.desktop
diff --git a/linux/snapcraft/launcher/launch-logarithmplotter b/assets/native/linux/snapcraft/launcher/launch-logarithmplotter
similarity index 100%
rename from linux/snapcraft/launcher/launch-logarithmplotter
rename to assets/native/linux/snapcraft/launcher/launch-logarithmplotter
diff --git a/linux/x-logarithm-plot.xml b/assets/native/linux/x-logarithm-plot.xml
similarity index 100%
rename from linux/x-logarithm-plot.xml
rename to assets/native/linux/x-logarithm-plot.xml
diff --git a/mac/Info.plist b/assets/native/mac/Info.plist
similarity index 100%
rename from mac/Info.plist
rename to assets/native/mac/Info.plist
diff --git a/mac/install-bg.png b/assets/native/mac/install-bg.png
similarity index 100%
rename from mac/install-bg.png
rename to assets/native/mac/install-bg.png
diff --git a/mac/install-bg.xcf b/assets/native/mac/install-bg.xcf
similarity index 100%
rename from mac/install-bg.xcf
rename to assets/native/mac/install-bg.xcf
diff --git a/mac/logarithmplotter.icns b/assets/native/mac/logarithmplotter.icns
similarity index 100%
rename from mac/logarithmplotter.icns
rename to assets/native/mac/logarithmplotter.icns
diff --git a/mac/logarithmplotter.iconset/icon_128x128.png b/assets/native/mac/logarithmplotter.iconset/icon_128x128.png
similarity index 100%
rename from mac/logarithmplotter.iconset/icon_128x128.png
rename to assets/native/mac/logarithmplotter.iconset/icon_128x128.png
diff --git a/mac/logarithmplotter.iconset/icon_16x16.png b/assets/native/mac/logarithmplotter.iconset/icon_16x16.png
similarity index 100%
rename from mac/logarithmplotter.iconset/icon_16x16.png
rename to assets/native/mac/logarithmplotter.iconset/icon_16x16.png
diff --git a/mac/logarithmplotter.iconset/icon_256x256.png b/assets/native/mac/logarithmplotter.iconset/icon_256x256.png
similarity index 100%
rename from mac/logarithmplotter.iconset/icon_256x256.png
rename to assets/native/mac/logarithmplotter.iconset/icon_256x256.png
diff --git a/mac/logarithmplotter.iconset/icon_32x32.png b/assets/native/mac/logarithmplotter.iconset/icon_32x32.png
similarity index 100%
rename from mac/logarithmplotter.iconset/icon_32x32.png
rename to assets/native/mac/logarithmplotter.iconset/icon_32x32.png
diff --git a/mac/logarithmplotter.iconset/icon_512x512.png b/assets/native/mac/logarithmplotter.iconset/icon_512x512.png
similarity index 100%
rename from mac/logarithmplotter.iconset/icon_512x512.png
rename to assets/native/mac/logarithmplotter.iconset/icon_512x512.png
diff --git a/mac/logarithmplotterfile.icns b/assets/native/mac/logarithmplotterfile.icns
similarity index 100%
rename from mac/logarithmplotterfile.icns
rename to assets/native/mac/logarithmplotterfile.icns
diff --git a/mac/logarithmplotterfile.iconset/icon_128x128.png b/assets/native/mac/logarithmplotterfile.iconset/icon_128x128.png
similarity index 100%
rename from mac/logarithmplotterfile.iconset/icon_128x128.png
rename to assets/native/mac/logarithmplotterfile.iconset/icon_128x128.png
diff --git a/mac/logarithmplotterfile.iconset/icon_128x128@2x.png b/assets/native/mac/logarithmplotterfile.iconset/icon_128x128@2x.png
similarity index 100%
rename from mac/logarithmplotterfile.iconset/icon_128x128@2x.png
rename to assets/native/mac/logarithmplotterfile.iconset/icon_128x128@2x.png
diff --git a/mac/logarithmplotterfile.iconset/icon_16x16.png b/assets/native/mac/logarithmplotterfile.iconset/icon_16x16.png
similarity index 100%
rename from mac/logarithmplotterfile.iconset/icon_16x16.png
rename to assets/native/mac/logarithmplotterfile.iconset/icon_16x16.png
diff --git a/mac/logarithmplotterfile.iconset/icon_16x16@2x.png b/assets/native/mac/logarithmplotterfile.iconset/icon_16x16@2x.png
similarity index 100%
rename from mac/logarithmplotterfile.iconset/icon_16x16@2x.png
rename to assets/native/mac/logarithmplotterfile.iconset/icon_16x16@2x.png
diff --git a/mac/logarithmplotterfile.iconset/icon_256x256.png b/assets/native/mac/logarithmplotterfile.iconset/icon_256x256.png
similarity index 100%
rename from mac/logarithmplotterfile.iconset/icon_256x256.png
rename to assets/native/mac/logarithmplotterfile.iconset/icon_256x256.png
diff --git a/mac/logarithmplotterfile.iconset/icon_256x256@2x.png b/assets/native/mac/logarithmplotterfile.iconset/icon_256x256@2x.png
similarity index 100%
rename from mac/logarithmplotterfile.iconset/icon_256x256@2x.png
rename to assets/native/mac/logarithmplotterfile.iconset/icon_256x256@2x.png
diff --git a/mac/logarithmplotterfile.iconset/icon_32x32.png b/assets/native/mac/logarithmplotterfile.iconset/icon_32x32.png
similarity index 100%
rename from mac/logarithmplotterfile.iconset/icon_32x32.png
rename to assets/native/mac/logarithmplotterfile.iconset/icon_32x32.png
diff --git a/mac/logarithmplotterfile.iconset/icon_32x32@2x.png b/assets/native/mac/logarithmplotterfile.iconset/icon_32x32@2x.png
similarity index 100%
rename from mac/logarithmplotterfile.iconset/icon_32x32@2x.png
rename to assets/native/mac/logarithmplotterfile.iconset/icon_32x32@2x.png
diff --git a/mac/logarithmplotterfile.iconset/icon_512x512.png b/assets/native/mac/logarithmplotterfile.iconset/icon_512x512.png
similarity index 100%
rename from mac/logarithmplotterfile.iconset/icon_512x512.png
rename to assets/native/mac/logarithmplotterfile.iconset/icon_512x512.png
diff --git a/mac/logarithmplotterfile.iconset/icon_512x512@2x.png b/assets/native/mac/logarithmplotterfile.iconset/icon_512x512@2x.png
similarity index 100%
rename from mac/logarithmplotterfile.iconset/icon_512x512@2x.png
rename to assets/native/mac/logarithmplotterfile.iconset/icon_512x512@2x.png
diff --git a/win/inst_banner.bmp b/assets/native/win/inst_banner.bmp
similarity index 100%
rename from win/inst_banner.bmp
rename to assets/native/win/inst_banner.bmp
diff --git a/win/installer.nsi b/assets/native/win/installer.nsi
similarity index 99%
rename from win/installer.nsi
rename to assets/native/win/installer.nsi
index 58261ff..ebb84c9 100644
--- a/win/installer.nsi
+++ b/assets/native/win/installer.nsi
@@ -14,7 +14,7 @@ Unicode True
!define VERSION_SHORT "0.6.0"
!define APP_VERSION "${VERSION_SHORT}.0"
!define COPYRIGHT "Ad5001 (c) 2021-2024"
-!define DESCRIPTION "Create graphs with logarithm scales."
+!define DESCRIPTION "Create graphs with logarithmic scales."
!define REG_UNINSTALL "Software\Microsoft\Windows\CurrentVersion\Uninstall\LogarithmPlotter"
!define REG_APPPATHS "Software\Microsoft\Windows\CurrentVersion\App Paths\logarithmplotter.exe"
diff --git a/win/logarithmplotter.ico b/assets/native/win/logarithmplotter.ico
similarity index 100%
rename from win/logarithmplotter.ico
rename to assets/native/win/logarithmplotter.ico
diff --git a/ci/drone.yml b/ci/drone.yml
index 4ff14ff..2800cb6 100644
--- a/ci/drone.yml
+++ b/ci/drone.yml
@@ -18,8 +18,7 @@ steps:
- apt update
- apt install -y qtchooser qttools5-dev-tools
# Start building
- - cd LogarithmPlotter/i18n && bash release.sh && cd ../..
- - npm run build
+ - bash scripts/build.sh
when:
event: [ push, tag ]
diff --git a/.mocharc.jsonc b/common/.mocharc.jsonc
similarity index 100%
rename from .mocharc.jsonc
rename to common/.mocharc.jsonc
diff --git a/babel.config.json b/common/babel.config.json
similarity index 100%
rename from babel.config.json
rename to common/babel.config.json
diff --git a/package-lock.json b/common/package-lock.json
similarity index 100%
rename from package-lock.json
rename to common/package-lock.json
diff --git a/package.json b/common/package.json
similarity index 95%
rename from package.json
rename to common/package.json
index aaa4841..9ef203c 100644
--- a/package.json
+++ b/common/package.json
@@ -5,7 +5,7 @@
"main": "LogarithmPlotter/qml/eu/ad5001/LogarithmPlotter/js/autoload.mjs",
"scripts": {
"build": "rollup --config rollup.config.mjs",
- "test": "c8 mocha tests/js/**/*.mjs"
+ "test": "c8 mocha test/**/*.mjs"
},
"repository": {
"type": "git",
diff --git a/rollup.config.mjs b/common/rollup.config.mjs
similarity index 88%
rename from rollup.config.mjs
rename to common/rollup.config.mjs
index 892c9fb..6a18a41 100644
--- a/rollup.config.mjs
+++ b/common/rollup.config.mjs
@@ -21,12 +21,13 @@ import commonjs from "@rollup/plugin-commonjs"
import { babel } from "@rollup/plugin-babel"
import cleanup from "rollup-plugin-cleanup"
-const path = "LogarithmPlotter/qml/eu/ad5001/LogarithmPlotter/js"
+const src = "./src/index.mjs"
+const dest = "../build/runtime-pyside6/LogarithmPlotter/qml/eu/ad5001/LogarithmPlotter/js/index.mjs"
export default {
- input: `${path}/autoload.mjs`,
+ input: src,
output: {
- file: `${path}/index.mjs`,
+ file: dest,
compact: false,
sourcemap: true,
format: "es"
diff --git a/LogarithmPlotter/qml/eu/ad5001/LogarithmPlotter/js/history/color.mjs b/common/src/history/color.mjs
similarity index 100%
rename from LogarithmPlotter/qml/eu/ad5001/LogarithmPlotter/js/history/color.mjs
rename to common/src/history/color.mjs
diff --git a/LogarithmPlotter/qml/eu/ad5001/LogarithmPlotter/js/history/common.mjs b/common/src/history/common.mjs
similarity index 100%
rename from LogarithmPlotter/qml/eu/ad5001/LogarithmPlotter/js/history/common.mjs
rename to common/src/history/common.mjs
diff --git a/LogarithmPlotter/qml/eu/ad5001/LogarithmPlotter/js/history/create.mjs b/common/src/history/create.mjs
similarity index 100%
rename from LogarithmPlotter/qml/eu/ad5001/LogarithmPlotter/js/history/create.mjs
rename to common/src/history/create.mjs
diff --git a/LogarithmPlotter/qml/eu/ad5001/LogarithmPlotter/js/history/delete.mjs b/common/src/history/delete.mjs
similarity index 100%
rename from LogarithmPlotter/qml/eu/ad5001/LogarithmPlotter/js/history/delete.mjs
rename to common/src/history/delete.mjs
diff --git a/LogarithmPlotter/qml/eu/ad5001/LogarithmPlotter/js/history/editproperty.mjs b/common/src/history/editproperty.mjs
similarity index 100%
rename from LogarithmPlotter/qml/eu/ad5001/LogarithmPlotter/js/history/editproperty.mjs
rename to common/src/history/editproperty.mjs
diff --git a/LogarithmPlotter/qml/eu/ad5001/LogarithmPlotter/js/history/index.mjs b/common/src/history/index.mjs
similarity index 100%
rename from LogarithmPlotter/qml/eu/ad5001/LogarithmPlotter/js/history/index.mjs
rename to common/src/history/index.mjs
diff --git a/LogarithmPlotter/qml/eu/ad5001/LogarithmPlotter/js/history/name.mjs b/common/src/history/name.mjs
similarity index 100%
rename from LogarithmPlotter/qml/eu/ad5001/LogarithmPlotter/js/history/name.mjs
rename to common/src/history/name.mjs
diff --git a/LogarithmPlotter/qml/eu/ad5001/LogarithmPlotter/js/history/position.mjs b/common/src/history/position.mjs
similarity index 100%
rename from LogarithmPlotter/qml/eu/ad5001/LogarithmPlotter/js/history/position.mjs
rename to common/src/history/position.mjs
diff --git a/LogarithmPlotter/qml/eu/ad5001/LogarithmPlotter/js/history/visibility.mjs b/common/src/history/visibility.mjs
similarity index 100%
rename from LogarithmPlotter/qml/eu/ad5001/LogarithmPlotter/js/history/visibility.mjs
rename to common/src/history/visibility.mjs
diff --git a/LogarithmPlotter/qml/eu/ad5001/LogarithmPlotter/js/autoload.mjs b/common/src/index.mjs
similarity index 100%
rename from LogarithmPlotter/qml/eu/ad5001/LogarithmPlotter/js/autoload.mjs
rename to common/src/index.mjs
diff --git a/LogarithmPlotter/qml/eu/ad5001/LogarithmPlotter/js/lib/expr-eval/expression.mjs b/common/src/lib/expr-eval/expression.mjs
similarity index 100%
rename from LogarithmPlotter/qml/eu/ad5001/LogarithmPlotter/js/lib/expr-eval/expression.mjs
rename to common/src/lib/expr-eval/expression.mjs
diff --git a/LogarithmPlotter/qml/eu/ad5001/LogarithmPlotter/js/lib/expr-eval/instruction.mjs b/common/src/lib/expr-eval/instruction.mjs
similarity index 100%
rename from LogarithmPlotter/qml/eu/ad5001/LogarithmPlotter/js/lib/expr-eval/instruction.mjs
rename to common/src/lib/expr-eval/instruction.mjs
diff --git a/LogarithmPlotter/qml/eu/ad5001/LogarithmPlotter/js/lib/expr-eval/parser.mjs b/common/src/lib/expr-eval/parser.mjs
similarity index 100%
rename from LogarithmPlotter/qml/eu/ad5001/LogarithmPlotter/js/lib/expr-eval/parser.mjs
rename to common/src/lib/expr-eval/parser.mjs
diff --git a/LogarithmPlotter/qml/eu/ad5001/LogarithmPlotter/js/lib/expr-eval/parserstate.mjs b/common/src/lib/expr-eval/parserstate.mjs
similarity index 100%
rename from LogarithmPlotter/qml/eu/ad5001/LogarithmPlotter/js/lib/expr-eval/parserstate.mjs
rename to common/src/lib/expr-eval/parserstate.mjs
diff --git a/LogarithmPlotter/qml/eu/ad5001/LogarithmPlotter/js/lib/expr-eval/polyfill.mjs b/common/src/lib/expr-eval/polyfill.mjs
similarity index 100%
rename from LogarithmPlotter/qml/eu/ad5001/LogarithmPlotter/js/lib/expr-eval/polyfill.mjs
rename to common/src/lib/expr-eval/polyfill.mjs
diff --git a/LogarithmPlotter/qml/eu/ad5001/LogarithmPlotter/js/lib/expr-eval/tokens.mjs b/common/src/lib/expr-eval/tokens.mjs
similarity index 100%
rename from LogarithmPlotter/qml/eu/ad5001/LogarithmPlotter/js/lib/expr-eval/tokens.mjs
rename to common/src/lib/expr-eval/tokens.mjs
diff --git a/LogarithmPlotter/qml/eu/ad5001/LogarithmPlotter/js/lib/polyfills/js.mjs b/common/src/lib/polyfills/js.mjs
similarity index 100%
rename from LogarithmPlotter/qml/eu/ad5001/LogarithmPlotter/js/lib/polyfills/js.mjs
rename to common/src/lib/polyfills/js.mjs
diff --git a/LogarithmPlotter/qml/eu/ad5001/LogarithmPlotter/js/lib/polyfills/qt.mjs b/common/src/lib/polyfills/qt.mjs
similarity index 100%
rename from LogarithmPlotter/qml/eu/ad5001/LogarithmPlotter/js/lib/polyfills/qt.mjs
rename to common/src/lib/polyfills/qt.mjs
diff --git a/LogarithmPlotter/qml/eu/ad5001/LogarithmPlotter/js/math/domain.mjs b/common/src/math/domain.mjs
similarity index 100%
rename from LogarithmPlotter/qml/eu/ad5001/LogarithmPlotter/js/math/domain.mjs
rename to common/src/math/domain.mjs
diff --git a/LogarithmPlotter/qml/eu/ad5001/LogarithmPlotter/js/math/expression.mjs b/common/src/math/expression.mjs
similarity index 100%
rename from LogarithmPlotter/qml/eu/ad5001/LogarithmPlotter/js/math/expression.mjs
rename to common/src/math/expression.mjs
diff --git a/LogarithmPlotter/qml/eu/ad5001/LogarithmPlotter/js/math/index.mjs b/common/src/math/index.mjs
similarity index 100%
rename from LogarithmPlotter/qml/eu/ad5001/LogarithmPlotter/js/math/index.mjs
rename to common/src/math/index.mjs
diff --git a/LogarithmPlotter/qml/eu/ad5001/LogarithmPlotter/js/math/sequence.mjs b/common/src/math/sequence.mjs
similarity index 100%
rename from LogarithmPlotter/qml/eu/ad5001/LogarithmPlotter/js/math/sequence.mjs
rename to common/src/math/sequence.mjs
diff --git a/LogarithmPlotter/qml/eu/ad5001/LogarithmPlotter/js/module/canvas.mjs b/common/src/module/canvas.mjs
similarity index 100%
rename from LogarithmPlotter/qml/eu/ad5001/LogarithmPlotter/js/module/canvas.mjs
rename to common/src/module/canvas.mjs
diff --git a/LogarithmPlotter/qml/eu/ad5001/LogarithmPlotter/js/module/common.mjs b/common/src/module/common.mjs
similarity index 100%
rename from LogarithmPlotter/qml/eu/ad5001/LogarithmPlotter/js/module/common.mjs
rename to common/src/module/common.mjs
diff --git a/LogarithmPlotter/qml/eu/ad5001/LogarithmPlotter/js/module/expreval.mjs b/common/src/module/expreval.mjs
similarity index 100%
rename from LogarithmPlotter/qml/eu/ad5001/LogarithmPlotter/js/module/expreval.mjs
rename to common/src/module/expreval.mjs
diff --git a/LogarithmPlotter/qml/eu/ad5001/LogarithmPlotter/js/module/history.mjs b/common/src/module/history.mjs
similarity index 100%
rename from LogarithmPlotter/qml/eu/ad5001/LogarithmPlotter/js/module/history.mjs
rename to common/src/module/history.mjs
diff --git a/LogarithmPlotter/qml/eu/ad5001/LogarithmPlotter/js/module/index.mjs b/common/src/module/index.mjs
similarity index 100%
rename from LogarithmPlotter/qml/eu/ad5001/LogarithmPlotter/js/module/index.mjs
rename to common/src/module/index.mjs
diff --git a/LogarithmPlotter/qml/eu/ad5001/LogarithmPlotter/js/module/interface.mjs b/common/src/module/interface.mjs
similarity index 100%
rename from LogarithmPlotter/qml/eu/ad5001/LogarithmPlotter/js/module/interface.mjs
rename to common/src/module/interface.mjs
diff --git a/LogarithmPlotter/qml/eu/ad5001/LogarithmPlotter/js/module/io.mjs b/common/src/module/io.mjs
similarity index 100%
rename from LogarithmPlotter/qml/eu/ad5001/LogarithmPlotter/js/module/io.mjs
rename to common/src/module/io.mjs
diff --git a/LogarithmPlotter/qml/eu/ad5001/LogarithmPlotter/js/module/latex.mjs b/common/src/module/latex.mjs
similarity index 100%
rename from LogarithmPlotter/qml/eu/ad5001/LogarithmPlotter/js/module/latex.mjs
rename to common/src/module/latex.mjs
diff --git a/LogarithmPlotter/qml/eu/ad5001/LogarithmPlotter/js/module/objects.mjs b/common/src/module/objects.mjs
similarity index 100%
rename from LogarithmPlotter/qml/eu/ad5001/LogarithmPlotter/js/module/objects.mjs
rename to common/src/module/objects.mjs
diff --git a/LogarithmPlotter/qml/eu/ad5001/LogarithmPlotter/js/module/preferences.mjs b/common/src/module/preferences.mjs
similarity index 100%
rename from LogarithmPlotter/qml/eu/ad5001/LogarithmPlotter/js/module/preferences.mjs
rename to common/src/module/preferences.mjs
diff --git a/LogarithmPlotter/qml/eu/ad5001/LogarithmPlotter/js/objs/autoload.mjs b/common/src/objs/autoload.mjs
similarity index 100%
rename from LogarithmPlotter/qml/eu/ad5001/LogarithmPlotter/js/objs/autoload.mjs
rename to common/src/objs/autoload.mjs
diff --git a/LogarithmPlotter/qml/eu/ad5001/LogarithmPlotter/js/objs/bodemagnitude.mjs b/common/src/objs/bodemagnitude.mjs
similarity index 100%
rename from LogarithmPlotter/qml/eu/ad5001/LogarithmPlotter/js/objs/bodemagnitude.mjs
rename to common/src/objs/bodemagnitude.mjs
diff --git a/LogarithmPlotter/qml/eu/ad5001/LogarithmPlotter/js/objs/bodemagnitudesum.mjs b/common/src/objs/bodemagnitudesum.mjs
similarity index 100%
rename from LogarithmPlotter/qml/eu/ad5001/LogarithmPlotter/js/objs/bodemagnitudesum.mjs
rename to common/src/objs/bodemagnitudesum.mjs
diff --git a/LogarithmPlotter/qml/eu/ad5001/LogarithmPlotter/js/objs/bodephase.mjs b/common/src/objs/bodephase.mjs
similarity index 100%
rename from LogarithmPlotter/qml/eu/ad5001/LogarithmPlotter/js/objs/bodephase.mjs
rename to common/src/objs/bodephase.mjs
diff --git a/LogarithmPlotter/qml/eu/ad5001/LogarithmPlotter/js/objs/bodephasesum.mjs b/common/src/objs/bodephasesum.mjs
similarity index 100%
rename from LogarithmPlotter/qml/eu/ad5001/LogarithmPlotter/js/objs/bodephasesum.mjs
rename to common/src/objs/bodephasesum.mjs
diff --git a/LogarithmPlotter/qml/eu/ad5001/LogarithmPlotter/js/objs/common.mjs b/common/src/objs/common.mjs
similarity index 100%
rename from LogarithmPlotter/qml/eu/ad5001/LogarithmPlotter/js/objs/common.mjs
rename to common/src/objs/common.mjs
diff --git a/LogarithmPlotter/qml/eu/ad5001/LogarithmPlotter/js/objs/distribution.mjs b/common/src/objs/distribution.mjs
similarity index 100%
rename from LogarithmPlotter/qml/eu/ad5001/LogarithmPlotter/js/objs/distribution.mjs
rename to common/src/objs/distribution.mjs
diff --git a/LogarithmPlotter/qml/eu/ad5001/LogarithmPlotter/js/objs/function.mjs b/common/src/objs/function.mjs
similarity index 100%
rename from LogarithmPlotter/qml/eu/ad5001/LogarithmPlotter/js/objs/function.mjs
rename to common/src/objs/function.mjs
diff --git a/LogarithmPlotter/qml/eu/ad5001/LogarithmPlotter/js/objs/point.mjs b/common/src/objs/point.mjs
similarity index 100%
rename from LogarithmPlotter/qml/eu/ad5001/LogarithmPlotter/js/objs/point.mjs
rename to common/src/objs/point.mjs
diff --git a/LogarithmPlotter/qml/eu/ad5001/LogarithmPlotter/js/objs/sequence.mjs b/common/src/objs/sequence.mjs
similarity index 100%
rename from LogarithmPlotter/qml/eu/ad5001/LogarithmPlotter/js/objs/sequence.mjs
rename to common/src/objs/sequence.mjs
diff --git a/LogarithmPlotter/qml/eu/ad5001/LogarithmPlotter/js/objs/text.mjs b/common/src/objs/text.mjs
similarity index 100%
rename from LogarithmPlotter/qml/eu/ad5001/LogarithmPlotter/js/objs/text.mjs
rename to common/src/objs/text.mjs
diff --git a/LogarithmPlotter/qml/eu/ad5001/LogarithmPlotter/js/objs/xcursor.mjs b/common/src/objs/xcursor.mjs
similarity index 100%
rename from LogarithmPlotter/qml/eu/ad5001/LogarithmPlotter/js/objs/xcursor.mjs
rename to common/src/objs/xcursor.mjs
diff --git a/LogarithmPlotter/qml/eu/ad5001/LogarithmPlotter/js/parameters.mjs b/common/src/parameters.mjs
similarity index 100%
rename from LogarithmPlotter/qml/eu/ad5001/LogarithmPlotter/js/parameters.mjs
rename to common/src/parameters.mjs
diff --git a/LogarithmPlotter/qml/eu/ad5001/LogarithmPlotter/js/parsing/README.md b/common/src/parsing/README.md
similarity index 100%
rename from LogarithmPlotter/qml/eu/ad5001/LogarithmPlotter/js/parsing/README.md
rename to common/src/parsing/README.md
diff --git a/LogarithmPlotter/qml/eu/ad5001/LogarithmPlotter/js/parsing/common.mjs b/common/src/parsing/common.mjs
similarity index 100%
rename from LogarithmPlotter/qml/eu/ad5001/LogarithmPlotter/js/parsing/common.mjs
rename to common/src/parsing/common.mjs
diff --git a/LogarithmPlotter/qml/eu/ad5001/LogarithmPlotter/js/parsing/index.mjs b/common/src/parsing/index.mjs
similarity index 100%
rename from LogarithmPlotter/qml/eu/ad5001/LogarithmPlotter/js/parsing/index.mjs
rename to common/src/parsing/index.mjs
diff --git a/LogarithmPlotter/qml/eu/ad5001/LogarithmPlotter/js/parsing/reference.mjs b/common/src/parsing/reference.mjs
similarity index 100%
rename from LogarithmPlotter/qml/eu/ad5001/LogarithmPlotter/js/parsing/reference.mjs
rename to common/src/parsing/reference.mjs
diff --git a/LogarithmPlotter/qml/eu/ad5001/LogarithmPlotter/js/parsing/tokenizer.mjs b/common/src/parsing/tokenizer.mjs
similarity index 100%
rename from LogarithmPlotter/qml/eu/ad5001/LogarithmPlotter/js/parsing/tokenizer.mjs
rename to common/src/parsing/tokenizer.mjs
diff --git a/LogarithmPlotter/qml/eu/ad5001/LogarithmPlotter/js/preferences/common.mjs b/common/src/preferences/common.mjs
similarity index 100%
rename from LogarithmPlotter/qml/eu/ad5001/LogarithmPlotter/js/preferences/common.mjs
rename to common/src/preferences/common.mjs
diff --git a/LogarithmPlotter/qml/eu/ad5001/LogarithmPlotter/js/preferences/default.mjs b/common/src/preferences/default.mjs
similarity index 100%
rename from LogarithmPlotter/qml/eu/ad5001/LogarithmPlotter/js/preferences/default.mjs
rename to common/src/preferences/default.mjs
diff --git a/LogarithmPlotter/qml/eu/ad5001/LogarithmPlotter/js/preferences/expression.mjs b/common/src/preferences/expression.mjs
similarity index 100%
rename from LogarithmPlotter/qml/eu/ad5001/LogarithmPlotter/js/preferences/expression.mjs
rename to common/src/preferences/expression.mjs
diff --git a/LogarithmPlotter/qml/eu/ad5001/LogarithmPlotter/js/preferences/general.mjs b/common/src/preferences/general.mjs
similarity index 100%
rename from LogarithmPlotter/qml/eu/ad5001/LogarithmPlotter/js/preferences/general.mjs
rename to common/src/preferences/general.mjs
diff --git a/LogarithmPlotter/qml/eu/ad5001/LogarithmPlotter/js/utils.mjs b/common/src/utils.mjs
similarity index 100%
rename from LogarithmPlotter/qml/eu/ad5001/LogarithmPlotter/js/utils.mjs
rename to common/src/utils.mjs
diff --git a/tests/js/hooks.mjs b/common/test/hooks.mjs
similarity index 100%
rename from tests/js/hooks.mjs
rename to common/test/hooks.mjs
diff --git a/tests/js/math/domain.mjs b/common/test/math/domain.mjs
similarity index 100%
rename from tests/js/math/domain.mjs
rename to common/test/math/domain.mjs
diff --git a/tests/js/mock/fs.mjs b/common/test/mock/fs.mjs
similarity index 100%
rename from tests/js/mock/fs.mjs
rename to common/test/mock/fs.mjs
diff --git a/tests/js/mock/helper.mjs b/common/test/mock/helper.mjs
similarity index 100%
rename from tests/js/mock/helper.mjs
rename to common/test/mock/helper.mjs
diff --git a/tests/js/mock/latex.mjs b/common/test/mock/latex.mjs
similarity index 100%
rename from tests/js/mock/latex.mjs
rename to common/test/mock/latex.mjs
diff --git a/tests/js/mock/qt.mjs b/common/test/mock/qt.mjs
similarity index 100%
rename from tests/js/mock/qt.mjs
rename to common/test/mock/qt.mjs
diff --git a/linux/application-x-logarithm-plot.svg b/linux/application-x-logarithm-plot.svg
deleted file mode 100644
index 580277f..0000000
--- a/linux/application-x-logarithm-plot.svg
+++ /dev/null
@@ -1,177 +0,0 @@
-
-
diff --git a/run.py b/run.py
index 7978a15..2fae168 100644
--- a/run.py
+++ b/run.py
@@ -15,22 +15,23 @@
* You should have received a copy of the GNU General Public License
* along with this program. If not, see .
"""
-def update_translations():
+from os import system, getcwd, path
+from sys import path as sys_path
+
+def build():
"""
Updates all binary translations
"""
- from os import system, getcwd, chdir, path
- pwd = getcwd()
- system("npm run build")
- chdir(path.join("LogarithmPlotter", "i18n"))
- system("./release.sh")
- chdir(pwd)
+ system("./scripts/build.sh")
def run():
- update_translations()
from LogarithmPlotter import logarithmplotter
logarithmplotter.run()
if __name__ == "__main__":
+ build()
+ logplotter_path = path.realpath(path.join(getcwd(), "build", "runtime-pyside6"))
+ print("Appending " + logplotter_path + " to path...")
+ sys_path.append(logplotter_path)
run()
diff --git a/LogarithmPlotter/__init__.py b/runtime-pyside6/LogarithmPlotter/__init__.py
similarity index 100%
rename from LogarithmPlotter/__init__.py
rename to runtime-pyside6/LogarithmPlotter/__init__.py
diff --git a/LogarithmPlotter/logarithmplotter.py b/runtime-pyside6/LogarithmPlotter/logarithmplotter.py
similarity index 100%
rename from LogarithmPlotter/logarithmplotter.py
rename to runtime-pyside6/LogarithmPlotter/logarithmplotter.py
diff --git a/logplotter.svg b/runtime-pyside6/LogarithmPlotter/logarithmplotter.svg
similarity index 100%
rename from logplotter.svg
rename to runtime-pyside6/LogarithmPlotter/logarithmplotter.svg
diff --git a/LogarithmPlotter/qml/eu/ad5001/LogarithmPlotter/AppMenuBar.qml b/runtime-pyside6/LogarithmPlotter/qml/eu/ad5001/LogarithmPlotter/AppMenuBar.qml
similarity index 100%
rename from LogarithmPlotter/qml/eu/ad5001/LogarithmPlotter/AppMenuBar.qml
rename to runtime-pyside6/LogarithmPlotter/qml/eu/ad5001/LogarithmPlotter/AppMenuBar.qml
diff --git a/LogarithmPlotter/qml/eu/ad5001/LogarithmPlotter/History/History.qml b/runtime-pyside6/LogarithmPlotter/qml/eu/ad5001/LogarithmPlotter/History/History.qml
similarity index 100%
rename from LogarithmPlotter/qml/eu/ad5001/LogarithmPlotter/History/History.qml
rename to runtime-pyside6/LogarithmPlotter/qml/eu/ad5001/LogarithmPlotter/History/History.qml
diff --git a/LogarithmPlotter/qml/eu/ad5001/LogarithmPlotter/History/HistoryBrowser.qml b/runtime-pyside6/LogarithmPlotter/qml/eu/ad5001/LogarithmPlotter/History/HistoryBrowser.qml
similarity index 100%
rename from LogarithmPlotter/qml/eu/ad5001/LogarithmPlotter/History/HistoryBrowser.qml
rename to runtime-pyside6/LogarithmPlotter/qml/eu/ad5001/LogarithmPlotter/History/HistoryBrowser.qml
diff --git a/LogarithmPlotter/qml/eu/ad5001/LogarithmPlotter/History/HistoryItem.qml b/runtime-pyside6/LogarithmPlotter/qml/eu/ad5001/LogarithmPlotter/History/HistoryItem.qml
similarity index 100%
rename from LogarithmPlotter/qml/eu/ad5001/LogarithmPlotter/History/HistoryItem.qml
rename to runtime-pyside6/LogarithmPlotter/qml/eu/ad5001/LogarithmPlotter/History/HistoryItem.qml
diff --git a/LogarithmPlotter/qml/eu/ad5001/LogarithmPlotter/History/qmldir b/runtime-pyside6/LogarithmPlotter/qml/eu/ad5001/LogarithmPlotter/History/qmldir
similarity index 100%
rename from LogarithmPlotter/qml/eu/ad5001/LogarithmPlotter/History/qmldir
rename to runtime-pyside6/LogarithmPlotter/qml/eu/ad5001/LogarithmPlotter/History/qmldir
diff --git a/LogarithmPlotter/qml/eu/ad5001/LogarithmPlotter/LogGraphCanvas.qml b/runtime-pyside6/LogarithmPlotter/qml/eu/ad5001/LogarithmPlotter/LogGraphCanvas.qml
similarity index 100%
rename from LogarithmPlotter/qml/eu/ad5001/LogarithmPlotter/LogGraphCanvas.qml
rename to runtime-pyside6/LogarithmPlotter/qml/eu/ad5001/LogarithmPlotter/LogGraphCanvas.qml
diff --git a/LogarithmPlotter/qml/eu/ad5001/LogarithmPlotter/LogarithmPlotter.qml b/runtime-pyside6/LogarithmPlotter/qml/eu/ad5001/LogarithmPlotter/LogarithmPlotter.qml
similarity index 100%
rename from LogarithmPlotter/qml/eu/ad5001/LogarithmPlotter/LogarithmPlotter.qml
rename to runtime-pyside6/LogarithmPlotter/qml/eu/ad5001/LogarithmPlotter/LogarithmPlotter.qml
diff --git a/LogarithmPlotter/qml/eu/ad5001/LogarithmPlotter/ObjectLists/Editor/CustomPropertyList.qml b/runtime-pyside6/LogarithmPlotter/qml/eu/ad5001/LogarithmPlotter/ObjectLists/Editor/CustomPropertyList.qml
similarity index 100%
rename from LogarithmPlotter/qml/eu/ad5001/LogarithmPlotter/ObjectLists/Editor/CustomPropertyList.qml
rename to runtime-pyside6/LogarithmPlotter/qml/eu/ad5001/LogarithmPlotter/ObjectLists/Editor/CustomPropertyList.qml
diff --git a/LogarithmPlotter/qml/eu/ad5001/LogarithmPlotter/ObjectLists/Editor/Dialog.qml b/runtime-pyside6/LogarithmPlotter/qml/eu/ad5001/LogarithmPlotter/ObjectLists/Editor/Dialog.qml
similarity index 100%
rename from LogarithmPlotter/qml/eu/ad5001/LogarithmPlotter/ObjectLists/Editor/Dialog.qml
rename to runtime-pyside6/LogarithmPlotter/qml/eu/ad5001/LogarithmPlotter/ObjectLists/Editor/Dialog.qml
diff --git a/LogarithmPlotter/qml/eu/ad5001/LogarithmPlotter/ObjectLists/Editor/qmldir b/runtime-pyside6/LogarithmPlotter/qml/eu/ad5001/LogarithmPlotter/ObjectLists/Editor/qmldir
similarity index 100%
rename from LogarithmPlotter/qml/eu/ad5001/LogarithmPlotter/ObjectLists/Editor/qmldir
rename to runtime-pyside6/LogarithmPlotter/qml/eu/ad5001/LogarithmPlotter/ObjectLists/Editor/qmldir
diff --git a/LogarithmPlotter/qml/eu/ad5001/LogarithmPlotter/ObjectLists/ObjectCreationGrid.qml b/runtime-pyside6/LogarithmPlotter/qml/eu/ad5001/LogarithmPlotter/ObjectLists/ObjectCreationGrid.qml
similarity index 100%
rename from LogarithmPlotter/qml/eu/ad5001/LogarithmPlotter/ObjectLists/ObjectCreationGrid.qml
rename to runtime-pyside6/LogarithmPlotter/qml/eu/ad5001/LogarithmPlotter/ObjectLists/ObjectCreationGrid.qml
diff --git a/LogarithmPlotter/qml/eu/ad5001/LogarithmPlotter/ObjectLists/ObjectLists.qml b/runtime-pyside6/LogarithmPlotter/qml/eu/ad5001/LogarithmPlotter/ObjectLists/ObjectLists.qml
similarity index 100%
rename from LogarithmPlotter/qml/eu/ad5001/LogarithmPlotter/ObjectLists/ObjectLists.qml
rename to runtime-pyside6/LogarithmPlotter/qml/eu/ad5001/LogarithmPlotter/ObjectLists/ObjectLists.qml
diff --git a/LogarithmPlotter/qml/eu/ad5001/LogarithmPlotter/ObjectLists/ObjectRow.qml b/runtime-pyside6/LogarithmPlotter/qml/eu/ad5001/LogarithmPlotter/ObjectLists/ObjectRow.qml
similarity index 100%
rename from LogarithmPlotter/qml/eu/ad5001/LogarithmPlotter/ObjectLists/ObjectRow.qml
rename to runtime-pyside6/LogarithmPlotter/qml/eu/ad5001/LogarithmPlotter/ObjectLists/ObjectRow.qml
diff --git a/LogarithmPlotter/qml/eu/ad5001/LogarithmPlotter/ObjectLists/qmldir b/runtime-pyside6/LogarithmPlotter/qml/eu/ad5001/LogarithmPlotter/ObjectLists/qmldir
similarity index 100%
rename from LogarithmPlotter/qml/eu/ad5001/LogarithmPlotter/ObjectLists/qmldir
rename to runtime-pyside6/LogarithmPlotter/qml/eu/ad5001/LogarithmPlotter/ObjectLists/qmldir
diff --git a/LogarithmPlotter/qml/eu/ad5001/LogarithmPlotter/PickLocationOverlay.qml b/runtime-pyside6/LogarithmPlotter/qml/eu/ad5001/LogarithmPlotter/PickLocationOverlay.qml
similarity index 100%
rename from LogarithmPlotter/qml/eu/ad5001/LogarithmPlotter/PickLocationOverlay.qml
rename to runtime-pyside6/LogarithmPlotter/qml/eu/ad5001/LogarithmPlotter/PickLocationOverlay.qml
diff --git a/LogarithmPlotter/qml/eu/ad5001/LogarithmPlotter/Popup/About.qml b/runtime-pyside6/LogarithmPlotter/qml/eu/ad5001/LogarithmPlotter/Popup/About.qml
similarity index 100%
rename from LogarithmPlotter/qml/eu/ad5001/LogarithmPlotter/Popup/About.qml
rename to runtime-pyside6/LogarithmPlotter/qml/eu/ad5001/LogarithmPlotter/Popup/About.qml
diff --git a/LogarithmPlotter/qml/eu/ad5001/LogarithmPlotter/Popup/Alert.qml b/runtime-pyside6/LogarithmPlotter/qml/eu/ad5001/LogarithmPlotter/Popup/Alert.qml
similarity index 100%
rename from LogarithmPlotter/qml/eu/ad5001/LogarithmPlotter/Popup/Alert.qml
rename to runtime-pyside6/LogarithmPlotter/qml/eu/ad5001/LogarithmPlotter/Popup/Alert.qml
diff --git a/LogarithmPlotter/qml/eu/ad5001/LogarithmPlotter/Popup/BaseDialog.qml b/runtime-pyside6/LogarithmPlotter/qml/eu/ad5001/LogarithmPlotter/Popup/BaseDialog.qml
similarity index 100%
rename from LogarithmPlotter/qml/eu/ad5001/LogarithmPlotter/Popup/BaseDialog.qml
rename to runtime-pyside6/LogarithmPlotter/qml/eu/ad5001/LogarithmPlotter/Popup/BaseDialog.qml
diff --git a/LogarithmPlotter/qml/eu/ad5001/LogarithmPlotter/Popup/Changelog.qml b/runtime-pyside6/LogarithmPlotter/qml/eu/ad5001/LogarithmPlotter/Popup/Changelog.qml
similarity index 100%
rename from LogarithmPlotter/qml/eu/ad5001/LogarithmPlotter/Popup/Changelog.qml
rename to runtime-pyside6/LogarithmPlotter/qml/eu/ad5001/LogarithmPlotter/Popup/Changelog.qml
diff --git a/LogarithmPlotter/qml/eu/ad5001/LogarithmPlotter/Popup/FileDialog.qml b/runtime-pyside6/LogarithmPlotter/qml/eu/ad5001/LogarithmPlotter/Popup/FileDialog.qml
similarity index 100%
rename from LogarithmPlotter/qml/eu/ad5001/LogarithmPlotter/Popup/FileDialog.qml
rename to runtime-pyside6/LogarithmPlotter/qml/eu/ad5001/LogarithmPlotter/Popup/FileDialog.qml
diff --git a/LogarithmPlotter/qml/eu/ad5001/LogarithmPlotter/Popup/GreetScreen.qml b/runtime-pyside6/LogarithmPlotter/qml/eu/ad5001/LogarithmPlotter/Popup/GreetScreen.qml
similarity index 100%
rename from LogarithmPlotter/qml/eu/ad5001/LogarithmPlotter/Popup/GreetScreen.qml
rename to runtime-pyside6/LogarithmPlotter/qml/eu/ad5001/LogarithmPlotter/Popup/GreetScreen.qml
diff --git a/LogarithmPlotter/qml/eu/ad5001/LogarithmPlotter/Popup/InsertCharacter.qml b/runtime-pyside6/LogarithmPlotter/qml/eu/ad5001/LogarithmPlotter/Popup/InsertCharacter.qml
similarity index 100%
rename from LogarithmPlotter/qml/eu/ad5001/LogarithmPlotter/Popup/InsertCharacter.qml
rename to runtime-pyside6/LogarithmPlotter/qml/eu/ad5001/LogarithmPlotter/Popup/InsertCharacter.qml
diff --git a/LogarithmPlotter/qml/eu/ad5001/LogarithmPlotter/Popup/Preferences.qml b/runtime-pyside6/LogarithmPlotter/qml/eu/ad5001/LogarithmPlotter/Popup/Preferences.qml
similarity index 100%
rename from LogarithmPlotter/qml/eu/ad5001/LogarithmPlotter/Popup/Preferences.qml
rename to runtime-pyside6/LogarithmPlotter/qml/eu/ad5001/LogarithmPlotter/Popup/Preferences.qml
diff --git a/LogarithmPlotter/qml/eu/ad5001/LogarithmPlotter/Popup/ThanksTo.qml b/runtime-pyside6/LogarithmPlotter/qml/eu/ad5001/LogarithmPlotter/Popup/ThanksTo.qml
similarity index 100%
rename from LogarithmPlotter/qml/eu/ad5001/LogarithmPlotter/Popup/ThanksTo.qml
rename to runtime-pyside6/LogarithmPlotter/qml/eu/ad5001/LogarithmPlotter/Popup/ThanksTo.qml
diff --git a/LogarithmPlotter/qml/eu/ad5001/LogarithmPlotter/Popup/qmldir b/runtime-pyside6/LogarithmPlotter/qml/eu/ad5001/LogarithmPlotter/Popup/qmldir
similarity index 100%
rename from LogarithmPlotter/qml/eu/ad5001/LogarithmPlotter/Popup/qmldir
rename to runtime-pyside6/LogarithmPlotter/qml/eu/ad5001/LogarithmPlotter/Popup/qmldir
diff --git a/LogarithmPlotter/qml/eu/ad5001/LogarithmPlotter/Setting/AutocompletionCategory.qml b/runtime-pyside6/LogarithmPlotter/qml/eu/ad5001/LogarithmPlotter/Setting/AutocompletionCategory.qml
similarity index 100%
rename from LogarithmPlotter/qml/eu/ad5001/LogarithmPlotter/Setting/AutocompletionCategory.qml
rename to runtime-pyside6/LogarithmPlotter/qml/eu/ad5001/LogarithmPlotter/Setting/AutocompletionCategory.qml
diff --git a/LogarithmPlotter/qml/eu/ad5001/LogarithmPlotter/Setting/ComboBoxSetting.qml b/runtime-pyside6/LogarithmPlotter/qml/eu/ad5001/LogarithmPlotter/Setting/ComboBoxSetting.qml
similarity index 100%
rename from LogarithmPlotter/qml/eu/ad5001/LogarithmPlotter/Setting/ComboBoxSetting.qml
rename to runtime-pyside6/LogarithmPlotter/qml/eu/ad5001/LogarithmPlotter/Setting/ComboBoxSetting.qml
diff --git a/LogarithmPlotter/qml/eu/ad5001/LogarithmPlotter/Setting/ExpressionEditor.qml b/runtime-pyside6/LogarithmPlotter/qml/eu/ad5001/LogarithmPlotter/Setting/ExpressionEditor.qml
similarity index 100%
rename from LogarithmPlotter/qml/eu/ad5001/LogarithmPlotter/Setting/ExpressionEditor.qml
rename to runtime-pyside6/LogarithmPlotter/qml/eu/ad5001/LogarithmPlotter/Setting/ExpressionEditor.qml
diff --git a/LogarithmPlotter/qml/eu/ad5001/LogarithmPlotter/Setting/Icon.qml b/runtime-pyside6/LogarithmPlotter/qml/eu/ad5001/LogarithmPlotter/Setting/Icon.qml
similarity index 100%
rename from LogarithmPlotter/qml/eu/ad5001/LogarithmPlotter/Setting/Icon.qml
rename to runtime-pyside6/LogarithmPlotter/qml/eu/ad5001/LogarithmPlotter/Setting/Icon.qml
diff --git a/LogarithmPlotter/qml/eu/ad5001/LogarithmPlotter/Setting/ListSetting.qml b/runtime-pyside6/LogarithmPlotter/qml/eu/ad5001/LogarithmPlotter/Setting/ListSetting.qml
similarity index 100%
rename from LogarithmPlotter/qml/eu/ad5001/LogarithmPlotter/Setting/ListSetting.qml
rename to runtime-pyside6/LogarithmPlotter/qml/eu/ad5001/LogarithmPlotter/Setting/ListSetting.qml
diff --git a/LogarithmPlotter/qml/eu/ad5001/LogarithmPlotter/Setting/TextSetting.qml b/runtime-pyside6/LogarithmPlotter/qml/eu/ad5001/LogarithmPlotter/Setting/TextSetting.qml
similarity index 100%
rename from LogarithmPlotter/qml/eu/ad5001/LogarithmPlotter/Setting/TextSetting.qml
rename to runtime-pyside6/LogarithmPlotter/qml/eu/ad5001/LogarithmPlotter/Setting/TextSetting.qml
diff --git a/LogarithmPlotter/qml/eu/ad5001/LogarithmPlotter/Setting/qmldir b/runtime-pyside6/LogarithmPlotter/qml/eu/ad5001/LogarithmPlotter/Setting/qmldir
similarity index 100%
rename from LogarithmPlotter/qml/eu/ad5001/LogarithmPlotter/Setting/qmldir
rename to runtime-pyside6/LogarithmPlotter/qml/eu/ad5001/LogarithmPlotter/Setting/qmldir
diff --git a/LogarithmPlotter/qml/eu/ad5001/LogarithmPlotter/Settings.qml b/runtime-pyside6/LogarithmPlotter/qml/eu/ad5001/LogarithmPlotter/Settings.qml
similarity index 100%
rename from LogarithmPlotter/qml/eu/ad5001/LogarithmPlotter/Settings.qml
rename to runtime-pyside6/LogarithmPlotter/qml/eu/ad5001/LogarithmPlotter/Settings.qml
diff --git a/LogarithmPlotter/qml/eu/ad5001/LogarithmPlotter/ViewPositionChangeOverlay.qml b/runtime-pyside6/LogarithmPlotter/qml/eu/ad5001/LogarithmPlotter/ViewPositionChangeOverlay.qml
similarity index 100%
rename from LogarithmPlotter/qml/eu/ad5001/LogarithmPlotter/ViewPositionChangeOverlay.qml
rename to runtime-pyside6/LogarithmPlotter/qml/eu/ad5001/LogarithmPlotter/ViewPositionChangeOverlay.qml
diff --git a/LogarithmPlotter/qml/eu/ad5001/LogarithmPlotter/qmldir b/runtime-pyside6/LogarithmPlotter/qml/eu/ad5001/LogarithmPlotter/qmldir
similarity index 100%
rename from LogarithmPlotter/qml/eu/ad5001/LogarithmPlotter/qmldir
rename to runtime-pyside6/LogarithmPlotter/qml/eu/ad5001/LogarithmPlotter/qmldir
diff --git a/LogarithmPlotter/qml/eu/ad5001/MixedMenu b/runtime-pyside6/LogarithmPlotter/qml/eu/ad5001/MixedMenu
similarity index 100%
rename from LogarithmPlotter/qml/eu/ad5001/MixedMenu
rename to runtime-pyside6/LogarithmPlotter/qml/eu/ad5001/MixedMenu
diff --git a/LogarithmPlotter/util/__init__.py b/runtime-pyside6/LogarithmPlotter/util/__init__.py
similarity index 100%
rename from LogarithmPlotter/util/__init__.py
rename to runtime-pyside6/LogarithmPlotter/util/__init__.py
diff --git a/LogarithmPlotter/util/config.py b/runtime-pyside6/LogarithmPlotter/util/config.py
similarity index 100%
rename from LogarithmPlotter/util/config.py
rename to runtime-pyside6/LogarithmPlotter/util/config.py
diff --git a/LogarithmPlotter/util/debug.py b/runtime-pyside6/LogarithmPlotter/util/debug.py
similarity index 98%
rename from LogarithmPlotter/util/debug.py
rename to runtime-pyside6/LogarithmPlotter/util/debug.py
index 05271ac..8b57687 100644
--- a/LogarithmPlotter/util/debug.py
+++ b/runtime-pyside6/LogarithmPlotter/util/debug.py
@@ -52,7 +52,7 @@ def map_javascript_source(source_file: str, line: str) -> tuple[str, str]:
try:
if SOURCEMAP_INDEX is not None:
token = SOURCEMAP_INDEX.lookup(line, 20)
- source_file = source_file[:-len("index.mjs")] + token.src
+ source_file = token.src.split("../")[-1]
line = token.src_line
except IndexError:
pass # Unable to find source, leave as is.
diff --git a/LogarithmPlotter/util/helper.py b/runtime-pyside6/LogarithmPlotter/util/helper.py
similarity index 100%
rename from LogarithmPlotter/util/helper.py
rename to runtime-pyside6/LogarithmPlotter/util/helper.py
diff --git a/LogarithmPlotter/util/js.py b/runtime-pyside6/LogarithmPlotter/util/js.py
similarity index 100%
rename from LogarithmPlotter/util/js.py
rename to runtime-pyside6/LogarithmPlotter/util/js.py
diff --git a/LogarithmPlotter/util/latex.py b/runtime-pyside6/LogarithmPlotter/util/latex.py
similarity index 100%
rename from LogarithmPlotter/util/latex.py
rename to runtime-pyside6/LogarithmPlotter/util/latex.py
diff --git a/LogarithmPlotter/util/native.py b/runtime-pyside6/LogarithmPlotter/util/native.py
similarity index 100%
rename from LogarithmPlotter/util/native.py
rename to runtime-pyside6/LogarithmPlotter/util/native.py
diff --git a/LogarithmPlotter/util/update.py b/runtime-pyside6/LogarithmPlotter/util/update.py
similarity index 100%
rename from LogarithmPlotter/util/update.py
rename to runtime-pyside6/LogarithmPlotter/util/update.py
diff --git a/MANIFEST.in b/runtime-pyside6/MANIFEST.in
similarity index 100%
rename from MANIFEST.in
rename to runtime-pyside6/MANIFEST.in
diff --git a/poetry.lock b/runtime-pyside6/poetry.lock
similarity index 100%
rename from poetry.lock
rename to runtime-pyside6/poetry.lock
diff --git a/pyproject.toml b/runtime-pyside6/pyproject.toml
similarity index 100%
rename from pyproject.toml
rename to runtime-pyside6/pyproject.toml
diff --git a/setup.py b/runtime-pyside6/setup.py
similarity index 100%
rename from setup.py
rename to runtime-pyside6/setup.py
diff --git a/tests/python/globals.py b/runtime-pyside6/tests/globals.py
similarity index 100%
rename from tests/python/globals.py
rename to runtime-pyside6/tests/globals.py
diff --git a/tests/python/test_config.py b/runtime-pyside6/tests/test_config.py
similarity index 100%
rename from tests/python/test_config.py
rename to runtime-pyside6/tests/test_config.py
diff --git a/tests/python/test_debug.py b/runtime-pyside6/tests/test_debug.py
similarity index 100%
rename from tests/python/test_debug.py
rename to runtime-pyside6/tests/test_debug.py
diff --git a/tests/python/test_helper.py b/runtime-pyside6/tests/test_helper.py
similarity index 100%
rename from tests/python/test_helper.py
rename to runtime-pyside6/tests/test_helper.py
diff --git a/tests/python/test_latex.py b/runtime-pyside6/tests/test_latex.py
similarity index 100%
rename from tests/python/test_latex.py
rename to runtime-pyside6/tests/test_latex.py
diff --git a/tests/python/test_main.py b/runtime-pyside6/tests/test_main.py
similarity index 100%
rename from tests/python/test_main.py
rename to runtime-pyside6/tests/test_main.py
diff --git a/tests/python/test_native.py b/runtime-pyside6/tests/test_native.py
similarity index 100%
rename from tests/python/test_native.py
rename to runtime-pyside6/tests/test_native.py
diff --git a/tests/python/test_pyjs.py b/runtime-pyside6/tests/test_pyjs.py
similarity index 100%
rename from tests/python/test_pyjs.py
rename to runtime-pyside6/tests/test_pyjs.py
diff --git a/tests/python/test_update.py b/runtime-pyside6/tests/test_update.py
similarity index 100%
rename from tests/python/test_update.py
rename to runtime-pyside6/tests/test_update.py
diff --git a/scripts/build-macosx.sh b/scripts/build-macosx.sh
index a8f0783..c398735 100755
--- a/scripts/build-macosx.sh
+++ b/scripts/build-macosx.sh
@@ -1,20 +1,17 @@
#!/usr/bin/env bash
DIR="$(cd -P "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
-cd "$DIR/.."
+cd "$DIR/.." || exit 1
+rm -rf build
+bash scripts/build.sh
+cd build || exit 1
-rm $(find . -name "*.qmlc")
rm $(find . -name "*.pyc")
-# Building translations
-cd "LogarithmPlotter/i18n/"
-bash release.sh
-cd ../../
-
pyinstaller --add-data "LogarithmPlotter/qml:qml" \
--add-data "LogarithmPlotter/i18n:i18n" \
--add-data "LICENSE.md:." \
- --add-data "mac/logarithmplotterfile.icns:." \
+ --add-data "../assets/native/mac/logarithmplotterfile.icns:." \
--add-data "README.md:." \
--exclude-module "FixTk" \
--exclude-module "tcl" \
@@ -24,21 +21,19 @@ pyinstaller --add-data "LogarithmPlotter/qml:qml" \
--exclude-module "Tkinter" \
--noconsole \
--noconfirm \
- --icon=mac/logarithmplotter.icns \
+ --icon=../assets/native/mac/logarithmplotter.icns \
--osx-bundle-identifier eu.ad5001.LogarithmPlotter \
-n LogarithmPlotter \
LogarithmPlotter/logarithmplotter.py
-cp mac/Info.plist dist/LogarithmPlotter.app/Contents/Info.plist
+cp ../assets/native/mac/Info.plist dist/LogarithmPlotter.app/Contents/Info.plist
# Remove QtWebEngine, 3D and all other unused libs libs
rm -rf dist/LogarithmPlotter.app/Contents/MacOS/{QtWeb*,*3D*,QtRemote*,QtPdf,QtCharts,QtLocation,QtTest,QtMultimedia,QtSpatialAudio,QtDataVisualization,QtQuickParticles,QtChartsQml,QtScxml,QtDataVisualizationQml,QtTest,QtPositioningQuick,QtQuickTest,QtSql,QtSensorsQuick}
rm -rf dist/LogarithmPlotter.app/Contents/MacOS/PySide6/{QtNetwork.abi3.so}
# Removing QtQuick3D
-rm -rf dist/LogarithmPlotter.app/Contents/MacOS/PySide6/Qt/qml/QtQuick3D
-rm -rf dist/LogarithmPlotter.app/Contents/MacOS/PySide6/Qt/qml/Qt3D
-rm -rf dist/LogarithmPlotter.app/Contents/MacOS/PySide6/Qt/qml/QtWebEngine
+rm -rf dist/LogarithmPlotter.app/Contents/MacOS/PySide6/Qt/qml/{QtQuick3D,Qt3D,QtWebEngine}
# Remove the QtQuick styles that are unused
rm -rf dist/LogarithmPlotter.app/Contents/MacOS/PySide6/Qt/qml/QtQuick/Controls/{Imagine,Material,iOS,Universal,designer}
diff --git a/scripts/build-windows.bat b/scripts/build-windows.bat
deleted file mode 100644
index ef92aee..0000000
--- a/scripts/build-windows.bat
+++ /dev/null
@@ -1,17 +0,0 @@
-rem Make sure pyinstaller is installed
-python -m pip install -U pyinstaller
-
-rem Building translations
-cd "LogarithmPlotter\i18n"
-cmd release.sh
-cd ..\..
-
-pyinstaller --add-data "logplotter.svg;." --add-data "LogarithmPlotter/qml;qml" --add-data "LogarithmPlotter/i18n;i18n" --noconsole LogarithmPlotter/logarithmplotter.py --icon=win/logarithmplotter.ico -n logarithmplotter
-
-rem Remove QtWebEngine
-del dist\logarithmplotter\PySide6\Qt6WebEngineCore.dll
-rem Remove the QtQuick styles that are unused
-rmdir dist\logarithmplotter\PySide6\qml\QtQuick\Controls\Imagine /s /q
-rmdir dist\logarithmplotter\PySide6\qml\QtQuick\Controls\Material /s /q
-rmdir dist\logarithmplotter\PySide6\qml\QtQuick\Controls\designer /s /q
-rem Remove unused translations
diff --git a/scripts/build-wine.sh b/scripts/build-wine.sh
index 39b2312..c99d1e1 100644
--- a/scripts/build-wine.sh
+++ b/scripts/build-wine.sh
@@ -1,22 +1,18 @@
#!/bin/bash
-cd "$(dirname "$(readlink -f "$0" || realpath "$0")")/.."
+cd "$(dirname "$(readlink -f "$0" || realpath "$0")")/.." || exit
-rm -rf dist
+rm -rf build
+bash scripts/build.sh
+cd build || exit 1
-rm $(find . -name "*.qmlc")
rm -rf $(find . -name "*.pyc")
-# Building translations
-cd "LogarithmPlotter/i18n/"
-bash release.sh
-cd ../../
-
-wine pyinstaller --add-data "logplotter.svg;." \
+wine pyinstaller --add-data "LogarithmPlotter/logarithmplotter.svg;." \
--add-data "LogarithmPlotter/qml;qml" \
--add-data "LogarithmPlotter/i18n;i18n" \
--noconsole \
LogarithmPlotter/logarithmplotter.py \
- --icon=win/logarithmplotter.ico \
+ --icon=../assets/native/win/logarithmplotter.ico \
-n logarithmplotter
# Copy Qt6ShaderTools, a required library for for Qt5Compat
diff --git a/scripts/build.sh b/scripts/build.sh
new file mode 100755
index 0000000..be25274
--- /dev/null
+++ b/scripts/build.sh
@@ -0,0 +1,49 @@
+#!/usr/bin/env bash
+#
+# LogarithmPlotter - 2D plotter software to make BODE plots, sequences and distribution functions.
+# Copyright (C) 2021-2024 Ad5001
+#
+# This program is free software: you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation, either version 3 of the License, or
+# (at your option) any later version.
+#
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with this program. If not, see .
+#
+
+# This script builds a dist version of LogarithmPlotter
+
+DIR="$(cd -P "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
+cd "$DIR/.." || exit 1
+
+box() {
+ len=${#1}
+ echo "┌─$(printf '─%.0s' $(seq 1 "$len"))─┐"
+ echo "│ $1 │"
+ echo "└─$(printf '─%.0s' $(seq 1 "$len"))─┘"
+}
+
+rm -rf build
+mkdir -p build/runtime-pyside6
+
+# Copy python
+box "Copying pyside6 python runtime..."
+cp -r runtime-pyside6/{setup.py,LogarithmPlotter} build/runtime-pyside6
+
+box "Building ecmascript modules..."
+mkdir -p build/runtime-pyside6/LogarithmPlotter/qml/eu/ad5001/LogarithmPlotter/js
+cd common && (npm run build || exit) && cd ..
+
+box "Building translations..."
+cd assets/i18n/ && (bash release.sh || exit) && cd ../../
+mkdir -p build/runtime-pyside6/LogarithmPlotter/i18n && cp assets/i18n/*.qm build/runtime-pyside6/LogarithmPlotter/i18n/
+
+box "Building icons..."
+cp -r assets/icons build/runtime-pyside6/LogarithmPlotter/qml/eu/ad5001/LogarithmPlotter/
+cp assets/logarithmplotter.svg build/runtime-pyside6/LogarithmPlotter/
diff --git a/scripts/package-deb.sh b/scripts/package-deb.sh
new file mode 100755
index 0000000..477ecda
--- /dev/null
+++ b/scripts/package-deb.sh
@@ -0,0 +1,11 @@
+#!/bin/bash
+cd "$(dirname "$(readlink -f "$0" || realpath "$0")")/.."
+
+rm -rf build
+bash scripts/build.sh
+cd build || exit 1
+
+# Deb
+sudo python3 setup.py --remove-git-version --command-packages=stdeb.command sdist_dsc \
+ --package logarithmplotter --copyright-file linux/debian/copyright --suite noble --depends3 "$(cat linux/debian/depends)" --section science \
+ bdist_deb
diff --git a/scripts/package-linux.sh b/scripts/package-linux.sh
deleted file mode 100755
index ca2bcf7..0000000
--- a/scripts/package-linux.sh
+++ /dev/null
@@ -1,32 +0,0 @@
-#!/bin/bash
-cd "$(dirname "$(readlink -f "$0" || realpath "$0")")/.."
-
-# Building translations
-cd "LogarithmPlotter/i18n/"
-bash release.sh
-cd ../../
-
-# Deb
-sudo python3 setup.py --remove-git-version --command-packages=stdeb.command sdist_dsc \
- --package logarithmplotter --copyright-file linux/debian/copyright --suite noble --depends3 "$(cat linux/debian/depends)" --section science \
- bdist_deb
-
-# Flatpak building
-FLATPAK_BUILDER=$(which flatpak-builder)
-if [ -z $FLATPAK_BUILDER ]; then
- echo "flatpak-builder not installed. Will not proceed to build flatpak."
-else
- cd linux
- git clone https://github.com/Ad5001/eu.ad5001.LogarithmPlotter
- cd eu.ad5001.LogarithmPlotter
- flatpak-builder AppDir eu.ad5001.LogarithmPlotter.json --user --force-clean --install
- cd ../../
-fi
-
-# Snapcraft building
-SNAPCRAFT=$(which snapcraft)
-if [ -z $SNAPCRAFT ]; then
- echo "snapcraft not installed. Will not proceed to build snap"
-else
- snapcraft
-fi
diff --git a/scripts/package-macosx.sh b/scripts/package-macosx.sh
index 745f05b..cf312a4 100644
--- a/scripts/package-macosx.sh
+++ b/scripts/package-macosx.sh
@@ -8,14 +8,14 @@ applicationName=LogarithmPlotter
backgroundPictureName=logarithmplotter-installer-background.png
source=Installer
-cd dist
+cd build/dist
rm -rf Installer
mkdir -p Installer
mkdir -p Installer/.background
-cp ../mac/install-bg.png "./Installer/.background/${backgroundPictureName}"
+cp ../../assets/native/mac/install-bg.png "./Installer/.background/${backgroundPictureName}"
cp -r LogarithmPlotter.app Installer/LogarithmPlotter.app
-cp ../LICENSE.md Installer/LICENSE.md
-cp ../README.md Installer/README.md
+cp ../../LICENSE.md Installer/LICENSE.md
+cp ../../README.md Installer/README.md
# Calculating folder size
duoutput=$(du -h Installer | tail -n1)
diff --git a/scripts/package-windows.bat b/scripts/package-windows.bat
deleted file mode 100644
index 777f2f9..0000000
--- a/scripts/package-windows.bat
+++ /dev/null
@@ -1,7 +0,0 @@
-XCOPY win\*.* dist\logarithmplotter /C /S /D /Y /I
-XCOPY README.md dist\logarithmplotter /C /D /Y
-XCOPY LICENSE.md dist\logarithmplotter /C /D /Y
-rem Creating installer
-cd dist\logarithmplotter
-"C:\Program Files (x86)\NSIS\makensis" installer.nsi
-cd ..\..
diff --git a/scripts/package-wine.sh b/scripts/package-wine.sh
index 98209e0..2b6391c 100644
--- a/scripts/package-wine.sh
+++ b/scripts/package-wine.sh
@@ -1,8 +1,8 @@
#!/bin/bash
-cd "$(dirname "$(readlink -f "$0" || realpath "$0")")/.."
+cd "$(dirname "$(readlink -f "$0" || realpath "$0")")/.." || exit 1
# Moving files
-cp win/* README.md LICENSE.md dist/logarithmplotter/
+cp assets/native/win/* README.md LICENSE.md build/dist/logarithmplotter/
# Creating installer
-cd dist/logarithmplotter/
+cd build/dist/logarithmplotter/
makensis installer.nsi
diff --git a/snapcraft.yaml b/snapcraft.yaml
index e8c8628..2811b21 100644
--- a/snapcraft.yaml
+++ b/snapcraft.yaml
@@ -5,7 +5,7 @@ summary: Create and edit Bode plots
confinement: strict
base: core22
grade: stable
-icon: LogarithmPlotter/logarithmplotter.svg
+icon: assets/logarithmplotter.svg
adopt-info: linuxfiles
license: GPL-3.0+
@@ -57,21 +57,26 @@ parts:
# - fcitx-frontend-gtk3
# - libgtk2.0-0
launchers:
- source: linux/snapcraft/launcher/
+ source: assets/native/linux/snapcraft/launcher/
plugin: dump
organize:
'*': bin/
linuxfiles:
- source: linux/
+ source: assets/native/linux/
plugin: dump
parse-info: [eu.ad5001.LogarithmPlotter.metainfo.xml]
organize:
logarithmplotter.desktop: usr/share/applications/logarithmplotter.desktop
x-logarithm-plot.xml: usr/share/mime/packages/x-logarithm-plot.xml
application-x-logarithm-plot.svg: usr/share/mime/packages/application-x-logarithm-plot.svg
+ linuxfiles:
+ source: assets/
+ plugin: dump
+ organize:
+ logplotterfile.svg: usr/share/mime/packages/application-x-logarithm-plot.svg
logarithmplotter:
plugin: python
- source: .
+ source: build
stage-packages:
- breeze-icon-theme
# Latex dependencies
@@ -145,7 +150,7 @@ parts:
source: .
plugin: dump
organize:
- CHANGELOG.md: lib/python3.8/site-packages/LogarithmPlotter/util/
+ CHANGELOG.md: lib/python3.12/site-packages/LogarithmPlotter/util/
apps:
logarithmplotter: