Bug fixes and slight file moving
All checks were successful
continuous-integration/drone/push Build is passing

- 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.
This commit is contained in:
Adsooi 2022-03-05 16:19:47 +01:00
parent 20c910f884
commit 44e39e5265
Signed by: Ad5001
GPG key ID: EF45F9C6AFE20160
7 changed files with 13 additions and 401 deletions

View file

@ -41,9 +41,10 @@ if path.realpath(path.join(getcwd(), "..")) not in sys_path:
sys_path.append(path.realpath(path.join(getcwd(), ".."))) sys_path.append(path.realpath(path.join(getcwd(), "..")))
from LogarithmPlotter import config, native, __VERSION__ from LogarithmPlotter import __VERSION__
from LogarithmPlotter.update import check_for_updates from LogarithmPlotter.util import config, native
from LogarithmPlotter.helper import Helper from LogarithmPlotter.util.update import check_for_updates
from LogarithmPlotter.util.helper import Helper
config.init() config.init()

View file

@ -85,7 +85,7 @@ Button {
LinearGradient { LinearGradient {
anchors.fill: parent anchors.fill: parent
visible: !hidden //opacity: hidden ? 0.6 : 1
start: Qt.point(0, 0) start: Qt.point(0, 0)
end: Qt.point(parent.width, 0) end: Qt.point(parent.width, 0)
gradient: Gradient { gradient: Gradient {

View file

@ -28,8 +28,8 @@ from sys import version as sys_version
from urllib.request import urlopen from urllib.request import urlopen
from urllib.error import HTTPError, URLError from urllib.error import HTTPError, URLError
from LogarithmPlotter import __VERSION__
from LogarithmPlotter import config, __VERSION__ from LogarithmPlotter.util import config
class ChangelogFetcher(QRunnable): class ChangelogFetcher(QRunnable):
def __init__(self, helper): 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 QMessageBox.warning(None, 'LogarithmPlotter', QCoreApplication.translate('main','Could not open file "{}":\n{}').format(filename, e), QMessageBox.Ok) # Cannot parse file
else: else:
QMessageBox.warning(None, 'LogarithmPlotter', QCoreApplication.translate('main','Could not open file: "{}"\nFile does not exist.').format(filename), QMessageBox.Ok) # Cannot parse file 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 return data
@Slot(result=str) @Slot(result=str)

View file

@ -1,394 +0,0 @@
<?xml version="1.0" encoding="UTF-8"?>
<!-- Copyright 2022 Ad5001 -->
<application>
<id>eu.ad5001.LogarithmPlotter</id>
<id type="desktop">eu.ad5001.LogarithmPlotter.desktop</id>
<launchable type="desktop-id">eu.ad5001.LogarithmPlotter.desktop</launchable>
<metadata_license>CC0-1.0</metadata_license>
<project_license>GPL-3.0+</project_license>
<name>LogarithmPlotter</name>
<icon type="remote">http://apps.ad5001.eu/icons/apps/svg/logarithmplotter.svg</icon>
<summary>2D logarithmic-scaled plotter software to make Bode plots, sequences and distribution functions</summary>
<summary xml:lang="de">2D-Grafiksoftware mit logarithmischer Skalierung zur Erstellung von Bode-Diagramms, Folgen und Verteilungsfunktionen</summary>
<summary xml:lang="fr">Logiciel de traçage 2D pour les diagrammes de Bode, les suites et les fonctions de répartition</summary>
<summary xml:lang="hu">Síkbeli ábrázolásszoftver Bode-ábrák, sorozatok és eloszlási funkciók készítéséhez</summary>
<summary xml:lang="no">2D-plotterprogramvare laget for opprettelse av Bode-diagram, sekvenser, og distribusjonsfunksjoner</summary>
<!--
NB: While the appstream spec specifies that p tags should have
specific lang tags, the appstream validation cli requires to
have several description tags in order to see there are
several languages
-->
<description>
<p>
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.
</p>
<p>
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.
</p>
<p>Features:</p>
<ul>
<li>Graphical objects (points, fonctions, Bode magnitudes...) management system</li>
<li>Complete object edition</li>
<li>Advanced history system</li>
<li>Diagram looks customisation</li>
</ul>
<p>LogarithmPlotter is available in:</p>
<ul>
<li>🇬🇧 English</li>
<li>🇫🇷 French</li>
<li>🇩🇪 German</li>
<li>🇭🇺 Hungarian</li>
<li>🇳🇴 Norwergian</li>
</ul>
<p>Learn more: https://apps.ad5001.eu/logarithmplotter/</p>
<p xml:lang="fr">
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.
</p>
<p xml:lang="fr">
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.
</p>
<p xml:lang="fr">Fonctionnalités:</p>
<ul xml:lang="fr">
<li>Système de gestion des objets graphiques (points, fonctions, gains de Bode...)</li>
<li>Modification complète des objets</li>
<li>Système d'historique avancé</li>
<li>Personnalisation de l'apparence des diagrammes</li>
</ul>
<p xml:lang="fr">LogarithmPlotter est disponible en:</p>
<ul xml:lang="fr">
<li>🇬🇧 Anglais</li>
<li>🇫🇷 Français</li>
<li>🇩🇪 Allemand</li>
<li>🇭🇺 Hongrois</li>
<li>🇳🇴 Norvégien</li>
</ul>
<p xml:lang="fr">En savoir plus: https://apps.ad5001.eu/fr/logarithmplotter/</p>
<p xml:lang="hu">
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.
</p>
<p xml:lang="hu">
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.
</p>
</description>
<categories>
<category>Science</category>
<category>Education</category>
<category>Qt</category>
</categories>
<url type="homepage">https://apps.ad5001.eu/logarithmplotter/</url>
<url type="bugtracker">https://git.ad5001.eu/Ad5001/LogarithmPlotter/issues/</url>
<url type="help">https://git.ad5001.eu/Ad5001/LogarithmPlotter/wiki/</url>
<url type="translate">https://hosted.weblate.org/engage/logarithmplotter/</url>
<screenshots>
<screenshot type="default">https://apps.ad5001.eu/img/full/logarithmplotter.png</screenshot>
<screenshot>https://apps.ad5001.eu/img/en/logarithmplotter/phase.png</screenshot>
<screenshot>https://apps.ad5001.eu/img/en/logarithmplotter/welcome.png</screenshot>
<screenshot xml:lang="de" type="default">https://apps.ad5001.eu/img/de/gain.png</screenshot>
<screenshot xml:lang="de">https://apps.ad5001.eu/img/de/logarithmplotter/phase.png</screenshot>
<screenshot xml:lang="de">https://apps.ad5001.eu/img/de/logarithmplotter/welcome.png</screenshot>
<screenshot xml:lang="fr" type="default">https://apps.ad5001.eu/img/fr/gain.png</screenshot>
<screenshot xml:lang="fr">https://apps.ad5001.eu/img/fr/logarithmplotter/phase.png</screenshot>
<screenshot xml:lang="fr">https://apps.ad5001.eu/img/fr/logarithmplotter/welcome.png</screenshot>
<screenshot xml:lang="hu" type="default">https://apps.ad5001.eu/img/hu/gain.png</screenshot>
<screenshot xml:lang="hu">https://apps.ad5001.eu/img/hu/logarithmplotter/phase.png</screenshot>
<screenshot xml:lang="hu">https://apps.ad5001.eu/img/hu/logarithmplotter/welcome.png</screenshot>
<screenshot xml:lang="no" type="default">https://apps.ad5001.eu/img/no/gain.png</screenshot>
<screenshot xml:lang="no">https://apps.ad5001.eu/img/no/logarithmplotter/phase.png</screenshot>
<screenshot xml:lang="no">https://apps.ad5001.eu/img/no/logarithmplotter/welcome.png</screenshot>
</screenshots>
<!-- recommend at least 600 logical pixels of space -->
<recommends>
<display_length compare="ge">medium</display_length>
</recommends>
<!-- ensure this application is not run on a very large screen, or
very small screen (no tiny handhelds or television screens) -->
<requires>
<display_length compare="lt">xlarge</display_length>
<display_length compare="gt">xsmall</display_length>
</requires>
<releases>
<release version="0.1.8" date="2022-02-19">
<description>
<p><b>Changes for v0.1.8:</b></p>
<p>New</p>
<ul>
<li>There is now a user manual for LogarithmPlotter! Contributions apprecriated.</li>
</ul>
<p>Changes</p>
<ul>
<li>A link to LogarithmPlotter's official website has been added in the about dialog.</li>
<li>A link to the user manual has been added both on the greeting screen and the `Help` menu.</li>
</ul>
<p>Added translations</p>
<ul>
<li>User manual.</li>
<li>Official website.</li>
</ul>
<p>Fixed bugs</p>
<ul>
<li>The label position of X Cursors now display the label even when unexpected values are entered.</li>
<li>X Cursors target object in history are now properly rendered when no object were selected</li>
<li>Fixed slight clipping at the bottom of the border.</li>
<li>TextInput no longer allow to input forbidden characters for numbers.</li>
<li>ALT+ shortcuts on the menu bar now work. NOTE: May break some mobile configuration. Qt bug report</li>
<li>(flatpak) Buttons on side menu to create object now have proper width on startup.</li>
</ul>
<p>Internal changes</p>
<ul>
<li>There is now a script to generate offline versions of the manual based on their online version.</li>
<li>Sidebar button width is now fixed.</li>
<li>Artifacts have been added to appstream metadata.</li>
</ul>
</description>
<artifacts>
<artifact type="binary" platform="x86_64-windows-any">
<location>https://artifacts.accountfree.org/repository/apps.ad5001.eu-apps/logarithmplotter/v0.1.8/logarithmplotter-v0.1.8-setup.exe</location>
</artifact>
<artifact type="binary" platform="x86_64-macos-any">
<location>https://artifacts.accountfree.org/repository/apps.ad5001.eu-apps/logarithmplotter/v0.1.8/logarithmplotter-v0.1.8-setup.exe</location>
</artifact>
<artifact type="source">
<location>https://artifacts.accountfree.org/repository/apps.ad5001.eu-apps/logarithmplotter/v0.1.8/logarithmplotter-0.1.8.tar.gz</location>
</artifact>
</artifacts>
</release>
<release version="0.1.7" date="2022-02-03">
<description>
<p><b>Changes for v0.1.7:</b></p>
<p>New</p>
<ul>
<li>The history browser has been completly redesigned, improving UX.</li>
<li>The history browser now features a filter bar.</li>
<li>All side panel tabs now have a visually identifiable scrollbar.</li>
</ul>
<p>Changes</p>
<ul>
<li>Shorter rich text representations of history entries to improve readability.</li>
<li>Usage of gradiants and icons to better identify history entries at a glance.</li>
<li>History entries are now showing the whole label on several lines, instead of cutting it at the end.</li>
<li>New history action for renaming.</li>
<li>New history action for coloring. Note: color changing history entries created in previous versions of LogarithmPlotter will not be updated.</li>
<li>Tooltips for object creation buttons have been added.</li>
<li>Tooltips have been set to have a delay of 200ms to match most software's handling of them.</li>
<li>Object creation buttons now have a unified style accross all platforms.</li>
</ul>
<p>Added translations</p>
<ul>
<li>History action of renaming objects.</li>
<li>History action of changing the color of objects.</li>
<li>Filtering for history browser.</li>
</ul>
<p>Fixed bugs</p>
<ul>
<li>Visibility history actions (shown and hidden) are now properly savedmaking loading them not automaticly changed to "Show".</li>
<li>Name changes history actions are now properly saved.</li>
<li>Non translated object type on the "+ Create new object" item selection combobox for Bode Magnitude and Phase.</li>
<li>Proper handling for future LogarithmPlotter files.</li>
<li>Shortcuts not being displayed in the menu bar are now properly shown.</li>
<li>(flatpak) Black versions of the icons when using a black theme with the KDE SDK.</li>
<li>(debian) Fixed launchpad building properly.</li>
</ul>
<p>Internal changes</p>
<ul>
<li>Better organisation on icons.</li>
<li>Historylib has been separated in several files.</li>
<li>Trying to switch metainfo once more to try and fix another bug.</li>
<li>Keywords added to metainfo.</li>
</ul>
</description>
<artifacts>
<artifact type="binary" platform="x86_64-windows-any">
<location>https://artifacts.accountfree.org/repository/apps.ad5001.eu-apps/logarithmplotter/v0.1.7/logarithmplotter-v0.1.7-setup.exe</location>
</artifact>
<artifact type="binary" platform="x86_64-macos-any">
<location>https://artifacts.accountfree.org/repository/apps.ad5001.eu-apps/logarithmplotter/v0.1.7/logarithmplotter-v0.1.7-setup.exe</location>
</artifact>
<artifact type="source">
<location>https://artifacts.accountfree.org/repository/apps.ad5001.eu-apps/logarithmplotter/v0.1.7/logarithmplotter-0.1.7.tar.gz</location>
</artifact>
</artifacts>
</release>
<release version="0.1.6" date="2022-01-29">
<description>
<p><b>Changes for v0.1.6:</b></p>
<p>New</p>
<ul>
<li>A new changelog popup is available at startup and in the help menu.</li>
</ul>
<p>Added translations</p>
<ul>
<li>Object properties names.</li>
<li>Object properties enum values.</li>
<li>Object comments.</li>
<li>Most elements using a ":".</li>
</ul>
<p>Fixed bugs</p>
<ul>
<li>X Cursor's targets can now be set to null.</li>
<li>History now imports domains and objects properly.</li>
<li>Proper handling for future LogarithmPlotter files.</li>
<li>(debian) Fixing bug that created a /build directory and didn't put the icons in the right directories.</li>
</ul>
<p>Other</p>
<ul>
<li>Other: Refractoring done on helper.</li>
<li>Other: All QML elements are now properly commented.</li>
<li>Other: Scripts have been moved to it's own directory.</li>
<li>Other: Added changelog to metainfo for flathub.</li>
</ul>
</description>
<artifacts>
<artifact type="binary" platform="x86_64-windows-any">
<location>https://artifacts.accountfree.org/repository/apps.ad5001.eu-apps/logarithmplotter/v0.1.6/logarithmplotter-v0.1.6-setup.exe</location>
</artifact>
<artifact type="binary" platform="x86_64-macos-any">
<location>https://artifacts.accountfree.org/repository/apps.ad5001.eu-apps/logarithmplotter/v0.1.6/logarithmplotter-v0.1.6-setup.exe</location>
</artifact>
<artifact type="source">
<location>https://artifacts.accountfree.org/repository/apps.ad5001.eu-apps/logarithmplotter/v0.1.6/LogarithmPlotter-v0.1.6.tar.gz</location>
</artifact>
</artifacts>
</release>
<release version="0.1.5" date="2022-01-26">
<description>
<p><b>Changes for v0.1.5:</b></p>
<p>New</p>
<ul>
<li>LogarithmPlotter has now better handling of very high values in logarithmic scale.</li>
</ul>
<p>Added translations</p>
<ul>
<li>Flatpak metadata, including translated image.</li>
</ul>
<p>Fixed bugs</p>
<ul>
<li>(!) File saving dialog was not working.</li>
<li>(!) Debian packages does include any language file.</li>
<li>X Cursor pointing does not detect any object.</li>
</ul>
</description>
<artifacts>
<artifact type="binary" platform="x86_64-windows-any">
<location>https://artifacts.accountfree.org/repository/apps.ad5001.eu-apps/logarithmplotter/v0.1.5/logarithmplotter-v0.1.5-setup.exe</location>
</artifact>
<artifact type="binary" platform="x86_64-macos-any">
<location>https://artifacts.accountfree.org/repository/apps.ad5001.eu-apps/logarithmplotter/v0.1.5/logarithmplotter-v0.1.5-setup.exe</location>
</artifact>
<artifact type="source">
<location>https://artifacts.accountfree.org/repository/apps.ad5001.eu-apps/logarithmplotter/v0.1.5/LogarithmPlotter-v0.1.5.tar.gz</location>
</artifact>
</artifacts>
</release>
<release version="0.1.4" date="2022-01-24">
<description>
<p><b>Changes for v0.1.4:</b></p>
<p>New</p>
<ul>
<li>LogarithmPlotter detects unsaved changes.</li>
<li>LogarithmPlotter is now translated!</li>
<li>New translation: English by Ad5001: 100%</li>
<li>New translation: French by Ad5001: 100%</li>
<li>New translation: German by Ad5001: 100%</li>
<li>New translation: Hungarian by Óvári (@ovari on github): 100%</li>
<li>New translation: Norvegian by Allan Nordhøy (@comradekingu on github): 80%</li>
</ul>
<p>Fixed bugs</p>
<ul>
<li>Fixed bug: No notification when closing LogarithmPlotter with unsaved changes.</li>
<li>Fixed bug: π unavailable in symbols.</li>
</ul>
</description>
<artifacts>
<artifact type="binary" platform="x86_64-windows-any">
<location>https://artifacts.accountfree.org/repository/apps.ad5001.eu-apps/logarithmplotter/v0.1.4/logarithmplotter-v0.1.4-setup.exe</location>
</artifact>
<artifact type="binary" platform="x86_64-macos-any">
<location>https://artifacts.accountfree.org/repository/apps.ad5001.eu-apps/logarithmplotter/v0.1.4/logarithmplotter-v0.1.4-setup.exe</location>
</artifact>
<artifact type="source">
<location>https://artifacts.accountfree.org/repository/apps.ad5001.eu-apps/logarithmplotter/v0.1.4/LogarithmPlotter-v0.1.4.tar.gz</location>
</artifact>
</artifacts>
</release>
<release version="0.1.3" date="2022-01-18">
<description>
<p><b>Changes for v0.1.3:</b></p>
<p>Fixed bugs</p>
<ul>
<li>Sandboxed packages (snapcraft and flatpak) won't show error messages related to update checks.</li>
<li>Equations of the form (x + y) / z were not being simplified properly.</li>
</ul>
</description>
<artifacts>
<artifact type="binary" platform="x86_64-windows-any">
<location>https://artifacts.accountfree.org/repository/apps.ad5001.eu-apps/logarithmplotter/v0.1.3/logarithmplotter-v0.1.3-setup.exe</location>
</artifact>
<artifact type="binary" platform="x86_64-macos-any">
<location>https://artifacts.accountfree.org/repository/apps.ad5001.eu-apps/logarithmplotter/v0.1.3/logarithmplotter-v0.1.3-setup.exe</location>
</artifact>
<artifact type="source">
<location>https://artifacts.accountfree.org/repository/apps.ad5001.eu-apps/logarithmplotter/v0.1.3/LogarithmPlotter-v0.1.3.tar.gz</location>
</artifact>
</artifacts>
</release>
<release version="0.1.2" date="2021-09-30">
<description>
<p><b>Changes for v0.1.2:</b></p>
<p>Fixed bugs</p>
<ul>
<li>Unable to move Bode diagrams elements when having deleted the sum element.</li>
<li>Names were not not being changed from previous object when editing a new one.</li>
<li>Bode Magnitude was not drawn far enough.</li>
<li>Bode Magnitude had undefined ending.</li>
<li>Other bugs patched in v0.1.1.</li>
</ul>
</description>
<artifacts>
<artifact type="binary" platform="x86_64-windows-any">
<location>https://artifacts.accountfree.org/repository/apps.ad5001.eu-apps/logarithmplotter/v0.1.2/logarithmplotter-v0.1.2-setup.exe</location>
</artifact>
<artifact type="binary" platform="x86_64-macos-any">
<location>https://artifacts.accountfree.org/repository/apps.ad5001.eu-apps/logarithmplotter/v0.1.2/logarithmplotter-v0.1.2-setup.exe</location>
</artifact>
<artifact type="source">
<location>https://artifacts.accountfree.org/repository/apps.ad5001.eu-apps/logarithmplotter/v0.1.2/LogarithmPlotter-v0.1.2.tar.gz</location>
</artifact>
</artifacts>
</release>
<release version="0.1" date="2021-08-26">
<p><b>Changes for v0.1:</b></p>
<ul>
<li>Initial release.</li>
</ul>
</release>
</releases>
<content_rating type="oars-1.0">
</content_rating>
<developer_name>Ad5001</developer_name>
<update_contact>mail@ad5001.eu</update_contact>
<keywords>
<keyword>Plot</keyword>
<keyword>Plotter</keyword>
<keyword>Log</keyword>
<keyword>Logarithm</keyword>
<keyword>Logarithmic</keyword>
<keyword>Bode</keyword>
<keyword>Magnitude</keyword>
<keyword>Diagram</keyword>
<keyword>Graph</keyword>
<keyword>Phase</keyword>
<keyword>Sequence</keyword>
<keyword>Distribution</keyword>
</keywords>
</application>