From 44e39e5265cfe1f6d32120de4a0ffb1cb73efcf8 Mon Sep 17 00:00:00 2001 From: Ad5001 Date: Sat, 5 Mar 2022 16:19:47 +0100 Subject: [PATCH] Bug fixes and slight file moving - Gradients are no longer hidden when filtered out - Fixing #1 - Opening files don't work on compiled versions of LogarithmPlotter on MacOS - Moving python modules to "util" directory for more clarity - Moving flatpak metainfo to eu.ad5001.LogarithmPlotter repository. --- LogarithmPlotter/logarithmplotter.py | 7 +- .../LogarithmPlotter/History/HistoryItem.qml | 2 +- LogarithmPlotter/{ => util}/config.py | 0 LogarithmPlotter/{ => util}/helper.py | 11 +- LogarithmPlotter/{ => util}/native.py | 0 LogarithmPlotter/{ => util}/update.py | 0 ...5001.LogarithmPlotter.metainfo.flatpak.xml | 394 ------------------ 7 files changed, 13 insertions(+), 401 deletions(-) rename LogarithmPlotter/{ => util}/config.py (100%) rename LogarithmPlotter/{ => util}/helper.py (94%) rename LogarithmPlotter/{ => util}/native.py (100%) rename LogarithmPlotter/{ => util}/update.py (100%) delete mode 100644 linux/eu.ad5001.LogarithmPlotter.metainfo.flatpak.xml diff --git a/LogarithmPlotter/logarithmplotter.py b/LogarithmPlotter/logarithmplotter.py index c761542..f4c1dff 100644 --- a/LogarithmPlotter/logarithmplotter.py +++ b/LogarithmPlotter/logarithmplotter.py @@ -41,9 +41,10 @@ if path.realpath(path.join(getcwd(), "..")) not in sys_path: sys_path.append(path.realpath(path.join(getcwd(), ".."))) -from LogarithmPlotter import config, native, __VERSION__ -from LogarithmPlotter.update import check_for_updates -from LogarithmPlotter.helper import Helper +from LogarithmPlotter import __VERSION__ +from LogarithmPlotter.util import config, native +from LogarithmPlotter.util.update import check_for_updates +from LogarithmPlotter.util.helper import Helper config.init() diff --git a/LogarithmPlotter/qml/eu/ad5001/LogarithmPlotter/History/HistoryItem.qml b/LogarithmPlotter/qml/eu/ad5001/LogarithmPlotter/History/HistoryItem.qml index 81a7803..830e45b 100644 --- a/LogarithmPlotter/qml/eu/ad5001/LogarithmPlotter/History/HistoryItem.qml +++ b/LogarithmPlotter/qml/eu/ad5001/LogarithmPlotter/History/HistoryItem.qml @@ -85,7 +85,7 @@ Button { LinearGradient { anchors.fill: parent - visible: !hidden + //opacity: hidden ? 0.6 : 1 start: Qt.point(0, 0) end: Qt.point(parent.width, 0) gradient: Gradient { diff --git a/LogarithmPlotter/config.py b/LogarithmPlotter/util/config.py similarity index 100% rename from LogarithmPlotter/config.py rename to LogarithmPlotter/util/config.py diff --git a/LogarithmPlotter/helper.py b/LogarithmPlotter/util/helper.py similarity index 94% rename from LogarithmPlotter/helper.py rename to LogarithmPlotter/util/helper.py index 164cd16..439fa63 100644 --- a/LogarithmPlotter/helper.py +++ b/LogarithmPlotter/util/helper.py @@ -28,8 +28,8 @@ from sys import version as sys_version from urllib.request import urlopen from urllib.error import HTTPError, URLError - -from LogarithmPlotter import config, __VERSION__ +from LogarithmPlotter import __VERSION__ +from LogarithmPlotter.util import config class ChangelogFetcher(QRunnable): def __init__(self, helper): @@ -98,7 +98,12 @@ class Helper(QObject): QMessageBox.warning(None, 'LogarithmPlotter', QCoreApplication.translate('main','Could not open file "{}":\n{}').format(filename, e), QMessageBox.Ok) # Cannot parse file else: QMessageBox.warning(None, 'LogarithmPlotter', QCoreApplication.translate('main','Could not open file: "{}"\nFile does not exist.').format(filename), QMessageBox.Ok) # Cannot parse file - chdir(path.dirname(path.realpath(__file__))) + try: + chdir(path.dirname(path.realpath(__file__))) + except NotADirectoryError as e: + # Triggered on bundled versions of MacOS when it shouldn't. Prevents opening files. + # See more at https://git.ad5001.eu/Ad5001/LogarithmPlotter/issues/1 + pass return data @Slot(result=str) diff --git a/LogarithmPlotter/native.py b/LogarithmPlotter/util/native.py similarity index 100% rename from LogarithmPlotter/native.py rename to LogarithmPlotter/util/native.py diff --git a/LogarithmPlotter/update.py b/LogarithmPlotter/util/update.py similarity index 100% rename from LogarithmPlotter/update.py rename to LogarithmPlotter/util/update.py diff --git a/linux/eu.ad5001.LogarithmPlotter.metainfo.flatpak.xml b/linux/eu.ad5001.LogarithmPlotter.metainfo.flatpak.xml deleted file mode 100644 index 2407e30..0000000 --- a/linux/eu.ad5001.LogarithmPlotter.metainfo.flatpak.xml +++ /dev/null @@ -1,394 +0,0 @@ - - - - eu.ad5001.LogarithmPlotter - eu.ad5001.LogarithmPlotter.desktop - eu.ad5001.LogarithmPlotter.desktop - CC0-1.0 - GPL-3.0+ - - LogarithmPlotter - http://apps.ad5001.eu/icons/apps/svg/logarithmplotter.svg - 2D logarithmic-scaled plotter software to make Bode plots, sequences and distribution functions - 2D-Grafiksoftware mit logarithmischer Skalierung zur Erstellung von Bode-Diagramms, Folgen und Verteilungsfunktionen - Logiciel de traçage 2D pour les diagrammes de Bode, les suites et les fonctions de répartition - Síkbeli ábrázolásszoftver Bode-ábrák, sorozatok és eloszlási funkciók készítéséhez - 2D-plotterprogramvare laget for opprettelse av Bode-diagram, sekvenser, og distribusjonsfunksjoner - - - -

