Skip to content

Commit

Permalink
Define path also for Windows
Browse files Browse the repository at this point in the history
Signed-off-by: Martin <Ho-Ro@users.noreply.github.com>
  • Loading branch information
Ho-Ro committed Apr 8, 2022
1 parent e9447fd commit 767d9a4
Show file tree
Hide file tree
Showing 11 changed files with 85 additions and 82 deletions.
2 changes: 1 addition & 1 deletion openhantek/src/OH_BUILD.h
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
// Do not edit, will be re-created at each commit!
#define OH_BUILD "20220408 - commit 994"
#define OH_BUILD "20220408 - commit 995"
3 changes: 3 additions & 0 deletions openhantek/src/selectdevice/selectsupporteddevice.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,9 @@ std::unique_ptr< ScopeDevice > SelectSupportedDevice::showSelectDeviceModal( lib
std::unique_ptr< DevicesListModel >( new DevicesListModel( findDevices.get(), verboseLevel ) );
ui->cmbDevices->setModel( model.get() );

#ifdef Q_OS_WIN
const QString DocPath = QCoreApplication::applicationDirPath().append( "/documents/" );
#endif
QString userManualPath;
if ( QFile( DocPath + UserManualName ).exists() )
userManualPath = QString( "file://" ) + DocPath + UserManualName;
Expand Down
18 changes: 9 additions & 9 deletions openhantek/translations/openhantek_de.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2173,17 +2173,17 @@
<translation type="vanished">&lt;p&gt;&lt;br/&gt;&lt;b&gt;Das Gerät ist bereit.&lt;/b&gt;&lt;/p&gt;&lt;p&gt;Das &lt;a href=&apos;https://github.com/OpenHantek/OpenHantek6022/blob/master/docs/OpenHantek6022_User_Manual.pdf&apos;&gt;Benutzerhandbuch&lt;/a&gt; gibt Hinweise für den sicheren Gebrauch.&lt;/p&gt;</translation>
</message>
<message>
<location filename="../src/selectdevice/selectsupporteddevice.cpp" line="100"/>
<location filename="../src/selectdevice/selectsupporteddevice.cpp" line="103"/>
<source>&lt;p&gt;Upload in progress ...&lt;/p&gt;&lt;p&gt;&lt;b&gt;If the upload takes more than 30 s, please close this window &lt;br/&gt;and restart the program!&lt;/b&gt;&lt;/p&gt;</source>
<translation>&lt;p&gt;Firmware wird geladen...&lt;/p&gt;&lt;p&gt;&lt;b&gt;Sollte dies länger als 30 s dauern, bitte abbrechen &lt;br/&gt;und das Programm neu starten!&lt;/b&gt;&lt;/p&gt;</translation>
</message>
<message>
<location filename="../src/selectdevice/selectsupporteddevice.cpp" line="104"/>
<location filename="../src/selectdevice/selectsupporteddevice.cpp" line="107"/>
<source>&lt;p&gt;&lt;br/&gt;&lt;b&gt;Connection failed!&lt;/b&gt;&lt;/p&gt;</source>
<translation>&lt;p&gt;&lt;br/&gt;&lt;b&gt;Verbindungsfehler!&lt;/b&gt;&lt;/p&gt;</translation>
</message>
<message>
<location filename="../src/selectdevice/selectsupporteddevice.cpp" line="67"/>
<location filename="../src/selectdevice/selectsupporteddevice.cpp" line="70"/>
<source>&lt;p&gt;OpenHantek6022 is searching for compatible devices ...&lt;/p&gt;&lt;p&gt;&lt;img align=&apos;right&apos; height=&apos;200&apos; src=&apos;qrc:///switch_6022BL.png&apos;&gt;Don&apos;t forget to switch your device into oscilloscope mode if it has multiple modes.&lt;/p&gt;</source>
<translation>&lt;p&gt;OpenHantek6022 sucht nach kompatiblen Geräten ...&lt;/p&gt;&lt;p&gt;&lt;img align=&apos;right&apos; height=&apos;150&apos; src=&apos;qrc:///switch_6022BL.png&apos;&gt;Bitte das Gerät in den Oszilloskop-Modus schalten, falls es mehrere Funktionen besitzt.&lt;/p&gt;</translation>
</message>
Expand All @@ -2192,22 +2192,22 @@
<translation type="vanished">&lt;p&gt;&lt;br/&gt;&lt;b&gt;Das Gerät ist bereit.&lt;/b&gt;&lt;/p&gt;&lt;p&gt;Das &lt;a href=&apos;https://github.com/OpenHantek/OpenHantek6022/blob/main/docs/OpenHantek6022_User_Manual.pdf&apos;&gt;Benutzerhandbuch&lt;/a&gt; gibt Hinweise für den sicheren Gebrauch.&lt;/p&gt;</translation>
</message>
<message>
<location filename="../src/selectdevice/selectsupporteddevice.cpp" line="62"/>
<location filename="../src/selectdevice/selectsupporteddevice.cpp" line="65"/>
<source>&lt;p&gt;&lt;br/&gt;&lt;b&gt;The device is ready for use.&lt;/b&gt;&lt;/p&gt;&lt;p&gt;Please observe the &lt;a href=&apos;%1&apos;&gt;user manual&lt;/a&gt; for safe operation.&lt;/p&gt;</source>
<translation>&lt;p&gt;&lt;br/&gt;&lt;b&gt;Das Gerät ist bereit.&lt;/b&gt;&lt;/p&gt;&lt;p&gt;Das &lt;a href=&apos;%1&apos;&gt;Benutzerhandbuch&lt;/a&gt; gibt Hinweise für den sicheren Gebrauch.&lt;/p&gt;</translation>
</message>
<message>
<location filename="../src/selectdevice/selectsupporteddevice.cpp" line="71"/>
<location filename="../src/selectdevice/selectsupporteddevice.cpp" line="74"/>
<source>&lt;p&gt;Please make sure you have installed the windows usb driver correctly&lt;/p&gt;</source>
<translation>&lt;p&gt;Bitte sicherstellen, dass der korrekte Windows-Treiber installiert ist.&lt;/p&gt;</translation>
</message>
<message>
<location filename="../src/selectdevice/selectsupporteddevice.cpp" line="76"/>
<location filename="../src/selectdevice/selectsupporteddevice.cpp" line="79"/>
<source>&lt;p&gt;Please make sure you have copied the udev rules file to&lt;br/&gt;&lt;b&gt;%1&lt;/b&gt; or&lt;br/&gt;&lt;b&gt;%2&lt;/b&gt;&lt;br/&gt;for correct USB access permissions.&lt;/p&gt;</source>
<translation>&lt;p&gt;Bitte sicherstellen, dass eine udev-Regel nach&lt;br/&gt;&lt;b&gt;%1&lt;/b&gt; oder&lt;br/&gt;&lt;b&gt;%2&lt;/b&gt;&lt;br/&gt;kopiert wurde um den USB-Zugriff zu ermöglichen.&lt;/p&gt;</translation>
</message>
<message>
<location filename="../src/selectdevice/selectsupporteddevice.cpp" line="83"/>
<location filename="../src/selectdevice/selectsupporteddevice.cpp" line="86"/>
<source>&lt;p&gt;Visit the build and run instruction &lt;a href=&apos;https://github.com/OpenHantek/OpenHantek6022/blob/main/docs/build.md&apos;&gt;website&lt;/a&gt; for help.&lt;/p&gt;</source>
<translation>&lt;p&gt;&lt;a href=&apos;https://github.com/OpenHantek/OpenHantek6022/blob/main/docs/build.md&apos;&gt;Informationen&lt;/a&gt; zur Erstellung des Programms.&lt;/p&gt;</translation>
</message>
Expand All @@ -2224,12 +2224,12 @@
<translation type="vanished">&lt;p&gt;&lt;a href=&apos;https://github.com/OpenHantek/OpenHantek6022/blob/master/docs/build.md&apos;&gt;Informationen&lt;/a&gt; zur Erstellung des Programms.&lt;/p&gt;</translation>
</message>
<message>
<location filename="../src/selectdevice/selectsupporteddevice.cpp" line="85"/>
<location filename="../src/selectdevice/selectsupporteddevice.cpp" line="88"/>
<source>&lt;hr/&gt;&lt;p&gt;Even without a device you can explore the program&apos;s function. Just press the &lt;b&gt;Demo Mode&lt;/b&gt; button below.&lt;/p&gt;</source>
<translation>&lt;hr/&gt;&lt;p&gt;Die Funktionen des Programms können auch ohne Gerät im &lt;b&gt;Demo-Modus&lt;/b&gt; erkundet werden.&lt;/p&gt;</translation>
</message>
<message>
<location filename="../src/selectdevice/selectsupporteddevice.cpp" line="169"/>
<location filename="../src/selectdevice/selectsupporteddevice.cpp" line="172"/>
<source>Can&apos;t initalize USB: %1</source>
<translation>Kann USB nicht initialisieren: %1</translation>
</message>
Expand Down
18 changes: 9 additions & 9 deletions openhantek/translations/openhantek_es.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1940,17 +1940,17 @@
<translation type="vanished">&lt;p&gt;&lt;br/&gt;&lt;b&gt;El dispositivo está listo para su uso.&lt;/b&gt;&lt;/p&gt;&lt;p&gt;Lea con detenimiento el &lt;a href=&apos;https://github.com/OpenHantek/OpenHantek6022/blob/master/docs/OpenHantek6022_User_Manual.pdf&apos;&gt;manual del usuario&lt;/a&gt; para una operacion segura.&lt;/p&gt;</translation>
</message>
<message>
<location filename="../src/selectdevice/selectsupporteddevice.cpp" line="100"/>
<location filename="../src/selectdevice/selectsupporteddevice.cpp" line="103"/>
<source>&lt;p&gt;Upload in progress ...&lt;/p&gt;&lt;p&gt;&lt;b&gt;If the upload takes more than 30 s, please close this window &lt;br/&gt;and restart the program!&lt;/b&gt;&lt;/p&gt;</source>
<translation>&lt;p&gt;Carga en progreso ...&lt;/p&gt;&lt;p&gt;&lt;b&gt;Si la carga durase más de 30 s, cierre esta ventana &lt;br/&gt;y reinicie el programa.&lt;/b&gt;&lt;/p&gt;</translation>
</message>
<message>
<location filename="../src/selectdevice/selectsupporteddevice.cpp" line="104"/>
<location filename="../src/selectdevice/selectsupporteddevice.cpp" line="107"/>
<source>&lt;p&gt;&lt;br/&gt;&lt;b&gt;Connection failed!&lt;/b&gt;&lt;/p&gt;</source>
<translation>&lt;p&gt;&lt;br/&gt;&lt;b&gt;Ha fallado la conexión.&lt;/b&gt;&lt;/p&gt;</translation>
</message>
<message>
<location filename="../src/selectdevice/selectsupporteddevice.cpp" line="67"/>
<location filename="../src/selectdevice/selectsupporteddevice.cpp" line="70"/>
<source>&lt;p&gt;OpenHantek6022 is searching for compatible devices ...&lt;/p&gt;&lt;p&gt;&lt;img align=&apos;right&apos; height=&apos;200&apos; src=&apos;qrc:///switch_6022BL.png&apos;&gt;Don&apos;t forget to switch your device into oscilloscope mode if it has multiple modes.&lt;/p&gt;</source>
<translation>&lt;p&gt;OpenHantek6022 está buscando dispositivos compatibles...&lt;/p&gt;&lt;p&gt;&lt;img align=&apos;right&apos; height=&apos;200&apos; src=&apos;qrc:///switch_6022BL.png&apos;&gt;No olvide cambiar su dispositivo al modo osciloscopio si tiene múltiples modos.&lt;/p&gt;</translation>
</message>
Expand All @@ -1959,22 +1959,22 @@
<translation type="vanished">&lt;p&gt;&lt;br/&gt;&lt;b&gt;El dispositivo está listo para su uso.&lt;/b&gt;&lt;/p&gt;&lt;p&gt;Lea con detenimiento el &lt;a href=&apos;https://github.com/OpenHantek/OpenHantek6022/blob/main/docs/OpenHantek6022_User_Manual.pdf&apos;&gt;manual del usuario&lt;/a&gt; para una operacion segura.&lt;/p&gt;</translation>
</message>
<message>
<location filename="../src/selectdevice/selectsupporteddevice.cpp" line="62"/>
<location filename="../src/selectdevice/selectsupporteddevice.cpp" line="65"/>
<source>&lt;p&gt;&lt;br/&gt;&lt;b&gt;The device is ready for use.&lt;/b&gt;&lt;/p&gt;&lt;p&gt;Please observe the &lt;a href=&apos;%1&apos;&gt;user manual&lt;/a&gt; for safe operation.&lt;/p&gt;</source>
<translation>&lt;p&gt;&lt;br/&gt;&lt;b&gt;El dispositivo está listo para su uso.&lt;/b&gt;&lt;/p&gt;&lt;p&gt;Lea con detenimiento el &lt;a href=&apos;%1&apos;&gt;manual del usuario&lt;/a&gt; para una operacion segura.&lt;/p&gt;</translation>
</message>
<message>
<location filename="../src/selectdevice/selectsupporteddevice.cpp" line="71"/>
<location filename="../src/selectdevice/selectsupporteddevice.cpp" line="74"/>
<source>&lt;p&gt;Please make sure you have installed the windows usb driver correctly&lt;/p&gt;</source>
<translation>&lt;p&gt;Asegúrese de que ha instalado el controlador USB de Windows correctamente&lt;/p&gt;</translation>
</message>
<message>
<location filename="../src/selectdevice/selectsupporteddevice.cpp" line="76"/>
<location filename="../src/selectdevice/selectsupporteddevice.cpp" line="79"/>
<source>&lt;p&gt;Please make sure you have copied the udev rules file to&lt;br/&gt;&lt;b&gt;%1&lt;/b&gt; or&lt;br/&gt;&lt;b&gt;%2&lt;/b&gt;&lt;br/&gt;for correct USB access permissions.&lt;/p&gt;</source>
<translation>&lt;p&gt;Asegúrese de que ha copiado las reglas udev en&lt;br/&gt;&lt;b&gt;%1&lt;/b&gt; o&lt;br/&gt;&lt;b&gt;%2&lt;/b&gt;&lt;br/&gt;para permisos de acceso USB correctos.&lt;/p&gt;</translation>
</message>
<message>
<location filename="../src/selectdevice/selectsupporteddevice.cpp" line="83"/>
<location filename="../src/selectdevice/selectsupporteddevice.cpp" line="86"/>
<source>&lt;p&gt;Visit the build and run instruction &lt;a href=&apos;https://github.com/OpenHantek/OpenHantek6022/blob/main/docs/build.md&apos;&gt;website&lt;/a&gt; for help.&lt;/p&gt;</source>
<translation>&lt;p&gt;Visite las instrucciones de compilación y ejecución en el &lt;a href=&apos;https://github.com/OpenHantek/OpenHantek6022/blob/main/docs/build.md&apos;&gt;sitio web&lt;/a&gt; para más ayuda.&lt;/p&gt;</translation>
</message>
Expand All @@ -1991,12 +1991,12 @@
<translation type="vanished">&lt;p&gt;Visite las instrucciones de compilación y ejecución en el &lt;a href=&apos;https://github.com/OpenHantek/OpenHantek6022/blob/master/docs/build.md&apos;&gt;sitio web&lt;/a&gt; para más ayuda.&lt;/p&gt;</translation>
</message>
<message>
<location filename="../src/selectdevice/selectsupporteddevice.cpp" line="85"/>
<location filename="../src/selectdevice/selectsupporteddevice.cpp" line="88"/>
<source>&lt;hr/&gt;&lt;p&gt;Even without a device you can explore the program&apos;s function. Just press the &lt;b&gt;Demo Mode&lt;/b&gt; button below.&lt;/p&gt;</source>
<translation>&lt;hr/&gt;&lt;p&gt;Incluso sin un dispositivo puedes explorar la función del programa, sólo tienes que pulsar el botón &lt;b&gt;Modo de demostración&lt;/b&gt;.&lt;/p&gt;</translation>
</message>
<message>
<location filename="../src/selectdevice/selectsupporteddevice.cpp" line="169"/>
<location filename="../src/selectdevice/selectsupporteddevice.cpp" line="172"/>
<source>Can&apos;t initalize USB: %1</source>
<translation>No se puede inicializar USB: %1</translation>
</message>
Expand Down
18 changes: 9 additions & 9 deletions openhantek/translations/openhantek_fr.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2108,17 +2108,17 @@
<translation type="vanished">&lt;p&gt;&lt;br/&gt;&lt;b&gt;L&apos;appareil est prêt à l&apos;emploi.&lt;/b&gt;&lt;/p&gt;&lt;p&gt;Veuillez lire le &lt;a href=&apos;https://github.com/OpenHantek/OpenHantek6022/blob/master/docs/OpenHantek6022_User_Manual.pdf&apos;&gt;mode d&apos;emploi&lt;/a&gt; pour un fonctionnement sûr.&lt;/p&gt;</translation>
</message>
<message>
<location filename="../src/selectdevice/selectsupporteddevice.cpp" line="100"/>
<location filename="../src/selectdevice/selectsupporteddevice.cpp" line="103"/>
<source>&lt;p&gt;Upload in progress ...&lt;/p&gt;&lt;p&gt;&lt;b&gt;If the upload takes more than 30 s, please close this window &lt;br/&gt;and restart the program!&lt;/b&gt;&lt;/p&gt;</source>
<translation>&lt;p&gt;Téléchargement en cours...&lt;/p&gt;&lt;p&gt;&lt;b&gt;S&apos;il dure plus de 30 s, fermez cette fenêtre &lt;br/&gt;et redémarrez le programme !&lt;/b&gt;&lt;/p&gt;</translation>
</message>
<message>
<location filename="../src/selectdevice/selectsupporteddevice.cpp" line="104"/>
<location filename="../src/selectdevice/selectsupporteddevice.cpp" line="107"/>
<source>&lt;p&gt;&lt;br/&gt;&lt;b&gt;Connection failed!&lt;/b&gt;&lt;/p&gt;</source>
<translation>&lt;p&gt;&lt;br/&gt;&lt;b&gt;La connexion a échoué !&lt;/b&gt;&lt;/p&gt;</translation>
</message>
<message>
<location filename="../src/selectdevice/selectsupporteddevice.cpp" line="67"/>
<location filename="../src/selectdevice/selectsupporteddevice.cpp" line="70"/>
<source>&lt;p&gt;OpenHantek6022 is searching for compatible devices ...&lt;/p&gt;&lt;p&gt;&lt;img align=&apos;right&apos; height=&apos;200&apos; src=&apos;qrc:///switch_6022BL.png&apos;&gt;Don&apos;t forget to switch your device into oscilloscope mode if it has multiple modes.&lt;/p&gt;</source>
<translation>&lt;p&gt;OpenHantek6022 recherche des périphériques compatibles...&lt;/p&gt;&lt;p&gt;&lt;img align=&apos;right&apos; height=&apos;200&apos; src=&apos;qrc:////switch_6022BL.png&apos;&gt;N&apos;oubliez pas de passer votre appareil en mode oscilloscope s&apos;il a plusieurs modes.&lt;/p&gt;</translation>
</message>
Expand All @@ -2127,22 +2127,22 @@
<translation type="vanished">&lt;br/&gt;&lt;p&gt;&lt;b&gt;L&apos;appareil est prêt à l&apos;emploi.&lt;/b&gt;&lt;/p&gt;&lt;p&gt;Veuillez observer le &lt;a href=&apos;https://github.com/OpenHantek/OpenHantek6022/blob/main/docs/OpenHantek6022_User_Manual.pdf&apos;&gt;mode d&apos;emploi&lt;/a&gt; pour un fonctionnement sûr.&lt;/p&gt;</translation>
</message>
<message>
<location filename="../src/selectdevice/selectsupporteddevice.cpp" line="62"/>
<location filename="../src/selectdevice/selectsupporteddevice.cpp" line="65"/>
<source>&lt;p&gt;&lt;br/&gt;&lt;b&gt;The device is ready for use.&lt;/b&gt;&lt;/p&gt;&lt;p&gt;Please observe the &lt;a href=&apos;%1&apos;&gt;user manual&lt;/a&gt; for safe operation.&lt;/p&gt;</source>
<translation>&lt;br/&gt;&lt;p&gt;&lt;b&gt;L&apos;appareil est prêt à l&apos;emploi.&lt;/b&gt;&lt;/p&gt;&lt;p&gt;Veuillez observer le &lt;a href=&apos;%1&apos;&gt;mode d&apos;emploi&lt;/a&gt; pour un fonctionnement sûr.&lt;/p&gt;</translation>
</message>
<message>
<location filename="../src/selectdevice/selectsupporteddevice.cpp" line="71"/>
<location filename="../src/selectdevice/selectsupporteddevice.cpp" line="74"/>
<source>&lt;p&gt;Please make sure you have installed the windows usb driver correctly&lt;/p&gt;</source>
<translation>&lt;p&gt;Assurez-vous d&apos;avoir installé correctement le pilote USB de Windows&lt;/p&gt;</translation>
</message>
<message>
<location filename="../src/selectdevice/selectsupporteddevice.cpp" line="76"/>
<location filename="../src/selectdevice/selectsupporteddevice.cpp" line="79"/>
<source>&lt;p&gt;Please make sure you have copied the udev rules file to&lt;br/&gt;&lt;b&gt;%1&lt;/b&gt; or&lt;br/&gt;&lt;b&gt;%2&lt;/b&gt;&lt;br/&gt;for correct USB access permissions.&lt;/p&gt;</source>
<translation>&lt;p&gt;Assurez-vous d&apos;avoir copié le fichier de règles udev dans&lt;br/&gt;&lt;b&gt;%1&lt;/b&gt; ou&lt;br/&gt;&lt;b&gt;%2&lt;/b&gt;&lt;br/&gt;pour des permissions d&apos;accès USB correctes.&lt;/p&gt;</translation>
</message>
<message>
<location filename="../src/selectdevice/selectsupporteddevice.cpp" line="83"/>
<location filename="../src/selectdevice/selectsupporteddevice.cpp" line="86"/>
<source>&lt;p&gt;Visit the build and run instruction &lt;a href=&apos;https://github.com/OpenHantek/OpenHantek6022/blob/main/docs/build.md&apos;&gt;website&lt;/a&gt; for help.&lt;/p&gt;</source>
<translation>&lt;p&gt;Visitez la page d&apos;instructions &lt;a href=&apos;https://github.com/OpenHantek/OpenHantek6022/blob/main/docs/build.md&apos;&gt;build and run&lt;/a&gt; pour de l&apos;aide.&lt;/p&gt;</translation>
</message>
Expand All @@ -2159,12 +2159,12 @@
<translation type="vanished">&lt;p&gt;Visitez la page d&apos;instructions &lt;a href=&apos;https://github.com/OpenHantek/OpenHantek6022/blob/master/docs/build.md&apos;&gt;build and run&lt;/a&gt; pour de l&apos;aide.&lt;/p&gt;</translation>
</message>
<message>
<location filename="../src/selectdevice/selectsupporteddevice.cpp" line="85"/>
<location filename="../src/selectdevice/selectsupporteddevice.cpp" line="88"/>
<source>&lt;hr/&gt;&lt;p&gt;Even without a device you can explore the program&apos;s function. Just press the &lt;b&gt;Demo Mode&lt;/b&gt; button below.&lt;/p&gt;</source>
<translation>&lt;hr/&gt;&lt;p&gt;Même sans appareil, vous pouvez explorer la fonction du programme, il suffit d&apos;appuyer sur le bouton &lt;b&gt;Mode Démo&lt;/b&gt;.&lt;/p&gt;</translation>
</message>
<message>
<location filename="../src/selectdevice/selectsupporteddevice.cpp" line="169"/>
<location filename="../src/selectdevice/selectsupporteddevice.cpp" line="172"/>
<source>Can&apos;t initalize USB: %1</source>
<translation>Impossible d&apos;initialiser l&apos;USB: %1</translation>
</message>
Expand Down
Loading

0 comments on commit 767d9a4

Please sign in to comment.