- LogarithmPlotter is, as it's name suggests, a plotter made with logarithm scales in mind. With an object system similar to Geogebra's, it allows dynamic creation of both logarithmic-scaled and non logarithmic-scaled plots with very few limitations. -

-

- It's primary use is to quickly create asymptotic Bode plots, but it's extensible nature and ability to switch to non-logarithmic scales allow it to create other things with it, like sequences or statistical repartition functions. -

-

Features:

-
    -
  • Graphical objects (points, fonctions, Bode magnitudes...) management system
  • -
  • Complete object edition
  • -
  • Advanced history system
  • -
  • Diagram looks customisation
  • -
-

LogarithmPlotter is available in:

-
    -
  • 🇬🇧 English
  • -
  • 🇫🇷 French
  • -
  • 🇩🇪 German
  • -
  • 🇭🇺 Hungarian
  • -
  • 🇳🇴 Norwergian
  • -
-

Learn more: https://apps.ad5001.eu/logarithmplotter/

-

- LogarithmPlotter est, comme son nom l'indique, un créateur de graphes et diagrammes 2D réalisé avec l'échelle logarithmique en tête. Avec un système d'objets similaire à Geogebra, ce qui lui permet de créer des graphes à échelle logarithmique et non logarithmique avec peu de limitations. -

-

- Son intérêt principal est de permettre de créer des diagrammes asymptotiques de Bode, mais sa nature extensible et sa capacité à passer à une échelle non-logarithmique lui permet de créer d'autres choses. -

-

Fonctionnalités:

-
    -
  • Système de gestion des objets graphiques (points, fonctions, gains de Bode...)
  • -
  • Modification complète des objets
  • -
  • Système d'historique avancé
  • -
  • Personnalisation de l'apparence des diagrammes
  • -
-

LogarithmPlotter est disponible en:

-
    -
  • 🇬🇧 Anglais
  • -
  • 🇫🇷 Français
  • -
  • 🇩🇪 Allemand
  • -
  • 🇭🇺 Hongrois
  • -
  • 🇳🇴 Norvégien
  • -
-

En savoir plus: https://apps.ad5001.eu/fr/logarithmplotter/

-

- A LogarithmPlotter egy logaritmus-ábrázoló, amely logaritmikus léptékek figyelembevételével készült. A Geogebrához hasonló objektumrendszerrel dinamikus parcellák létrehozását teszi lehetővé, nagyon kevés korlátozással. -

-

- Elsődleges felhasználása az aszimptotikus Bode-ábrák gyors létrehozása, de bővíthető jellege és a nem logaritmikus skálákra váltás lehetősége lehetővé teszi, hogy más dolgokat is létrehozzon vele, például sorozatokat vagy statisztikai újraosztási függvényeket. -

-
- - - Science - Education - Qt - - - https://apps.ad5001.eu/logarithmplotter/ - https://git.ad5001.eu/Ad5001/LogarithmPlotter/issues/ - https://git.ad5001.eu/Ad5001/LogarithmPlotter/wiki/ - https://hosted.weblate.org/engage/logarithmplotter/ - - https://apps.ad5001.eu/img/full/logarithmplotter.png - https://apps.ad5001.eu/img/en/logarithmplotter/phase.png - https://apps.ad5001.eu/img/en/logarithmplotter/welcome.png - https://apps.ad5001.eu/img/de/gain.png - https://apps.ad5001.eu/img/de/logarithmplotter/phase.png - https://apps.ad5001.eu/img/de/logarithmplotter/welcome.png - https://apps.ad5001.eu/img/fr/gain.png - https://apps.ad5001.eu/img/fr/logarithmplotter/phase.png - https://apps.ad5001.eu/img/fr/logarithmplotter/welcome.png - https://apps.ad5001.eu/img/hu/gain.png - https://apps.ad5001.eu/img/hu/logarithmplotter/phase.png - https://apps.ad5001.eu/img/hu/logarithmplotter/welcome.png - https://apps.ad5001.eu/img/no/gain.png - https://apps.ad5001.eu/img/no/logarithmplotter/phase.png - https://apps.ad5001.eu/img/no/logarithmplotter/welcome.png - - - - - medium - - - - - xlarge - xsmall - - - - - -

Changes for v0.1.8:

-

New

-
    -
  • There is now a user manual for LogarithmPlotter! Contributions apprecriated.
  • -
-

Changes

-
    -
  • A link to LogarithmPlotter's official website has been added in the about dialog.
  • -
  • A link to the user manual has been added both on the greeting screen and the `Help` menu.
  • -
-

Added translations

-
    -
  • User manual.
  • -
  • Official website.
  • -
-

Fixed bugs

-
    -
  • The label position of X Cursors now display the label even when unexpected values are entered.
  • -
  • X Cursors target object in history are now properly rendered when no object were selected
  • -
  • Fixed slight clipping at the bottom of the border.
  • -
  • TextInput no longer allow to input forbidden characters for numbers.
  • -
  • ALT+ shortcuts on the menu bar now work. NOTE: May break some mobile configuration. Qt bug report
  • -
  • (flatpak) Buttons on side menu to create object now have proper width on startup.
  • -
-

Internal changes

-
    -
  • There is now a script to generate offline versions of the manual based on their online version.
  • -
  • Sidebar button width is now fixed.
  • -
  • Artifacts have been added to appstream metadata.
  • -
-
- - - https://artifacts.accountfree.org/repository/apps.ad5001.eu-apps/logarithmplotter/v0.1.8/logarithmplotter-v0.1.8-setup.exe - - - https://artifacts.accountfree.org/repository/apps.ad5001.eu-apps/logarithmplotter/v0.1.8/logarithmplotter-v0.1.8-setup.exe - - - https://artifacts.accountfree.org/repository/apps.ad5001.eu-apps/logarithmplotter/v0.1.8/logarithmplotter-0.1.8.tar.gz - - -
- - -

Changes for v0.1.7:

-

New

-
    -
  • The history browser has been completly redesigned, improving UX.
  • -
  • The history browser now features a filter bar.
  • -
  • All side panel tabs now have a visually identifiable scrollbar.
  • -
-

Changes

-
    -
  • Shorter rich text representations of history entries to improve readability.
  • -
  • Usage of gradiants and icons to better identify history entries at a glance.
  • -
  • History entries are now showing the whole label on several lines, instead of cutting it at the end.
  • -
  • New history action for renaming.
  • -
  • New history action for coloring. Note: color changing history entries created in previous versions of LogarithmPlotter will not be updated.
  • -
  • Tooltips for object creation buttons have been added.
  • -
  • Tooltips have been set to have a delay of 200ms to match most software's handling of them.
  • -
  • Object creation buttons now have a unified style accross all platforms.
  • -
-

Added translations

-
    -
  • History action of renaming objects.
  • -
  • History action of changing the color of objects.
  • -
  • Filtering for history browser.
  • -
-

Fixed bugs

-
    -
  • Visibility history actions (shown and hidden) are now properly savedmaking loading them not automaticly changed to "Show".
  • -
  • Name changes history actions are now properly saved.
  • -
  • Non translated object type on the "+ Create new object" item selection combobox for Bode Magnitude and Phase.
  • -
  • Proper handling for future LogarithmPlotter files.
  • -
  • Shortcuts not being displayed in the menu bar are now properly shown.
  • -
  • (flatpak) Black versions of the icons when using a black theme with the KDE SDK.
  • -
  • (debian) Fixed launchpad building properly.
  • -
-

Internal changes

-
    -
  • Better organisation on icons.
  • -
  • Historylib has been separated in several files.
  • -
  • Trying to switch metainfo once more to try and fix another bug.
  • -
  • Keywords added to metainfo.
  • -
-
- - - https://artifacts.accountfree.org/repository/apps.ad5001.eu-apps/logarithmplotter/v0.1.7/logarithmplotter-v0.1.7-setup.exe - - - https://artifacts.accountfree.org/repository/apps.ad5001.eu-apps/logarithmplotter/v0.1.7/logarithmplotter-v0.1.7-setup.exe - - - https://artifacts.accountfree.org/repository/apps.ad5001.eu-apps/logarithmplotter/v0.1.7/logarithmplotter-0.1.7.tar.gz - - -
- - -

Changes for v0.1.6:

-

New

-
    -
  • A new changelog popup is available at startup and in the help menu.
  • -
-

Added translations

-
    -
  • Object properties names.
  • -
  • Object properties enum values.
  • -
  • Object comments.
  • -
  • Most elements using a ":".
  • -
-

Fixed bugs

-
    -
  • X Cursor's targets can now be set to null.
  • -
  • History now imports domains and objects properly.
  • -
  • Proper handling for future LogarithmPlotter files.
  • -
  • (debian) Fixing bug that created a /build directory and didn't put the icons in the right directories.
  • -
-

Other

-
    -
  • Other: Refractoring done on helper.
  • -
  • Other: All QML elements are now properly commented.
  • -
  • Other: Scripts have been moved to it's own directory.
  • -
  • Other: Added changelog to metainfo for flathub.
  • -
-
- - - https://artifacts.accountfree.org/repository/apps.ad5001.eu-apps/logarithmplotter/v0.1.6/logarithmplotter-v0.1.6-setup.exe - - - https://artifacts.accountfree.org/repository/apps.ad5001.eu-apps/logarithmplotter/v0.1.6/logarithmplotter-v0.1.6-setup.exe - - - https://artifacts.accountfree.org/repository/apps.ad5001.eu-apps/logarithmplotter/v0.1.6/LogarithmPlotter-v0.1.6.tar.gz - - -
- - -

Changes for v0.1.5:

-

New

-
    -
  • LogarithmPlotter has now better handling of very high values in logarithmic scale.
  • -
-

Added translations

-
    -
  • Flatpak metadata, including translated image.
  • -
-

Fixed bugs

-
    -
  • (!) File saving dialog was not working.
  • -
  • (!) Debian packages does include any language file.
  • -
  • X Cursor pointing does not detect any object.
  • -
-
- - - https://artifacts.accountfree.org/repository/apps.ad5001.eu-apps/logarithmplotter/v0.1.5/logarithmplotter-v0.1.5-setup.exe - - - https://artifacts.accountfree.org/repository/apps.ad5001.eu-apps/logarithmplotter/v0.1.5/logarithmplotter-v0.1.5-setup.exe - - - https://artifacts.accountfree.org/repository/apps.ad5001.eu-apps/logarithmplotter/v0.1.5/LogarithmPlotter-v0.1.5.tar.gz - - -
- - -

Changes for v0.1.4:

-

New

-
    -
  • LogarithmPlotter detects unsaved changes.
  • -
  • LogarithmPlotter is now translated!
  • -
  • New translation: English by Ad5001: 100%
  • -
  • New translation: French by Ad5001: 100%
  • -
  • New translation: German by Ad5001: 100%
  • -
  • New translation: Hungarian by Óvári (@ovari on github): 100%
  • -
  • New translation: Norvegian by Allan Nordhøy (@comradekingu on github): 80%
  • -
-

Fixed bugs

-
    -
  • Fixed bug: No notification when closing LogarithmPlotter with unsaved changes.
  • -
  • Fixed bug: π unavailable in symbols.
  • -
-
- - - https://artifacts.accountfree.org/repository/apps.ad5001.eu-apps/logarithmplotter/v0.1.4/logarithmplotter-v0.1.4-setup.exe - - - https://artifacts.accountfree.org/repository/apps.ad5001.eu-apps/logarithmplotter/v0.1.4/logarithmplotter-v0.1.4-setup.exe - - - https://artifacts.accountfree.org/repository/apps.ad5001.eu-apps/logarithmplotter/v0.1.4/LogarithmPlotter-v0.1.4.tar.gz - - -
- - -

Changes for v0.1.3:

-

Fixed bugs

-
    -
  • Sandboxed packages (snapcraft and flatpak) won't show error messages related to update checks.
  • -
  • Equations of the form (x + y) / z were not being simplified properly.
  • -
-
- - - https://artifacts.accountfree.org/repository/apps.ad5001.eu-apps/logarithmplotter/v0.1.3/logarithmplotter-v0.1.3-setup.exe - - - https://artifacts.accountfree.org/repository/apps.ad5001.eu-apps/logarithmplotter/v0.1.3/logarithmplotter-v0.1.3-setup.exe - - - https://artifacts.accountfree.org/repository/apps.ad5001.eu-apps/logarithmplotter/v0.1.3/LogarithmPlotter-v0.1.3.tar.gz - - -
- - -

Changes for v0.1.2:

-

Fixed bugs

-
    -
  • Unable to move Bode diagrams elements when having deleted the sum element.
  • -
  • Names were not not being changed from previous object when editing a new one.
  • -
  • Bode Magnitude was not drawn far enough.
  • -
  • Bode Magnitude had undefined ending.
  • -
  • Other bugs patched in v0.1.1.
  • -
-
- - - https://artifacts.accountfree.org/repository/apps.ad5001.eu-apps/logarithmplotter/v0.1.2/logarithmplotter-v0.1.2-setup.exe - - - https://artifacts.accountfree.org/repository/apps.ad5001.eu-apps/logarithmplotter/v0.1.2/logarithmplotter-v0.1.2-setup.exe - - - https://artifacts.accountfree.org/repository/apps.ad5001.eu-apps/logarithmplotter/v0.1.2/LogarithmPlotter-v0.1.2.tar.gz - - -
- -

Changes for v0.1:

-
    -
  • Initial release.
  • -
-
-
- - - Ad5001 - mail@ad5001.eu - - - Plot - Plotter - Log - Logarithm - Logarithmic - Bode - Magnitude - Diagram - Graph - Phase - Sequence - Distribution - -
- -