diff options
author | Thomas Preud'homme <robotux@celest.fr> | 2017-11-24 23:24:09 +0000 |
---|---|---|
committer | Thomas Preud'homme <robotux@celest.fr> | 2017-11-24 23:24:09 +0000 |
commit | b3c8bdcc0d1e4b2ab298847a7902b6d60410a5bc (patch) | |
tree | 8fce8a51adfb245db8ab2a76831661780c0c713e /plugins/Themes | |
parent | e297dbd8052ef4e66f069e2dd1865ae7fa8af28e (diff) |
New upstream version 1.2.3.6
Diffstat (limited to 'plugins/Themes')
65 files changed, 7794 insertions, 3282 deletions
diff --git a/plugins/Themes/Oxygen/DebugEngineMacro.h b/plugins/Themes/Oxygen/DebugEngineMacro.h index a3dd648..4582010 100644 --- a/plugins/Themes/Oxygen/DebugEngineMacro.h +++ b/plugins/Themes/Oxygen/DebugEngineMacro.h @@ -1,12 +1,15 @@ /** \file DebugEngineMacro.h \brief Define the macro for the debug \author alpha_one_x86 -\version 0.3 -\date 2010 */ +\licence GPL3, see the file COPYING */ #ifndef DEBUGENGINEMACRO_H #define DEBUGENGINEMACRO_H +#ifdef WIN32 +# define __func__ __FUNCTION__ +#endif + /// \brief Macro for the debug log #ifdef ULTRACOPIER_PLUGIN_DEBUG #if defined (__FILE__) && defined (__LINE__) diff --git a/plugins/Themes/Oxygen/Environment.h b/plugins/Themes/Oxygen/Environment.h index 94fd104..265a5a6 100644 --- a/plugins/Themes/Oxygen/Environment.h +++ b/plugins/Themes/Oxygen/Environment.h @@ -1,8 +1,7 @@ /** \file Environment.h
\brief Define the environment variable and global function
\author alpha_one_x86
-\version 0.3
-\date 2010 */
+\licence GPL3, see the file COPYING */
#include "Variable.h"
/// \brief The global include
diff --git a/plugins/Themes/Oxygen/Languages/ar/translation.ts b/plugins/Themes/Oxygen/Languages/ar/translation.ts index 0708252..ae86b54 100644 --- a/plugins/Themes/Oxygen/Languages/ar/translation.ts +++ b/plugins/Themes/Oxygen/Languages/ar/translation.ts @@ -4,15 +4,84 @@ <context> <name>Themes</name> <message> - <location filename="../../interface.cpp" line="184"/> + <location filename="../../interface.cpp" line="240"/> + <source>Buy the Ultimate version to fund development</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../../interface.cpp" line="310"/> <source>File %1/%2, size: %3/%4</source> <translation type="unfinished"></translation> </message> <message> - <location filename="../../interface.cpp" line="737"/> + <location filename="../../interface.cpp" line="524"/> + <source>Copy list</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../../interface.cpp" line="526"/> + <source>Move list</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../../interface.cpp" line="947"/> + <source>Don't close if errors are found</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../../interface.cpp" line="948"/> + <source>Never close</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../../interface.cpp" line="949"/> + <source>Always close</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../../interface.cpp" line="951"/> <source>File Name, 0KB</source> <translation type="unfinished"></translation> </message> + <message> + <location filename="../../interface.cpp" line="1134"/> + <location filename="../../interface.cpp" line="1146"/> + <location filename="../../interface.cpp" line="1158"/> + <source>Select a color</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../../interface.cpp" line="1233"/> + <location filename="../../interface.cpp" line="1237"/> + <location filename="../../interface.cpp" line="1239"/> + <source>%1 %2% of %3</source> + <translation type="unfinished"></translation> + </message> +</context> +<context> + <name>ThemesFactory</name> + <message> + <location filename="../../ThemesFactory.cpp" line="223"/> + <source>Don't close if errors are found</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../../ThemesFactory.cpp" line="224"/> + <source>Never close</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../../ThemesFactory.cpp" line="225"/> + <source>Always close</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../../ThemesFactory.cpp" line="421"/> + <location filename="../../ThemesFactory.cpp" line="436"/> + <location filename="../../ThemesFactory.cpp" line="451"/> + <source>Select a color</source> + <translation type="unfinished"></translation> + </message> </context> <context> <name>interfaceCopy</name> @@ -22,178 +91,238 @@ <translation type="unfinished"></translation> </message> <message> - <location filename="../../interface.ui" line="69"/> + <location filename="../../interface.ui" line="65"/> <source>To:</source> <translation type="unfinished"></translation> </message> <message> - <location filename="../../interface.ui" line="196"/> - <source>0KB/sec</source> - <translation type="unfinished"></translation> - </message> - <message> - <location filename="../../interface.ui" line="216"/> + <location filename="../../interface.ui" line="226"/> <source>&More</source> <translation type="unfinished"></translation> </message> <message> - <location filename="../../interface.ui" line="236"/> + <location filename="../../interface.ui" line="246"/> <source>&Pause</source> <translation type="unfinished"></translation> </message> <message> - <location filename="../../interface.ui" line="250"/> + <location filename="../../interface.ui" line="260"/> <source>&Skip</source> <translation type="unfinished"></translation> </message> <message> - <location filename="../../interface.ui" line="261"/> + <location filename="../../interface.ui" line="271"/> <source>&Cancel</source> <translation type="unfinished"></translation> </message> <message> - <location filename="../../interface.ui" line="276"/> - <location filename="../../interface.ui" line="748"/> - <source>Limit copy speed at:</source> + <location filename="../../interface.ui" line="118"/> + <source>Close on transfer completion</source> <translation type="unfinished"></translation> </message> <message> - <location filename="../../interface.ui" line="293"/> - <source>Unlimited</source> + <location filename="../../interface.ui" line="286"/> + <source>Limit copy speed to:</source> <translation type="unfinished"></translation> </message> <message> - <location filename="../../interface.ui" line="323"/> - <source>Copy list</source> + <location filename="../../interface.ui" line="329"/> + <source>Transfer list</source> <translation type="unfinished"></translation> </message> <message> - <location filename="../../interface.ui" line="591"/> - <source>Previous</source> + <location filename="../../interface.ui" line="352"/> + <source>Move the selected items to the top</source> <translation type="unfinished"></translation> </message> <message> - <location filename="../../interface.ui" line="598"/> - <source>Next</source> + <location filename="../../interface.ui" line="378"/> + <source>Move up the selected items</source> <translation type="unfinished"></translation> </message> <message> - <location filename="../../interface.ui" line="637"/> - <source>Options</source> + <location filename="../../interface.ui" line="404"/> + <source>Move down the selected items</source> <translation type="unfinished"></translation> </message> <message> - <location filename="../../interface.ui" line="646"/> - <source>Copy end</source> + <location filename="../../interface.ui" line="430"/> + <source>Move the selected items to the bottom</source> <translation type="unfinished"></translation> </message> <message> - <location filename="../../interface.ui" line="667"/> - <source>At the end of the copy: </source> + <location filename="../../interface.ui" line="456"/> + <source>Add file/folder</source> <translation type="unfinished"></translation> </message> <message> - <location filename="../../interface.ui" line="706"/> - <source>Don't close if errors are found</source> + <location filename="../../interface.ui" line="485"/> + <source>Delete the selected items</source> <translation type="unfinished"></translation> </message> <message> - <location filename="../../interface.ui" line="711"/> - <source>Never close</source> + <location filename="../../interface.ui" line="511"/> + <source>Search</source> <translation type="unfinished"></translation> </message> <message> - <location filename="../../interface.ui" line="716"/> - <source>Always close</source> + <location filename="../../interface.ui" line="540"/> + <source>Export the transfer list</source> <translation type="unfinished"></translation> </message> <message> - <location filename="../../interface.ui" line="727"/> - <source>Speed limit</source> + <location filename="../../interface.ui" line="566"/> + <source>Import the transfer list</source> <translation type="unfinished"></translation> </message> <message> - <location filename="../../interface.ui" line="758"/> - <source> KB/s</source> + <location filename="../../interface.ui" line="621"/> + <source>Previous</source> <translation type="unfinished"></translation> </message> <message> - <location filename="../../interface.ui" line="790"/> - <source>File collisions</source> + <location filename="../../interface.ui" line="628"/> + <source>Next</source> <translation type="unfinished"></translation> </message> <message> - <location filename="../../interface.ui" line="811"/> - <location filename="../../interface.ui" line="871"/> - <source>What to do: </source> + <location filename="../../interface.ui" line="663"/> + <location filename="../../interface.ui" line="732"/> + <source>Error</source> <translation type="unfinished"></translation> </message> <message> - <location filename="../../interface.ui" line="850"/> - <source>Copy errors</source> + <location filename="../../interface.ui" line="683"/> + <source>Export the errors into transfer list</source> <translation type="unfinished"></translation> </message> <message> - <location filename="../../interface.ui" line="928"/> - <source>Interface</source> + <location filename="../../interface.ui" line="722"/> + <source>Source</source> <translation type="unfinished"></translation> </message> <message> - <location filename="../../interface.ui" line="939"/> - <source>Show speed as main informations</source> + <location filename="../../interface.ui" line="727"/> + <source>Destination</source> <translation type="unfinished"></translation> </message> <message> - <location filename="../../interface.ui" line="976"/> + <location filename="../../interface.ui" line="741"/> + <source>Interface</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../../interface.ui" line="778"/> <source>Add file</source> <translation type="unfinished"></translation> </message> <message> - <location filename="../../interface.ui" line="985"/> + <location filename="../../interface.ui" line="787"/> <source>Add folder</source> <translation type="unfinished"></translation> </message> <message> - <location filename="../../interface.ui" line="994"/> + <location filename="../../interface.ui" line="796"/> <source>Move file(s)</source> <translation type="unfinished"></translation> </message> <message> - <location filename="../../interface.ui" line="1003"/> + <location filename="../../interface.ui" line="805"/> <source>Move folder</source> <translation type="unfinished"></translation> </message> <message> - <location filename="../../interface.ui" line="1012"/> + <location filename="../../interface.ui" line="814"/> <source>Copy file(s)</source> <translation type="unfinished"></translation> </message> <message> - <location filename="../../interface.ui" line="1021"/> + <location filename="../../interface.ui" line="823"/> <source>Copy folder</source> <translation type="unfinished"></translation> </message> +</context> +<context> + <name>themesOptions</name> + <message> + <location filename="../../themesOptions.ui" line="253"/> + <source>Show dual progression</source> + <translation type="unfinished"></translation> + </message> <message> - <location filename="../../interface.ui" line="487"/> - <source>Ctrl+F</source> + <location filename="../../themesOptions.ui" line="205"/> + <source>Show speed as main information</source> <translation type="unfinished"></translation> </message> <message> - <location filename="../../interface.ui" line="133"/> - <source>Shutdown when is finish</source> + <location filename="../../themesOptions.ui" line="44"/> + <source>Use</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../../themesOptions.ui" line="50"/> + <source>Start with the "more button" pushed</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../../themesOptions.ui" line="67"/> + <source>Minimize on close to systray</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../../themesOptions.ui" line="96"/> + <source>At the end of the copy</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../../themesOptions.ui" line="103"/> + <location filename="../../themesOptions.ui" line="137"/> + <source>Limit copy speed to</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../../themesOptions.ui" line="147"/> + <source> KB/s</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../../themesOptions.ui" line="176"/> + <source>Start minimized</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../../themesOptions.ui" line="199"/> + <source>Informations</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../../themesOptions.ui" line="237"/> + <source>Display</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../../themesOptions.ui" line="243"/> + <source>Speed with progress bar</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../../themesOptions.ui" line="273"/> + <source>Progression color</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../../themesOptions.ui" line="292"/> + <source>Click to edit the color</source> <translation type="unfinished"></translation> </message> -</context> -<context> - <name>options</name> <message> - <location filename="../../options.ui" line="20"/> - <source>Show speed as main informations</source> + <location filename="../../themesOptions.ui" line="263"/> + <source>Show progression in the title</source> <translation type="unfinished"></translation> </message> <message> - <location filename="../../options.ui" line="33"/> - <source>Start with more button pushed</source> + <location filename="../../themesOptions.ui" line="60"/> + <source>Always on top</source> <translation type="unfinished"></translation> </message> </context> diff --git a/plugins/Themes/Oxygen/Languages/de/translation.ts b/plugins/Themes/Oxygen/Languages/de/translation.ts index f1f2eee..34c8bef 100644 --- a/plugins/Themes/Oxygen/Languages/de/translation.ts +++ b/plugins/Themes/Oxygen/Languages/de/translation.ts @@ -4,15 +4,84 @@ <context> <name>Themes</name> <message> - <location filename="../../interface.cpp" line="184"/> + <location filename="../../interface.cpp" line="240"/> + <source>Buy the Ultimate version to fund development</source> + <translation>Kaufe die Ultimate Version um die Entwicklung zu finanzieren</translation> + </message> + <message> + <location filename="../../interface.cpp" line="310"/> <source>File %1/%2, size: %3/%4</source> - <translation>Die Datei %1/%2, Größe:%3/%4</translation> + <translation>Datei %1/%2, Größe:%3/%4</translation> + </message> + <message> + <location filename="../../interface.cpp" line="524"/> + <source>Copy list</source> + <translation>Zu kopierende Dateien</translation> + </message> + <message> + <location filename="../../interface.cpp" line="526"/> + <source>Move list</source> + <translation>Zu verschiebende Dateien</translation> + </message> + <message> + <location filename="../../interface.cpp" line="947"/> + <source>Don't close if errors are found</source> + <translation>Nicht schließen, wenn Fehler aufgetreten sind</translation> + </message> + <message> + <location filename="../../interface.cpp" line="948"/> + <source>Never close</source> + <translation>Niemals schließen</translation> + </message> + <message> + <location filename="../../interface.cpp" line="949"/> + <source>Always close</source> + <translation>Immer schließen</translation> </message> <message> - <location filename="../../interface.cpp" line="737"/> + <location filename="../../interface.cpp" line="951"/> <source>File Name, 0KB</source> <translation>Dateiname, 0KB</translation> </message> + <message> + <location filename="../../interface.cpp" line="1134"/> + <location filename="../../interface.cpp" line="1146"/> + <location filename="../../interface.cpp" line="1158"/> + <source>Select a color</source> + <translation>Farbe auswählen</translation> + </message> + <message> + <location filename="../../interface.cpp" line="1233"/> + <location filename="../../interface.cpp" line="1237"/> + <location filename="../../interface.cpp" line="1239"/> + <source>%1 %2% of %3</source> + <translation type="unfinished"></translation> + </message> +</context> +<context> + <name>ThemesFactory</name> + <message> + <location filename="../../ThemesFactory.cpp" line="223"/> + <source>Don't close if errors are found</source> + <translation>Nicht schließen, wenn Fehler aufgetreten sind</translation> + </message> + <message> + <location filename="../../ThemesFactory.cpp" line="224"/> + <source>Never close</source> + <translation>Niemals schließen</translation> + </message> + <message> + <location filename="../../ThemesFactory.cpp" line="225"/> + <source>Always close</source> + <translation>Immer schließen</translation> + </message> + <message> + <location filename="../../ThemesFactory.cpp" line="421"/> + <location filename="../../ThemesFactory.cpp" line="436"/> + <location filename="../../ThemesFactory.cpp" line="451"/> + <source>Select a color</source> + <translation>Wählen Sie eine Farbe</translation> + </message> </context> <context> <name>interfaceCopy</name> @@ -22,179 +91,251 @@ <translation>Von:</translation> </message> <message> - <location filename="../../interface.ui" line="69"/> + <location filename="../../interface.ui" line="65"/> <source>To:</source> - <translation>Auf:</translation> + <translation>Nach:</translation> </message> <message> - <location filename="../../interface.ui" line="133"/> - <source>Shutdown when is finish</source> - <translation>Shutdown wird, wenn fertig</translation> - </message> - <message> - <location filename="../../interface.ui" line="196"/> - <source>0KB/sec</source> - <translation>0KB/sec</translation> - </message> - <message> - <location filename="../../interface.ui" line="216"/> + <location filename="../../interface.ui" line="226"/> <source>&More</source> - <translation>Mehr</translation> + <translation>&Mehr</translation> </message> <message> - <location filename="../../interface.ui" line="236"/> + <location filename="../../interface.ui" line="246"/> <source>&Pause</source> - <translation>Pause</translation> + <translation>&Pause</translation> </message> <message> - <location filename="../../interface.ui" line="250"/> + <location filename="../../interface.ui" line="260"/> <source>&Skip</source> - <translation>überspringen</translation> + <translation>Über&springen</translation> </message> <message> - <location filename="../../interface.ui" line="261"/> + <location filename="../../interface.ui" line="271"/> <source>&Cancel</source> - <translation>Stornieren</translation> + <translation>Abbrechen (&C)</translation> </message> <message> - <location filename="../../interface.ui" line="276"/> - <location filename="../../interface.ui" line="748"/> <source>Limit copy speed at:</source> - <translation>Begrenzen Sie Kopiergeschwindigkeit bei:</translation> + <translation type="obsolete">Kopiergeschwindigkeit begrenzen bei:</translation> </message> <message> - <location filename="../../interface.ui" line="293"/> - <source>Unlimited</source> - <translation>Unbegrenzt</translation> + <location filename="../../interface.ui" line="329"/> + <source>Transfer list</source> + <translation>Dateiliste</translation> </message> <message> - <location filename="../../interface.ui" line="323"/> - <source>Copy list</source> - <translation>kopieren Liste</translation> + <location filename="../../interface.ui" line="485"/> + <source>Delete the selected items</source> + <translation>Ausgewählte Einträge löschen</translation> </message> <message> - <location filename="../../interface.ui" line="487"/> - <source>Ctrl+F</source> - <translation>Ctrl+F</translation> + <location filename="../../interface.ui" line="540"/> + <source>Export the transfer list</source> + <translation>Dateiliste exportieren</translation> </message> <message> - <location filename="../../interface.ui" line="591"/> + <location filename="../../interface.ui" line="566"/> + <source>Import the transfer list</source> + <translation>Dateiliste importieren</translation> + </message> + <message> + <location filename="../../interface.ui" line="621"/> <source>Previous</source> <translation>Vorherige</translation> </message> <message> - <location filename="../../interface.ui" line="598"/> + <location filename="../../interface.ui" line="628"/> <source>Next</source> <translation>Nächste</translation> </message> <message> - <location filename="../../interface.ui" line="637"/> - <source>Options</source> - <translation>Optionen</translation> + <location filename="../../interface.ui" line="741"/> + <source>Interface</source> + <translation>Darstellungsoptionen</translation> </message> <message> - <location filename="../../interface.ui" line="646"/> - <source>Copy end</source> - <translation>kopieren Sie Ende</translation> + <location filename="../../interface.ui" line="352"/> + <source>Move the selected items to the top</source> + <translation>Ausgewählte Einträge an den Listenanfang verschieben</translation> </message> <message> - <location filename="../../interface.ui" line="667"/> - <source>At the end of the copy: </source> - <translation>Am Ende der Kopie: </translation> + <location filename="../../interface.ui" line="118"/> + <source>Close on transfer completion</source> + <translation>Am Ende des Transfers schließen</translation> </message> <message> - <location filename="../../interface.ui" line="706"/> - <source>Don't close if errors are found</source> - <translation>Schließen Sie nicht, wenn Fehler gefunden werden</translation> + <location filename="../../interface.ui" line="286"/> + <source>Limit copy speed to:</source> + <translation>Begrenze Kopiergeschwindigkeit auf:</translation> </message> <message> - <location filename="../../interface.ui" line="711"/> - <source>Never close</source> - <translation>Verschließen Sie niemals</translation> + <location filename="../../interface.ui" line="378"/> + <source>Move up the selected items</source> + <translation>Ausgewählte Einträge einen Platz nach oben verschieben</translation> </message> <message> - <location filename="../../interface.ui" line="716"/> - <source>Always close</source> - <translation>schließen Sie immer</translation> + <location filename="../../interface.ui" line="404"/> + <source>Move down the selected items</source> + <translation>Ausgewählte Einträge einen Platz nach unten verschieben</translation> </message> <message> - <location filename="../../interface.ui" line="727"/> - <source>Speed limit</source> - <translation>Tempolimit</translation> + <location filename="../../interface.ui" line="430"/> + <source>Move the selected items to the bottom</source> + <translation>Ausgewählte Einträge an das Listenende verschieben</translation> </message> <message> - <location filename="../../interface.ui" line="758"/> - <source> KB/s</source> - <translation> KB/s</translation> + <location filename="../../interface.ui" line="456"/> + <source>Add file/folder</source> + <translation>Datei/Ordner hinzufügen</translation> </message> <message> - <location filename="../../interface.ui" line="790"/> - <source>File collisions</source> - <translation>Datei-Kollisionen</translation> + <location filename="../../interface.ui" line="511"/> + <source>Search</source> + <translation>In Dateiliste suchen</translation> </message> <message> - <location filename="../../interface.ui" line="811"/> - <location filename="../../interface.ui" line="871"/> - <source>What to do: </source> - <translation>Was ist zu tun: </translation> + <location filename="../../interface.ui" line="663"/> + <location filename="../../interface.ui" line="732"/> + <source>Error</source> + <translation>Fehlerprotokoll</translation> </message> <message> - <location filename="../../interface.ui" line="850"/> - <source>Copy errors</source> - <translation>kopieren Fehler</translation> + <location filename="../../interface.ui" line="683"/> + <source>Export the errors into transfer list</source> + <translation>Fehlgeschlagene Dateien exportieren</translation> </message> <message> - <location filename="../../interface.ui" line="928"/> - <source>Interface</source> - <translation>Schnittstelle</translation> + <location filename="../../interface.ui" line="722"/> + <source>Source</source> + <translation>Quelle</translation> </message> <message> - <location filename="../../interface.ui" line="939"/> - <source>Show speed as main informations</source> - <translation>Zeige Geschwindigkeit als Haupt-Informationen</translation> + <location filename="../../interface.ui" line="727"/> + <source>Destination</source> + <translation>Ziel</translation> </message> <message> - <location filename="../../interface.ui" line="976"/> + <location filename="../../interface.ui" line="778"/> <source>Add file</source> <translation>Datei hinzufügen</translation> </message> <message> - <location filename="../../interface.ui" line="985"/> + <location filename="../../interface.ui" line="787"/> <source>Add folder</source> <translation>Ordner hinzufügen</translation> </message> <message> - <location filename="../../interface.ui" line="994"/> + <location filename="../../interface.ui" line="796"/> <source>Move file(s)</source> - <translation>Bewegen Sie Datei(en)</translation> + <translation>Datei(en) verschieben</translation> </message> <message> - <location filename="../../interface.ui" line="1003"/> + <location filename="../../interface.ui" line="805"/> <source>Move folder</source> - <translation>bewegen Sie Ordner</translation> + <translation>Ordner verschieben</translation> </message> <message> - <location filename="../../interface.ui" line="1012"/> + <location filename="../../interface.ui" line="814"/> <source>Copy file(s)</source> - <translation>Kopieren Sie die Datei(en)</translation> + <translation>Datei(en) kopieren</translation> </message> <message> - <location filename="../../interface.ui" line="1021"/> + <location filename="../../interface.ui" line="823"/> <source>Copy folder</source> - <translation>kopieren Sie das Verzeichnis</translation> + <translation>Verzeichnis kopieren</translation> </message> </context> <context> - <name>options</name> + <name>themesOptions</name> + <message> + <location filename="../../themesOptions.ui" line="253"/> + <source>Show dual progression</source> + <translation>Zweifachen Fortschritt anzeigen</translation> + </message> + <message> + <location filename="../../themesOptions.ui" line="205"/> + <source>Show speed as main information</source> + <translation>Geschwindigkeitsbegrenzungsschieberegler anzeigen</translation> + </message> + <message> + <location filename="../../themesOptions.ui" line="44"/> + <source>Use</source> + <translation>Benutzung</translation> + </message> + <message> + <location filename="../../themesOptions.ui" line="50"/> + <source>Start with the "more button" pushed</source> + <translation>Standardmäßig "Mehr" Informationen anzeigen</translation> + </message> + <message> + <location filename="../../themesOptions.ui" line="67"/> + <source>Minimize on close to systray</source> + <translation>Beim Schließen ins Systray minimieren</translation> + </message> + <message> + <location filename="../../themesOptions.ui" line="96"/> + <source>At the end of the copy</source> + <translation>Am Ende des Vorgangs</translation> + </message> + <message> + <location filename="../../themesOptions.ui" line="103"/> + <location filename="../../themesOptions.ui" line="137"/> + <source>Limit copy speed to</source> + <translation>Begrenze Übertragungsgeschwindigkeit auf</translation> + </message> + <message> + <location filename="../../themesOptions.ui" line="176"/> + <source>Start minimized</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../../themesOptions.ui" line="292"/> + <source>Click to edit the color</source> + <translation>Zum Bearbeiten der Farbe klicken</translation> + </message> + <message> + <source>At the end of the copy: </source> + <translation type="obsolete">Am Ende der Kopie: </translation> + </message> + <message> + <source>Limit copy speed at:</source> + <translation type="obsolete">Kopiergeschwindigkeit begrenzen bei:</translation> + </message> + <message> + <location filename="../../themesOptions.ui" line="147"/> + <source> KB/s</source> + <translation> KB/s</translation> + </message> + <message> + <location filename="../../themesOptions.ui" line="199"/> + <source>Informations</source> + <translation>Informationen</translation> + </message> + <message> + <location filename="../../themesOptions.ui" line="237"/> + <source>Display</source> + <translation>Anzeige</translation> + </message> + <message> + <location filename="../../themesOptions.ui" line="243"/> + <source>Speed with progress bar</source> + <translation>Geschwindigkeit als Fortschrittsbalken anzeigen</translation> + </message> + <message> + <location filename="../../themesOptions.ui" line="273"/> + <source>Progression color</source> + <translation>Farbe des Fortschrittsbalken</translation> + </message> <message> - <location filename="../../options.ui" line="20"/> - <source>Show speed as main informations</source> - <translation>Zeige Geschwindigkeit als Haupt-Informationen</translation> + <location filename="../../themesOptions.ui" line="263"/> + <source>Show progression in the title</source> + <translation>Fortschritt im Fenstertitel zeigen</translation> </message> <message> - <location filename="../../options.ui" line="33"/> - <source>Start with more button pushed</source> - <translation>Beginnen Sie mit mehr-Taste gedrückt</translation> + <location filename="../../themesOptions.ui" line="60"/> + <source>Always on top</source> + <translation>Fenster immer im Vordergrund</translation> </message> </context> </TS> diff --git a/plugins/Themes/Oxygen/Languages/el/translation.ts b/plugins/Themes/Oxygen/Languages/el/translation.ts index 0708252..ae86b54 100644 --- a/plugins/Themes/Oxygen/Languages/el/translation.ts +++ b/plugins/Themes/Oxygen/Languages/el/translation.ts @@ -4,15 +4,84 @@ <context> <name>Themes</name> <message> - <location filename="../../interface.cpp" line="184"/> + <location filename="../../interface.cpp" line="240"/> + <source>Buy the Ultimate version to fund development</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../../interface.cpp" line="310"/> <source>File %1/%2, size: %3/%4</source> <translation type="unfinished"></translation> </message> <message> - <location filename="../../interface.cpp" line="737"/> + <location filename="../../interface.cpp" line="524"/> + <source>Copy list</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../../interface.cpp" line="526"/> + <source>Move list</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../../interface.cpp" line="947"/> + <source>Don't close if errors are found</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../../interface.cpp" line="948"/> + <source>Never close</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../../interface.cpp" line="949"/> + <source>Always close</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../../interface.cpp" line="951"/> <source>File Name, 0KB</source> <translation type="unfinished"></translation> </message> + <message> + <location filename="../../interface.cpp" line="1134"/> + <location filename="../../interface.cpp" line="1146"/> + <location filename="../../interface.cpp" line="1158"/> + <source>Select a color</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../../interface.cpp" line="1233"/> + <location filename="../../interface.cpp" line="1237"/> + <location filename="../../interface.cpp" line="1239"/> + <source>%1 %2% of %3</source> + <translation type="unfinished"></translation> + </message> +</context> +<context> + <name>ThemesFactory</name> + <message> + <location filename="../../ThemesFactory.cpp" line="223"/> + <source>Don't close if errors are found</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../../ThemesFactory.cpp" line="224"/> + <source>Never close</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../../ThemesFactory.cpp" line="225"/> + <source>Always close</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../../ThemesFactory.cpp" line="421"/> + <location filename="../../ThemesFactory.cpp" line="436"/> + <location filename="../../ThemesFactory.cpp" line="451"/> + <source>Select a color</source> + <translation type="unfinished"></translation> + </message> </context> <context> <name>interfaceCopy</name> @@ -22,178 +91,238 @@ <translation type="unfinished"></translation> </message> <message> - <location filename="../../interface.ui" line="69"/> + <location filename="../../interface.ui" line="65"/> <source>To:</source> <translation type="unfinished"></translation> </message> <message> - <location filename="../../interface.ui" line="196"/> - <source>0KB/sec</source> - <translation type="unfinished"></translation> - </message> - <message> - <location filename="../../interface.ui" line="216"/> + <location filename="../../interface.ui" line="226"/> <source>&More</source> <translation type="unfinished"></translation> </message> <message> - <location filename="../../interface.ui" line="236"/> + <location filename="../../interface.ui" line="246"/> <source>&Pause</source> <translation type="unfinished"></translation> </message> <message> - <location filename="../../interface.ui" line="250"/> + <location filename="../../interface.ui" line="260"/> <source>&Skip</source> <translation type="unfinished"></translation> </message> <message> - <location filename="../../interface.ui" line="261"/> + <location filename="../../interface.ui" line="271"/> <source>&Cancel</source> <translation type="unfinished"></translation> </message> <message> - <location filename="../../interface.ui" line="276"/> - <location filename="../../interface.ui" line="748"/> - <source>Limit copy speed at:</source> + <location filename="../../interface.ui" line="118"/> + <source>Close on transfer completion</source> <translation type="unfinished"></translation> </message> <message> - <location filename="../../interface.ui" line="293"/> - <source>Unlimited</source> + <location filename="../../interface.ui" line="286"/> + <source>Limit copy speed to:</source> <translation type="unfinished"></translation> </message> <message> - <location filename="../../interface.ui" line="323"/> - <source>Copy list</source> + <location filename="../../interface.ui" line="329"/> + <source>Transfer list</source> <translation type="unfinished"></translation> </message> <message> - <location filename="../../interface.ui" line="591"/> - <source>Previous</source> + <location filename="../../interface.ui" line="352"/> + <source>Move the selected items to the top</source> <translation type="unfinished"></translation> </message> <message> - <location filename="../../interface.ui" line="598"/> - <source>Next</source> + <location filename="../../interface.ui" line="378"/> + <source>Move up the selected items</source> <translation type="unfinished"></translation> </message> <message> - <location filename="../../interface.ui" line="637"/> - <source>Options</source> + <location filename="../../interface.ui" line="404"/> + <source>Move down the selected items</source> <translation type="unfinished"></translation> </message> <message> - <location filename="../../interface.ui" line="646"/> - <source>Copy end</source> + <location filename="../../interface.ui" line="430"/> + <source>Move the selected items to the bottom</source> <translation type="unfinished"></translation> </message> <message> - <location filename="../../interface.ui" line="667"/> - <source>At the end of the copy: </source> + <location filename="../../interface.ui" line="456"/> + <source>Add file/folder</source> <translation type="unfinished"></translation> </message> <message> - <location filename="../../interface.ui" line="706"/> - <source>Don't close if errors are found</source> + <location filename="../../interface.ui" line="485"/> + <source>Delete the selected items</source> <translation type="unfinished"></translation> </message> <message> - <location filename="../../interface.ui" line="711"/> - <source>Never close</source> + <location filename="../../interface.ui" line="511"/> + <source>Search</source> <translation type="unfinished"></translation> </message> <message> - <location filename="../../interface.ui" line="716"/> - <source>Always close</source> + <location filename="../../interface.ui" line="540"/> + <source>Export the transfer list</source> <translation type="unfinished"></translation> </message> <message> - <location filename="../../interface.ui" line="727"/> - <source>Speed limit</source> + <location filename="../../interface.ui" line="566"/> + <source>Import the transfer list</source> <translation type="unfinished"></translation> </message> <message> - <location filename="../../interface.ui" line="758"/> - <source> KB/s</source> + <location filename="../../interface.ui" line="621"/> + <source>Previous</source> <translation type="unfinished"></translation> </message> <message> - <location filename="../../interface.ui" line="790"/> - <source>File collisions</source> + <location filename="../../interface.ui" line="628"/> + <source>Next</source> <translation type="unfinished"></translation> </message> <message> - <location filename="../../interface.ui" line="811"/> - <location filename="../../interface.ui" line="871"/> - <source>What to do: </source> + <location filename="../../interface.ui" line="663"/> + <location filename="../../interface.ui" line="732"/> + <source>Error</source> <translation type="unfinished"></translation> </message> <message> - <location filename="../../interface.ui" line="850"/> - <source>Copy errors</source> + <location filename="../../interface.ui" line="683"/> + <source>Export the errors into transfer list</source> <translation type="unfinished"></translation> </message> <message> - <location filename="../../interface.ui" line="928"/> - <source>Interface</source> + <location filename="../../interface.ui" line="722"/> + <source>Source</source> <translation type="unfinished"></translation> </message> <message> - <location filename="../../interface.ui" line="939"/> - <source>Show speed as main informations</source> + <location filename="../../interface.ui" line="727"/> + <source>Destination</source> <translation type="unfinished"></translation> </message> <message> - <location filename="../../interface.ui" line="976"/> + <location filename="../../interface.ui" line="741"/> + <source>Interface</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../../interface.ui" line="778"/> <source>Add file</source> <translation type="unfinished"></translation> </message> <message> - <location filename="../../interface.ui" line="985"/> + <location filename="../../interface.ui" line="787"/> <source>Add folder</source> <translation type="unfinished"></translation> </message> <message> - <location filename="../../interface.ui" line="994"/> + <location filename="../../interface.ui" line="796"/> <source>Move file(s)</source> <translation type="unfinished"></translation> </message> <message> - <location filename="../../interface.ui" line="1003"/> + <location filename="../../interface.ui" line="805"/> <source>Move folder</source> <translation type="unfinished"></translation> </message> <message> - <location filename="../../interface.ui" line="1012"/> + <location filename="../../interface.ui" line="814"/> <source>Copy file(s)</source> <translation type="unfinished"></translation> </message> <message> - <location filename="../../interface.ui" line="1021"/> + <location filename="../../interface.ui" line="823"/> <source>Copy folder</source> <translation type="unfinished"></translation> </message> +</context> +<context> + <name>themesOptions</name> + <message> + <location filename="../../themesOptions.ui" line="253"/> + <source>Show dual progression</source> + <translation type="unfinished"></translation> + </message> <message> - <location filename="../../interface.ui" line="487"/> - <source>Ctrl+F</source> + <location filename="../../themesOptions.ui" line="205"/> + <source>Show speed as main information</source> <translation type="unfinished"></translation> </message> <message> - <location filename="../../interface.ui" line="133"/> - <source>Shutdown when is finish</source> + <location filename="../../themesOptions.ui" line="44"/> + <source>Use</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../../themesOptions.ui" line="50"/> + <source>Start with the "more button" pushed</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../../themesOptions.ui" line="67"/> + <source>Minimize on close to systray</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../../themesOptions.ui" line="96"/> + <source>At the end of the copy</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../../themesOptions.ui" line="103"/> + <location filename="../../themesOptions.ui" line="137"/> + <source>Limit copy speed to</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../../themesOptions.ui" line="147"/> + <source> KB/s</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../../themesOptions.ui" line="176"/> + <source>Start minimized</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../../themesOptions.ui" line="199"/> + <source>Informations</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../../themesOptions.ui" line="237"/> + <source>Display</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../../themesOptions.ui" line="243"/> + <source>Speed with progress bar</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../../themesOptions.ui" line="273"/> + <source>Progression color</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../../themesOptions.ui" line="292"/> + <source>Click to edit the color</source> <translation type="unfinished"></translation> </message> -</context> -<context> - <name>options</name> <message> - <location filename="../../options.ui" line="20"/> - <source>Show speed as main informations</source> + <location filename="../../themesOptions.ui" line="263"/> + <source>Show progression in the title</source> <translation type="unfinished"></translation> </message> <message> - <location filename="../../options.ui" line="33"/> - <source>Start with more button pushed</source> + <location filename="../../themesOptions.ui" line="60"/> + <source>Always on top</source> <translation type="unfinished"></translation> </message> </context> diff --git a/plugins/Themes/Oxygen/Languages/en/translation.ts b/plugins/Themes/Oxygen/Languages/en/translation.ts new file mode 100644 index 0000000..717ea08 --- /dev/null +++ b/plugins/Themes/Oxygen/Languages/en/translation.ts @@ -0,0 +1,329 @@ +<?xml version="1.0" encoding="utf-8"?> +<!DOCTYPE TS> +<TS version="2.0" language="en"> +<context> + <name>Themes</name> + <message> + <location filename="../../interface.cpp" line="240"/> + <source>Buy the Ultimate version to fund development</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../../interface.cpp" line="310"/> + <source>File %1/%2, size: %3/%4</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../../interface.cpp" line="524"/> + <source>Copy list</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../../interface.cpp" line="526"/> + <source>Move list</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../../interface.cpp" line="947"/> + <source>Don't close if errors are found</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../../interface.cpp" line="948"/> + <source>Never close</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../../interface.cpp" line="949"/> + <source>Always close</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../../interface.cpp" line="951"/> + <source>File Name, 0KB</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../../interface.cpp" line="1134"/> + <location filename="../../interface.cpp" line="1146"/> + <location filename="../../interface.cpp" line="1158"/> + <source>Select a color</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../../interface.cpp" line="1233"/> + <location filename="../../interface.cpp" line="1237"/> + <location filename="../../interface.cpp" line="1239"/> + <source>%1 %2% of %3</source> + <translation type="unfinished"></translation> + </message> +</context> +<context> + <name>ThemesFactory</name> + <message> + <location filename="../../ThemesFactory.cpp" line="223"/> + <source>Don't close if errors are found</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../../ThemesFactory.cpp" line="224"/> + <source>Never close</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../../ThemesFactory.cpp" line="225"/> + <source>Always close</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../../ThemesFactory.cpp" line="421"/> + <location filename="../../ThemesFactory.cpp" line="436"/> + <location filename="../../ThemesFactory.cpp" line="451"/> + <source>Select a color</source> + <translation type="unfinished"></translation> + </message> +</context> +<context> + <name>interfaceCopy</name> + <message> + <location filename="../../interface.ui" line="35"/> + <source>From:</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../../interface.ui" line="65"/> + <source>To:</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../../interface.ui" line="226"/> + <source>&More</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../../interface.ui" line="246"/> + <source>&Pause</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../../interface.ui" line="260"/> + <source>&Skip</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../../interface.ui" line="271"/> + <source>&Cancel</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../../interface.ui" line="329"/> + <source>Transfer list</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../../interface.ui" line="485"/> + <source>Delete the selected items</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../../interface.ui" line="540"/> + <source>Export the transfer list</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../../interface.ui" line="566"/> + <source>Import the transfer list</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../../interface.ui" line="621"/> + <source>Previous</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../../interface.ui" line="628"/> + <source>Next</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../../interface.ui" line="741"/> + <source>Interface</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../../interface.ui" line="352"/> + <source>Move the selected items to the top</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../../interface.ui" line="118"/> + <source>Close on transfer completion</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../../interface.ui" line="286"/> + <source>Limit copy speed to:</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../../interface.ui" line="378"/> + <source>Move up the selected items</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../../interface.ui" line="404"/> + <source>Move down the selected items</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../../interface.ui" line="430"/> + <source>Move the selected items to the bottom</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../../interface.ui" line="456"/> + <source>Add file/folder</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../../interface.ui" line="511"/> + <source>Search</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../../interface.ui" line="663"/> + <location filename="../../interface.ui" line="732"/> + <source>Error</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../../interface.ui" line="683"/> + <source>Export the errors into transfer list</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../../interface.ui" line="722"/> + <source>Source</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../../interface.ui" line="727"/> + <source>Destination</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../../interface.ui" line="778"/> + <source>Add file</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../../interface.ui" line="787"/> + <source>Add folder</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../../interface.ui" line="796"/> + <source>Move file(s)</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../../interface.ui" line="805"/> + <source>Move folder</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../../interface.ui" line="814"/> + <source>Copy file(s)</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../../interface.ui" line="823"/> + <source>Copy folder</source> + <translation type="unfinished"></translation> + </message> +</context> +<context> + <name>themesOptions</name> + <message> + <location filename="../../themesOptions.ui" line="253"/> + <source>Show dual progression</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../../themesOptions.ui" line="205"/> + <source>Show speed as main information</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../../themesOptions.ui" line="44"/> + <source>Use</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../../themesOptions.ui" line="50"/> + <source>Start with the "more button" pushed</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../../themesOptions.ui" line="67"/> + <source>Minimize on close to systray</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../../themesOptions.ui" line="96"/> + <source>At the end of the copy</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../../themesOptions.ui" line="103"/> + <location filename="../../themesOptions.ui" line="137"/> + <source>Limit copy speed to</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../../themesOptions.ui" line="147"/> + <source> KB/s</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../../themesOptions.ui" line="176"/> + <source>Start minimized</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../../themesOptions.ui" line="199"/> + <source>Informations</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../../themesOptions.ui" line="237"/> + <source>Display</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../../themesOptions.ui" line="243"/> + <source>Speed with progress bar</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../../themesOptions.ui" line="273"/> + <source>Progression color</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../../themesOptions.ui" line="292"/> + <source>Click to edit the color</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../../themesOptions.ui" line="263"/> + <source>Show progression in the title</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../../themesOptions.ui" line="60"/> + <source>Always on top</source> + <translation type="unfinished"></translation> + </message> +</context> +</TS> diff --git a/plugins/Themes/Oxygen/Languages/es/translation.ts b/plugins/Themes/Oxygen/Languages/es/translation.ts index 3e9fb5b..a6ded18 100644 --- a/plugins/Themes/Oxygen/Languages/es/translation.ts +++ b/plugins/Themes/Oxygen/Languages/es/translation.ts @@ -4,15 +4,84 @@ <context> <name>Themes</name> <message> - <location filename="../../interface.cpp" line="184"/> + <location filename="../../interface.cpp" line="240"/> + <source>Buy the Ultimate version to fund development</source> + <translation>Comprar la versión Ultimate para financiar el desarrollo</translation> + </message> + <message> + <location filename="../../interface.cpp" line="310"/> <source>File %1/%2, size: %3/%4</source> <translation>El archivo %1/%2, el tamaño: %3/%4</translation> </message> <message> - <location filename="../../interface.cpp" line="737"/> + <location filename="../../interface.cpp" line="524"/> + <source>Copy list</source> + <translation>Lista de copia</translation> + </message> + <message> + <location filename="../../interface.cpp" line="526"/> + <source>Move list</source> + <translation>Lista de movimiento</translation> + </message> + <message> + <location filename="../../interface.cpp" line="947"/> + <source>Don't close if errors are found</source> + <translation>No cierre si se encuentran errores</translation> + </message> + <message> + <location filename="../../interface.cpp" line="948"/> + <source>Never close</source> + <translation>Nunca cierre</translation> + </message> + <message> + <location filename="../../interface.cpp" line="949"/> + <source>Always close</source> + <translation>Siempre cerrar</translation> + </message> + <message> + <location filename="../../interface.cpp" line="951"/> <source>File Name, 0KB</source> <translation>Nombre de archivo, 0KB</translation> </message> + <message> + <location filename="../../interface.cpp" line="1134"/> + <location filename="../../interface.cpp" line="1146"/> + <location filename="../../interface.cpp" line="1158"/> + <source>Select a color</source> + <translation>Seleccione un color</translation> + </message> + <message> + <location filename="../../interface.cpp" line="1233"/> + <location filename="../../interface.cpp" line="1237"/> + <location filename="../../interface.cpp" line="1239"/> + <source>%1 %2% of %3</source> + <translation type="unfinished"></translation> + </message> +</context> +<context> + <name>ThemesFactory</name> + <message> + <location filename="../../ThemesFactory.cpp" line="223"/> + <source>Don't close if errors are found</source> + <translation>No cierre si se encuentran errores</translation> + </message> + <message> + <location filename="../../ThemesFactory.cpp" line="224"/> + <source>Never close</source> + <translation>Nunca cierre</translation> + </message> + <message> + <location filename="../../ThemesFactory.cpp" line="225"/> + <source>Always close</source> + <translation>Siempre cerrar</translation> + </message> + <message> + <location filename="../../ThemesFactory.cpp" line="421"/> + <location filename="../../ThemesFactory.cpp" line="436"/> + <location filename="../../ThemesFactory.cpp" line="451"/> + <source>Select a color</source> + <translation>Seleccione un color</translation> + </message> </context> <context> <name>interfaceCopy</name> @@ -22,179 +91,255 @@ <translation>De:</translation> </message> <message> - <location filename="../../interface.ui" line="69"/> + <location filename="../../interface.ui" line="65"/> <source>To:</source> <translation>Para:</translation> </message> <message> - <location filename="../../interface.ui" line="196"/> - <source>0KB/sec</source> - <translation>0KB/sec</translation> + <source>Close at the end of the transfers</source> + <translation type="obsolete">Cerca al final de las transferencias</translation> </message> <message> - <location filename="../../interface.ui" line="216"/> + <location filename="../../interface.ui" line="226"/> <source>&More</source> <translation>&Más</translation> </message> <message> - <location filename="../../interface.ui" line="236"/> + <location filename="../../interface.ui" line="246"/> <source>&Pause</source> <translation>&Pausa</translation> </message> <message> - <location filename="../../interface.ui" line="250"/> + <location filename="../../interface.ui" line="260"/> <source>&Skip</source> <translation>&Omitir</translation> </message> <message> - <location filename="../../interface.ui" line="261"/> + <location filename="../../interface.ui" line="271"/> <source>&Cancel</source> <translation>&Cancelar</translation> </message> <message> - <location filename="../../interface.ui" line="276"/> - <location filename="../../interface.ui" line="748"/> <source>Limit copy speed at:</source> + <translation type="obsolete">Limitar la velocidad de copia en:</translation> + </message> + <message> + <location filename="../../interface.ui" line="118"/> + <source>Close on transfer completion</source> + <translation>Cerca de finalización de transferencia</translation> + </message> + <message> + <location filename="../../interface.ui" line="286"/> + <source>Limit copy speed to:</source> <translation>Limitar la velocidad de copia en:</translation> </message> <message> - <location filename="../../interface.ui" line="293"/> - <source>Unlimited</source> - <translation>Ilimitado</translation> + <location filename="../../interface.ui" line="329"/> + <source>Transfer list</source> + <translation>Lista de transferencia</translation> </message> <message> - <location filename="../../interface.ui" line="323"/> - <source>Copy list</source> - <translation>Copia la lista</translation> + <location filename="../../interface.ui" line="352"/> + <source>Move the selected items to the top</source> + <translation>Mueve los elementos seleccionados a la parte superior</translation> </message> <message> - <location filename="../../interface.ui" line="591"/> - <source>Previous</source> - <translation>Anterior</translation> + <location filename="../../interface.ui" line="378"/> + <source>Move up the selected items</source> + <translation>Mueva los elementos seleccionados</translation> </message> <message> - <location filename="../../interface.ui" line="598"/> - <source>Next</source> - <translation>Próximo</translation> + <location filename="../../interface.ui" line="404"/> + <source>Move down the selected items</source> + <translation>Bajar los elementos seleccionados</translation> </message> <message> - <location filename="../../interface.ui" line="637"/> - <source>Options</source> - <translation>Opciones</translation> + <location filename="../../interface.ui" line="430"/> + <source>Move the selected items to the bottom</source> + <translation>Mueve los elementos seleccionados a la parte inferior</translation> </message> <message> - <location filename="../../interface.ui" line="646"/> - <source>Copy end</source> - <translation>Copia final</translation> + <location filename="../../interface.ui" line="456"/> + <source>Add file/folder</source> + <translation>Agregar archivo/carpeta</translation> </message> <message> - <location filename="../../interface.ui" line="667"/> - <source>At the end of the copy: </source> - <translation>Al final de la copia: </translation> + <location filename="../../interface.ui" line="485"/> + <source>Delete the selected items</source> + <translation>Eliminar los elementos seleccionados</translation> </message> <message> - <location filename="../../interface.ui" line="706"/> - <source>Don't close if errors are found</source> - <translation>No cierre si se encuentran errores</translation> + <location filename="../../interface.ui" line="511"/> + <source>Search</source> + <translation>Buscar</translation> </message> <message> - <location filename="../../interface.ui" line="711"/> - <source>Never close</source> - <translation>Nunca cierre</translation> + <location filename="../../interface.ui" line="540"/> + <source>Export the transfer list</source> + <translation>Exportar la lista de transferencias</translation> </message> <message> - <location filename="../../interface.ui" line="716"/> - <source>Always close</source> - <translation>Siempre cerrar</translation> + <location filename="../../interface.ui" line="566"/> + <source>Import the transfer list</source> + <translation>Importe la lista de transferencias</translation> </message> <message> - <location filename="../../interface.ui" line="727"/> - <source>Speed limit</source> - <translation>Límite de velocidad</translation> + <location filename="../../interface.ui" line="621"/> + <source>Previous</source> + <translation>Anterior</translation> </message> <message> - <location filename="../../interface.ui" line="758"/> - <source> KB/s</source> - <translation> KB/s</translation> + <location filename="../../interface.ui" line="628"/> + <source>Next</source> + <translation>Próximo</translation> </message> <message> - <location filename="../../interface.ui" line="790"/> - <source>File collisions</source> - <translation>Colisiones de archivos</translation> + <location filename="../../interface.ui" line="663"/> + <location filename="../../interface.ui" line="732"/> + <source>Error</source> + <translation>Error</translation> </message> <message> - <location filename="../../interface.ui" line="811"/> - <location filename="../../interface.ui" line="871"/> - <source>What to do: </source> - <translation>Qué hacer: </translation> + <location filename="../../interface.ui" line="683"/> + <source>Export the errors into transfer list</source> + <translation>Exportar los errores en la lista de transferencias</translation> </message> <message> - <location filename="../../interface.ui" line="850"/> - <source>Copy errors</source> - <translation>Errores de copia</translation> + <location filename="../../interface.ui" line="722"/> + <source>Source</source> + <translation>Fuente</translation> </message> <message> - <location filename="../../interface.ui" line="928"/> - <source>Interface</source> - <translation>Interfaz</translation> + <location filename="../../interface.ui" line="727"/> + <source>Destination</source> + <translation>Destino</translation> </message> <message> - <location filename="../../interface.ui" line="939"/> - <source>Show speed as main informations</source> - <translation>Mostrar la velocidad como principales informaciones</translation> + <location filename="../../interface.ui" line="741"/> + <source>Interface</source> + <translation>Interfaz</translation> </message> <message> - <location filename="../../interface.ui" line="976"/> + <location filename="../../interface.ui" line="778"/> <source>Add file</source> <translation>Añadir archivo</translation> </message> <message> - <location filename="../../interface.ui" line="985"/> + <location filename="../../interface.ui" line="787"/> <source>Add folder</source> <translation>Añadir carpeta</translation> </message> <message> - <location filename="../../interface.ui" line="994"/> + <location filename="../../interface.ui" line="796"/> <source>Move file(s)</source> <translation>Mover archivo(s)</translation> </message> <message> - <location filename="../../interface.ui" line="1003"/> + <location filename="../../interface.ui" line="805"/> <source>Move folder</source> <translation>Mueva la carpeta</translation> </message> <message> - <location filename="../../interface.ui" line="1012"/> + <location filename="../../interface.ui" line="814"/> <source>Copy file(s)</source> <translation>Copia el archivo(s)</translation> </message> <message> - <location filename="../../interface.ui" line="1021"/> + <location filename="../../interface.ui" line="823"/> <source>Copy folder</source> <translation>Copia la carpeta</translation> </message> +</context> +<context> + <name>themesOptions</name> <message> - <location filename="../../interface.ui" line="487"/> - <source>Ctrl+F</source> - <translation>Ctrl+F</translation> + <location filename="../../themesOptions.ui" line="253"/> + <source>Show dual progression</source> + <translation>Mostrar progresión dual</translation> </message> <message> - <location filename="../../interface.ui" line="133"/> - <source>Shutdown when is finish</source> - <translation>Apagar cuando se termine</translation> + <location filename="../../themesOptions.ui" line="205"/> + <source>Show speed as main information</source> + <translation>Mostrar la velocidad como principales informaciones</translation> </message> -</context> -<context> - <name>options</name> <message> - <location filename="../../options.ui" line="20"/> - <source>Show speed as main informations</source> - <translation>Mostrar la velocidad como principales informaciones</translation> + <location filename="../../themesOptions.ui" line="44"/> + <source>Use</source> + <translation>Uso</translation> + </message> + <message> + <location filename="../../themesOptions.ui" line="50"/> + <source>Start with the "more button" pushed</source> + <translation>Comience con el "botón más" empujada</translation> + </message> + <message> + <location filename="../../themesOptions.ui" line="67"/> + <source>Minimize on close to systray</source> + <translation>Minimizar en cerca de la bandeja del sistema</translation> + </message> + <message> + <location filename="../../themesOptions.ui" line="96"/> + <source>At the end of the copy</source> + <translation>Al final de la copia</translation> + </message> + <message> + <location filename="../../themesOptions.ui" line="103"/> + <location filename="../../themesOptions.ui" line="137"/> + <source>Limit copy speed to</source> + <translation>Limitar la velocidad de copia de</translation> + </message> + <message> + <location filename="../../themesOptions.ui" line="176"/> + <source>Start minimized</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../../themesOptions.ui" line="292"/> + <source>Click to edit the color</source> + <translation>Haga clic para editar el color</translation> + </message> + <message> + <source>At the end of the copy: </source> + <translation type="obsolete">Al final de la copia: </translation> + </message> + <message> + <source>Limit copy speed at:</source> + <translation type="obsolete">Limitar la velocidad de copia en:</translation> + </message> + <message> + <location filename="../../themesOptions.ui" line="147"/> + <source> KB/s</source> + <translation> KB/s</translation> + </message> + <message> + <location filename="../../themesOptions.ui" line="199"/> + <source>Informations</source> + <translation>Informations</translation> + </message> + <message> + <location filename="../../themesOptions.ui" line="237"/> + <source>Display</source> + <translation>Visualización</translation> + </message> + <message> + <location filename="../../themesOptions.ui" line="243"/> + <source>Speed with progress bar</source> + <translation>Velocidad con barra de progreso</translation> + </message> + <message> + <location filename="../../themesOptions.ui" line="273"/> + <source>Progression color</source> + <translation>Progresión de color</translation> + </message> + <message> + <location filename="../../themesOptions.ui" line="263"/> + <source>Show progression in the title</source> + <translation>Mostrar progresión en el título</translation> </message> <message> - <location filename="../../options.ui" line="33"/> - <source>Start with more button pushed</source> - <translation>Comience con más botón pulsado</translation> + <location filename="../../themesOptions.ui" line="60"/> + <source>Always on top</source> + <translation>Siempre visible</translation> </message> </context> </TS> diff --git a/plugins/Themes/Oxygen/Languages/fr/translation.ts b/plugins/Themes/Oxygen/Languages/fr/translation.ts index 18396c2..628347d 100644 --- a/plugins/Themes/Oxygen/Languages/fr/translation.ts +++ b/plugins/Themes/Oxygen/Languages/fr/translation.ts @@ -4,15 +4,84 @@ <context> <name>Themes</name> <message> - <location filename="../../interface.cpp" line="+184"/> + <location filename="../../interface.cpp" line="+240"/> + <source>Buy the Ultimate version to fund development</source> + <translation>Achetez la version Ultimate pour financer le développement</translation> + </message> + <message> + <location line="+70"/> <source>File %1/%2, size: %3/%4</source> <translation>Fichier %1/%2, taille: %3/%4</translation> </message> <message> - <location line="+553"/> + <location line="+214"/> + <source>Copy list</source> + <translation>Liste de copies</translation> + </message> + <message> + <location line="+2"/> + <source>Move list</source> + <translation>Liste de déplacements</translation> + </message> + <message> + <location line="+421"/> + <source>Don't close if errors are found</source> + <translation>Garder ouvert s'il y a des erreurs</translation> + </message> + <message> + <location line="+1"/> + <source>Never close</source> + <translation>Ne jamais fermer</translation> + </message> + <message> + <location line="+1"/> + <source>Always close</source> + <translation>Toujours fermer</translation> + </message> + <message> + <location line="+2"/> <source>File Name, 0KB</source> <translation>Nom de fichier, 0Ko</translation> </message> + <message> + <location line="+183"/> + <location line="+12"/> + <location line="+12"/> + <source>Select a color</source> + <translation>Selectionner une coleur</translation> + </message> + <message> + <location line="+75"/> + <location line="+4"/> + <location line="+2"/> + <source>%1 %2% of %3</source> + <translation>%1 de %2% de %3</translation> + </message> +</context> +<context> + <name>ThemesFactory</name> + <message> + <location filename="../../ThemesFactory.cpp" line="+223"/> + <source>Don't close if errors are found</source> + <translation>Garder ouvert s'il y a des erreurs</translation> + </message> + <message> + <location line="+1"/> + <source>Never close</source> + <translation>Ne jamais fermer</translation> + </message> + <message> + <location line="+1"/> + <source>Always close</source> + <translation>Toujours fermer</translation> + </message> + <message> + <location line="+196"/> + <location line="+15"/> + <location line="+15"/> + <source>Select a color</source> + <translation>Selectionner une coleur</translation> + </message> </context> <context> <name>interfaceCopy</name> @@ -22,17 +91,16 @@ <translation>Depuis:</translation> </message> <message> - <location line="+34"/> + <location line="+30"/> <source>To:</source> <translation>Vers:</translation> </message> <message> - <location line="+127"/> - <source>0KB/sec</source> - <translation>0Ko/s</translation> + <source>Close at the end of the transfers</source> + <translation type="obsolete">Fermer à la fin des transferts</translation> </message> <message> - <location line="+20"/> + <location line="+161"/> <source>&More</source> <translation>Pl&us</translation> </message> @@ -52,96 +120,104 @@ <translation>&Annuler</translation> </message> <message> - <location line="+15"/> - <location line="+472"/> <source>Limit copy speed at:</source> + <translation type="obsolete">Limiter la vitesse de copie à:</translation> + </message> + <message> + <location line="-153"/> + <source>Close on transfer completion</source> + <translation>Fermer à la fin des transferts</translation> + </message> + <message> + <location line="+168"/> + <source>Limit copy speed to:</source> <translation>Limiter la vitesse de copie à:</translation> </message> <message> - <location line="-455"/> - <source>Unlimited</source> - <translation>Illimité</translation> + <location line="+43"/> + <source>Transfer list</source> + <translation>Liste de transferts</translation> </message> <message> - <location line="+30"/> - <source>Copy list</source> - <translation>Liste de copie</translation> + <location line="+23"/> + <source>Move the selected items to the top</source> + <translation>Déplacer l'item selectionné au debut</translation> </message> <message> - <location line="+268"/> - <source>Previous</source> - <translation>Précedent</translation> + <location line="+26"/> + <source>Move up the selected items</source> + <translation>Déplacer l'item selectionné vers le haut</translation> </message> <message> - <location line="+7"/> - <source>Next</source> - <translation>Suivant</translation> + <location line="+26"/> + <source>Move down the selected items</source> + <translation>Déplacer l'item selectionné vers le bas</translation> </message> <message> - <location line="+39"/> - <source>Options</source> - <translation>Options</translation> + <location line="+26"/> + <source>Move the selected items to the bottom</source> + <translation>Déplacer l'item selectionné à la fin</translation> </message> <message> - <location line="+9"/> - <source>Copy end</source> - <translation>Fin de copie</translation> + <location line="+26"/> + <source>Add file/folder</source> + <translation>Ajouter fichier/dossier</translation> </message> <message> - <location line="+21"/> - <source>At the end of the copy: </source> - <translation>A la fin de la copie:</translation> + <location line="+29"/> + <source>Delete the selected items</source> + <translation>Supprimer les items sélectionnés</translation> </message> <message> - <location line="+39"/> - <source>Don't close if errors are found</source> - <translation>Garder ouvert s'il y a des erreurs</translation> + <location line="+26"/> + <source>Search</source> + <translation>Rechercher</translation> </message> <message> - <location line="+5"/> - <source>Never close</source> - <translation>Ne jamais fermer</translation> + <location line="+29"/> + <source>Export the transfer list</source> + <translation>Exporter la liste de transfert</translation> </message> <message> - <location line="+5"/> - <source>Always close</source> - <translation>Toujours fermer</translation> + <location line="+26"/> + <source>Import the transfer list</source> + <translation>Importer la liste de transfert</translation> </message> <message> - <location line="+11"/> - <source>Speed limit</source> - <translation>Limitation de la vitesse</translation> + <location line="+55"/> + <source>Previous</source> + <translation>Précédent</translation> </message> <message> - <location line="+31"/> - <source> KB/s</source> - <translation> Ko/s</translation> + <location line="+7"/> + <source>Next</source> + <translation>Suivant</translation> </message> <message> - <location line="+32"/> - <source>File collisions</source> - <translation>Collision de fichier</translation> + <location line="+35"/> + <location line="+69"/> + <source>Error</source> + <translation>Erreur</translation> </message> <message> - <location line="+21"/> - <location line="+60"/> - <source>What to do: </source> - <translation>Opération à effectuer:</translation> + <location line="-49"/> + <source>Export the errors into transfer list</source> + <translation>Exporter les erreurs dans une liste de transfert</translation> </message> <message> - <location line="-21"/> - <source>Copy errors</source> - <translation>Erreurs de copie</translation> + <location line="+39"/> + <source>Source</source> + <translation>Source</translation> </message> <message> - <location line="+78"/> - <source>Interface</source> - <translation>Interface</translation> + <location line="+5"/> + <source>Destination</source> + <translation>Destination</translation> </message> <message> - <location line="+11"/> - <source>Show speed as main informations</source> - <translation>Montrer la vitesse comme une information principale</translation> + <location line="+14"/> + <source>Interface</source> + <translation>Interface</translation> </message> <message> <location line="+37"/> @@ -156,7 +232,7 @@ <message> <location line="+9"/> <source>Move file(s)</source> - <translation>Déplacer les fichier(s)</translation> + <translation>Déplacer le(s) fichier(s)</translation> </message> <message> <location line="+9"/> @@ -166,35 +242,108 @@ <message> <location line="+9"/> <source>Copy file(s)</source> - <translation>Copier les fichier(s)</translation> + <translation>Copier le(s) fichier(s)</translation> </message> <message> <location line="+9"/> <source>Copy folder</source> <translation>Copier un répertoire</translation> </message> +</context> +<context> + <name>themesOptions</name> <message> - <location line="-534"/> - <source>Ctrl+F</source> - <translation>Ctrl+F</translation> + <location filename="../../themesOptions.ui" line="+253"/> + <source>Show dual progression</source> + <translation>Afficher une double progression</translation> </message> <message> - <location line="-354"/> - <source>Shutdown when is finish</source> - <translation>Fermer quand est fini</translation> + <location line="-48"/> + <source>Show speed as main information</source> + <translation>Afficher la vitesse comme information principale</translation> + </message> + <message> + <location line="-161"/> + <source>Use</source> + <translation>Utilisation</translation> + </message> + <message> + <location line="+6"/> + <source>Start with the "more button" pushed</source> + <translation>Déplier automatiquement les détails</translation> + </message> + <message> + <location line="+17"/> + <source>Minimize on close to systray</source> + <translation>Minimiser à la fermeture dans le systray</translation> + </message> + <message> + <location line="+29"/> + <source>At the end of the copy</source> + <translation>À la fin de la copie</translation> + </message> + <message> + <location line="+7"/> + <location line="+34"/> + <source>Limit copy speed to</source> + <translation>Limiter la vitesse de copie à</translation> + </message> + <message> + <location line="+39"/> + <source>Start minimized</source> + <translation type="unfinished"></translation> + </message> + <message> + <location line="+116"/> + <source>Click to edit the color</source> + <translation>Cliquer pour éditer la couleur</translation> + </message> + <message> + <source>At the end of the copy: </source> + <translation type="obsolete">À la fin de la copie:</translation> + </message> + <message> + <source>Limit copy speed at:</source> + <translation type="obsolete">Limiter la vitesse de copie à:</translation> + </message> + <message> + <source>Limit copy speed to:</source> + <translation type="obsolete">Limiter la vitesse de copie à:</translation> + </message> + <message> + <location line="-145"/> + <source> KB/s</source> + <translation> Ko/s</translation> + </message> + <message> + <location line="+52"/> + <source>Informations</source> + <translation>Informations</translation> + </message> + <message> + <location line="+38"/> + <source>Display</source> + <translation>Affichage</translation> + </message> + <message> + <location line="+6"/> + <source>Speed with progress bar</source> + <translation>Vitesse avec barre de progression</translation> + </message> + <message> + <location line="+30"/> + <source>Progression color</source> + <translation>Couleur de progression</translation> </message> -</context> -<context> - <name>options</name> <message> - <location filename="../../options.ui" line="+20"/> - <source>Show speed as main informations</source> - <translation>Montrer la vitesse comme une information principale</translation> + <location line="-10"/> + <source>Show progression in the title</source> + <translation>Afficher la progression dans le titre</translation> </message> <message> - <location line="+13"/> - <source>Start with more button pushed</source> - <translation>Démarrer avec le boutton plus pressé</translation> + <location line="-203"/> + <source>Always on top</source> + <translation>Toujours au 1er plan</translation> </message> </context> </TS> diff --git a/plugins/Themes/Oxygen/Languages/hi/translation.ts b/plugins/Themes/Oxygen/Languages/hi/translation.ts index 0708252..ae86b54 100644 --- a/plugins/Themes/Oxygen/Languages/hi/translation.ts +++ b/plugins/Themes/Oxygen/Languages/hi/translation.ts @@ -4,15 +4,84 @@ <context> <name>Themes</name> <message> - <location filename="../../interface.cpp" line="184"/> + <location filename="../../interface.cpp" line="240"/> + <source>Buy the Ultimate version to fund development</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../../interface.cpp" line="310"/> <source>File %1/%2, size: %3/%4</source> <translation type="unfinished"></translation> </message> <message> - <location filename="../../interface.cpp" line="737"/> + <location filename="../../interface.cpp" line="524"/> + <source>Copy list</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../../interface.cpp" line="526"/> + <source>Move list</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../../interface.cpp" line="947"/> + <source>Don't close if errors are found</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../../interface.cpp" line="948"/> + <source>Never close</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../../interface.cpp" line="949"/> + <source>Always close</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../../interface.cpp" line="951"/> <source>File Name, 0KB</source> <translation type="unfinished"></translation> </message> + <message> + <location filename="../../interface.cpp" line="1134"/> + <location filename="../../interface.cpp" line="1146"/> + <location filename="../../interface.cpp" line="1158"/> + <source>Select a color</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../../interface.cpp" line="1233"/> + <location filename="../../interface.cpp" line="1237"/> + <location filename="../../interface.cpp" line="1239"/> + <source>%1 %2% of %3</source> + <translation type="unfinished"></translation> + </message> +</context> +<context> + <name>ThemesFactory</name> + <message> + <location filename="../../ThemesFactory.cpp" line="223"/> + <source>Don't close if errors are found</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../../ThemesFactory.cpp" line="224"/> + <source>Never close</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../../ThemesFactory.cpp" line="225"/> + <source>Always close</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../../ThemesFactory.cpp" line="421"/> + <location filename="../../ThemesFactory.cpp" line="436"/> + <location filename="../../ThemesFactory.cpp" line="451"/> + <source>Select a color</source> + <translation type="unfinished"></translation> + </message> </context> <context> <name>interfaceCopy</name> @@ -22,178 +91,238 @@ <translation type="unfinished"></translation> </message> <message> - <location filename="../../interface.ui" line="69"/> + <location filename="../../interface.ui" line="65"/> <source>To:</source> <translation type="unfinished"></translation> </message> <message> - <location filename="../../interface.ui" line="196"/> - <source>0KB/sec</source> - <translation type="unfinished"></translation> - </message> - <message> - <location filename="../../interface.ui" line="216"/> + <location filename="../../interface.ui" line="226"/> <source>&More</source> <translation type="unfinished"></translation> </message> <message> - <location filename="../../interface.ui" line="236"/> + <location filename="../../interface.ui" line="246"/> <source>&Pause</source> <translation type="unfinished"></translation> </message> <message> - <location filename="../../interface.ui" line="250"/> + <location filename="../../interface.ui" line="260"/> <source>&Skip</source> <translation type="unfinished"></translation> </message> <message> - <location filename="../../interface.ui" line="261"/> + <location filename="../../interface.ui" line="271"/> <source>&Cancel</source> <translation type="unfinished"></translation> </message> <message> - <location filename="../../interface.ui" line="276"/> - <location filename="../../interface.ui" line="748"/> - <source>Limit copy speed at:</source> + <location filename="../../interface.ui" line="118"/> + <source>Close on transfer completion</source> <translation type="unfinished"></translation> </message> <message> - <location filename="../../interface.ui" line="293"/> - <source>Unlimited</source> + <location filename="../../interface.ui" line="286"/> + <source>Limit copy speed to:</source> <translation type="unfinished"></translation> </message> <message> - <location filename="../../interface.ui" line="323"/> - <source>Copy list</source> + <location filename="../../interface.ui" line="329"/> + <source>Transfer list</source> <translation type="unfinished"></translation> </message> <message> - <location filename="../../interface.ui" line="591"/> - <source>Previous</source> + <location filename="../../interface.ui" line="352"/> + <source>Move the selected items to the top</source> <translation type="unfinished"></translation> </message> <message> - <location filename="../../interface.ui" line="598"/> - <source>Next</source> + <location filename="../../interface.ui" line="378"/> + <source>Move up the selected items</source> <translation type="unfinished"></translation> </message> <message> - <location filename="../../interface.ui" line="637"/> - <source>Options</source> + <location filename="../../interface.ui" line="404"/> + <source>Move down the selected items</source> <translation type="unfinished"></translation> </message> <message> - <location filename="../../interface.ui" line="646"/> - <source>Copy end</source> + <location filename="../../interface.ui" line="430"/> + <source>Move the selected items to the bottom</source> <translation type="unfinished"></translation> </message> <message> - <location filename="../../interface.ui" line="667"/> - <source>At the end of the copy: </source> + <location filename="../../interface.ui" line="456"/> + <source>Add file/folder</source> <translation type="unfinished"></translation> </message> <message> - <location filename="../../interface.ui" line="706"/> - <source>Don't close if errors are found</source> + <location filename="../../interface.ui" line="485"/> + <source>Delete the selected items</source> <translation type="unfinished"></translation> </message> <message> - <location filename="../../interface.ui" line="711"/> - <source>Never close</source> + <location filename="../../interface.ui" line="511"/> + <source>Search</source> <translation type="unfinished"></translation> </message> <message> - <location filename="../../interface.ui" line="716"/> - <source>Always close</source> + <location filename="../../interface.ui" line="540"/> + <source>Export the transfer list</source> <translation type="unfinished"></translation> </message> <message> - <location filename="../../interface.ui" line="727"/> - <source>Speed limit</source> + <location filename="../../interface.ui" line="566"/> + <source>Import the transfer list</source> <translation type="unfinished"></translation> </message> <message> - <location filename="../../interface.ui" line="758"/> - <source> KB/s</source> + <location filename="../../interface.ui" line="621"/> + <source>Previous</source> <translation type="unfinished"></translation> </message> <message> - <location filename="../../interface.ui" line="790"/> - <source>File collisions</source> + <location filename="../../interface.ui" line="628"/> + <source>Next</source> <translation type="unfinished"></translation> </message> <message> - <location filename="../../interface.ui" line="811"/> - <location filename="../../interface.ui" line="871"/> - <source>What to do: </source> + <location filename="../../interface.ui" line="663"/> + <location filename="../../interface.ui" line="732"/> + <source>Error</source> <translation type="unfinished"></translation> </message> <message> - <location filename="../../interface.ui" line="850"/> - <source>Copy errors</source> + <location filename="../../interface.ui" line="683"/> + <source>Export the errors into transfer list</source> <translation type="unfinished"></translation> </message> <message> - <location filename="../../interface.ui" line="928"/> - <source>Interface</source> + <location filename="../../interface.ui" line="722"/> + <source>Source</source> <translation type="unfinished"></translation> </message> <message> - <location filename="../../interface.ui" line="939"/> - <source>Show speed as main informations</source> + <location filename="../../interface.ui" line="727"/> + <source>Destination</source> <translation type="unfinished"></translation> </message> <message> - <location filename="../../interface.ui" line="976"/> + <location filename="../../interface.ui" line="741"/> + <source>Interface</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../../interface.ui" line="778"/> <source>Add file</source> <translation type="unfinished"></translation> </message> <message> - <location filename="../../interface.ui" line="985"/> + <location filename="../../interface.ui" line="787"/> <source>Add folder</source> <translation type="unfinished"></translation> </message> <message> - <location filename="../../interface.ui" line="994"/> + <location filename="../../interface.ui" line="796"/> <source>Move file(s)</source> <translation type="unfinished"></translation> </message> <message> - <location filename="../../interface.ui" line="1003"/> + <location filename="../../interface.ui" line="805"/> <source>Move folder</source> <translation type="unfinished"></translation> </message> <message> - <location filename="../../interface.ui" line="1012"/> + <location filename="../../interface.ui" line="814"/> <source>Copy file(s)</source> <translation type="unfinished"></translation> </message> <message> - <location filename="../../interface.ui" line="1021"/> + <location filename="../../interface.ui" line="823"/> <source>Copy folder</source> <translation type="unfinished"></translation> </message> +</context> +<context> + <name>themesOptions</name> + <message> + <location filename="../../themesOptions.ui" line="253"/> + <source>Show dual progression</source> + <translation type="unfinished"></translation> + </message> <message> - <location filename="../../interface.ui" line="487"/> - <source>Ctrl+F</source> + <location filename="../../themesOptions.ui" line="205"/> + <source>Show speed as main information</source> <translation type="unfinished"></translation> </message> <message> - <location filename="../../interface.ui" line="133"/> - <source>Shutdown when is finish</source> + <location filename="../../themesOptions.ui" line="44"/> + <source>Use</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../../themesOptions.ui" line="50"/> + <source>Start with the "more button" pushed</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../../themesOptions.ui" line="67"/> + <source>Minimize on close to systray</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../../themesOptions.ui" line="96"/> + <source>At the end of the copy</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../../themesOptions.ui" line="103"/> + <location filename="../../themesOptions.ui" line="137"/> + <source>Limit copy speed to</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../../themesOptions.ui" line="147"/> + <source> KB/s</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../../themesOptions.ui" line="176"/> + <source>Start minimized</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../../themesOptions.ui" line="199"/> + <source>Informations</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../../themesOptions.ui" line="237"/> + <source>Display</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../../themesOptions.ui" line="243"/> + <source>Speed with progress bar</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../../themesOptions.ui" line="273"/> + <source>Progression color</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../../themesOptions.ui" line="292"/> + <source>Click to edit the color</source> <translation type="unfinished"></translation> </message> -</context> -<context> - <name>options</name> <message> - <location filename="../../options.ui" line="20"/> - <source>Show speed as main informations</source> + <location filename="../../themesOptions.ui" line="263"/> + <source>Show progression in the title</source> <translation type="unfinished"></translation> </message> <message> - <location filename="../../options.ui" line="33"/> - <source>Start with more button pushed</source> + <location filename="../../themesOptions.ui" line="60"/> + <source>Always on top</source> <translation type="unfinished"></translation> </message> </context> diff --git a/plugins/Themes/Oxygen/Languages/hu/translation.ts b/plugins/Themes/Oxygen/Languages/hu/translation.ts new file mode 100644 index 0000000..ce37a23 --- /dev/null +++ b/plugins/Themes/Oxygen/Languages/hu/translation.ts @@ -0,0 +1,329 @@ +<?xml version="1.0" encoding="utf-8"?> +<!DOCTYPE TS> +<TS version="2.0" language="hu"> +<context> + <name>Themes</name> + <message> + <location filename="../../interface.cpp" line="240"/> + <source>Buy the Ultimate version to fund development</source> + <translation>Vásárold meg az Ultimate verziót a fejlesztés támogatásához</translation> + </message> + <message> + <location filename="../../interface.cpp" line="310"/> + <source>File %1/%2, size: %3/%4</source> + <translation>Fájl %1/%2, méret: %3/%4</translation> + </message> + <message> + <location filename="../../interface.cpp" line="524"/> + <source>Copy list</source> + <translation>Lista másolása</translation> + </message> + <message> + <location filename="../../interface.cpp" line="526"/> + <source>Move list</source> + <translation>Lista mozgatása</translation> + </message> + <message> + <location filename="../../interface.cpp" line="947"/> + <source>Don't close if errors are found</source> + <translation>Ne zárja be, ha hiba történik</translation> + </message> + <message> + <location filename="../../interface.cpp" line="948"/> + <source>Never close</source> + <translation>Sose zárja be</translation> + </message> + <message> + <location filename="../../interface.cpp" line="949"/> + <source>Always close</source> + <translation>Mindig zárja be</translation> + </message> + <message> + <location filename="../../interface.cpp" line="951"/> + <source>File Name, 0KB</source> + <translation>Fájlnév, 0KB</translation> + </message> + <message> + <location filename="../../interface.cpp" line="1134"/> + <location filename="../../interface.cpp" line="1146"/> + <location filename="../../interface.cpp" line="1158"/> + <source>Select a color</source> + <translation>Válassz egy színt</translation> + </message> + <message> + <location filename="../../interface.cpp" line="1233"/> + <location filename="../../interface.cpp" line="1237"/> + <location filename="../../interface.cpp" line="1239"/> + <source>%1 %2% of %3</source> + <translation type="unfinished"></translation> + </message> +</context> +<context> + <name>ThemesFactory</name> + <message> + <location filename="../../ThemesFactory.cpp" line="223"/> + <source>Don't close if errors are found</source> + <translation>Ne zárja be, ha hiba történik</translation> + </message> + <message> + <location filename="../../ThemesFactory.cpp" line="224"/> + <source>Never close</source> + <translation>Sose zárja be</translation> + </message> + <message> + <location filename="../../ThemesFactory.cpp" line="225"/> + <source>Always close</source> + <translation>Mindig zárja be</translation> + </message> + <message> + <location filename="../../ThemesFactory.cpp" line="421"/> + <location filename="../../ThemesFactory.cpp" line="436"/> + <location filename="../../ThemesFactory.cpp" line="451"/> + <source>Select a color</source> + <translation>Válassz egy színt</translation> + </message> +</context> +<context> + <name>interfaceCopy</name> + <message> + <location filename="../../interface.ui" line="35"/> + <source>From:</source> + <translation>Forrás:</translation> + </message> + <message> + <location filename="../../interface.ui" line="65"/> + <source>To:</source> + <translation>Cél:</translation> + </message> + <message> + <location filename="../../interface.ui" line="226"/> + <source>&More</source> + <translation>&Több</translation> + </message> + <message> + <location filename="../../interface.ui" line="246"/> + <source>&Pause</source> + <translation>&Szünet</translation> + </message> + <message> + <location filename="../../interface.ui" line="260"/> + <source>&Skip</source> + <translation>&Kihagy</translation> + </message> + <message> + <location filename="../../interface.ui" line="271"/> + <source>&Cancel</source> + <translation>&Mégse</translation> + </message> + <message> + <location filename="../../interface.ui" line="329"/> + <source>Transfer list</source> + <translation>Átviteli lista</translation> + </message> + <message> + <location filename="../../interface.ui" line="621"/> + <source>Previous</source> + <translation>Előző</translation> + </message> + <message> + <location filename="../../interface.ui" line="628"/> + <source>Next</source> + <translation>Következő</translation> + </message> + <message> + <location filename="../../interface.ui" line="741"/> + <source>Interface</source> + <translation>Kezelőfelület</translation> + </message> + <message> + <location filename="../../interface.ui" line="352"/> + <source>Move the selected items to the top</source> + <translation>Kijelölések elemek mozgatása legfelülre</translation> + </message> + <message> + <location filename="../../interface.ui" line="118"/> + <source>Close on transfer completion</source> + <translation>Átvitel végeztével zárja be</translation> + </message> + <message> + <location filename="../../interface.ui" line="286"/> + <source>Limit copy speed to:</source> + <translation>Másolási sebesség korlátozása:</translation> + </message> + <message> + <location filename="../../interface.ui" line="378"/> + <source>Move up the selected items</source> + <translation>Kijelölt elemek mozgatása fel</translation> + </message> + <message> + <location filename="../../interface.ui" line="404"/> + <source>Move down the selected items</source> + <translation>Kijelölt elemek mozgatása le</translation> + </message> + <message> + <location filename="../../interface.ui" line="430"/> + <source>Move the selected items to the bottom</source> + <translation>Kijelölések elemek mozgatása legalulra</translation> + </message> + <message> + <location filename="../../interface.ui" line="456"/> + <source>Add file/folder</source> + <translation>Fájl/mappa hozzáadása</translation> + </message> + <message> + <location filename="../../interface.ui" line="485"/> + <source>Delete the selected items</source> + <translation>Kijelölt elemek törlése</translation> + </message> + <message> + <location filename="../../interface.ui" line="511"/> + <source>Search</source> + <translation>Keresés</translation> + </message> + <message> + <location filename="../../interface.ui" line="540"/> + <source>Export the transfer list</source> + <translation>Átviteli lista exportálása</translation> + </message> + <message> + <location filename="../../interface.ui" line="566"/> + <source>Import the transfer list</source> + <translation>Átviteli lista importálása</translation> + </message> + <message> + <location filename="../../interface.ui" line="663"/> + <location filename="../../interface.ui" line="732"/> + <source>Error</source> + <translation>Hiba</translation> + </message> + <message> + <location filename="../../interface.ui" line="683"/> + <source>Export the errors into transfer list</source> + <translation>Hibák exportálása az átviteli listába</translation> + </message> + <message> + <location filename="../../interface.ui" line="722"/> + <source>Source</source> + <translation>Forrás</translation> + </message> + <message> + <location filename="../../interface.ui" line="727"/> + <source>Destination</source> + <translation>Cél</translation> + </message> + <message> + <location filename="../../interface.ui" line="778"/> + <source>Add file</source> + <translation>Fájl hozzáadása</translation> + </message> + <message> + <location filename="../../interface.ui" line="787"/> + <source>Add folder</source> + <translation>Mappa hozzáadása</translation> + </message> + <message> + <location filename="../../interface.ui" line="796"/> + <source>Move file(s)</source> + <translation>Fájl(ok) mozgatása</translation> + </message> + <message> + <location filename="../../interface.ui" line="805"/> + <source>Move folder</source> + <translation>Mappa mozgatása</translation> + </message> + <message> + <location filename="../../interface.ui" line="814"/> + <source>Copy file(s)</source> + <translation>Fájl(ok) másolása</translation> + </message> + <message> + <location filename="../../interface.ui" line="823"/> + <source>Copy folder</source> + <translation>Mappa másolása</translation> + </message> +</context> +<context> + <name>themesOptions</name> + <message> + <location filename="../../themesOptions.ui" line="253"/> + <source>Show dual progression</source> + <translation>Páros folyamat mutatása</translation> + </message> + <message> + <location filename="../../themesOptions.ui" line="205"/> + <source>Show speed as main information</source> + <translation>Sebesség mutatása, mint fő információ</translation> + </message> + <message> + <location filename="../../themesOptions.ui" line="44"/> + <source>Use</source> + <translation>Használ</translation> + </message> + <message> + <location filename="../../themesOptions.ui" line="50"/> + <source>Start with the "more button" pushed</source> + <translation>Indítás a "több gomb" lenyomásával</translation> + </message> + <message> + <location filename="../../themesOptions.ui" line="67"/> + <source>Minimize on close to systray</source> + <translation>Bezáráskor minimalizálás a tálcára</translation> + </message> + <message> + <location filename="../../themesOptions.ui" line="96"/> + <source>At the end of the copy</source> + <translation>A másolás befejezésekor</translation> + </message> + <message> + <location filename="../../themesOptions.ui" line="103"/> + <location filename="../../themesOptions.ui" line="137"/> + <source>Limit copy speed to</source> + <translation>Másolási sebesség korlátozása</translation> + </message> + <message> + <location filename="../../themesOptions.ui" line="176"/> + <source>Start minimized</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../../themesOptions.ui" line="292"/> + <source>Click to edit the color</source> + <translation>Kattints a szín szerkesztéséhez</translation> + </message> + <message> + <location filename="../../themesOptions.ui" line="147"/> + <source> KB/s</source> + <translation> KB/s</translation> + </message> + <message> + <location filename="../../themesOptions.ui" line="199"/> + <source>Informations</source> + <translation>Információk</translation> + </message> + <message> + <location filename="../../themesOptions.ui" line="237"/> + <source>Display</source> + <translation>Megjelenítés</translation> + </message> + <message> + <location filename="../../themesOptions.ui" line="243"/> + <source>Speed with progress bar</source> + <translation>Sebesség folyamatsávval</translation> + </message> + <message> + <location filename="../../themesOptions.ui" line="273"/> + <source>Progression color</source> + <translation>Folyamat színe</translation> + </message> + <message> + <location filename="../../themesOptions.ui" line="263"/> + <source>Show progression in the title</source> + <translation>Folyamat mutatása a címsorban</translation> + </message> + <message> + <location filename="../../themesOptions.ui" line="60"/> + <source>Always on top</source> + <translation>Mindig legfelül</translation> + </message> +</context> +</TS> diff --git a/plugins/Themes/Oxygen/Languages/id/translation.ts b/plugins/Themes/Oxygen/Languages/id/translation.ts index 0708252..ae86b54 100644 --- a/plugins/Themes/Oxygen/Languages/id/translation.ts +++ b/plugins/Themes/Oxygen/Languages/id/translation.ts @@ -4,15 +4,84 @@ <context> <name>Themes</name> <message> - <location filename="../../interface.cpp" line="184"/> + <location filename="../../interface.cpp" line="240"/> + <source>Buy the Ultimate version to fund development</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../../interface.cpp" line="310"/> <source>File %1/%2, size: %3/%4</source> <translation type="unfinished"></translation> </message> <message> - <location filename="../../interface.cpp" line="737"/> + <location filename="../../interface.cpp" line="524"/> + <source>Copy list</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../../interface.cpp" line="526"/> + <source>Move list</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../../interface.cpp" line="947"/> + <source>Don't close if errors are found</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../../interface.cpp" line="948"/> + <source>Never close</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../../interface.cpp" line="949"/> + <source>Always close</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../../interface.cpp" line="951"/> <source>File Name, 0KB</source> <translation type="unfinished"></translation> </message> + <message> + <location filename="../../interface.cpp" line="1134"/> + <location filename="../../interface.cpp" line="1146"/> + <location filename="../../interface.cpp" line="1158"/> + <source>Select a color</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../../interface.cpp" line="1233"/> + <location filename="../../interface.cpp" line="1237"/> + <location filename="../../interface.cpp" line="1239"/> + <source>%1 %2% of %3</source> + <translation type="unfinished"></translation> + </message> +</context> +<context> + <name>ThemesFactory</name> + <message> + <location filename="../../ThemesFactory.cpp" line="223"/> + <source>Don't close if errors are found</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../../ThemesFactory.cpp" line="224"/> + <source>Never close</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../../ThemesFactory.cpp" line="225"/> + <source>Always close</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../../ThemesFactory.cpp" line="421"/> + <location filename="../../ThemesFactory.cpp" line="436"/> + <location filename="../../ThemesFactory.cpp" line="451"/> + <source>Select a color</source> + <translation type="unfinished"></translation> + </message> </context> <context> <name>interfaceCopy</name> @@ -22,178 +91,238 @@ <translation type="unfinished"></translation> </message> <message> - <location filename="../../interface.ui" line="69"/> + <location filename="../../interface.ui" line="65"/> <source>To:</source> <translation type="unfinished"></translation> </message> <message> - <location filename="../../interface.ui" line="196"/> - <source>0KB/sec</source> - <translation type="unfinished"></translation> - </message> - <message> - <location filename="../../interface.ui" line="216"/> + <location filename="../../interface.ui" line="226"/> <source>&More</source> <translation type="unfinished"></translation> </message> <message> - <location filename="../../interface.ui" line="236"/> + <location filename="../../interface.ui" line="246"/> <source>&Pause</source> <translation type="unfinished"></translation> </message> <message> - <location filename="../../interface.ui" line="250"/> + <location filename="../../interface.ui" line="260"/> <source>&Skip</source> <translation type="unfinished"></translation> </message> <message> - <location filename="../../interface.ui" line="261"/> + <location filename="../../interface.ui" line="271"/> <source>&Cancel</source> <translation type="unfinished"></translation> </message> <message> - <location filename="../../interface.ui" line="276"/> - <location filename="../../interface.ui" line="748"/> - <source>Limit copy speed at:</source> + <location filename="../../interface.ui" line="118"/> + <source>Close on transfer completion</source> <translation type="unfinished"></translation> </message> <message> - <location filename="../../interface.ui" line="293"/> - <source>Unlimited</source> + <location filename="../../interface.ui" line="286"/> + <source>Limit copy speed to:</source> <translation type="unfinished"></translation> </message> <message> - <location filename="../../interface.ui" line="323"/> - <source>Copy list</source> + <location filename="../../interface.ui" line="329"/> + <source>Transfer list</source> <translation type="unfinished"></translation> </message> <message> - <location filename="../../interface.ui" line="591"/> - <source>Previous</source> + <location filename="../../interface.ui" line="352"/> + <source>Move the selected items to the top</source> <translation type="unfinished"></translation> </message> <message> - <location filename="../../interface.ui" line="598"/> - <source>Next</source> + <location filename="../../interface.ui" line="378"/> + <source>Move up the selected items</source> <translation type="unfinished"></translation> </message> <message> - <location filename="../../interface.ui" line="637"/> - <source>Options</source> + <location filename="../../interface.ui" line="404"/> + <source>Move down the selected items</source> <translation type="unfinished"></translation> </message> <message> - <location filename="../../interface.ui" line="646"/> - <source>Copy end</source> + <location filename="../../interface.ui" line="430"/> + <source>Move the selected items to the bottom</source> <translation type="unfinished"></translation> </message> <message> - <location filename="../../interface.ui" line="667"/> - <source>At the end of the copy: </source> + <location filename="../../interface.ui" line="456"/> + <source>Add file/folder</source> <translation type="unfinished"></translation> </message> <message> - <location filename="../../interface.ui" line="706"/> - <source>Don't close if errors are found</source> + <location filename="../../interface.ui" line="485"/> + <source>Delete the selected items</source> <translation type="unfinished"></translation> </message> <message> - <location filename="../../interface.ui" line="711"/> - <source>Never close</source> + <location filename="../../interface.ui" line="511"/> + <source>Search</source> <translation type="unfinished"></translation> </message> <message> - <location filename="../../interface.ui" line="716"/> - <source>Always close</source> + <location filename="../../interface.ui" line="540"/> + <source>Export the transfer list</source> <translation type="unfinished"></translation> </message> <message> - <location filename="../../interface.ui" line="727"/> - <source>Speed limit</source> + <location filename="../../interface.ui" line="566"/> + <source>Import the transfer list</source> <translation type="unfinished"></translation> </message> <message> - <location filename="../../interface.ui" line="758"/> - <source> KB/s</source> + <location filename="../../interface.ui" line="621"/> + <source>Previous</source> <translation type="unfinished"></translation> </message> <message> - <location filename="../../interface.ui" line="790"/> - <source>File collisions</source> + <location filename="../../interface.ui" line="628"/> + <source>Next</source> <translation type="unfinished"></translation> </message> <message> - <location filename="../../interface.ui" line="811"/> - <location filename="../../interface.ui" line="871"/> - <source>What to do: </source> + <location filename="../../interface.ui" line="663"/> + <location filename="../../interface.ui" line="732"/> + <source>Error</source> <translation type="unfinished"></translation> </message> <message> - <location filename="../../interface.ui" line="850"/> - <source>Copy errors</source> + <location filename="../../interface.ui" line="683"/> + <source>Export the errors into transfer list</source> <translation type="unfinished"></translation> </message> <message> - <location filename="../../interface.ui" line="928"/> - <source>Interface</source> + <location filename="../../interface.ui" line="722"/> + <source>Source</source> <translation type="unfinished"></translation> </message> <message> - <location filename="../../interface.ui" line="939"/> - <source>Show speed as main informations</source> + <location filename="../../interface.ui" line="727"/> + <source>Destination</source> <translation type="unfinished"></translation> </message> <message> - <location filename="../../interface.ui" line="976"/> + <location filename="../../interface.ui" line="741"/> + <source>Interface</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../../interface.ui" line="778"/> <source>Add file</source> <translation type="unfinished"></translation> </message> <message> - <location filename="../../interface.ui" line="985"/> + <location filename="../../interface.ui" line="787"/> <source>Add folder</source> <translation type="unfinished"></translation> </message> <message> - <location filename="../../interface.ui" line="994"/> + <location filename="../../interface.ui" line="796"/> <source>Move file(s)</source> <translation type="unfinished"></translation> </message> <message> - <location filename="../../interface.ui" line="1003"/> + <location filename="../../interface.ui" line="805"/> <source>Move folder</source> <translation type="unfinished"></translation> </message> <message> - <location filename="../../interface.ui" line="1012"/> + <location filename="../../interface.ui" line="814"/> <source>Copy file(s)</source> <translation type="unfinished"></translation> </message> <message> - <location filename="../../interface.ui" line="1021"/> + <location filename="../../interface.ui" line="823"/> <source>Copy folder</source> <translation type="unfinished"></translation> </message> +</context> +<context> + <name>themesOptions</name> + <message> + <location filename="../../themesOptions.ui" line="253"/> + <source>Show dual progression</source> + <translation type="unfinished"></translation> + </message> <message> - <location filename="../../interface.ui" line="487"/> - <source>Ctrl+F</source> + <location filename="../../themesOptions.ui" line="205"/> + <source>Show speed as main information</source> <translation type="unfinished"></translation> </message> <message> - <location filename="../../interface.ui" line="133"/> - <source>Shutdown when is finish</source> + <location filename="../../themesOptions.ui" line="44"/> + <source>Use</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../../themesOptions.ui" line="50"/> + <source>Start with the "more button" pushed</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../../themesOptions.ui" line="67"/> + <source>Minimize on close to systray</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../../themesOptions.ui" line="96"/> + <source>At the end of the copy</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../../themesOptions.ui" line="103"/> + <location filename="../../themesOptions.ui" line="137"/> + <source>Limit copy speed to</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../../themesOptions.ui" line="147"/> + <source> KB/s</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../../themesOptions.ui" line="176"/> + <source>Start minimized</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../../themesOptions.ui" line="199"/> + <source>Informations</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../../themesOptions.ui" line="237"/> + <source>Display</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../../themesOptions.ui" line="243"/> + <source>Speed with progress bar</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../../themesOptions.ui" line="273"/> + <source>Progression color</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../../themesOptions.ui" line="292"/> + <source>Click to edit the color</source> <translation type="unfinished"></translation> </message> -</context> -<context> - <name>options</name> <message> - <location filename="../../options.ui" line="20"/> - <source>Show speed as main informations</source> + <location filename="../../themesOptions.ui" line="263"/> + <source>Show progression in the title</source> <translation type="unfinished"></translation> </message> <message> - <location filename="../../options.ui" line="33"/> - <source>Start with more button pushed</source> + <location filename="../../themesOptions.ui" line="60"/> + <source>Always on top</source> <translation type="unfinished"></translation> </message> </context> diff --git a/plugins/Themes/Oxygen/Languages/it/translation.ts b/plugins/Themes/Oxygen/Languages/it/translation.ts index 0f65cfb..d9e20f0 100644 --- a/plugins/Themes/Oxygen/Languages/it/translation.ts +++ b/plugins/Themes/Oxygen/Languages/it/translation.ts @@ -4,15 +4,84 @@ <context> <name>Themes</name> <message> - <location filename="../../interface.cpp" line="184"/> + <location filename="../../interface.cpp" line="240"/> + <source>Buy the Ultimate version to fund development</source> + <translation>Acquista la versione Ultimate per finanziare lo sviluppo del programma</translation> + </message> + <message> + <location filename="../../interface.cpp" line="310"/> <source>File %1/%2, size: %3/%4</source> <translation>File %1/%2, dimensione: %3/%4</translation> </message> <message> - <location filename="../../interface.cpp" line="737"/> + <location filename="../../interface.cpp" line="524"/> + <source>Copy list</source> + <translation>Lista della copia</translation> + </message> + <message> + <location filename="../../interface.cpp" line="526"/> + <source>Move list</source> + <translation>Lista dello spostamento</translation> + </message> + <message> + <location filename="../../interface.cpp" line="947"/> + <source>Don't close if errors are found</source> + <translation>Non chiudere se vengono rilevati errori</translation> + </message> + <message> + <location filename="../../interface.cpp" line="948"/> + <source>Never close</source> + <translation>Non chiudere mai</translation> + </message> + <message> + <location filename="../../interface.cpp" line="949"/> + <source>Always close</source> + <translation>Chiudere sempre</translation> + </message> + <message> + <location filename="../../interface.cpp" line="951"/> <source>File Name, 0KB</source> <translation>Nome del file, 0KB</translation> </message> + <message> + <location filename="../../interface.cpp" line="1134"/> + <location filename="../../interface.cpp" line="1146"/> + <location filename="../../interface.cpp" line="1158"/> + <source>Select a color</source> + <translation>Scegliere un colore</translation> + </message> + <message> + <location filename="../../interface.cpp" line="1233"/> + <location filename="../../interface.cpp" line="1237"/> + <location filename="../../interface.cpp" line="1239"/> + <source>%1 %2% of %3</source> + <translation>%1 %2% di %3</translation> + </message> +</context> +<context> + <name>ThemesFactory</name> + <message> + <location filename="../../ThemesFactory.cpp" line="223"/> + <source>Don't close if errors are found</source> + <translation>Non chiudere se vengono rilevati errori</translation> + </message> + <message> + <location filename="../../ThemesFactory.cpp" line="224"/> + <source>Never close</source> + <translation>Non chiudere mai</translation> + </message> + <message> + <location filename="../../ThemesFactory.cpp" line="225"/> + <source>Always close</source> + <translation>Chiudere sempre</translation> + </message> + <message> + <location filename="../../ThemesFactory.cpp" line="421"/> + <location filename="../../ThemesFactory.cpp" line="436"/> + <location filename="../../ThemesFactory.cpp" line="451"/> + <source>Select a color</source> + <translation>Scegliere un colore</translation> + </message> </context> <context> <name>interfaceCopy</name> @@ -22,179 +91,255 @@ <translation>Da:</translation> </message> <message> - <location filename="../../interface.ui" line="69"/> + <location filename="../../interface.ui" line="65"/> <source>To:</source> - <translation>Per:</translation> + <translation>a:</translation> </message> <message> - <location filename="../../interface.ui" line="196"/> - <source>0KB/sec</source> - <translation>0KB/sec</translation> + <source>Close at the end of the transfers</source> + <translation type="obsolete">Chiudi alla fine dei trasferimenti</translation> </message> <message> - <location filename="../../interface.ui" line="216"/> + <location filename="../../interface.ui" line="226"/> <source>&More</source> - <translation>Più</translation> + <translation>Altr&o</translation> </message> <message> - <location filename="../../interface.ui" line="236"/> + <location filename="../../interface.ui" line="246"/> <source>&Pause</source> - <translation>Pausa</translation> + <translation>&Pausa</translation> </message> <message> - <location filename="../../interface.ui" line="250"/> + <location filename="../../interface.ui" line="260"/> <source>&Skip</source> - <translation>&Saltare</translation> + <translation>&Salta</translation> </message> <message> - <location filename="../../interface.ui" line="261"/> + <location filename="../../interface.ui" line="271"/> <source>&Cancel</source> - <translation>&Annullare</translation> + <translation>&Annulla</translation> </message> <message> - <location filename="../../interface.ui" line="276"/> - <location filename="../../interface.ui" line="748"/> <source>Limit copy speed at:</source> - <translation>Ridurre la velocità di copia a:</translation> + <translation type="obsolete">Ridurre la velocità di copia a:</translation> </message> <message> - <location filename="../../interface.ui" line="293"/> - <source>Unlimited</source> - <translation>Illimitato</translation> + <location filename="../../interface.ui" line="118"/> + <source>Close on transfer completion</source> + <translation>Arresta il sistema a trasferimento comletato</translation> </message> <message> - <location filename="../../interface.ui" line="323"/> - <source>Copy list</source> - <translation>Copia list</translation> + <location filename="../../interface.ui" line="286"/> + <source>Limit copy speed to:</source> + <translation>Limitare la velocità di copia a:</translation> </message> <message> - <location filename="../../interface.ui" line="591"/> - <source>Previous</source> - <translation>Precedente</translation> + <location filename="../../interface.ui" line="329"/> + <source>Transfer list</source> + <translation>Lista dei trasferimenti</translation> </message> <message> - <location filename="../../interface.ui" line="598"/> - <source>Next</source> - <translation>Prossimo</translation> + <location filename="../../interface.ui" line="352"/> + <source>Move the selected items to the top</source> + <translation>Sposta in cima gli elementi selezionati</translation> </message> <message> - <location filename="../../interface.ui" line="637"/> - <source>Options</source> - <translation>Opzioni</translation> + <location filename="../../interface.ui" line="378"/> + <source>Move up the selected items</source> + <translation>Sposta sopra gli elementi selezionati</translation> </message> <message> - <location filename="../../interface.ui" line="646"/> - <source>Copy end</source> - <translation>Copia end</translation> + <location filename="../../interface.ui" line="404"/> + <source>Move down the selected items</source> + <translation>Sposta sotto gli elementi selezionati</translation> </message> <message> - <location filename="../../interface.ui" line="667"/> - <source>At the end of the copy: </source> - <translation>Alla fine della copia: </translation> + <location filename="../../interface.ui" line="430"/> + <source>Move the selected items to the bottom</source> + <translation>Sposta in coda gli elementi selezionati</translation> </message> <message> - <location filename="../../interface.ui" line="706"/> - <source>Don't close if errors are found</source> - <translation>Non chiudere se vengono rilevati errori</translation> + <location filename="../../interface.ui" line="456"/> + <source>Add file/folder</source> + <translation>Aggiungi file/cartelle</translation> </message> <message> - <location filename="../../interface.ui" line="711"/> - <source>Never close</source> - <translation>Non chiudere mai</translation> + <location filename="../../interface.ui" line="485"/> + <source>Delete the selected items</source> + <translation>Elimina gli elementi selezionati</translation> </message> <message> - <location filename="../../interface.ui" line="716"/> - <source>Always close</source> - <translation>Chiudere sempre</translation> + <location filename="../../interface.ui" line="511"/> + <source>Search</source> + <translation>Cerca</translation> </message> <message> - <location filename="../../interface.ui" line="727"/> - <source>Speed limit</source> - <translation>Limite di velocità</translation> + <location filename="../../interface.ui" line="540"/> + <source>Export the transfer list</source> + <translation>Esporta la lista dei trasferimenti</translation> </message> <message> - <location filename="../../interface.ui" line="758"/> - <source> KB/s</source> - <translation> KB/s</translation> + <location filename="../../interface.ui" line="566"/> + <source>Import the transfer list</source> + <translation>Importa la lista dei trasferimenti</translation> </message> <message> - <location filename="../../interface.ui" line="790"/> - <source>File collisions</source> - <translation>File collisioni</translation> + <location filename="../../interface.ui" line="621"/> + <source>Previous</source> + <translation>Precedente</translation> </message> <message> - <location filename="../../interface.ui" line="811"/> - <location filename="../../interface.ui" line="871"/> - <source>What to do: </source> - <translation>Cosa fare: </translation> + <location filename="../../interface.ui" line="628"/> + <source>Next</source> + <translation>Successivo</translation> </message> <message> - <location filename="../../interface.ui" line="850"/> - <source>Copy errors</source> - <translation>Copia errori</translation> + <location filename="../../interface.ui" line="663"/> + <location filename="../../interface.ui" line="732"/> + <source>Error</source> + <translation>Errore</translation> </message> <message> - <location filename="../../interface.ui" line="928"/> - <source>Interface</source> - <translation>Interfaccia</translation> + <location filename="../../interface.ui" line="683"/> + <source>Export the errors into transfer list</source> + <translation>Esporta gli errori nella lista dei trasferimenti</translation> </message> <message> - <location filename="../../interface.ui" line="939"/> - <source>Show speed as main informations</source> - <translation>Mostra velocità come principali informazioni</translation> + <location filename="../../interface.ui" line="722"/> + <source>Source</source> + <translation>Cartella di origine</translation> </message> <message> - <location filename="../../interface.ui" line="976"/> + <location filename="../../interface.ui" line="727"/> + <source>Destination</source> + <translation>Cartella di destinazione</translation> + </message> + <message> + <location filename="../../interface.ui" line="741"/> + <source>Interface</source> + <translation>Interfaccia</translation> + </message> + <message> + <location filename="../../interface.ui" line="778"/> <source>Add file</source> <translation>Aggiungi file</translation> </message> <message> - <location filename="../../interface.ui" line="985"/> + <location filename="../../interface.ui" line="787"/> <source>Add folder</source> <translation>Aggiungi cartella</translation> </message> <message> - <location filename="../../interface.ui" line="994"/> + <location filename="../../interface.ui" line="796"/> <source>Move file(s)</source> - <translation>Spostare file(s)</translation> + <translation>Sposta file</translation> </message> <message> - <location filename="../../interface.ui" line="1003"/> + <location filename="../../interface.ui" line="805"/> <source>Move folder</source> - <translation>Spostare la cartella</translation> + <translation>Sposta la cartella</translation> </message> <message> - <location filename="../../interface.ui" line="1012"/> + <location filename="../../interface.ui" line="814"/> <source>Copy file(s)</source> - <translation>Copiare il file(s)</translation> + <translation>Copia file</translation> </message> <message> - <location filename="../../interface.ui" line="1021"/> + <location filename="../../interface.ui" line="823"/> <source>Copy folder</source> <translation>Copia la cartella</translation> </message> +</context> +<context> + <name>themesOptions</name> <message> - <location filename="../../interface.ui" line="487"/> - <source>Ctrl+F</source> - <translation>Ctrl+F</translation> + <location filename="../../themesOptions.ui" line="253"/> + <source>Show dual progression</source> + <translation>Mostrare la doppia progressione</translation> </message> <message> - <location filename="../../interface.ui" line="133"/> - <source>Shutdown when is finish</source> - <translation>Shutdown quando è finito</translation> + <location filename="../../themesOptions.ui" line="205"/> + <source>Show speed as main information</source> + <translation>Mostrare la velocità come principale informazione</translation> + </message> + <message> + <location filename="../../themesOptions.ui" line="44"/> + <source>Use</source> + <translation>Utilità</translation> + </message> + <message> + <location filename="../../themesOptions.ui" line="50"/> + <source>Start with the "more button" pushed</source> + <translation>Iniziare col pulsante "Altro" attivo</translation> + </message> + <message> + <location filename="../../themesOptions.ui" line="67"/> + <source>Minimize on close to systray</source> + <translation>Alla chiusura riduci nella'area di notifica</translation> + </message> + <message> + <location filename="../../themesOptions.ui" line="96"/> + <source>At the end of the copy</source> + <translation>Al termine della copia</translation> + </message> + <message> + <location filename="../../themesOptions.ui" line="103"/> + <location filename="../../themesOptions.ui" line="137"/> + <source>Limit copy speed to</source> + <translation>Limitare la velocità di copia a</translation> + </message> + <message> + <location filename="../../themesOptions.ui" line="176"/> + <source>Start minimized</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../../themesOptions.ui" line="292"/> + <source>Click to edit the color</source> + <translation>Clicca per modificare il colore</translation> + </message> + <message> + <source>At the end of the copy: </source> + <translation type="obsolete">Alla fine della copia: </translation> + </message> + <message> + <source>Limit copy speed at:</source> + <translation type="obsolete">Ridurre la velocità di copia a:</translation> + </message> + <message> + <location filename="../../themesOptions.ui" line="147"/> + <source> KB/s</source> + <translation> KB/s</translation> + </message> + <message> + <location filename="../../themesOptions.ui" line="199"/> + <source>Informations</source> + <translation>Informazioni</translation> + </message> + <message> + <location filename="../../themesOptions.ui" line="237"/> + <source>Display</source> + <translation>Visualizza</translation> + </message> + <message> + <location filename="../../themesOptions.ui" line="243"/> + <source>Speed with progress bar</source> + <translation>Velocità nella barra di progresso</translation> + </message> + <message> + <location filename="../../themesOptions.ui" line="273"/> + <source>Progression color</source> + <translation>Colore della progressione</translation> </message> -</context> -<context> - <name>options</name> <message> - <location filename="../../options.ui" line="20"/> - <source>Show speed as main informations</source> - <translation>Mostra velocità come principali informazioni</translation> + <location filename="../../themesOptions.ui" line="263"/> + <source>Show progression in the title</source> + <translation>Mostrare la percentuale di progresso sul titolo</translation> </message> <message> - <location filename="../../options.ui" line="33"/> - <source>Start with more button pushed</source> - <translation>Inizia con più pulsante premuto</translation> + <location filename="../../themesOptions.ui" line="60"/> + <source>Always on top</source> + <translation>Sempre in primo piano</translation> </message> </context> </TS> diff --git a/plugins/Themes/Oxygen/Languages/ja/translation.ts b/plugins/Themes/Oxygen/Languages/ja/translation.ts index c5fd56b..1ee75a9 100644 --- a/plugins/Themes/Oxygen/Languages/ja/translation.ts +++ b/plugins/Themes/Oxygen/Languages/ja/translation.ts @@ -4,196 +4,325 @@ <context> <name>Themes</name> <message> - <location filename="../../interface.cpp" line="184"/> + <location filename="../../interface.cpp" line="240"/> + <source>Buy the Ultimate version to fund development</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../../interface.cpp" line="310"/> <source>File %1/%2, size: %3/%4</source> <translation type="unfinished"></translation> </message> <message> - <location filename="../../interface.cpp" line="737"/> + <location filename="../../interface.cpp" line="524"/> + <source>Copy list</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../../interface.cpp" line="526"/> + <source>Move list</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../../interface.cpp" line="947"/> + <source>Don't close if errors are found</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../../interface.cpp" line="948"/> + <source>Never close</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../../interface.cpp" line="949"/> + <source>Always close</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../../interface.cpp" line="951"/> <source>File Name, 0KB</source> <translation type="unfinished"></translation> </message> + <message> + <location filename="../../interface.cpp" line="1134"/> + <location filename="../../interface.cpp" line="1146"/> + <location filename="../../interface.cpp" line="1158"/> + <source>Select a color</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../../interface.cpp" line="1233"/> + <location filename="../../interface.cpp" line="1237"/> + <location filename="../../interface.cpp" line="1239"/> + <source>%1 %2% of %3</source> + <translation type="unfinished"></translation> + </message> </context> <context> - <name>interfaceCopy</name> + <name>ThemesFactory</name> <message> - <location filename="../../interface.ui" line="35"/> - <source>From:</source> + <location filename="../../ThemesFactory.cpp" line="223"/> + <source>Don't close if errors are found</source> <translation type="unfinished"></translation> </message> <message> - <location filename="../../interface.ui" line="69"/> - <source>To:</source> + <location filename="../../ThemesFactory.cpp" line="224"/> + <source>Never close</source> <translation type="unfinished"></translation> </message> <message> - <location filename="../../interface.ui" line="133"/> - <source>Shutdown when is finish</source> + <location filename="../../ThemesFactory.cpp" line="225"/> + <source>Always close</source> <translation type="unfinished"></translation> </message> <message> - <location filename="../../interface.ui" line="196"/> - <source>0KB/sec</source> + <location filename="../../ThemesFactory.cpp" line="421"/> + <location filename="../../ThemesFactory.cpp" line="436"/> + <location filename="../../ThemesFactory.cpp" line="451"/> + <source>Select a color</source> <translation type="unfinished"></translation> </message> +</context> +<context> + <name>interfaceCopy</name> <message> - <location filename="../../interface.ui" line="216"/> + <location filename="../../interface.ui" line="35"/> + <source>From:</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../../interface.ui" line="65"/> + <source>To:</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../../interface.ui" line="226"/> <source>&More</source> <translation type="unfinished"></translation> </message> <message> - <location filename="../../interface.ui" line="236"/> + <location filename="../../interface.ui" line="246"/> <source>&Pause</source> <translation type="unfinished"></translation> </message> <message> - <location filename="../../interface.ui" line="250"/> + <location filename="../../interface.ui" line="260"/> <source>&Skip</source> <translation type="unfinished"></translation> </message> <message> - <location filename="../../interface.ui" line="261"/> + <location filename="../../interface.ui" line="271"/> <source>&Cancel</source> <translation type="unfinished"></translation> </message> <message> - <location filename="../../interface.ui" line="276"/> - <location filename="../../interface.ui" line="748"/> - <source>Limit copy speed at:</source> + <location filename="../../interface.ui" line="329"/> + <source>Transfer list</source> <translation type="unfinished"></translation> </message> <message> - <location filename="../../interface.ui" line="293"/> - <source>Unlimited</source> + <location filename="../../interface.ui" line="485"/> + <source>Delete the selected items</source> <translation type="unfinished"></translation> </message> <message> - <location filename="../../interface.ui" line="323"/> - <source>Copy list</source> + <location filename="../../interface.ui" line="540"/> + <source>Export the transfer list</source> <translation type="unfinished"></translation> </message> <message> - <location filename="../../interface.ui" line="487"/> - <source>Ctrl+F</source> + <location filename="../../interface.ui" line="566"/> + <source>Import the transfer list</source> <translation type="unfinished"></translation> </message> <message> - <location filename="../../interface.ui" line="591"/> + <location filename="../../interface.ui" line="621"/> <source>Previous</source> <translation type="unfinished"></translation> </message> <message> - <location filename="../../interface.ui" line="598"/> + <location filename="../../interface.ui" line="628"/> <source>Next</source> <translation type="unfinished"></translation> </message> <message> - <location filename="../../interface.ui" line="637"/> - <source>Options</source> + <location filename="../../interface.ui" line="741"/> + <source>Interface</source> <translation type="unfinished"></translation> </message> <message> - <location filename="../../interface.ui" line="646"/> - <source>Copy end</source> + <location filename="../../interface.ui" line="352"/> + <source>Move the selected items to the top</source> <translation type="unfinished"></translation> </message> <message> - <location filename="../../interface.ui" line="667"/> - <source>At the end of the copy: </source> + <location filename="../../interface.ui" line="118"/> + <source>Close on transfer completion</source> <translation type="unfinished"></translation> </message> <message> - <location filename="../../interface.ui" line="706"/> - <source>Don't close if errors are found</source> + <location filename="../../interface.ui" line="286"/> + <source>Limit copy speed to:</source> <translation type="unfinished"></translation> </message> <message> - <location filename="../../interface.ui" line="711"/> - <source>Never close</source> + <location filename="../../interface.ui" line="378"/> + <source>Move up the selected items</source> <translation type="unfinished"></translation> </message> <message> - <location filename="../../interface.ui" line="716"/> - <source>Always close</source> + <location filename="../../interface.ui" line="404"/> + <source>Move down the selected items</source> <translation type="unfinished"></translation> </message> <message> - <location filename="../../interface.ui" line="727"/> - <source>Speed limit</source> + <location filename="../../interface.ui" line="430"/> + <source>Move the selected items to the bottom</source> <translation type="unfinished"></translation> </message> <message> - <location filename="../../interface.ui" line="758"/> - <source> KB/s</source> + <location filename="../../interface.ui" line="456"/> + <source>Add file/folder</source> <translation type="unfinished"></translation> </message> <message> - <location filename="../../interface.ui" line="790"/> - <source>File collisions</source> + <location filename="../../interface.ui" line="511"/> + <source>Search</source> <translation type="unfinished"></translation> </message> <message> - <location filename="../../interface.ui" line="811"/> - <location filename="../../interface.ui" line="871"/> - <source>What to do: </source> + <location filename="../../interface.ui" line="663"/> + <location filename="../../interface.ui" line="732"/> + <source>Error</source> <translation type="unfinished"></translation> </message> <message> - <location filename="../../interface.ui" line="850"/> - <source>Copy errors</source> + <location filename="../../interface.ui" line="683"/> + <source>Export the errors into transfer list</source> <translation type="unfinished"></translation> </message> <message> - <location filename="../../interface.ui" line="928"/> - <source>Interface</source> + <location filename="../../interface.ui" line="722"/> + <source>Source</source> <translation type="unfinished"></translation> </message> <message> - <location filename="../../interface.ui" line="939"/> - <source>Show speed as main informations</source> + <location filename="../../interface.ui" line="727"/> + <source>Destination</source> <translation type="unfinished"></translation> </message> <message> - <location filename="../../interface.ui" line="976"/> + <location filename="../../interface.ui" line="778"/> <source>Add file</source> <translation type="unfinished"></translation> </message> <message> - <location filename="../../interface.ui" line="985"/> + <location filename="../../interface.ui" line="787"/> <source>Add folder</source> <translation type="unfinished"></translation> </message> <message> - <location filename="../../interface.ui" line="994"/> + <location filename="../../interface.ui" line="796"/> <source>Move file(s)</source> <translation type="unfinished"></translation> </message> <message> - <location filename="../../interface.ui" line="1003"/> + <location filename="../../interface.ui" line="805"/> <source>Move folder</source> <translation type="unfinished"></translation> </message> <message> - <location filename="../../interface.ui" line="1012"/> + <location filename="../../interface.ui" line="814"/> <source>Copy file(s)</source> <translation type="unfinished"></translation> </message> <message> - <location filename="../../interface.ui" line="1021"/> + <location filename="../../interface.ui" line="823"/> <source>Copy folder</source> <translation type="unfinished"></translation> </message> </context> <context> - <name>options</name> + <name>themesOptions</name> + <message> + <location filename="../../themesOptions.ui" line="253"/> + <source>Show dual progression</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../../themesOptions.ui" line="205"/> + <source>Show speed as main information</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../../themesOptions.ui" line="44"/> + <source>Use</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../../themesOptions.ui" line="50"/> + <source>Start with the "more button" pushed</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../../themesOptions.ui" line="67"/> + <source>Minimize on close to systray</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../../themesOptions.ui" line="96"/> + <source>At the end of the copy</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../../themesOptions.ui" line="103"/> + <location filename="../../themesOptions.ui" line="137"/> + <source>Limit copy speed to</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../../themesOptions.ui" line="147"/> + <source> KB/s</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../../themesOptions.ui" line="176"/> + <source>Start minimized</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../../themesOptions.ui" line="199"/> + <source>Informations</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../../themesOptions.ui" line="237"/> + <source>Display</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../../themesOptions.ui" line="243"/> + <source>Speed with progress bar</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../../themesOptions.ui" line="273"/> + <source>Progression color</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../../themesOptions.ui" line="292"/> + <source>Click to edit the color</source> + <translation type="unfinished"></translation> + </message> <message> - <location filename="../../options.ui" line="20"/> - <source>Show speed as main informations</source> + <location filename="../../themesOptions.ui" line="263"/> + <source>Show progression in the title</source> <translation type="unfinished"></translation> </message> <message> - <location filename="../../options.ui" line="33"/> - <source>Start with more button pushed</source> + <location filename="../../themesOptions.ui" line="60"/> + <source>Always on top</source> <translation type="unfinished"></translation> </message> </context> diff --git a/plugins/Themes/Oxygen/Languages/ko/translation.ts b/plugins/Themes/Oxygen/Languages/ko/translation.ts index f9ebf4b..2d9b2f8 100644 --- a/plugins/Themes/Oxygen/Languages/ko/translation.ts +++ b/plugins/Themes/Oxygen/Languages/ko/translation.ts @@ -4,15 +4,84 @@ <context> <name>Themes</name> <message> - <location filename="../../interface.cpp" line="+184"/> + <location filename="../../interface.cpp" line="+240"/> + <source>Buy the Ultimate version to fund development</source> + <translation type="unfinished"></translation> + </message> + <message> + <location line="+70"/> <source>File %1/%2, size: %3/%4</source> <translation type="unfinished">파일 %1/%2, 크기: %3/%4</translation> </message> <message> - <location line="+553"/> + <location line="+214"/> + <source>Copy list</source> + <translation type="unfinished">복사 목록</translation> + </message> + <message> + <location line="+2"/> + <source>Move list</source> + <translation type="unfinished"></translation> + </message> + <message> + <location line="+421"/> + <source>Don't close if errors are found</source> + <translation type="unfinished">오류 발견시 종료 안함</translation> + </message> + <message> + <location line="+1"/> + <source>Never close</source> + <translation type="unfinished">절대 종료 안함</translation> + </message> + <message> + <location line="+1"/> + <source>Always close</source> + <translation type="unfinished">항상 종료</translation> + </message> + <message> + <location line="+2"/> <source>File Name, 0KB</source> <translation type="unfinished">파일명, 0KB</translation> </message> + <message> + <location line="+183"/> + <location line="+12"/> + <location line="+12"/> + <source>Select a color</source> + <translation type="unfinished"></translation> + </message> + <message> + <location line="+75"/> + <location line="+4"/> + <location line="+2"/> + <source>%1 %2% of %3</source> + <translation type="unfinished"></translation> + </message> +</context> +<context> + <name>ThemesFactory</name> + <message> + <location filename="../../ThemesFactory.cpp" line="+223"/> + <source>Don't close if errors are found</source> + <translation type="unfinished">오류 발견시 종료 안함</translation> + </message> + <message> + <location line="+1"/> + <source>Never close</source> + <translation type="unfinished">절대 종료 안함</translation> + </message> + <message> + <location line="+1"/> + <source>Always close</source> + <translation type="unfinished">항상 종료</translation> + </message> + <message> + <location line="+196"/> + <location line="+15"/> + <location line="+15"/> + <source>Select a color</source> + <translation type="unfinished"></translation> + </message> </context> <context> <name>interfaceCopy</name> @@ -22,22 +91,12 @@ <translation type="unfinished">원본:</translation> </message> <message> - <location line="+34"/> + <location line="+30"/> <source>To:</source> <translation type="unfinished">대상:</translation> </message> <message> - <location line="+64"/> - <source>Shutdown when is finish</source> - <translation type="unfinished"></translation> - </message> - <message> - <location line="+63"/> - <source>0KB/sec</source> - <translation type="unfinished">0KB/초</translation> - </message> - <message> - <location line="+20"/> + <location line="+161"/> <source>&More</source> <translation type="unfinished">&자세히</translation> </message> @@ -57,28 +116,31 @@ <translation type="unfinished">&취소</translation> </message> <message> - <location line="+15"/> - <location line="+472"/> <source>Limit copy speed at:</source> - <translation type="unfinished">복사 속도 제한:</translation> + <translation type="obsolete">복사 속도 제한:</translation> + </message> + <message> + <location line="+58"/> + <source>Transfer list</source> + <translation type="unfinished"></translation> </message> <message> - <location line="-455"/> - <source>Unlimited</source> - <translation type="unfinished">무제한</translation> + <location line="+156"/> + <source>Delete the selected items</source> + <translation type="unfinished"></translation> </message> <message> - <location line="+30"/> - <source>Copy list</source> - <translation type="unfinished">복사 목록</translation> + <location line="+55"/> + <source>Export the transfer list</source> + <translation type="unfinished"></translation> </message> <message> - <location line="+164"/> - <source>Ctrl+F</source> + <location line="+26"/> + <source>Import the transfer list</source> <translation type="unfinished"></translation> </message> <message> - <location line="+104"/> + <location line="+55"/> <source>Previous</source> <translation type="unfinished">이전</translation> </message> @@ -88,73 +150,73 @@ <translation type="unfinished">다음</translation> </message> <message> - <location line="+39"/> - <source>Options</source> - <translation type="unfinished">옵션</translation> + <location line="+113"/> + <source>Interface</source> + <translation type="unfinished">인터페이스</translation> </message> <message> - <location line="+9"/> - <source>Copy end</source> - <translation type="unfinished">복사 종료</translation> + <location line="-389"/> + <source>Move the selected items to the top</source> + <translation type="unfinished"></translation> </message> <message> - <location line="+21"/> - <source>At the end of the copy: </source> - <translation type="unfinished">복사 종료시:</translation> + <location line="-234"/> + <source>Close on transfer completion</source> + <translation type="unfinished"></translation> </message> <message> - <location line="+39"/> - <source>Don't close if errors are found</source> - <translation type="unfinished">오류 발견시 종료 안함</translation> + <location line="+168"/> + <source>Limit copy speed to:</source> + <translation type="unfinished"></translation> </message> <message> - <location line="+5"/> - <source>Never close</source> - <translation type="unfinished">절대 종료 안함</translation> + <location line="+92"/> + <source>Move up the selected items</source> + <translation type="unfinished"></translation> </message> <message> - <location line="+5"/> - <source>Always close</source> - <translation type="unfinished">항상 종료</translation> + <location line="+26"/> + <source>Move down the selected items</source> + <translation type="unfinished"></translation> </message> <message> - <location line="+11"/> - <source>Speed limit</source> - <translation type="unfinished">속도 제한</translation> + <location line="+26"/> + <source>Move the selected items to the bottom</source> + <translation type="unfinished"></translation> </message> <message> - <location line="+31"/> - <source> KB/s</source> - <translation type="unfinished"> KB/초</translation> + <location line="+26"/> + <source>Add file/folder</source> + <translation type="unfinished"></translation> </message> <message> - <location line="+32"/> - <source>File collisions</source> - <translation type="unfinished">파일 충돌</translation> + <location line="+55"/> + <source>Search</source> + <translation type="unfinished"></translation> </message> <message> - <location line="+21"/> - <location line="+60"/> - <source>What to do: </source> - <translation type="unfinished">실행 작업:</translation> + <location line="+152"/> + <location line="+69"/> + <source>Error</source> + <translation type="unfinished"></translation> </message> <message> - <location line="-21"/> - <source>Copy errors</source> - <translation type="unfinished">오류 복사</translation> + <location line="-49"/> + <source>Export the errors into transfer list</source> + <translation type="unfinished"></translation> </message> <message> - <location line="+78"/> - <source>Interface</source> - <translation type="unfinished">인터페이스</translation> + <location line="+39"/> + <source>Source</source> + <translation type="unfinished"></translation> </message> <message> - <location line="+11"/> - <source>Show speed as main informations</source> - <translation type="unfinished">메인 정보에 속도 표시</translation> + <location line="+5"/> + <source>Destination</source> + <translation type="unfinished"></translation> </message> <message> - <location line="+37"/> + <location line="+51"/> <source>Add file</source> <translation type="unfinished">파일 추가</translation> </message> @@ -185,15 +247,94 @@ </message> </context> <context> - <name>options</name> + <name>themesOptions</name> + <message> + <location filename="../../themesOptions.ui" line="+253"/> + <source>Show dual progression</source> + <translation type="unfinished"></translation> + </message> <message> - <location filename="../../options.ui" line="+20"/> - <source>Show speed as main informations</source> + <location line="-48"/> + <source>Show speed as main information</source> <translation type="unfinished">메인 정보에 속도 표시</translation> </message> <message> - <location line="+13"/> - <source>Start with more button pushed</source> + <location line="-161"/> + <source>Use</source> + <translation type="unfinished"></translation> + </message> + <message> + <location line="+6"/> + <source>Start with the "more button" pushed</source> + <translation type="unfinished"></translation> + </message> + <message> + <location line="+17"/> + <source>Minimize on close to systray</source> + <translation type="unfinished"></translation> + </message> + <message> + <location line="+29"/> + <source>At the end of the copy</source> + <translation type="unfinished"></translation> + </message> + <message> + <location line="+7"/> + <location line="+34"/> + <source>Limit copy speed to</source> + <translation type="unfinished"></translation> + </message> + <message> + <location line="+39"/> + <source>Start minimized</source> + <translation type="unfinished"></translation> + </message> + <message> + <location line="+116"/> + <source>Click to edit the color</source> + <translation type="unfinished"></translation> + </message> + <message> + <source>At the end of the copy: </source> + <translation type="obsolete">복사 종료시:</translation> + </message> + <message> + <source>Limit copy speed at:</source> + <translation type="obsolete">복사 속도 제한:</translation> + </message> + <message> + <location line="-145"/> + <source> KB/s</source> + <translation type="unfinished"> KB/초</translation> + </message> + <message> + <location line="+52"/> + <source>Informations</source> + <translation type="unfinished"></translation> + </message> + <message> + <location line="+38"/> + <source>Display</source> + <translation type="unfinished"></translation> + </message> + <message> + <location line="+6"/> + <source>Speed with progress bar</source> + <translation type="unfinished"></translation> + </message> + <message> + <location line="+30"/> + <source>Progression color</source> + <translation type="unfinished"></translation> + </message> + <message> + <location line="-10"/> + <source>Show progression in the title</source> + <translation type="unfinished"></translation> + </message> + <message> + <location line="-203"/> + <source>Always on top</source> <translation type="unfinished"></translation> </message> </context> diff --git a/plugins/Themes/Oxygen/Languages/nl/translation.ts b/plugins/Themes/Oxygen/Languages/nl/translation.ts index 0708252..ae86b54 100644 --- a/plugins/Themes/Oxygen/Languages/nl/translation.ts +++ b/plugins/Themes/Oxygen/Languages/nl/translation.ts @@ -4,15 +4,84 @@ <context> <name>Themes</name> <message> - <location filename="../../interface.cpp" line="184"/> + <location filename="../../interface.cpp" line="240"/> + <source>Buy the Ultimate version to fund development</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../../interface.cpp" line="310"/> <source>File %1/%2, size: %3/%4</source> <translation type="unfinished"></translation> </message> <message> - <location filename="../../interface.cpp" line="737"/> + <location filename="../../interface.cpp" line="524"/> + <source>Copy list</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../../interface.cpp" line="526"/> + <source>Move list</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../../interface.cpp" line="947"/> + <source>Don't close if errors are found</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../../interface.cpp" line="948"/> + <source>Never close</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../../interface.cpp" line="949"/> + <source>Always close</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../../interface.cpp" line="951"/> <source>File Name, 0KB</source> <translation type="unfinished"></translation> </message> + <message> + <location filename="../../interface.cpp" line="1134"/> + <location filename="../../interface.cpp" line="1146"/> + <location filename="../../interface.cpp" line="1158"/> + <source>Select a color</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../../interface.cpp" line="1233"/> + <location filename="../../interface.cpp" line="1237"/> + <location filename="../../interface.cpp" line="1239"/> + <source>%1 %2% of %3</source> + <translation type="unfinished"></translation> + </message> +</context> +<context> + <name>ThemesFactory</name> + <message> + <location filename="../../ThemesFactory.cpp" line="223"/> + <source>Don't close if errors are found</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../../ThemesFactory.cpp" line="224"/> + <source>Never close</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../../ThemesFactory.cpp" line="225"/> + <source>Always close</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../../ThemesFactory.cpp" line="421"/> + <location filename="../../ThemesFactory.cpp" line="436"/> + <location filename="../../ThemesFactory.cpp" line="451"/> + <source>Select a color</source> + <translation type="unfinished"></translation> + </message> </context> <context> <name>interfaceCopy</name> @@ -22,178 +91,238 @@ <translation type="unfinished"></translation> </message> <message> - <location filename="../../interface.ui" line="69"/> + <location filename="../../interface.ui" line="65"/> <source>To:</source> <translation type="unfinished"></translation> </message> <message> - <location filename="../../interface.ui" line="196"/> - <source>0KB/sec</source> - <translation type="unfinished"></translation> - </message> - <message> - <location filename="../../interface.ui" line="216"/> + <location filename="../../interface.ui" line="226"/> <source>&More</source> <translation type="unfinished"></translation> </message> <message> - <location filename="../../interface.ui" line="236"/> + <location filename="../../interface.ui" line="246"/> <source>&Pause</source> <translation type="unfinished"></translation> </message> <message> - <location filename="../../interface.ui" line="250"/> + <location filename="../../interface.ui" line="260"/> <source>&Skip</source> <translation type="unfinished"></translation> </message> <message> - <location filename="../../interface.ui" line="261"/> + <location filename="../../interface.ui" line="271"/> <source>&Cancel</source> <translation type="unfinished"></translation> </message> <message> - <location filename="../../interface.ui" line="276"/> - <location filename="../../interface.ui" line="748"/> - <source>Limit copy speed at:</source> + <location filename="../../interface.ui" line="118"/> + <source>Close on transfer completion</source> <translation type="unfinished"></translation> </message> <message> - <location filename="../../interface.ui" line="293"/> - <source>Unlimited</source> + <location filename="../../interface.ui" line="286"/> + <source>Limit copy speed to:</source> <translation type="unfinished"></translation> </message> <message> - <location filename="../../interface.ui" line="323"/> - <source>Copy list</source> + <location filename="../../interface.ui" line="329"/> + <source>Transfer list</source> <translation type="unfinished"></translation> </message> <message> - <location filename="../../interface.ui" line="591"/> - <source>Previous</source> + <location filename="../../interface.ui" line="352"/> + <source>Move the selected items to the top</source> <translation type="unfinished"></translation> </message> <message> - <location filename="../../interface.ui" line="598"/> - <source>Next</source> + <location filename="../../interface.ui" line="378"/> + <source>Move up the selected items</source> <translation type="unfinished"></translation> </message> <message> - <location filename="../../interface.ui" line="637"/> - <source>Options</source> + <location filename="../../interface.ui" line="404"/> + <source>Move down the selected items</source> <translation type="unfinished"></translation> </message> <message> - <location filename="../../interface.ui" line="646"/> - <source>Copy end</source> + <location filename="../../interface.ui" line="430"/> + <source>Move the selected items to the bottom</source> <translation type="unfinished"></translation> </message> <message> - <location filename="../../interface.ui" line="667"/> - <source>At the end of the copy: </source> + <location filename="../../interface.ui" line="456"/> + <source>Add file/folder</source> <translation type="unfinished"></translation> </message> <message> - <location filename="../../interface.ui" line="706"/> - <source>Don't close if errors are found</source> + <location filename="../../interface.ui" line="485"/> + <source>Delete the selected items</source> <translation type="unfinished"></translation> </message> <message> - <location filename="../../interface.ui" line="711"/> - <source>Never close</source> + <location filename="../../interface.ui" line="511"/> + <source>Search</source> <translation type="unfinished"></translation> </message> <message> - <location filename="../../interface.ui" line="716"/> - <source>Always close</source> + <location filename="../../interface.ui" line="540"/> + <source>Export the transfer list</source> <translation type="unfinished"></translation> </message> <message> - <location filename="../../interface.ui" line="727"/> - <source>Speed limit</source> + <location filename="../../interface.ui" line="566"/> + <source>Import the transfer list</source> <translation type="unfinished"></translation> </message> <message> - <location filename="../../interface.ui" line="758"/> - <source> KB/s</source> + <location filename="../../interface.ui" line="621"/> + <source>Previous</source> <translation type="unfinished"></translation> </message> <message> - <location filename="../../interface.ui" line="790"/> - <source>File collisions</source> + <location filename="../../interface.ui" line="628"/> + <source>Next</source> <translation type="unfinished"></translation> </message> <message> - <location filename="../../interface.ui" line="811"/> - <location filename="../../interface.ui" line="871"/> - <source>What to do: </source> + <location filename="../../interface.ui" line="663"/> + <location filename="../../interface.ui" line="732"/> + <source>Error</source> <translation type="unfinished"></translation> </message> <message> - <location filename="../../interface.ui" line="850"/> - <source>Copy errors</source> + <location filename="../../interface.ui" line="683"/> + <source>Export the errors into transfer list</source> <translation type="unfinished"></translation> </message> <message> - <location filename="../../interface.ui" line="928"/> - <source>Interface</source> + <location filename="../../interface.ui" line="722"/> + <source>Source</source> <translation type="unfinished"></translation> </message> <message> - <location filename="../../interface.ui" line="939"/> - <source>Show speed as main informations</source> + <location filename="../../interface.ui" line="727"/> + <source>Destination</source> <translation type="unfinished"></translation> </message> <message> - <location filename="../../interface.ui" line="976"/> + <location filename="../../interface.ui" line="741"/> + <source>Interface</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../../interface.ui" line="778"/> <source>Add file</source> <translation type="unfinished"></translation> </message> <message> - <location filename="../../interface.ui" line="985"/> + <location filename="../../interface.ui" line="787"/> <source>Add folder</source> <translation type="unfinished"></translation> </message> <message> - <location filename="../../interface.ui" line="994"/> + <location filename="../../interface.ui" line="796"/> <source>Move file(s)</source> <translation type="unfinished"></translation> </message> <message> - <location filename="../../interface.ui" line="1003"/> + <location filename="../../interface.ui" line="805"/> <source>Move folder</source> <translation type="unfinished"></translation> </message> <message> - <location filename="../../interface.ui" line="1012"/> + <location filename="../../interface.ui" line="814"/> <source>Copy file(s)</source> <translation type="unfinished"></translation> </message> <message> - <location filename="../../interface.ui" line="1021"/> + <location filename="../../interface.ui" line="823"/> <source>Copy folder</source> <translation type="unfinished"></translation> </message> +</context> +<context> + <name>themesOptions</name> + <message> + <location filename="../../themesOptions.ui" line="253"/> + <source>Show dual progression</source> + <translation type="unfinished"></translation> + </message> <message> - <location filename="../../interface.ui" line="487"/> - <source>Ctrl+F</source> + <location filename="../../themesOptions.ui" line="205"/> + <source>Show speed as main information</source> <translation type="unfinished"></translation> </message> <message> - <location filename="../../interface.ui" line="133"/> - <source>Shutdown when is finish</source> + <location filename="../../themesOptions.ui" line="44"/> + <source>Use</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../../themesOptions.ui" line="50"/> + <source>Start with the "more button" pushed</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../../themesOptions.ui" line="67"/> + <source>Minimize on close to systray</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../../themesOptions.ui" line="96"/> + <source>At the end of the copy</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../../themesOptions.ui" line="103"/> + <location filename="../../themesOptions.ui" line="137"/> + <source>Limit copy speed to</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../../themesOptions.ui" line="147"/> + <source> KB/s</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../../themesOptions.ui" line="176"/> + <source>Start minimized</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../../themesOptions.ui" line="199"/> + <source>Informations</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../../themesOptions.ui" line="237"/> + <source>Display</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../../themesOptions.ui" line="243"/> + <source>Speed with progress bar</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../../themesOptions.ui" line="273"/> + <source>Progression color</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../../themesOptions.ui" line="292"/> + <source>Click to edit the color</source> <translation type="unfinished"></translation> </message> -</context> -<context> - <name>options</name> <message> - <location filename="../../options.ui" line="20"/> - <source>Show speed as main informations</source> + <location filename="../../themesOptions.ui" line="263"/> + <source>Show progression in the title</source> <translation type="unfinished"></translation> </message> <message> - <location filename="../../options.ui" line="33"/> - <source>Start with more button pushed</source> + <location filename="../../themesOptions.ui" line="60"/> + <source>Always on top</source> <translation type="unfinished"></translation> </message> </context> diff --git a/plugins/Themes/Oxygen/Languages/no/translation.ts b/plugins/Themes/Oxygen/Languages/no/translation.ts index 0708252..ae86b54 100644 --- a/plugins/Themes/Oxygen/Languages/no/translation.ts +++ b/plugins/Themes/Oxygen/Languages/no/translation.ts @@ -4,15 +4,84 @@ <context> <name>Themes</name> <message> - <location filename="../../interface.cpp" line="184"/> + <location filename="../../interface.cpp" line="240"/> + <source>Buy the Ultimate version to fund development</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../../interface.cpp" line="310"/> <source>File %1/%2, size: %3/%4</source> <translation type="unfinished"></translation> </message> <message> - <location filename="../../interface.cpp" line="737"/> + <location filename="../../interface.cpp" line="524"/> + <source>Copy list</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../../interface.cpp" line="526"/> + <source>Move list</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../../interface.cpp" line="947"/> + <source>Don't close if errors are found</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../../interface.cpp" line="948"/> + <source>Never close</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../../interface.cpp" line="949"/> + <source>Always close</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../../interface.cpp" line="951"/> <source>File Name, 0KB</source> <translation type="unfinished"></translation> </message> + <message> + <location filename="../../interface.cpp" line="1134"/> + <location filename="../../interface.cpp" line="1146"/> + <location filename="../../interface.cpp" line="1158"/> + <source>Select a color</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../../interface.cpp" line="1233"/> + <location filename="../../interface.cpp" line="1237"/> + <location filename="../../interface.cpp" line="1239"/> + <source>%1 %2% of %3</source> + <translation type="unfinished"></translation> + </message> +</context> +<context> + <name>ThemesFactory</name> + <message> + <location filename="../../ThemesFactory.cpp" line="223"/> + <source>Don't close if errors are found</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../../ThemesFactory.cpp" line="224"/> + <source>Never close</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../../ThemesFactory.cpp" line="225"/> + <source>Always close</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../../ThemesFactory.cpp" line="421"/> + <location filename="../../ThemesFactory.cpp" line="436"/> + <location filename="../../ThemesFactory.cpp" line="451"/> + <source>Select a color</source> + <translation type="unfinished"></translation> + </message> </context> <context> <name>interfaceCopy</name> @@ -22,178 +91,238 @@ <translation type="unfinished"></translation> </message> <message> - <location filename="../../interface.ui" line="69"/> + <location filename="../../interface.ui" line="65"/> <source>To:</source> <translation type="unfinished"></translation> </message> <message> - <location filename="../../interface.ui" line="196"/> - <source>0KB/sec</source> - <translation type="unfinished"></translation> - </message> - <message> - <location filename="../../interface.ui" line="216"/> + <location filename="../../interface.ui" line="226"/> <source>&More</source> <translation type="unfinished"></translation> </message> <message> - <location filename="../../interface.ui" line="236"/> + <location filename="../../interface.ui" line="246"/> <source>&Pause</source> <translation type="unfinished"></translation> </message> <message> - <location filename="../../interface.ui" line="250"/> + <location filename="../../interface.ui" line="260"/> <source>&Skip</source> <translation type="unfinished"></translation> </message> <message> - <location filename="../../interface.ui" line="261"/> + <location filename="../../interface.ui" line="271"/> <source>&Cancel</source> <translation type="unfinished"></translation> </message> <message> - <location filename="../../interface.ui" line="276"/> - <location filename="../../interface.ui" line="748"/> - <source>Limit copy speed at:</source> + <location filename="../../interface.ui" line="118"/> + <source>Close on transfer completion</source> <translation type="unfinished"></translation> </message> <message> - <location filename="../../interface.ui" line="293"/> - <source>Unlimited</source> + <location filename="../../interface.ui" line="286"/> + <source>Limit copy speed to:</source> <translation type="unfinished"></translation> </message> <message> - <location filename="../../interface.ui" line="323"/> - <source>Copy list</source> + <location filename="../../interface.ui" line="329"/> + <source>Transfer list</source> <translation type="unfinished"></translation> </message> <message> - <location filename="../../interface.ui" line="591"/> - <source>Previous</source> + <location filename="../../interface.ui" line="352"/> + <source>Move the selected items to the top</source> <translation type="unfinished"></translation> </message> <message> - <location filename="../../interface.ui" line="598"/> - <source>Next</source> + <location filename="../../interface.ui" line="378"/> + <source>Move up the selected items</source> <translation type="unfinished"></translation> </message> <message> - <location filename="../../interface.ui" line="637"/> - <source>Options</source> + <location filename="../../interface.ui" line="404"/> + <source>Move down the selected items</source> <translation type="unfinished"></translation> </message> <message> - <location filename="../../interface.ui" line="646"/> - <source>Copy end</source> + <location filename="../../interface.ui" line="430"/> + <source>Move the selected items to the bottom</source> <translation type="unfinished"></translation> </message> <message> - <location filename="../../interface.ui" line="667"/> - <source>At the end of the copy: </source> + <location filename="../../interface.ui" line="456"/> + <source>Add file/folder</source> <translation type="unfinished"></translation> </message> <message> - <location filename="../../interface.ui" line="706"/> - <source>Don't close if errors are found</source> + <location filename="../../interface.ui" line="485"/> + <source>Delete the selected items</source> <translation type="unfinished"></translation> </message> <message> - <location filename="../../interface.ui" line="711"/> - <source>Never close</source> + <location filename="../../interface.ui" line="511"/> + <source>Search</source> <translation type="unfinished"></translation> </message> <message> - <location filename="../../interface.ui" line="716"/> - <source>Always close</source> + <location filename="../../interface.ui" line="540"/> + <source>Export the transfer list</source> <translation type="unfinished"></translation> </message> <message> - <location filename="../../interface.ui" line="727"/> - <source>Speed limit</source> + <location filename="../../interface.ui" line="566"/> + <source>Import the transfer list</source> <translation type="unfinished"></translation> </message> <message> - <location filename="../../interface.ui" line="758"/> - <source> KB/s</source> + <location filename="../../interface.ui" line="621"/> + <source>Previous</source> <translation type="unfinished"></translation> </message> <message> - <location filename="../../interface.ui" line="790"/> - <source>File collisions</source> + <location filename="../../interface.ui" line="628"/> + <source>Next</source> <translation type="unfinished"></translation> </message> <message> - <location filename="../../interface.ui" line="811"/> - <location filename="../../interface.ui" line="871"/> - <source>What to do: </source> + <location filename="../../interface.ui" line="663"/> + <location filename="../../interface.ui" line="732"/> + <source>Error</source> <translation type="unfinished"></translation> </message> <message> - <location filename="../../interface.ui" line="850"/> - <source>Copy errors</source> + <location filename="../../interface.ui" line="683"/> + <source>Export the errors into transfer list</source> <translation type="unfinished"></translation> </message> <message> - <location filename="../../interface.ui" line="928"/> - <source>Interface</source> + <location filename="../../interface.ui" line="722"/> + <source>Source</source> <translation type="unfinished"></translation> </message> <message> - <location filename="../../interface.ui" line="939"/> - <source>Show speed as main informations</source> + <location filename="../../interface.ui" line="727"/> + <source>Destination</source> <translation type="unfinished"></translation> </message> <message> - <location filename="../../interface.ui" line="976"/> + <location filename="../../interface.ui" line="741"/> + <source>Interface</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../../interface.ui" line="778"/> <source>Add file</source> <translation type="unfinished"></translation> </message> <message> - <location filename="../../interface.ui" line="985"/> + <location filename="../../interface.ui" line="787"/> <source>Add folder</source> <translation type="unfinished"></translation> </message> <message> - <location filename="../../interface.ui" line="994"/> + <location filename="../../interface.ui" line="796"/> <source>Move file(s)</source> <translation type="unfinished"></translation> </message> <message> - <location filename="../../interface.ui" line="1003"/> + <location filename="../../interface.ui" line="805"/> <source>Move folder</source> <translation type="unfinished"></translation> </message> <message> - <location filename="../../interface.ui" line="1012"/> + <location filename="../../interface.ui" line="814"/> <source>Copy file(s)</source> <translation type="unfinished"></translation> </message> <message> - <location filename="../../interface.ui" line="1021"/> + <location filename="../../interface.ui" line="823"/> <source>Copy folder</source> <translation type="unfinished"></translation> </message> +</context> +<context> + <name>themesOptions</name> + <message> + <location filename="../../themesOptions.ui" line="253"/> + <source>Show dual progression</source> + <translation type="unfinished"></translation> + </message> <message> - <location filename="../../interface.ui" line="487"/> - <source>Ctrl+F</source> + <location filename="../../themesOptions.ui" line="205"/> + <source>Show speed as main information</source> <translation type="unfinished"></translation> </message> <message> - <location filename="../../interface.ui" line="133"/> - <source>Shutdown when is finish</source> + <location filename="../../themesOptions.ui" line="44"/> + <source>Use</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../../themesOptions.ui" line="50"/> + <source>Start with the "more button" pushed</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../../themesOptions.ui" line="67"/> + <source>Minimize on close to systray</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../../themesOptions.ui" line="96"/> + <source>At the end of the copy</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../../themesOptions.ui" line="103"/> + <location filename="../../themesOptions.ui" line="137"/> + <source>Limit copy speed to</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../../themesOptions.ui" line="147"/> + <source> KB/s</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../../themesOptions.ui" line="176"/> + <source>Start minimized</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../../themesOptions.ui" line="199"/> + <source>Informations</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../../themesOptions.ui" line="237"/> + <source>Display</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../../themesOptions.ui" line="243"/> + <source>Speed with progress bar</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../../themesOptions.ui" line="273"/> + <source>Progression color</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../../themesOptions.ui" line="292"/> + <source>Click to edit the color</source> <translation type="unfinished"></translation> </message> -</context> -<context> - <name>options</name> <message> - <location filename="../../options.ui" line="20"/> - <source>Show speed as main informations</source> + <location filename="../../themesOptions.ui" line="263"/> + <source>Show progression in the title</source> <translation type="unfinished"></translation> </message> <message> - <location filename="../../options.ui" line="33"/> - <source>Start with more button pushed</source> + <location filename="../../themesOptions.ui" line="60"/> + <source>Always on top</source> <translation type="unfinished"></translation> </message> </context> diff --git a/plugins/Themes/Oxygen/Languages/pl/translation.ts b/plugins/Themes/Oxygen/Languages/pl/translation.ts index 0708252..ae86b54 100644 --- a/plugins/Themes/Oxygen/Languages/pl/translation.ts +++ b/plugins/Themes/Oxygen/Languages/pl/translation.ts @@ -4,15 +4,84 @@ <context> <name>Themes</name> <message> - <location filename="../../interface.cpp" line="184"/> + <location filename="../../interface.cpp" line="240"/> + <source>Buy the Ultimate version to fund development</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../../interface.cpp" line="310"/> <source>File %1/%2, size: %3/%4</source> <translation type="unfinished"></translation> </message> <message> - <location filename="../../interface.cpp" line="737"/> + <location filename="../../interface.cpp" line="524"/> + <source>Copy list</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../../interface.cpp" line="526"/> + <source>Move list</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../../interface.cpp" line="947"/> + <source>Don't close if errors are found</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../../interface.cpp" line="948"/> + <source>Never close</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../../interface.cpp" line="949"/> + <source>Always close</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../../interface.cpp" line="951"/> <source>File Name, 0KB</source> <translation type="unfinished"></translation> </message> + <message> + <location filename="../../interface.cpp" line="1134"/> + <location filename="../../interface.cpp" line="1146"/> + <location filename="../../interface.cpp" line="1158"/> + <source>Select a color</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../../interface.cpp" line="1233"/> + <location filename="../../interface.cpp" line="1237"/> + <location filename="../../interface.cpp" line="1239"/> + <source>%1 %2% of %3</source> + <translation type="unfinished"></translation> + </message> +</context> +<context> + <name>ThemesFactory</name> + <message> + <location filename="../../ThemesFactory.cpp" line="223"/> + <source>Don't close if errors are found</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../../ThemesFactory.cpp" line="224"/> + <source>Never close</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../../ThemesFactory.cpp" line="225"/> + <source>Always close</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../../ThemesFactory.cpp" line="421"/> + <location filename="../../ThemesFactory.cpp" line="436"/> + <location filename="../../ThemesFactory.cpp" line="451"/> + <source>Select a color</source> + <translation type="unfinished"></translation> + </message> </context> <context> <name>interfaceCopy</name> @@ -22,178 +91,238 @@ <translation type="unfinished"></translation> </message> <message> - <location filename="../../interface.ui" line="69"/> + <location filename="../../interface.ui" line="65"/> <source>To:</source> <translation type="unfinished"></translation> </message> <message> - <location filename="../../interface.ui" line="196"/> - <source>0KB/sec</source> - <translation type="unfinished"></translation> - </message> - <message> - <location filename="../../interface.ui" line="216"/> + <location filename="../../interface.ui" line="226"/> <source>&More</source> <translation type="unfinished"></translation> </message> <message> - <location filename="../../interface.ui" line="236"/> + <location filename="../../interface.ui" line="246"/> <source>&Pause</source> <translation type="unfinished"></translation> </message> <message> - <location filename="../../interface.ui" line="250"/> + <location filename="../../interface.ui" line="260"/> <source>&Skip</source> <translation type="unfinished"></translation> </message> <message> - <location filename="../../interface.ui" line="261"/> + <location filename="../../interface.ui" line="271"/> <source>&Cancel</source> <translation type="unfinished"></translation> </message> <message> - <location filename="../../interface.ui" line="276"/> - <location filename="../../interface.ui" line="748"/> - <source>Limit copy speed at:</source> + <location filename="../../interface.ui" line="118"/> + <source>Close on transfer completion</source> <translation type="unfinished"></translation> </message> <message> - <location filename="../../interface.ui" line="293"/> - <source>Unlimited</source> + <location filename="../../interface.ui" line="286"/> + <source>Limit copy speed to:</source> <translation type="unfinished"></translation> </message> <message> - <location filename="../../interface.ui" line="323"/> - <source>Copy list</source> + <location filename="../../interface.ui" line="329"/> + <source>Transfer list</source> <translation type="unfinished"></translation> </message> <message> - <location filename="../../interface.ui" line="591"/> - <source>Previous</source> + <location filename="../../interface.ui" line="352"/> + <source>Move the selected items to the top</source> <translation type="unfinished"></translation> </message> <message> - <location filename="../../interface.ui" line="598"/> - <source>Next</source> + <location filename="../../interface.ui" line="378"/> + <source>Move up the selected items</source> <translation type="unfinished"></translation> </message> <message> - <location filename="../../interface.ui" line="637"/> - <source>Options</source> + <location filename="../../interface.ui" line="404"/> + <source>Move down the selected items</source> <translation type="unfinished"></translation> </message> <message> - <location filename="../../interface.ui" line="646"/> - <source>Copy end</source> + <location filename="../../interface.ui" line="430"/> + <source>Move the selected items to the bottom</source> <translation type="unfinished"></translation> </message> <message> - <location filename="../../interface.ui" line="667"/> - <source>At the end of the copy: </source> + <location filename="../../interface.ui" line="456"/> + <source>Add file/folder</source> <translation type="unfinished"></translation> </message> <message> - <location filename="../../interface.ui" line="706"/> - <source>Don't close if errors are found</source> + <location filename="../../interface.ui" line="485"/> + <source>Delete the selected items</source> <translation type="unfinished"></translation> </message> <message> - <location filename="../../interface.ui" line="711"/> - <source>Never close</source> + <location filename="../../interface.ui" line="511"/> + <source>Search</source> <translation type="unfinished"></translation> </message> <message> - <location filename="../../interface.ui" line="716"/> - <source>Always close</source> + <location filename="../../interface.ui" line="540"/> + <source>Export the transfer list</source> <translation type="unfinished"></translation> </message> <message> - <location filename="../../interface.ui" line="727"/> - <source>Speed limit</source> + <location filename="../../interface.ui" line="566"/> + <source>Import the transfer list</source> <translation type="unfinished"></translation> </message> <message> - <location filename="../../interface.ui" line="758"/> - <source> KB/s</source> + <location filename="../../interface.ui" line="621"/> + <source>Previous</source> <translation type="unfinished"></translation> </message> <message> - <location filename="../../interface.ui" line="790"/> - <source>File collisions</source> + <location filename="../../interface.ui" line="628"/> + <source>Next</source> <translation type="unfinished"></translation> </message> <message> - <location filename="../../interface.ui" line="811"/> - <location filename="../../interface.ui" line="871"/> - <source>What to do: </source> + <location filename="../../interface.ui" line="663"/> + <location filename="../../interface.ui" line="732"/> + <source>Error</source> <translation type="unfinished"></translation> </message> <message> - <location filename="../../interface.ui" line="850"/> - <source>Copy errors</source> + <location filename="../../interface.ui" line="683"/> + <source>Export the errors into transfer list</source> <translation type="unfinished"></translation> </message> <message> - <location filename="../../interface.ui" line="928"/> - <source>Interface</source> + <location filename="../../interface.ui" line="722"/> + <source>Source</source> <translation type="unfinished"></translation> </message> <message> - <location filename="../../interface.ui" line="939"/> - <source>Show speed as main informations</source> + <location filename="../../interface.ui" line="727"/> + <source>Destination</source> <translation type="unfinished"></translation> </message> <message> - <location filename="../../interface.ui" line="976"/> + <location filename="../../interface.ui" line="741"/> + <source>Interface</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../../interface.ui" line="778"/> <source>Add file</source> <translation type="unfinished"></translation> </message> <message> - <location filename="../../interface.ui" line="985"/> + <location filename="../../interface.ui" line="787"/> <source>Add folder</source> <translation type="unfinished"></translation> </message> <message> - <location filename="../../interface.ui" line="994"/> + <location filename="../../interface.ui" line="796"/> <source>Move file(s)</source> <translation type="unfinished"></translation> </message> <message> - <location filename="../../interface.ui" line="1003"/> + <location filename="../../interface.ui" line="805"/> <source>Move folder</source> <translation type="unfinished"></translation> </message> <message> - <location filename="../../interface.ui" line="1012"/> + <location filename="../../interface.ui" line="814"/> <source>Copy file(s)</source> <translation type="unfinished"></translation> </message> <message> - <location filename="../../interface.ui" line="1021"/> + <location filename="../../interface.ui" line="823"/> <source>Copy folder</source> <translation type="unfinished"></translation> </message> +</context> +<context> + <name>themesOptions</name> + <message> + <location filename="../../themesOptions.ui" line="253"/> + <source>Show dual progression</source> + <translation type="unfinished"></translation> + </message> <message> - <location filename="../../interface.ui" line="487"/> - <source>Ctrl+F</source> + <location filename="../../themesOptions.ui" line="205"/> + <source>Show speed as main information</source> <translation type="unfinished"></translation> </message> <message> - <location filename="../../interface.ui" line="133"/> - <source>Shutdown when is finish</source> + <location filename="../../themesOptions.ui" line="44"/> + <source>Use</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../../themesOptions.ui" line="50"/> + <source>Start with the "more button" pushed</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../../themesOptions.ui" line="67"/> + <source>Minimize on close to systray</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../../themesOptions.ui" line="96"/> + <source>At the end of the copy</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../../themesOptions.ui" line="103"/> + <location filename="../../themesOptions.ui" line="137"/> + <source>Limit copy speed to</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../../themesOptions.ui" line="147"/> + <source> KB/s</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../../themesOptions.ui" line="176"/> + <source>Start minimized</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../../themesOptions.ui" line="199"/> + <source>Informations</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../../themesOptions.ui" line="237"/> + <source>Display</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../../themesOptions.ui" line="243"/> + <source>Speed with progress bar</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../../themesOptions.ui" line="273"/> + <source>Progression color</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../../themesOptions.ui" line="292"/> + <source>Click to edit the color</source> <translation type="unfinished"></translation> </message> -</context> -<context> - <name>options</name> <message> - <location filename="../../options.ui" line="20"/> - <source>Show speed as main informations</source> + <location filename="../../themesOptions.ui" line="263"/> + <source>Show progression in the title</source> <translation type="unfinished"></translation> </message> <message> - <location filename="../../options.ui" line="33"/> - <source>Start with more button pushed</source> + <location filename="../../themesOptions.ui" line="60"/> + <source>Always on top</source> <translation type="unfinished"></translation> </message> </context> diff --git a/plugins/Themes/Oxygen/Languages/pt/translation.ts b/plugins/Themes/Oxygen/Languages/pt/translation.ts index 0708252..ae86b54 100644 --- a/plugins/Themes/Oxygen/Languages/pt/translation.ts +++ b/plugins/Themes/Oxygen/Languages/pt/translation.ts @@ -4,15 +4,84 @@ <context> <name>Themes</name> <message> - <location filename="../../interface.cpp" line="184"/> + <location filename="../../interface.cpp" line="240"/> + <source>Buy the Ultimate version to fund development</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../../interface.cpp" line="310"/> <source>File %1/%2, size: %3/%4</source> <translation type="unfinished"></translation> </message> <message> - <location filename="../../interface.cpp" line="737"/> + <location filename="../../interface.cpp" line="524"/> + <source>Copy list</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../../interface.cpp" line="526"/> + <source>Move list</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../../interface.cpp" line="947"/> + <source>Don't close if errors are found</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../../interface.cpp" line="948"/> + <source>Never close</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../../interface.cpp" line="949"/> + <source>Always close</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../../interface.cpp" line="951"/> <source>File Name, 0KB</source> <translation type="unfinished"></translation> </message> + <message> + <location filename="../../interface.cpp" line="1134"/> + <location filename="../../interface.cpp" line="1146"/> + <location filename="../../interface.cpp" line="1158"/> + <source>Select a color</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../../interface.cpp" line="1233"/> + <location filename="../../interface.cpp" line="1237"/> + <location filename="../../interface.cpp" line="1239"/> + <source>%1 %2% of %3</source> + <translation type="unfinished"></translation> + </message> +</context> +<context> + <name>ThemesFactory</name> + <message> + <location filename="../../ThemesFactory.cpp" line="223"/> + <source>Don't close if errors are found</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../../ThemesFactory.cpp" line="224"/> + <source>Never close</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../../ThemesFactory.cpp" line="225"/> + <source>Always close</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../../ThemesFactory.cpp" line="421"/> + <location filename="../../ThemesFactory.cpp" line="436"/> + <location filename="../../ThemesFactory.cpp" line="451"/> + <source>Select a color</source> + <translation type="unfinished"></translation> + </message> </context> <context> <name>interfaceCopy</name> @@ -22,178 +91,238 @@ <translation type="unfinished"></translation> </message> <message> - <location filename="../../interface.ui" line="69"/> + <location filename="../../interface.ui" line="65"/> <source>To:</source> <translation type="unfinished"></translation> </message> <message> - <location filename="../../interface.ui" line="196"/> - <source>0KB/sec</source> - <translation type="unfinished"></translation> - </message> - <message> - <location filename="../../interface.ui" line="216"/> + <location filename="../../interface.ui" line="226"/> <source>&More</source> <translation type="unfinished"></translation> </message> <message> - <location filename="../../interface.ui" line="236"/> + <location filename="../../interface.ui" line="246"/> <source>&Pause</source> <translation type="unfinished"></translation> </message> <message> - <location filename="../../interface.ui" line="250"/> + <location filename="../../interface.ui" line="260"/> <source>&Skip</source> <translation type="unfinished"></translation> </message> <message> - <location filename="../../interface.ui" line="261"/> + <location filename="../../interface.ui" line="271"/> <source>&Cancel</source> <translation type="unfinished"></translation> </message> <message> - <location filename="../../interface.ui" line="276"/> - <location filename="../../interface.ui" line="748"/> - <source>Limit copy speed at:</source> + <location filename="../../interface.ui" line="118"/> + <source>Close on transfer completion</source> <translation type="unfinished"></translation> </message> <message> - <location filename="../../interface.ui" line="293"/> - <source>Unlimited</source> + <location filename="../../interface.ui" line="286"/> + <source>Limit copy speed to:</source> <translation type="unfinished"></translation> </message> <message> - <location filename="../../interface.ui" line="323"/> - <source>Copy list</source> + <location filename="../../interface.ui" line="329"/> + <source>Transfer list</source> <translation type="unfinished"></translation> </message> <message> - <location filename="../../interface.ui" line="591"/> - <source>Previous</source> + <location filename="../../interface.ui" line="352"/> + <source>Move the selected items to the top</source> <translation type="unfinished"></translation> </message> <message> - <location filename="../../interface.ui" line="598"/> - <source>Next</source> + <location filename="../../interface.ui" line="378"/> + <source>Move up the selected items</source> <translation type="unfinished"></translation> </message> <message> - <location filename="../../interface.ui" line="637"/> - <source>Options</source> + <location filename="../../interface.ui" line="404"/> + <source>Move down the selected items</source> <translation type="unfinished"></translation> </message> <message> - <location filename="../../interface.ui" line="646"/> - <source>Copy end</source> + <location filename="../../interface.ui" line="430"/> + <source>Move the selected items to the bottom</source> <translation type="unfinished"></translation> </message> <message> - <location filename="../../interface.ui" line="667"/> - <source>At the end of the copy: </source> + <location filename="../../interface.ui" line="456"/> + <source>Add file/folder</source> <translation type="unfinished"></translation> </message> <message> - <location filename="../../interface.ui" line="706"/> - <source>Don't close if errors are found</source> + <location filename="../../interface.ui" line="485"/> + <source>Delete the selected items</source> <translation type="unfinished"></translation> </message> <message> - <location filename="../../interface.ui" line="711"/> - <source>Never close</source> + <location filename="../../interface.ui" line="511"/> + <source>Search</source> <translation type="unfinished"></translation> </message> <message> - <location filename="../../interface.ui" line="716"/> - <source>Always close</source> + <location filename="../../interface.ui" line="540"/> + <source>Export the transfer list</source> <translation type="unfinished"></translation> </message> <message> - <location filename="../../interface.ui" line="727"/> - <source>Speed limit</source> + <location filename="../../interface.ui" line="566"/> + <source>Import the transfer list</source> <translation type="unfinished"></translation> </message> <message> - <location filename="../../interface.ui" line="758"/> - <source> KB/s</source> + <location filename="../../interface.ui" line="621"/> + <source>Previous</source> <translation type="unfinished"></translation> </message> <message> - <location filename="../../interface.ui" line="790"/> - <source>File collisions</source> + <location filename="../../interface.ui" line="628"/> + <source>Next</source> <translation type="unfinished"></translation> </message> <message> - <location filename="../../interface.ui" line="811"/> - <location filename="../../interface.ui" line="871"/> - <source>What to do: </source> + <location filename="../../interface.ui" line="663"/> + <location filename="../../interface.ui" line="732"/> + <source>Error</source> <translation type="unfinished"></translation> </message> <message> - <location filename="../../interface.ui" line="850"/> - <source>Copy errors</source> + <location filename="../../interface.ui" line="683"/> + <source>Export the errors into transfer list</source> <translation type="unfinished"></translation> </message> <message> - <location filename="../../interface.ui" line="928"/> - <source>Interface</source> + <location filename="../../interface.ui" line="722"/> + <source>Source</source> <translation type="unfinished"></translation> </message> <message> - <location filename="../../interface.ui" line="939"/> - <source>Show speed as main informations</source> + <location filename="../../interface.ui" line="727"/> + <source>Destination</source> <translation type="unfinished"></translation> </message> <message> - <location filename="../../interface.ui" line="976"/> + <location filename="../../interface.ui" line="741"/> + <source>Interface</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../../interface.ui" line="778"/> <source>Add file</source> <translation type="unfinished"></translation> </message> <message> - <location filename="../../interface.ui" line="985"/> + <location filename="../../interface.ui" line="787"/> <source>Add folder</source> <translation type="unfinished"></translation> </message> <message> - <location filename="../../interface.ui" line="994"/> + <location filename="../../interface.ui" line="796"/> <source>Move file(s)</source> <translation type="unfinished"></translation> </message> <message> - <location filename="../../interface.ui" line="1003"/> + <location filename="../../interface.ui" line="805"/> <source>Move folder</source> <translation type="unfinished"></translation> </message> <message> - <location filename="../../interface.ui" line="1012"/> + <location filename="../../interface.ui" line="814"/> <source>Copy file(s)</source> <translation type="unfinished"></translation> </message> <message> - <location filename="../../interface.ui" line="1021"/> + <location filename="../../interface.ui" line="823"/> <source>Copy folder</source> <translation type="unfinished"></translation> </message> +</context> +<context> + <name>themesOptions</name> + <message> + <location filename="../../themesOptions.ui" line="253"/> + <source>Show dual progression</source> + <translation type="unfinished"></translation> + </message> <message> - <location filename="../../interface.ui" line="487"/> - <source>Ctrl+F</source> + <location filename="../../themesOptions.ui" line="205"/> + <source>Show speed as main information</source> <translation type="unfinished"></translation> </message> <message> - <location filename="../../interface.ui" line="133"/> - <source>Shutdown when is finish</source> + <location filename="../../themesOptions.ui" line="44"/> + <source>Use</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../../themesOptions.ui" line="50"/> + <source>Start with the "more button" pushed</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../../themesOptions.ui" line="67"/> + <source>Minimize on close to systray</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../../themesOptions.ui" line="96"/> + <source>At the end of the copy</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../../themesOptions.ui" line="103"/> + <location filename="../../themesOptions.ui" line="137"/> + <source>Limit copy speed to</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../../themesOptions.ui" line="147"/> + <source> KB/s</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../../themesOptions.ui" line="176"/> + <source>Start minimized</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../../themesOptions.ui" line="199"/> + <source>Informations</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../../themesOptions.ui" line="237"/> + <source>Display</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../../themesOptions.ui" line="243"/> + <source>Speed with progress bar</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../../themesOptions.ui" line="273"/> + <source>Progression color</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../../themesOptions.ui" line="292"/> + <source>Click to edit the color</source> <translation type="unfinished"></translation> </message> -</context> -<context> - <name>options</name> <message> - <location filename="../../options.ui" line="20"/> - <source>Show speed as main informations</source> + <location filename="../../themesOptions.ui" line="263"/> + <source>Show progression in the title</source> <translation type="unfinished"></translation> </message> <message> - <location filename="../../options.ui" line="33"/> - <source>Start with more button pushed</source> + <location filename="../../themesOptions.ui" line="60"/> + <source>Always on top</source> <translation type="unfinished"></translation> </message> </context> diff --git a/plugins/Themes/Oxygen/Languages/ru/translation.ts b/plugins/Themes/Oxygen/Languages/ru/translation.ts index 565a194..9ffa0a1 100644 --- a/plugins/Themes/Oxygen/Languages/ru/translation.ts +++ b/plugins/Themes/Oxygen/Languages/ru/translation.ts @@ -4,15 +4,84 @@ <context> <name>Themes</name> <message> - <location filename="../../interface.cpp" line="184"/> + <location filename="../../interface.cpp" line="240"/> + <source>Buy the Ultimate version to fund development</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../../interface.cpp" line="310"/> <source>File %1/%2, size: %3/%4</source> <translation>Файл %1/%2, размер: %3/%4</translation> </message> <message> - <location filename="../../interface.cpp" line="737"/> + <location filename="../../interface.cpp" line="524"/> + <source>Copy list</source> + <translation type="unfinished">Копировать список</translation> + </message> + <message> + <location filename="../../interface.cpp" line="526"/> + <source>Move list</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../../interface.cpp" line="947"/> + <source>Don't close if errors are found</source> + <translation type="unfinished">Не закрывать, если найдены ошибки</translation> + </message> + <message> + <location filename="../../interface.cpp" line="948"/> + <source>Never close</source> + <translation type="unfinished">Никогда не закрывать</translation> + </message> + <message> + <location filename="../../interface.cpp" line="949"/> + <source>Always close</source> + <translation type="unfinished">Всегда закрывайте</translation> + </message> + <message> + <location filename="../../interface.cpp" line="951"/> <source>File Name, 0KB</source> <translation>Имя файла, 0KB</translation> </message> + <message> + <location filename="../../interface.cpp" line="1134"/> + <location filename="../../interface.cpp" line="1146"/> + <location filename="../../interface.cpp" line="1158"/> + <source>Select a color</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../../interface.cpp" line="1233"/> + <location filename="../../interface.cpp" line="1237"/> + <location filename="../../interface.cpp" line="1239"/> + <source>%1 %2% of %3</source> + <translation type="unfinished"></translation> + </message> +</context> +<context> + <name>ThemesFactory</name> + <message> + <location filename="../../ThemesFactory.cpp" line="223"/> + <source>Don't close if errors are found</source> + <translation type="unfinished">Не закрывать, если найдены ошибки</translation> + </message> + <message> + <location filename="../../ThemesFactory.cpp" line="224"/> + <source>Never close</source> + <translation type="unfinished">Никогда не закрывать</translation> + </message> + <message> + <location filename="../../ThemesFactory.cpp" line="225"/> + <source>Always close</source> + <translation type="unfinished">Всегда закрывайте</translation> + </message> + <message> + <location filename="../../ThemesFactory.cpp" line="421"/> + <location filename="../../ThemesFactory.cpp" line="436"/> + <location filename="../../ThemesFactory.cpp" line="451"/> + <source>Select a color</source> + <translation type="unfinished"></translation> + </message> </context> <context> <name>interfaceCopy</name> @@ -22,179 +91,251 @@ <translation>С:</translation> </message> <message> - <location filename="../../interface.ui" line="69"/> + <location filename="../../interface.ui" line="65"/> <source>To:</source> <translation>к:</translation> </message> <message> - <location filename="../../interface.ui" line="196"/> - <source>0KB/sec</source> - <translation>0KB/sec</translation> - </message> - <message> - <location filename="../../interface.ui" line="216"/> + <location filename="../../interface.ui" line="226"/> <source>&More</source> <translation>больше</translation> </message> <message> - <location filename="../../interface.ui" line="236"/> + <location filename="../../interface.ui" line="246"/> <source>&Pause</source> <translation>пауза</translation> </message> <message> - <location filename="../../interface.ui" line="250"/> + <location filename="../../interface.ui" line="260"/> <source>&Skip</source> <translation>пропускать</translation> </message> <message> - <location filename="../../interface.ui" line="261"/> + <location filename="../../interface.ui" line="271"/> <source>&Cancel</source> <translation>отменить</translation> </message> <message> - <location filename="../../interface.ui" line="276"/> - <location filename="../../interface.ui" line="748"/> <source>Limit copy speed at:</source> - <translation>Предельная скорость копирования по адресу:</translation> + <translation type="obsolete">Предельная скорость копирования по адресу:</translation> </message> <message> - <location filename="../../interface.ui" line="293"/> - <source>Unlimited</source> - <translation>неограниченный</translation> + <location filename="../../interface.ui" line="118"/> + <source>Close on transfer completion</source> + <translation type="unfinished"></translation> </message> <message> - <location filename="../../interface.ui" line="323"/> - <source>Copy list</source> - <translation>Копировать список</translation> + <location filename="../../interface.ui" line="286"/> + <source>Limit copy speed to:</source> + <translation type="unfinished"></translation> </message> <message> - <location filename="../../interface.ui" line="591"/> - <source>Previous</source> - <translation>предыдущий</translation> + <location filename="../../interface.ui" line="329"/> + <source>Transfer list</source> + <translation type="unfinished"></translation> </message> <message> - <location filename="../../interface.ui" line="598"/> - <source>Next</source> - <translation>следующий</translation> + <location filename="../../interface.ui" line="352"/> + <source>Move the selected items to the top</source> + <translation type="unfinished"></translation> </message> <message> - <location filename="../../interface.ui" line="637"/> - <source>Options</source> - <translation>опции</translation> + <location filename="../../interface.ui" line="378"/> + <source>Move up the selected items</source> + <translation type="unfinished"></translation> </message> <message> - <location filename="../../interface.ui" line="646"/> - <source>Copy end</source> - <translation>Скопируйте конца</translation> + <location filename="../../interface.ui" line="404"/> + <source>Move down the selected items</source> + <translation type="unfinished"></translation> </message> <message> - <location filename="../../interface.ui" line="667"/> - <source>At the end of the copy: </source> - <translation>В конце копии: </translation> + <location filename="../../interface.ui" line="430"/> + <source>Move the selected items to the bottom</source> + <translation type="unfinished"></translation> </message> <message> - <location filename="../../interface.ui" line="706"/> - <source>Don't close if errors are found</source> - <translation>Не закрывать, если найдены ошибки</translation> + <location filename="../../interface.ui" line="456"/> + <source>Add file/folder</source> + <translation type="unfinished"></translation> </message> <message> - <location filename="../../interface.ui" line="711"/> - <source>Never close</source> - <translation>Никогда не закрывать</translation> + <location filename="../../interface.ui" line="485"/> + <source>Delete the selected items</source> + <translation type="unfinished"></translation> </message> <message> - <location filename="../../interface.ui" line="716"/> - <source>Always close</source> - <translation>Всегда закрывайте</translation> + <location filename="../../interface.ui" line="511"/> + <source>Search</source> + <translation type="unfinished"></translation> </message> <message> - <location filename="../../interface.ui" line="727"/> - <source>Speed limit</source> - <translation>ограничение скорости</translation> + <location filename="../../interface.ui" line="540"/> + <source>Export the transfer list</source> + <translation type="unfinished"></translation> </message> <message> - <location filename="../../interface.ui" line="758"/> - <source> KB/s</source> - <translation> Кб/с</translation> + <location filename="../../interface.ui" line="566"/> + <source>Import the transfer list</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../../interface.ui" line="621"/> + <source>Previous</source> + <translation>предыдущий</translation> </message> <message> - <location filename="../../interface.ui" line="790"/> - <source>File collisions</source> - <translation>Файл столкновений</translation> + <location filename="../../interface.ui" line="628"/> + <source>Next</source> + <translation>следующий</translation> </message> <message> - <location filename="../../interface.ui" line="811"/> - <location filename="../../interface.ui" line="871"/> - <source>What to do: </source> - <translation>Что делать: </translation> + <location filename="../../interface.ui" line="663"/> + <location filename="../../interface.ui" line="732"/> + <source>Error</source> + <translation type="unfinished"></translation> </message> <message> - <location filename="../../interface.ui" line="850"/> - <source>Copy errors</source> - <translation>Копировать ошибки</translation> + <location filename="../../interface.ui" line="683"/> + <source>Export the errors into transfer list</source> + <translation type="unfinished"></translation> </message> <message> - <location filename="../../interface.ui" line="928"/> - <source>Interface</source> - <translation>интерфейс</translation> + <location filename="../../interface.ui" line="722"/> + <source>Source</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../../interface.ui" line="727"/> + <source>Destination</source> + <translation type="unfinished"></translation> </message> <message> - <location filename="../../interface.ui" line="939"/> - <source>Show speed as main informations</source> - <translation>Показать скорости в качестве основной информации</translation> + <location filename="../../interface.ui" line="741"/> + <source>Interface</source> + <translation>интерфейс</translation> </message> <message> - <location filename="../../interface.ui" line="976"/> + <location filename="../../interface.ui" line="778"/> <source>Add file</source> <translation>Добавить файл</translation> </message> <message> - <location filename="../../interface.ui" line="985"/> + <location filename="../../interface.ui" line="787"/> <source>Add folder</source> <translation>Добавить папку</translation> </message> <message> - <location filename="../../interface.ui" line="994"/> + <location filename="../../interface.ui" line="796"/> <source>Move file(s)</source> <translation>Перемещение файла(ов)</translation> </message> <message> - <location filename="../../interface.ui" line="1003"/> + <location filename="../../interface.ui" line="805"/> <source>Move folder</source> <translation>Перемещение папки</translation> </message> <message> - <location filename="../../interface.ui" line="1012"/> + <location filename="../../interface.ui" line="814"/> <source>Copy file(s)</source> <translation>Копировать файл (ы)</translation> </message> <message> - <location filename="../../interface.ui" line="1021"/> + <location filename="../../interface.ui" line="823"/> <source>Copy folder</source> <translation>Копировать папку</translation> </message> +</context> +<context> + <name>themesOptions</name> <message> - <location filename="../../interface.ui" line="487"/> - <source>Ctrl+F</source> - <translation>Ctrl+F</translation> + <location filename="../../themesOptions.ui" line="253"/> + <source>Show dual progression</source> + <translation type="unfinished"></translation> </message> <message> - <location filename="../../interface.ui" line="133"/> - <source>Shutdown when is finish</source> - <translation>Shutdown, когда будет закончить</translation> + <location filename="../../themesOptions.ui" line="205"/> + <source>Show speed as main information</source> + <translation type="unfinished">Показать скорости в качестве основной информации</translation> + </message> + <message> + <location filename="../../themesOptions.ui" line="44"/> + <source>Use</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../../themesOptions.ui" line="50"/> + <source>Start with the "more button" pushed</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../../themesOptions.ui" line="67"/> + <source>Minimize on close to systray</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../../themesOptions.ui" line="96"/> + <source>At the end of the copy</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../../themesOptions.ui" line="103"/> + <location filename="../../themesOptions.ui" line="137"/> + <source>Limit copy speed to</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../../themesOptions.ui" line="176"/> + <source>Start minimized</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../../themesOptions.ui" line="292"/> + <source>Click to edit the color</source> + <translation type="unfinished"></translation> + </message> + <message> + <source>At the end of the copy: </source> + <translation type="obsolete">В конце копии: </translation> + </message> + <message> + <source>Limit copy speed at:</source> + <translation type="obsolete">Предельная скорость копирования по адресу:</translation> + </message> + <message> + <location filename="../../themesOptions.ui" line="147"/> + <source> KB/s</source> + <translation type="unfinished"> Кб/с</translation> + </message> + <message> + <location filename="../../themesOptions.ui" line="199"/> + <source>Informations</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../../themesOptions.ui" line="237"/> + <source>Display</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../../themesOptions.ui" line="243"/> + <source>Speed with progress bar</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../../themesOptions.ui" line="273"/> + <source>Progression color</source> + <translation type="unfinished"></translation> </message> -</context> -<context> - <name>options</name> <message> - <location filename="../../options.ui" line="20"/> - <source>Show speed as main informations</source> - <translation>Показать скорости в качестве основной информации</translation> + <location filename="../../themesOptions.ui" line="263"/> + <source>Show progression in the title</source> + <translation type="unfinished"></translation> </message> <message> - <location filename="../../options.ui" line="33"/> - <source>Start with more button pushed</source> - <translation>Начнем с более толкнул кнопку</translation> + <location filename="../../themesOptions.ui" line="60"/> + <source>Always on top</source> + <translation type="unfinished"></translation> </message> </context> </TS> diff --git a/plugins/Themes/Oxygen/Languages/th/translation.ts b/plugins/Themes/Oxygen/Languages/th/translation.ts index 0708252..ae86b54 100644 --- a/plugins/Themes/Oxygen/Languages/th/translation.ts +++ b/plugins/Themes/Oxygen/Languages/th/translation.ts @@ -4,15 +4,84 @@ <context> <name>Themes</name> <message> - <location filename="../../interface.cpp" line="184"/> + <location filename="../../interface.cpp" line="240"/> + <source>Buy the Ultimate version to fund development</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../../interface.cpp" line="310"/> <source>File %1/%2, size: %3/%4</source> <translation type="unfinished"></translation> </message> <message> - <location filename="../../interface.cpp" line="737"/> + <location filename="../../interface.cpp" line="524"/> + <source>Copy list</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../../interface.cpp" line="526"/> + <source>Move list</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../../interface.cpp" line="947"/> + <source>Don't close if errors are found</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../../interface.cpp" line="948"/> + <source>Never close</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../../interface.cpp" line="949"/> + <source>Always close</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../../interface.cpp" line="951"/> <source>File Name, 0KB</source> <translation type="unfinished"></translation> </message> + <message> + <location filename="../../interface.cpp" line="1134"/> + <location filename="../../interface.cpp" line="1146"/> + <location filename="../../interface.cpp" line="1158"/> + <source>Select a color</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../../interface.cpp" line="1233"/> + <location filename="../../interface.cpp" line="1237"/> + <location filename="../../interface.cpp" line="1239"/> + <source>%1 %2% of %3</source> + <translation type="unfinished"></translation> + </message> +</context> +<context> + <name>ThemesFactory</name> + <message> + <location filename="../../ThemesFactory.cpp" line="223"/> + <source>Don't close if errors are found</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../../ThemesFactory.cpp" line="224"/> + <source>Never close</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../../ThemesFactory.cpp" line="225"/> + <source>Always close</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../../ThemesFactory.cpp" line="421"/> + <location filename="../../ThemesFactory.cpp" line="436"/> + <location filename="../../ThemesFactory.cpp" line="451"/> + <source>Select a color</source> + <translation type="unfinished"></translation> + </message> </context> <context> <name>interfaceCopy</name> @@ -22,178 +91,238 @@ <translation type="unfinished"></translation> </message> <message> - <location filename="../../interface.ui" line="69"/> + <location filename="../../interface.ui" line="65"/> <source>To:</source> <translation type="unfinished"></translation> </message> <message> - <location filename="../../interface.ui" line="196"/> - <source>0KB/sec</source> - <translation type="unfinished"></translation> - </message> - <message> - <location filename="../../interface.ui" line="216"/> + <location filename="../../interface.ui" line="226"/> <source>&More</source> <translation type="unfinished"></translation> </message> <message> - <location filename="../../interface.ui" line="236"/> + <location filename="../../interface.ui" line="246"/> <source>&Pause</source> <translation type="unfinished"></translation> </message> <message> - <location filename="../../interface.ui" line="250"/> + <location filename="../../interface.ui" line="260"/> <source>&Skip</source> <translation type="unfinished"></translation> </message> <message> - <location filename="../../interface.ui" line="261"/> + <location filename="../../interface.ui" line="271"/> <source>&Cancel</source> <translation type="unfinished"></translation> </message> <message> - <location filename="../../interface.ui" line="276"/> - <location filename="../../interface.ui" line="748"/> - <source>Limit copy speed at:</source> + <location filename="../../interface.ui" line="118"/> + <source>Close on transfer completion</source> <translation type="unfinished"></translation> </message> <message> - <location filename="../../interface.ui" line="293"/> - <source>Unlimited</source> + <location filename="../../interface.ui" line="286"/> + <source>Limit copy speed to:</source> <translation type="unfinished"></translation> </message> <message> - <location filename="../../interface.ui" line="323"/> - <source>Copy list</source> + <location filename="../../interface.ui" line="329"/> + <source>Transfer list</source> <translation type="unfinished"></translation> </message> <message> - <location filename="../../interface.ui" line="591"/> - <source>Previous</source> + <location filename="../../interface.ui" line="352"/> + <source>Move the selected items to the top</source> <translation type="unfinished"></translation> </message> <message> - <location filename="../../interface.ui" line="598"/> - <source>Next</source> + <location filename="../../interface.ui" line="378"/> + <source>Move up the selected items</source> <translation type="unfinished"></translation> </message> <message> - <location filename="../../interface.ui" line="637"/> - <source>Options</source> + <location filename="../../interface.ui" line="404"/> + <source>Move down the selected items</source> <translation type="unfinished"></translation> </message> <message> - <location filename="../../interface.ui" line="646"/> - <source>Copy end</source> + <location filename="../../interface.ui" line="430"/> + <source>Move the selected items to the bottom</source> <translation type="unfinished"></translation> </message> <message> - <location filename="../../interface.ui" line="667"/> - <source>At the end of the copy: </source> + <location filename="../../interface.ui" line="456"/> + <source>Add file/folder</source> <translation type="unfinished"></translation> </message> <message> - <location filename="../../interface.ui" line="706"/> - <source>Don't close if errors are found</source> + <location filename="../../interface.ui" line="485"/> + <source>Delete the selected items</source> <translation type="unfinished"></translation> </message> <message> - <location filename="../../interface.ui" line="711"/> - <source>Never close</source> + <location filename="../../interface.ui" line="511"/> + <source>Search</source> <translation type="unfinished"></translation> </message> <message> - <location filename="../../interface.ui" line="716"/> - <source>Always close</source> + <location filename="../../interface.ui" line="540"/> + <source>Export the transfer list</source> <translation type="unfinished"></translation> </message> <message> - <location filename="../../interface.ui" line="727"/> - <source>Speed limit</source> + <location filename="../../interface.ui" line="566"/> + <source>Import the transfer list</source> <translation type="unfinished"></translation> </message> <message> - <location filename="../../interface.ui" line="758"/> - <source> KB/s</source> + <location filename="../../interface.ui" line="621"/> + <source>Previous</source> <translation type="unfinished"></translation> </message> <message> - <location filename="../../interface.ui" line="790"/> - <source>File collisions</source> + <location filename="../../interface.ui" line="628"/> + <source>Next</source> <translation type="unfinished"></translation> </message> <message> - <location filename="../../interface.ui" line="811"/> - <location filename="../../interface.ui" line="871"/> - <source>What to do: </source> + <location filename="../../interface.ui" line="663"/> + <location filename="../../interface.ui" line="732"/> + <source>Error</source> <translation type="unfinished"></translation> </message> <message> - <location filename="../../interface.ui" line="850"/> - <source>Copy errors</source> + <location filename="../../interface.ui" line="683"/> + <source>Export the errors into transfer list</source> <translation type="unfinished"></translation> </message> <message> - <location filename="../../interface.ui" line="928"/> - <source>Interface</source> + <location filename="../../interface.ui" line="722"/> + <source>Source</source> <translation type="unfinished"></translation> </message> <message> - <location filename="../../interface.ui" line="939"/> - <source>Show speed as main informations</source> + <location filename="../../interface.ui" line="727"/> + <source>Destination</source> <translation type="unfinished"></translation> </message> <message> - <location filename="../../interface.ui" line="976"/> + <location filename="../../interface.ui" line="741"/> + <source>Interface</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../../interface.ui" line="778"/> <source>Add file</source> <translation type="unfinished"></translation> </message> <message> - <location filename="../../interface.ui" line="985"/> + <location filename="../../interface.ui" line="787"/> <source>Add folder</source> <translation type="unfinished"></translation> </message> <message> - <location filename="../../interface.ui" line="994"/> + <location filename="../../interface.ui" line="796"/> <source>Move file(s)</source> <translation type="unfinished"></translation> </message> <message> - <location filename="../../interface.ui" line="1003"/> + <location filename="../../interface.ui" line="805"/> <source>Move folder</source> <translation type="unfinished"></translation> </message> <message> - <location filename="../../interface.ui" line="1012"/> + <location filename="../../interface.ui" line="814"/> <source>Copy file(s)</source> <translation type="unfinished"></translation> </message> <message> - <location filename="../../interface.ui" line="1021"/> + <location filename="../../interface.ui" line="823"/> <source>Copy folder</source> <translation type="unfinished"></translation> </message> +</context> +<context> + <name>themesOptions</name> + <message> + <location filename="../../themesOptions.ui" line="253"/> + <source>Show dual progression</source> + <translation type="unfinished"></translation> + </message> <message> - <location filename="../../interface.ui" line="487"/> - <source>Ctrl+F</source> + <location filename="../../themesOptions.ui" line="205"/> + <source>Show speed as main information</source> <translation type="unfinished"></translation> </message> <message> - <location filename="../../interface.ui" line="133"/> - <source>Shutdown when is finish</source> + <location filename="../../themesOptions.ui" line="44"/> + <source>Use</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../../themesOptions.ui" line="50"/> + <source>Start with the "more button" pushed</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../../themesOptions.ui" line="67"/> + <source>Minimize on close to systray</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../../themesOptions.ui" line="96"/> + <source>At the end of the copy</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../../themesOptions.ui" line="103"/> + <location filename="../../themesOptions.ui" line="137"/> + <source>Limit copy speed to</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../../themesOptions.ui" line="147"/> + <source> KB/s</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../../themesOptions.ui" line="176"/> + <source>Start minimized</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../../themesOptions.ui" line="199"/> + <source>Informations</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../../themesOptions.ui" line="237"/> + <source>Display</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../../themesOptions.ui" line="243"/> + <source>Speed with progress bar</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../../themesOptions.ui" line="273"/> + <source>Progression color</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../../themesOptions.ui" line="292"/> + <source>Click to edit the color</source> <translation type="unfinished"></translation> </message> -</context> -<context> - <name>options</name> <message> - <location filename="../../options.ui" line="20"/> - <source>Show speed as main informations</source> + <location filename="../../themesOptions.ui" line="263"/> + <source>Show progression in the title</source> <translation type="unfinished"></translation> </message> <message> - <location filename="../../options.ui" line="33"/> - <source>Start with more button pushed</source> + <location filename="../../themesOptions.ui" line="60"/> + <source>Always on top</source> <translation type="unfinished"></translation> </message> </context> diff --git a/plugins/Themes/Oxygen/Languages/tr/translation.ts b/plugins/Themes/Oxygen/Languages/tr/translation.ts index 0708252..ae86b54 100644 --- a/plugins/Themes/Oxygen/Languages/tr/translation.ts +++ b/plugins/Themes/Oxygen/Languages/tr/translation.ts @@ -4,15 +4,84 @@ <context> <name>Themes</name> <message> - <location filename="../../interface.cpp" line="184"/> + <location filename="../../interface.cpp" line="240"/> + <source>Buy the Ultimate version to fund development</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../../interface.cpp" line="310"/> <source>File %1/%2, size: %3/%4</source> <translation type="unfinished"></translation> </message> <message> - <location filename="../../interface.cpp" line="737"/> + <location filename="../../interface.cpp" line="524"/> + <source>Copy list</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../../interface.cpp" line="526"/> + <source>Move list</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../../interface.cpp" line="947"/> + <source>Don't close if errors are found</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../../interface.cpp" line="948"/> + <source>Never close</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../../interface.cpp" line="949"/> + <source>Always close</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../../interface.cpp" line="951"/> <source>File Name, 0KB</source> <translation type="unfinished"></translation> </message> + <message> + <location filename="../../interface.cpp" line="1134"/> + <location filename="../../interface.cpp" line="1146"/> + <location filename="../../interface.cpp" line="1158"/> + <source>Select a color</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../../interface.cpp" line="1233"/> + <location filename="../../interface.cpp" line="1237"/> + <location filename="../../interface.cpp" line="1239"/> + <source>%1 %2% of %3</source> + <translation type="unfinished"></translation> + </message> +</context> +<context> + <name>ThemesFactory</name> + <message> + <location filename="../../ThemesFactory.cpp" line="223"/> + <source>Don't close if errors are found</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../../ThemesFactory.cpp" line="224"/> + <source>Never close</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../../ThemesFactory.cpp" line="225"/> + <source>Always close</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../../ThemesFactory.cpp" line="421"/> + <location filename="../../ThemesFactory.cpp" line="436"/> + <location filename="../../ThemesFactory.cpp" line="451"/> + <source>Select a color</source> + <translation type="unfinished"></translation> + </message> </context> <context> <name>interfaceCopy</name> @@ -22,178 +91,238 @@ <translation type="unfinished"></translation> </message> <message> - <location filename="../../interface.ui" line="69"/> + <location filename="../../interface.ui" line="65"/> <source>To:</source> <translation type="unfinished"></translation> </message> <message> - <location filename="../../interface.ui" line="196"/> - <source>0KB/sec</source> - <translation type="unfinished"></translation> - </message> - <message> - <location filename="../../interface.ui" line="216"/> + <location filename="../../interface.ui" line="226"/> <source>&More</source> <translation type="unfinished"></translation> </message> <message> - <location filename="../../interface.ui" line="236"/> + <location filename="../../interface.ui" line="246"/> <source>&Pause</source> <translation type="unfinished"></translation> </message> <message> - <location filename="../../interface.ui" line="250"/> + <location filename="../../interface.ui" line="260"/> <source>&Skip</source> <translation type="unfinished"></translation> </message> <message> - <location filename="../../interface.ui" line="261"/> + <location filename="../../interface.ui" line="271"/> <source>&Cancel</source> <translation type="unfinished"></translation> </message> <message> - <location filename="../../interface.ui" line="276"/> - <location filename="../../interface.ui" line="748"/> - <source>Limit copy speed at:</source> + <location filename="../../interface.ui" line="118"/> + <source>Close on transfer completion</source> <translation type="unfinished"></translation> </message> <message> - <location filename="../../interface.ui" line="293"/> - <source>Unlimited</source> + <location filename="../../interface.ui" line="286"/> + <source>Limit copy speed to:</source> <translation type="unfinished"></translation> </message> <message> - <location filename="../../interface.ui" line="323"/> - <source>Copy list</source> + <location filename="../../interface.ui" line="329"/> + <source>Transfer list</source> <translation type="unfinished"></translation> </message> <message> - <location filename="../../interface.ui" line="591"/> - <source>Previous</source> + <location filename="../../interface.ui" line="352"/> + <source>Move the selected items to the top</source> <translation type="unfinished"></translation> </message> <message> - <location filename="../../interface.ui" line="598"/> - <source>Next</source> + <location filename="../../interface.ui" line="378"/> + <source>Move up the selected items</source> <translation type="unfinished"></translation> </message> <message> - <location filename="../../interface.ui" line="637"/> - <source>Options</source> + <location filename="../../interface.ui" line="404"/> + <source>Move down the selected items</source> <translation type="unfinished"></translation> </message> <message> - <location filename="../../interface.ui" line="646"/> - <source>Copy end</source> + <location filename="../../interface.ui" line="430"/> + <source>Move the selected items to the bottom</source> <translation type="unfinished"></translation> </message> <message> - <location filename="../../interface.ui" line="667"/> - <source>At the end of the copy: </source> + <location filename="../../interface.ui" line="456"/> + <source>Add file/folder</source> <translation type="unfinished"></translation> </message> <message> - <location filename="../../interface.ui" line="706"/> - <source>Don't close if errors are found</source> + <location filename="../../interface.ui" line="485"/> + <source>Delete the selected items</source> <translation type="unfinished"></translation> </message> <message> - <location filename="../../interface.ui" line="711"/> - <source>Never close</source> + <location filename="../../interface.ui" line="511"/> + <source>Search</source> <translation type="unfinished"></translation> </message> <message> - <location filename="../../interface.ui" line="716"/> - <source>Always close</source> + <location filename="../../interface.ui" line="540"/> + <source>Export the transfer list</source> <translation type="unfinished"></translation> </message> <message> - <location filename="../../interface.ui" line="727"/> - <source>Speed limit</source> + <location filename="../../interface.ui" line="566"/> + <source>Import the transfer list</source> <translation type="unfinished"></translation> </message> <message> - <location filename="../../interface.ui" line="758"/> - <source> KB/s</source> + <location filename="../../interface.ui" line="621"/> + <source>Previous</source> <translation type="unfinished"></translation> </message> <message> - <location filename="../../interface.ui" line="790"/> - <source>File collisions</source> + <location filename="../../interface.ui" line="628"/> + <source>Next</source> <translation type="unfinished"></translation> </message> <message> - <location filename="../../interface.ui" line="811"/> - <location filename="../../interface.ui" line="871"/> - <source>What to do: </source> + <location filename="../../interface.ui" line="663"/> + <location filename="../../interface.ui" line="732"/> + <source>Error</source> <translation type="unfinished"></translation> </message> <message> - <location filename="../../interface.ui" line="850"/> - <source>Copy errors</source> + <location filename="../../interface.ui" line="683"/> + <source>Export the errors into transfer list</source> <translation type="unfinished"></translation> </message> <message> - <location filename="../../interface.ui" line="928"/> - <source>Interface</source> + <location filename="../../interface.ui" line="722"/> + <source>Source</source> <translation type="unfinished"></translation> </message> <message> - <location filename="../../interface.ui" line="939"/> - <source>Show speed as main informations</source> + <location filename="../../interface.ui" line="727"/> + <source>Destination</source> <translation type="unfinished"></translation> </message> <message> - <location filename="../../interface.ui" line="976"/> + <location filename="../../interface.ui" line="741"/> + <source>Interface</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../../interface.ui" line="778"/> <source>Add file</source> <translation type="unfinished"></translation> </message> <message> - <location filename="../../interface.ui" line="985"/> + <location filename="../../interface.ui" line="787"/> <source>Add folder</source> <translation type="unfinished"></translation> </message> <message> - <location filename="../../interface.ui" line="994"/> + <location filename="../../interface.ui" line="796"/> <source>Move file(s)</source> <translation type="unfinished"></translation> </message> <message> - <location filename="../../interface.ui" line="1003"/> + <location filename="../../interface.ui" line="805"/> <source>Move folder</source> <translation type="unfinished"></translation> </message> <message> - <location filename="../../interface.ui" line="1012"/> + <location filename="../../interface.ui" line="814"/> <source>Copy file(s)</source> <translation type="unfinished"></translation> </message> <message> - <location filename="../../interface.ui" line="1021"/> + <location filename="../../interface.ui" line="823"/> <source>Copy folder</source> <translation type="unfinished"></translation> </message> +</context> +<context> + <name>themesOptions</name> + <message> + <location filename="../../themesOptions.ui" line="253"/> + <source>Show dual progression</source> + <translation type="unfinished"></translation> + </message> <message> - <location filename="../../interface.ui" line="487"/> - <source>Ctrl+F</source> + <location filename="../../themesOptions.ui" line="205"/> + <source>Show speed as main information</source> <translation type="unfinished"></translation> </message> <message> - <location filename="../../interface.ui" line="133"/> - <source>Shutdown when is finish</source> + <location filename="../../themesOptions.ui" line="44"/> + <source>Use</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../../themesOptions.ui" line="50"/> + <source>Start with the "more button" pushed</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../../themesOptions.ui" line="67"/> + <source>Minimize on close to systray</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../../themesOptions.ui" line="96"/> + <source>At the end of the copy</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../../themesOptions.ui" line="103"/> + <location filename="../../themesOptions.ui" line="137"/> + <source>Limit copy speed to</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../../themesOptions.ui" line="147"/> + <source> KB/s</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../../themesOptions.ui" line="176"/> + <source>Start minimized</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../../themesOptions.ui" line="199"/> + <source>Informations</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../../themesOptions.ui" line="237"/> + <source>Display</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../../themesOptions.ui" line="243"/> + <source>Speed with progress bar</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../../themesOptions.ui" line="273"/> + <source>Progression color</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../../themesOptions.ui" line="292"/> + <source>Click to edit the color</source> <translation type="unfinished"></translation> </message> -</context> -<context> - <name>options</name> <message> - <location filename="../../options.ui" line="20"/> - <source>Show speed as main informations</source> + <location filename="../../themesOptions.ui" line="263"/> + <source>Show progression in the title</source> <translation type="unfinished"></translation> </message> <message> - <location filename="../../options.ui" line="33"/> - <source>Start with more button pushed</source> + <location filename="../../themesOptions.ui" line="60"/> + <source>Always on top</source> <translation type="unfinished"></translation> </message> </context> diff --git a/plugins/Themes/Oxygen/Languages/zh/translation.ts b/plugins/Themes/Oxygen/Languages/zh/translation.ts index c5fd56b..1ee75a9 100644 --- a/plugins/Themes/Oxygen/Languages/zh/translation.ts +++ b/plugins/Themes/Oxygen/Languages/zh/translation.ts @@ -4,196 +4,325 @@ <context> <name>Themes</name> <message> - <location filename="../../interface.cpp" line="184"/> + <location filename="../../interface.cpp" line="240"/> + <source>Buy the Ultimate version to fund development</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../../interface.cpp" line="310"/> <source>File %1/%2, size: %3/%4</source> <translation type="unfinished"></translation> </message> <message> - <location filename="../../interface.cpp" line="737"/> + <location filename="../../interface.cpp" line="524"/> + <source>Copy list</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../../interface.cpp" line="526"/> + <source>Move list</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../../interface.cpp" line="947"/> + <source>Don't close if errors are found</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../../interface.cpp" line="948"/> + <source>Never close</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../../interface.cpp" line="949"/> + <source>Always close</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../../interface.cpp" line="951"/> <source>File Name, 0KB</source> <translation type="unfinished"></translation> </message> + <message> + <location filename="../../interface.cpp" line="1134"/> + <location filename="../../interface.cpp" line="1146"/> + <location filename="../../interface.cpp" line="1158"/> + <source>Select a color</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../../interface.cpp" line="1233"/> + <location filename="../../interface.cpp" line="1237"/> + <location filename="../../interface.cpp" line="1239"/> + <source>%1 %2% of %3</source> + <translation type="unfinished"></translation> + </message> </context> <context> - <name>interfaceCopy</name> + <name>ThemesFactory</name> <message> - <location filename="../../interface.ui" line="35"/> - <source>From:</source> + <location filename="../../ThemesFactory.cpp" line="223"/> + <source>Don't close if errors are found</source> <translation type="unfinished"></translation> </message> <message> - <location filename="../../interface.ui" line="69"/> - <source>To:</source> + <location filename="../../ThemesFactory.cpp" line="224"/> + <source>Never close</source> <translation type="unfinished"></translation> </message> <message> - <location filename="../../interface.ui" line="133"/> - <source>Shutdown when is finish</source> + <location filename="../../ThemesFactory.cpp" line="225"/> + <source>Always close</source> <translation type="unfinished"></translation> </message> <message> - <location filename="../../interface.ui" line="196"/> - <source>0KB/sec</source> + <location filename="../../ThemesFactory.cpp" line="421"/> + <location filename="../../ThemesFactory.cpp" line="436"/> + <location filename="../../ThemesFactory.cpp" line="451"/> + <source>Select a color</source> <translation type="unfinished"></translation> </message> +</context> +<context> + <name>interfaceCopy</name> <message> - <location filename="../../interface.ui" line="216"/> + <location filename="../../interface.ui" line="35"/> + <source>From:</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../../interface.ui" line="65"/> + <source>To:</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../../interface.ui" line="226"/> <source>&More</source> <translation type="unfinished"></translation> </message> <message> - <location filename="../../interface.ui" line="236"/> + <location filename="../../interface.ui" line="246"/> <source>&Pause</source> <translation type="unfinished"></translation> </message> <message> - <location filename="../../interface.ui" line="250"/> + <location filename="../../interface.ui" line="260"/> <source>&Skip</source> <translation type="unfinished"></translation> </message> <message> - <location filename="../../interface.ui" line="261"/> + <location filename="../../interface.ui" line="271"/> <source>&Cancel</source> <translation type="unfinished"></translation> </message> <message> - <location filename="../../interface.ui" line="276"/> - <location filename="../../interface.ui" line="748"/> - <source>Limit copy speed at:</source> + <location filename="../../interface.ui" line="329"/> + <source>Transfer list</source> <translation type="unfinished"></translation> </message> <message> - <location filename="../../interface.ui" line="293"/> - <source>Unlimited</source> + <location filename="../../interface.ui" line="485"/> + <source>Delete the selected items</source> <translation type="unfinished"></translation> </message> <message> - <location filename="../../interface.ui" line="323"/> - <source>Copy list</source> + <location filename="../../interface.ui" line="540"/> + <source>Export the transfer list</source> <translation type="unfinished"></translation> </message> <message> - <location filename="../../interface.ui" line="487"/> - <source>Ctrl+F</source> + <location filename="../../interface.ui" line="566"/> + <source>Import the transfer list</source> <translation type="unfinished"></translation> </message> <message> - <location filename="../../interface.ui" line="591"/> + <location filename="../../interface.ui" line="621"/> <source>Previous</source> <translation type="unfinished"></translation> </message> <message> - <location filename="../../interface.ui" line="598"/> + <location filename="../../interface.ui" line="628"/> <source>Next</source> <translation type="unfinished"></translation> </message> <message> - <location filename="../../interface.ui" line="637"/> - <source>Options</source> + <location filename="../../interface.ui" line="741"/> + <source>Interface</source> <translation type="unfinished"></translation> </message> <message> - <location filename="../../interface.ui" line="646"/> - <source>Copy end</source> + <location filename="../../interface.ui" line="352"/> + <source>Move the selected items to the top</source> <translation type="unfinished"></translation> </message> <message> - <location filename="../../interface.ui" line="667"/> - <source>At the end of the copy: </source> + <location filename="../../interface.ui" line="118"/> + <source>Close on transfer completion</source> <translation type="unfinished"></translation> </message> <message> - <location filename="../../interface.ui" line="706"/> - <source>Don't close if errors are found</source> + <location filename="../../interface.ui" line="286"/> + <source>Limit copy speed to:</source> <translation type="unfinished"></translation> </message> <message> - <location filename="../../interface.ui" line="711"/> - <source>Never close</source> + <location filename="../../interface.ui" line="378"/> + <source>Move up the selected items</source> <translation type="unfinished"></translation> </message> <message> - <location filename="../../interface.ui" line="716"/> - <source>Always close</source> + <location filename="../../interface.ui" line="404"/> + <source>Move down the selected items</source> <translation type="unfinished"></translation> </message> <message> - <location filename="../../interface.ui" line="727"/> - <source>Speed limit</source> + <location filename="../../interface.ui" line="430"/> + <source>Move the selected items to the bottom</source> <translation type="unfinished"></translation> </message> <message> - <location filename="../../interface.ui" line="758"/> - <source> KB/s</source> + <location filename="../../interface.ui" line="456"/> + <source>Add file/folder</source> <translation type="unfinished"></translation> </message> <message> - <location filename="../../interface.ui" line="790"/> - <source>File collisions</source> + <location filename="../../interface.ui" line="511"/> + <source>Search</source> <translation type="unfinished"></translation> </message> <message> - <location filename="../../interface.ui" line="811"/> - <location filename="../../interface.ui" line="871"/> - <source>What to do: </source> + <location filename="../../interface.ui" line="663"/> + <location filename="../../interface.ui" line="732"/> + <source>Error</source> <translation type="unfinished"></translation> </message> <message> - <location filename="../../interface.ui" line="850"/> - <source>Copy errors</source> + <location filename="../../interface.ui" line="683"/> + <source>Export the errors into transfer list</source> <translation type="unfinished"></translation> </message> <message> - <location filename="../../interface.ui" line="928"/> - <source>Interface</source> + <location filename="../../interface.ui" line="722"/> + <source>Source</source> <translation type="unfinished"></translation> </message> <message> - <location filename="../../interface.ui" line="939"/> - <source>Show speed as main informations</source> + <location filename="../../interface.ui" line="727"/> + <source>Destination</source> <translation type="unfinished"></translation> </message> <message> - <location filename="../../interface.ui" line="976"/> + <location filename="../../interface.ui" line="778"/> <source>Add file</source> <translation type="unfinished"></translation> </message> <message> - <location filename="../../interface.ui" line="985"/> + <location filename="../../interface.ui" line="787"/> <source>Add folder</source> <translation type="unfinished"></translation> </message> <message> - <location filename="../../interface.ui" line="994"/> + <location filename="../../interface.ui" line="796"/> <source>Move file(s)</source> <translation type="unfinished"></translation> </message> <message> - <location filename="../../interface.ui" line="1003"/> + <location filename="../../interface.ui" line="805"/> <source>Move folder</source> <translation type="unfinished"></translation> </message> <message> - <location filename="../../interface.ui" line="1012"/> + <location filename="../../interface.ui" line="814"/> <source>Copy file(s)</source> <translation type="unfinished"></translation> </message> <message> - <location filename="../../interface.ui" line="1021"/> + <location filename="../../interface.ui" line="823"/> <source>Copy folder</source> <translation type="unfinished"></translation> </message> </context> <context> - <name>options</name> + <name>themesOptions</name> + <message> + <location filename="../../themesOptions.ui" line="253"/> + <source>Show dual progression</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../../themesOptions.ui" line="205"/> + <source>Show speed as main information</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../../themesOptions.ui" line="44"/> + <source>Use</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../../themesOptions.ui" line="50"/> + <source>Start with the "more button" pushed</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../../themesOptions.ui" line="67"/> + <source>Minimize on close to systray</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../../themesOptions.ui" line="96"/> + <source>At the end of the copy</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../../themesOptions.ui" line="103"/> + <location filename="../../themesOptions.ui" line="137"/> + <source>Limit copy speed to</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../../themesOptions.ui" line="147"/> + <source> KB/s</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../../themesOptions.ui" line="176"/> + <source>Start minimized</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../../themesOptions.ui" line="199"/> + <source>Informations</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../../themesOptions.ui" line="237"/> + <source>Display</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../../themesOptions.ui" line="243"/> + <source>Speed with progress bar</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../../themesOptions.ui" line="273"/> + <source>Progression color</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../../themesOptions.ui" line="292"/> + <source>Click to edit the color</source> + <translation type="unfinished"></translation> + </message> <message> - <location filename="../../options.ui" line="20"/> - <source>Show speed as main informations</source> + <location filename="../../themesOptions.ui" line="263"/> + <source>Show progression in the title</source> <translation type="unfinished"></translation> </message> <message> - <location filename="../../options.ui" line="33"/> - <source>Start with more button pushed</source> + <location filename="../../themesOptions.ui" line="60"/> + <source>Always on top</source> <translation type="unfinished"></translation> </message> </context> diff --git a/plugins/Themes/Oxygen/ThemesFactory.cpp b/plugins/Themes/Oxygen/ThemesFactory.cpp new file mode 100644 index 0000000..595ed71 --- /dev/null +++ b/plugins/Themes/Oxygen/ThemesFactory.cpp @@ -0,0 +1,476 @@ +/** \file factory.cpp +\brief Define the factory core +\author alpha_one_x86 */ + +#include <QColorDialog> + +#include "ThemesFactory.h" + +ThemesFactory::ThemesFactory() +{ + optionsEngine=NULL; + tempWidget=new QWidget(); + ui=new Ui::themesOptions(); + ui->setupUi(tempWidget); + ui->toolBox->setCurrentIndex(0); + currentSpeed = 0; + updateSpeed(); + + qRegisterMetaType<QList<QPersistentModelIndex> >("QList<QPersistentModelIndex>"); +} + +ThemesFactory::~ThemesFactory() +{ +} + +PluginInterface_Themes * ThemesFactory::getInstance() +{ + ULTRACOPIER_DEBUGCONSOLE(Ultracopier::DebugLevel_Notice,QStringLiteral("start, currentSpeed: %1").arg(currentSpeed)); + + Themes * newInterface=new Themes( + ui->alwaysOnTop->isChecked(), + ui->showProgressionInTheTitle->isChecked(), + progressColorWrite,progressColorRead,progressColorRemaining, + ui->showDualProgression->isChecked(), + ui->comboBox_copyEnd->currentIndex(), + ui->speedWithProgressBar->isChecked(), + currentSpeed, + ui->checkBoxShowSpeed->isChecked(), + facilityEngine, + ui->checkBoxStartWithMoreButtonPushed->isChecked(), + ui->minimizeToSystray->isChecked(), + ui->startMinimized->isChecked() + ); + #ifdef ULTRACOPIER_PLUGIN_DEBUG + connect(newInterface,&Themes::debugInformation,this,&PluginInterface_ThemesFactory::debugInformation); + #endif + connect(this,&ThemesFactory::reloadLanguage,newInterface,&Themes::newLanguageLoaded); + return newInterface; +} + +void ThemesFactory::setResources(OptionInterface * optionsEngine,const QString & + #ifdef ULTRACOPIER_PLUGIN_DEBUG + writePath + #endif + ,const QString & + #ifdef ULTRACOPIER_PLUGIN_DEBUG + pluginPath + #endif + ,FacilityInterface * facilityEngine,const bool & + ) +{ + ULTRACOPIER_DEBUGCONSOLE(Ultracopier::DebugLevel_Notice,"start, writePath: "+writePath+", pluginPath: "+pluginPath); + this->facilityEngine=facilityEngine; + if(optionsEngine!=NULL) + { + this->optionsEngine=optionsEngine; + //load the options + QList<QPair<QString, QVariant> > KeysList; + KeysList.append(qMakePair(QStringLiteral("checkBoxShowSpeed"),QVariant(false))); + KeysList.append(qMakePair(QStringLiteral("moreButtonPushed"),QVariant(false))); + KeysList.append(qMakePair(QStringLiteral("speedWithProgressBar"),QVariant(true))); + KeysList.append(qMakePair(QStringLiteral("currentSpeed"),QVariant(0))); + KeysList.append(qMakePair(QStringLiteral("comboBox_copyEnd"),QVariant(0))); + KeysList.append(qMakePair(QStringLiteral("showDualProgression"),QVariant(false))); + KeysList.append(qMakePair(QStringLiteral("showProgressionInTheTitle"),QVariant(true))); + KeysList.append(qMakePair(QStringLiteral("progressColorWrite"),QVariant(QApplication::palette().color(QPalette::Highlight)))); + KeysList.append(qMakePair(QStringLiteral("progressColorRead"),QVariant(QApplication::palette().color(QPalette::AlternateBase)))); + KeysList.append(qMakePair(QStringLiteral("progressColorRemaining"),QVariant(QApplication::palette().color(QPalette::Base)))); + KeysList.append(qMakePair(QStringLiteral("alwaysOnTop"),QVariant(false))); + KeysList.append(qMakePair(QStringLiteral("minimizeToSystray"),QVariant(false))); + KeysList.append(qMakePair(QStringLiteral("startMinimized"),QVariant(false))); + optionsEngine->addOptionGroup(KeysList); + connect(optionsEngine,&OptionInterface::resetOptions,this,&ThemesFactory::resetOptions); + updateSpeed(); + } + #ifndef __GNUC__ + ULTRACOPIER_DEBUGCONSOLE(Ultracopier::DebugLevel_Information,"__GNUC__ is not set"); + #else + ULTRACOPIER_DEBUGCONSOLE(Ultracopier::DebugLevel_Information,"__GNUC__ is set"); + #endif +} + +QWidget * ThemesFactory::options() +{ + if(optionsEngine!=NULL) + { + bool ok; + currentSpeed=optionsEngine->getOptionValue(QStringLiteral("currentSpeed")).toUInt(&ok); + if(!ok) + currentSpeed=0; + ui->comboBox_copyEnd->setCurrentIndex(optionsEngine->getOptionValue(QStringLiteral("comboBox_copyEnd")).toUInt()); + ui->speedWithProgressBar->setChecked(optionsEngine->getOptionValue(QStringLiteral("speedWithProgressBar")).toBool()); + ui->checkBoxShowSpeed->setChecked(optionsEngine->getOptionValue(QStringLiteral("checkBoxShowSpeed")).toBool()); + ui->checkBoxStartWithMoreButtonPushed->setChecked(optionsEngine->getOptionValue(QStringLiteral("moreButtonPushed")).toBool()); + ui->showDualProgression->setChecked(optionsEngine->getOptionValue(QStringLiteral("showDualProgression")).toBool()); + ui->showProgressionInTheTitle->setChecked(optionsEngine->getOptionValue(QStringLiteral("showProgressionInTheTitle")).toBool()); + ui->alwaysOnTop->setChecked(optionsEngine->getOptionValue(QStringLiteral("alwaysOnTop")).toBool()); + ui->minimizeToSystray->setChecked(optionsEngine->getOptionValue(QStringLiteral("minimizeToSystray")).toBool()); + ui->startMinimized->setChecked(optionsEngine->getOptionValue(QStringLiteral("startMinimized")).toBool()); + + progressColorWrite=optionsEngine->getOptionValue(QStringLiteral("progressColorWrite")).value<QColor>(); + progressColorRead=optionsEngine->getOptionValue(QStringLiteral("progressColorRead")).value<QColor>(); + progressColorRemaining=optionsEngine->getOptionValue(QStringLiteral("progressColorRemaining")).value<QColor>(); + + QPixmap pixmap(75,20); + pixmap.fill(progressColorWrite); + ui->progressColorWrite->setIcon(pixmap); + pixmap.fill(progressColorRead); + ui->progressColorRead->setIcon(pixmap); + pixmap.fill(progressColorRemaining); + ui->progressColorRemaining->setIcon(pixmap); + updateSpeed(); + updateProgressionColorBar(); + + connect(ui->alwaysOnTop,&QCheckBox::stateChanged,this,&ThemesFactory::alwaysOnTop); + connect(ui->checkBoxShowSpeed,&QCheckBox::stateChanged,this,&ThemesFactory::checkBoxShowSpeed); + connect(ui->minimizeToSystray,&QCheckBox::stateChanged,this,&ThemesFactory::minimizeToSystray); + connect(ui->checkBox_limitSpeed,&QCheckBox::stateChanged,this,&ThemesFactory::uiUpdateSpeed); + connect(ui->SliderSpeed,&QAbstractSlider::valueChanged,this,&ThemesFactory::on_SliderSpeed_valueChanged); + connect(ui->limitSpeed,static_cast<void(QSpinBox::*)(int)>(&QSpinBox::valueChanged), this, &ThemesFactory::uiUpdateSpeed); + connect(ui->checkBoxShowSpeed,&QAbstractButton::toggled,this,&ThemesFactory::checkBoxShowSpeedHaveChanged); + connect(ui->checkBoxStartWithMoreButtonPushed,&QAbstractButton::toggled,this,&ThemesFactory::checkBoxStartWithMoreButtonPushedHaveChanged); + connect(ui->speedWithProgressBar,&QAbstractButton::toggled,this,&ThemesFactory::speedWithProgressBar); + connect(ui->comboBox_copyEnd, static_cast<void(QComboBox::*)(int)>(&QComboBox::currentIndexChanged), this,&ThemesFactory::comboBox_copyEnd); + connect(ui->showDualProgression,&QCheckBox::stateChanged,this,&ThemesFactory::showDualProgression); + connect(ui->showDualProgression,&QCheckBox::stateChanged,this,&ThemesFactory::updateProgressionColorBar); + connect(ui->showProgressionInTheTitle,&QCheckBox::stateChanged,this,&ThemesFactory::setShowProgressionInTheTitle); + connect(ui->progressColorWrite,&QAbstractButton::clicked,this,&ThemesFactory::progressColorWrite_clicked); + connect(ui->progressColorRead, &QAbstractButton::clicked,this,&ThemesFactory::progressColorRead_clicked); + connect(ui->progressColorRemaining,&QAbstractButton::clicked,this,&ThemesFactory::progressColorRemaining_clicked); + connect(ui->startMinimized,&QCheckBox::stateChanged,this,&ThemesFactory::startMinimized); + } + else + ULTRACOPIER_DEBUGCONSOLE(Ultracopier::DebugLevel_Critical,"internal error, crash prevented"); + ULTRACOPIER_DEBUGCONSOLE(Ultracopier::DebugLevel_Notice,"return the options"); + return tempWidget; +} + +QIcon ThemesFactory::getIcon(const QString &fileName) const +{ + if(fileName==QStringLiteral("SystemTrayIcon/exit.png")) + { + QIcon tempIcon=QIcon::fromTheme(QStringLiteral("application-exit")); + if(!tempIcon.isNull()) + return tempIcon; + } + else if(fileName==QStringLiteral("SystemTrayIcon/add.png")) + { + QIcon tempIcon=QIcon::fromTheme(QStringLiteral("list-add")); + if(!tempIcon.isNull()) + return tempIcon; + } + else if(fileName==QStringLiteral("SystemTrayIcon/informations.png")) + { + QIcon tempIcon=QIcon::fromTheme(QStringLiteral("help-about")); + if(!tempIcon.isNull()) + return tempIcon; + } + else if(fileName==QStringLiteral("SystemTrayIcon/options.png")) + { + QIcon tempIcon=QIcon::fromTheme(QStringLiteral("applications-system")); + if(!tempIcon.isNull()) + return tempIcon; + } + return QIcon(QStringLiteral(":/Themes/Oxygen/resources/")+fileName); +} + +void ThemesFactory::resetOptions() +{ + ui->checkBoxShowSpeed->setChecked(true); + ui->checkBoxStartWithMoreButtonPushed->setChecked(false); +} + +void ThemesFactory::checkBoxShowSpeedHaveChanged(bool toggled) +{ + ULTRACOPIER_DEBUGCONSOLE(Ultracopier::DebugLevel_Information,"the checkbox have changed"); + if(optionsEngine!=NULL) + optionsEngine->setOptionValue(QStringLiteral("checkBoxShowSpeed"),toggled); + else + ULTRACOPIER_DEBUGCONSOLE(Ultracopier::DebugLevel_Critical,"internal error, crash prevented"); +} + +void ThemesFactory::checkBoxStartWithMoreButtonPushedHaveChanged(bool toggled) +{ + ULTRACOPIER_DEBUGCONSOLE(Ultracopier::DebugLevel_Information,"the checkbox have changed"); + if(optionsEngine!=NULL) + optionsEngine->setOptionValue(QStringLiteral("moreButtonPushed"),toggled); + else + ULTRACOPIER_DEBUGCONSOLE(Ultracopier::DebugLevel_Critical,"internal error, crash prevented"); +} + +void ThemesFactory::comboBox_copyEnd(int value) +{ + ULTRACOPIER_DEBUGCONSOLE(Ultracopier::DebugLevel_Information,"the checkbox have changed"); + if(optionsEngine!=NULL) + optionsEngine->setOptionValue(QStringLiteral("comboBox_copyEnd"),value); + else + ULTRACOPIER_DEBUGCONSOLE(Ultracopier::DebugLevel_Critical,"internal error, crash prevented"); +} + +void ThemesFactory::speedWithProgressBar(bool toggled) +{ + ULTRACOPIER_DEBUGCONSOLE(Ultracopier::DebugLevel_Information,"the checkbox have changed"); + if(optionsEngine!=NULL) + optionsEngine->setOptionValue(QStringLiteral("speedWithProgressBar"),toggled); + else + ULTRACOPIER_DEBUGCONSOLE(Ultracopier::DebugLevel_Critical,"internal error, crash prevented"); +} + +void ThemesFactory::newLanguageLoaded() +{ + ui->retranslateUi(tempWidget); + ui->comboBox_copyEnd->setItemText(0,tr("Don't close if errors are found")); + ui->comboBox_copyEnd->setItemText(1,tr("Never close")); + ui->comboBox_copyEnd->setItemText(2,tr("Always close")); + emit reloadLanguage(); +} + +void ThemesFactory::checkBoxShowSpeed(bool checked) +{ + ULTRACOPIER_DEBUGCONSOLE(Ultracopier::DebugLevel_Notice,"start"); + Q_UNUSED(checked); + updateSpeed(); +} + +void ThemesFactory::minimizeToSystray(bool checked) +{ + ULTRACOPIER_DEBUGCONSOLE(Ultracopier::DebugLevel_Information,"the checkbox have changed"); + if(optionsEngine!=NULL) + optionsEngine->setOptionValue(QStringLiteral("minimizeToSystray"),checked); + else + ULTRACOPIER_DEBUGCONSOLE(Ultracopier::DebugLevel_Critical,"internal error, crash prevented"); +} + +void ThemesFactory::alwaysOnTop(bool checked) +{ + ULTRACOPIER_DEBUGCONSOLE(Ultracopier::DebugLevel_Information,"the checkbox have changed"); + if(optionsEngine!=NULL) + optionsEngine->setOptionValue(QStringLiteral("alwaysOnTop"),checked); + else + ULTRACOPIER_DEBUGCONSOLE(Ultracopier::DebugLevel_Critical,"internal error, crash prevented"); +} + +void ThemesFactory::showDualProgression(bool checked) +{ + ULTRACOPIER_DEBUGCONSOLE(Ultracopier::DebugLevel_Information,"the checkbox have changed"); + if(optionsEngine!=NULL) + optionsEngine->setOptionValue(QStringLiteral("showDualProgression"),checked); + else + ULTRACOPIER_DEBUGCONSOLE(Ultracopier::DebugLevel_Critical,"internal error, crash prevented"); +} + +void ThemesFactory::startMinimized(bool checked) +{ + ULTRACOPIER_DEBUGCONSOLE(Ultracopier::DebugLevel_Information,"the checkbox have changed"); + if(optionsEngine!=NULL) + optionsEngine->setOptionValue(QStringLiteral("startMinimized"),checked); + else + ULTRACOPIER_DEBUGCONSOLE(Ultracopier::DebugLevel_Critical,"internal error, crash prevented"); +} + +void ThemesFactory::on_SliderSpeed_valueChanged(int value) +{ + if(optionsEngine==NULL) + return; + if(!ui->checkBoxShowSpeed->isChecked()) + return; + ULTRACOPIER_DEBUGCONSOLE(Ultracopier::DebugLevel_Notice,QStringLiteral("value: %1").arg(value)); + switch(value) + { + case 0: + currentSpeed=0; + break; + case 1: + currentSpeed=1024; + break; + case 2: + currentSpeed=1024*4; + break; + case 3: + currentSpeed=1024*16; + break; + case 4: + currentSpeed=1024*64; + break; + case 5: + currentSpeed=1024*128; + break; + } + if(optionsEngine!=NULL) + optionsEngine->setOptionValue(QStringLiteral("currentSpeed"),currentSpeed); + else + ULTRACOPIER_DEBUGCONSOLE(Ultracopier::DebugLevel_Critical,"internal error, crash prevented"); + updateSpeed(); +} + +void ThemesFactory::uiUpdateSpeed() +{ + if(optionsEngine==NULL) + return; + if(ui->checkBoxShowSpeed->isChecked()) + return; + if(!ui->checkBox_limitSpeed->isChecked()) + currentSpeed=0; + else + currentSpeed=ui->limitSpeed->value(); + ULTRACOPIER_DEBUGCONSOLE(Ultracopier::DebugLevel_Notice,QStringLiteral("emit newSpeedLimitation(%1)").arg(currentSpeed)); + if(optionsEngine!=NULL) + optionsEngine->setOptionValue(QStringLiteral("currentSpeed"),currentSpeed); + else + ULTRACOPIER_DEBUGCONSOLE(Ultracopier::DebugLevel_Critical,"internal error, crash prevented"); +} + +void ThemesFactory::updateSpeed() +{ + if(optionsEngine==NULL) + return; + ui->label_Slider_speed->setVisible(ui->checkBoxShowSpeed->isChecked()); + ui->SliderSpeed->setVisible(ui->checkBoxShowSpeed->isChecked()); + ui->label_SpeedMaxValue->setVisible(ui->checkBoxShowSpeed->isChecked()); + ui->limitSpeed->setVisible(!ui->checkBoxShowSpeed->isChecked()); + ui->checkBox_limitSpeed->setVisible(!ui->checkBoxShowSpeed->isChecked()); + + if(ui->checkBoxShowSpeed->isChecked()) + { + ULTRACOPIER_DEBUGCONSOLE(Ultracopier::DebugLevel_Notice,QStringLiteral("checked, currentSpeed: %1").arg(currentSpeed)); + ui->limitSpeed->setEnabled(false); + if(currentSpeed==0) + { + ui->SliderSpeed->setValue(0); + ui->label_SpeedMaxValue->setText(facilityEngine->translateText("Unlimited")); + } + else if(currentSpeed<=1024) + { + if(currentSpeed!=1024) + { + currentSpeed=1024; + if(optionsEngine!=NULL) + optionsEngine->setOptionValue(QStringLiteral("currentSpeed"),currentSpeed); + else + ULTRACOPIER_DEBUGCONSOLE(Ultracopier::DebugLevel_Critical,"internal error, crash prevented"); + } + ui->SliderSpeed->setValue(1); + ui->label_SpeedMaxValue->setText(facilityEngine->speedToString((double)(1024*1024)*1)); + } + else if(currentSpeed<=1024*4) + { + if(currentSpeed!=1024*4) + { + currentSpeed=1024*4; + if(optionsEngine!=NULL) + optionsEngine->setOptionValue(QStringLiteral("currentSpeed"),currentSpeed); + else + ULTRACOPIER_DEBUGCONSOLE(Ultracopier::DebugLevel_Critical,"internal error, crash prevented"); + } + ui->SliderSpeed->setValue(2); + ui->label_SpeedMaxValue->setText(facilityEngine->speedToString((double)(1024*1024)*4)); + } + else if(currentSpeed<=1024*16) + { + if(currentSpeed!=1024*16) + { + currentSpeed=1024*16; + if(optionsEngine!=NULL) + optionsEngine->setOptionValue(QStringLiteral("currentSpeed"),currentSpeed); + else + ULTRACOPIER_DEBUGCONSOLE(Ultracopier::DebugLevel_Critical,"internal error, crash prevented"); + } + ui->SliderSpeed->setValue(3); + ui->label_SpeedMaxValue->setText(facilityEngine->speedToString((double)(1024*1024)*16)); + } + else if(currentSpeed<=1024*64) + { + if(currentSpeed!=1024*64) + { + currentSpeed=1024*64; + if(optionsEngine!=NULL) + optionsEngine->setOptionValue(QStringLiteral("currentSpeed"),currentSpeed); + else + ULTRACOPIER_DEBUGCONSOLE(Ultracopier::DebugLevel_Critical,"internal error, crash prevented"); + } + ui->SliderSpeed->setValue(4); + ui->label_SpeedMaxValue->setText(facilityEngine->speedToString((double)(1024*1024)*64)); + } + else + { + if(currentSpeed!=1024*128) + { + currentSpeed=1024*128; + if(optionsEngine!=NULL) + optionsEngine->setOptionValue(QStringLiteral("currentSpeed"),currentSpeed); + else + ULTRACOPIER_DEBUGCONSOLE(Ultracopier::DebugLevel_Critical,"internal error, crash prevented"); + } + ui->SliderSpeed->setValue(5); + ui->label_SpeedMaxValue->setText(facilityEngine->speedToString((double)(1024*1024)*128)); + } + } + else + { + ui->checkBox_limitSpeed->setChecked(currentSpeed>0); + if(currentSpeed>0) + ui->limitSpeed->setValue(currentSpeed); + ui->checkBox_limitSpeed->setEnabled(currentSpeed!=-1); + ui->limitSpeed->setEnabled(ui->checkBox_limitSpeed->isChecked()); + } +} + +void ThemesFactory::progressColorWrite_clicked() +{ + QColor color=QColorDialog::getColor(progressColorWrite,NULL,tr("Select a color")); + if(!color.isValid()) + return; + progressColorWrite=color; + QPixmap pixmap(75,20); + pixmap.fill(progressColorWrite); + ui->progressColorWrite->setIcon(pixmap); + if(optionsEngine!=NULL) + optionsEngine->setOptionValue(QStringLiteral("progressColorWrite"),progressColorWrite); + else + ULTRACOPIER_DEBUGCONSOLE(Ultracopier::DebugLevel_Critical,"internal error, crash prevented"); +} + +void ThemesFactory::progressColorRead_clicked() +{ + QColor color=QColorDialog::getColor(progressColorRead,NULL,tr("Select a color")); + if(!color.isValid()) + return; + progressColorRead=color; + QPixmap pixmap(75,20); + pixmap.fill(progressColorRead); + ui->progressColorRead->setIcon(pixmap); + if(optionsEngine!=NULL) + optionsEngine->setOptionValue(QStringLiteral("progressColorRead"),progressColorRead); + else + ULTRACOPIER_DEBUGCONSOLE(Ultracopier::DebugLevel_Critical,"internal error, crash prevented"); +} + +void ThemesFactory::progressColorRemaining_clicked() +{ + QColor color=QColorDialog::getColor(progressColorRemaining,NULL,tr("Select a color")); + if(!color.isValid()) + return; + progressColorRemaining=color; + QPixmap pixmap(75,20); + pixmap.fill(progressColorRemaining); + ui->progressColorRemaining->setIcon(pixmap); + if(optionsEngine!=NULL) + optionsEngine->setOptionValue(QStringLiteral("progressColorRemaining"),progressColorRemaining); + else + ULTRACOPIER_DEBUGCONSOLE(Ultracopier::DebugLevel_Critical,"internal error, crash prevented"); +} + +void ThemesFactory::updateProgressionColorBar() +{ + ui->labelProgressionColor->setVisible(ui->showDualProgression->isChecked()); + ui->frameProgressionColor->setVisible(ui->showDualProgression->isChecked()); +} + +void ThemesFactory::setShowProgressionInTheTitle() +{ + if(optionsEngine!=NULL) + optionsEngine->setOptionValue(QStringLiteral("showProgressionInTheTitle"),ui->showProgressionInTheTitle->isChecked()); + else + ULTRACOPIER_DEBUGCONSOLE(Ultracopier::DebugLevel_Critical,"internal error, crash prevented"); +} diff --git a/plugins/Themes/Oxygen/ThemesFactory.h b/plugins/Themes/Oxygen/ThemesFactory.h new file mode 100644 index 0000000..895e32d --- /dev/null +++ b/plugins/Themes/Oxygen/ThemesFactory.h @@ -0,0 +1,86 @@ +/** \file factory.h +\brief Define the factory, to create instance of the interface +\author alpha_one_x86 +\licence GPL3, see the file COPYING */ + +#ifndef FACTORY_H +#define FACTORY_H + +#include <QObject> +#include <QWidget> +#include <QMenu> +#include <QCloseEvent> +#include <QFile> +#include <QIcon> +#include <QColor> +#include <QPixmap> + +#include "../../../interface/PluginInterface_Themes.h" +#include "ui_themesOptions.h" +#include "interface.h" +#include "Environment.h" + +namespace Ui { + class themesOptions; +} + +/// \brief Define the factory, to create instance of the interface +class ThemesFactory : public PluginInterface_ThemesFactory +{ + Q_OBJECT + #ifndef ULTRACOPIER_PLUGIN_ALL_IN_ONE_DIRECT + Q_PLUGIN_METADATA(IID "first-world.info.ultracopier.PluginInterface.ThemesFactory/1.0.1.0" FILE "plugin.json") + Q_INTERFACES(PluginInterface_ThemesFactory) + #endif +public: + ThemesFactory(); + ~ThemesFactory(); + /// \brief to return the instance of the copy engine + PluginInterface_Themes * getInstance(); + /// \brief set the resources, to store options, to have facilityInterface + void setResources(OptionInterface * optionsEngine,const QString & + #ifdef ULTRACOPIER_PLUGIN_DEBUG + writePath + #endif + ,const QString & + #ifdef ULTRACOPIER_PLUGIN_DEBUG + pluginPath + #endif + ,FacilityInterface * facilityEngine,const bool &portableVersion); + /// \brief to get the default options widget + QWidget * options(); + /// \brief to get a resource icon + QIcon getIcon(const QString &fileName) const; +private slots: + void checkBoxShowSpeedHaveChanged(bool toggled); + void checkBoxStartWithMoreButtonPushedHaveChanged(bool toggled); + void comboBox_copyEnd(int value); + void speedWithProgressBar(bool toggled); + void checkBoxShowSpeed(bool checked); + void minimizeToSystray(bool checked); + void alwaysOnTop(bool checked); + void showDualProgression(bool checked); + void on_SliderSpeed_valueChanged(int value); + void uiUpdateSpeed(); + void updateSpeed(); + void progressColorWrite_clicked(); + void progressColorRead_clicked(); + void progressColorRemaining_clicked(); + void updateProgressionColorBar(); + void setShowProgressionInTheTitle(); + void startMinimized(bool checked); +public slots: + void resetOptions(); + void newLanguageLoaded(); +private: + OptionInterface * optionsEngine; + Ui::themesOptions *ui; + QWidget *tempWidget; + FacilityInterface * facilityEngine; + qint32 currentSpeed;///< in KB/s, assume as 0KB/s as default like every where + QColor progressColorWrite,progressColorRead,progressColorRemaining; +signals: + void reloadLanguage() const; +}; + +#endif // FACTORY_H diff --git a/plugins/Themes/Oxygen/TransferModel.cpp b/plugins/Themes/Oxygen/TransferModel.cpp index 42d2315..ff09d93 100644 --- a/plugins/Themes/Oxygen/TransferModel.cpp +++ b/plugins/Themes/Oxygen/TransferModel.cpp @@ -4,144 +4,159 @@ // Model +QIcon *TransferModel::start=NULL; +QIcon *TransferModel::stop=NULL; + TransferModel::TransferModel() { - start=QIcon(":/resources/player_play.png"); - stop=QIcon(":/resources/player_pause.png"); - currentIndexSearch=0; - haveSearchItem=false; + /// \warning to prevent Must construct a QGuiApplication before QPixmap IN STATIC WINDOWS VERSION ONLY + if(TransferModel::start==NULL) + TransferModel::start=new QIcon(QStringLiteral(":/resources/player_play.png")); + if(TransferModel::stop==NULL) + TransferModel::stop=new QIcon(QStringLiteral(":/resources/player_pause.png")); + currentIndexSearch=0; + haveSearchItem=false; + loop_size=0,index_for_loop=0; + sub_loop_size=0,sub_index_for_loop=0; + row=0,column=0; + facilityEngine=NULL; + currentIndexSearch=0; + haveSearchItem=false; + searchId=0; } int TransferModel::columnCount( const QModelIndex& parent ) const { - return parent == QModelIndex() ? COLUMN_COUNT : 0; + return parent == QModelIndex() ? COLUMN_COUNT : 0; } QVariant TransferModel::data( const QModelIndex& index, int role ) const { - int row,column; - row=index.row(); - column=index.column(); - if(index.parent()!=QModelIndex() || row < 0 || row >= transfertItemList.count() || column < 0 || column >= COLUMN_COUNT) - return QVariant(); + int row,column; + row=index.row(); + column=index.column(); + if(index.parent()!=QModelIndex() || row < 0 || row >= transfertItemList.count() || column < 0 || column >= COLUMN_COUNT) + return QVariant(); - const transfertItem& item = transfertItemList[row]; - if(role==Qt::UserRole) - return item.id; - else if(role==Qt::DisplayRole) - { - switch(column) - { - case 0: - return item.source; - break; - case 1: - return item.size; - break; - case 2: - return item.destination; - break; - default: - return QVariant(); - } - } - else if(role==Qt::DecorationRole) - { - switch(column) - { - case 0: - if(stopId.contains(item.id)) - return stop; - else if(startId.contains(item.id)) - return start; - else - return QVariant(); - break; - default: - return QVariant(); - } - } - else if(role==Qt::BackgroundRole) - { - if(!search_text.isEmpty() && (item.source.indexOf(search_text,0,Qt::CaseInsensitive)!=-1 || item.destination.indexOf(search_text,0,Qt::CaseInsensitive)!=-1)) - { - if(haveSearchItem && searchId==item.id) - return QColor(255,150,150,100); - else - return QColor(255,255,0,100); - } - else - return QVariant(); - } - return QVariant(); + const TransfertItem& item = transfertItemList.at(row); + if(role==Qt::UserRole) + return item.id; + else if(role==Qt::DisplayRole) + { + switch(column) + { + case 0: + return item.source; + break; + case 1: + return item.size; + break; + case 2: + return item.destination; + break; + default: + return QVariant(); + } + } + else if(role==Qt::DecorationRole) + { + switch(column) + { + case 0: + if(stopId.contains(item.id)) + return *stop; + else if(startId.contains(item.id)) + return *start; + else + return QVariant(); + break; + default: + return QVariant(); + } + } + else if(role==Qt::BackgroundRole) + { + if(!search_text.isEmpty() && (item.source.indexOf(search_text,0,Qt::CaseInsensitive)!=-1 || item.destination.indexOf(search_text,0,Qt::CaseInsensitive)!=-1)) + { + if(haveSearchItem && searchId==item.id) + return QColor(255,150,150,100); + else + return QColor(255,255,0,100); + } + else + return QVariant(); + } + return QVariant(); } int TransferModel::rowCount( const QModelIndex& parent ) const { - return parent == QModelIndex() ? transfertItemList.count() : 0; + return parent == QModelIndex() ? transfertItemList.count() : 0; } -quint64 TransferModel::firstId() +quint64 TransferModel::firstId() const { - if(transfertItemList.count()>0) - return transfertItemList[0].id; - else - return 0; + if(transfertItemList.count()>0) + return transfertItemList.first().id; + else + return 0; } QVariant TransferModel::headerData( int section, Qt::Orientation orientation, int role ) const { - if ( role == Qt::DisplayRole && orientation == Qt::Horizontal && section >= 0 && section < COLUMN_COUNT ) { - switch ( section ) { - case 0: - return facilityEngine->translateText("Source"); - case 1: - return facilityEngine->translateText("Size"); - case 2: - return facilityEngine->translateText("Destination"); - } - } + if(facilityEngine==NULL) + abort(); + if ( role == Qt::DisplayRole && orientation == Qt::Horizontal && section >= 0 && section < COLUMN_COUNT ) { + switch ( section ) { + case 0: + return facilityEngine->translateText(QStringLiteral("Source")); + case 1: + return facilityEngine->translateText(QStringLiteral("Size")); + case 2: + return facilityEngine->translateText(QStringLiteral("Destination")); + } + } - return QAbstractTableModel::headerData( section, orientation, role ); + return QAbstractTableModel::headerData( section, orientation, role ); } bool TransferModel::setData( const QModelIndex& index, const QVariant& value, int role ) { - row=index.row(); - column=index.column(); - if(index.parent()!=QModelIndex() || row < 0 || row >= transfertItemList.count() || column < 0 || column >= COLUMN_COUNT) - return false; + row=index.row(); + column=index.column(); + if(index.parent()!=QModelIndex() || row < 0 || row >= transfertItemList.count() || column < 0 || column >= COLUMN_COUNT) + return false; - transfertItem& item = transfertItemList[row]; - if(role==Qt::UserRole) - { - item.id=value.toULongLong(); - return true; - } - else if(role==Qt::DisplayRole) - { - switch(column) - { - case 0: - item.source=value.toString(); - emit dataChanged(index,index); - return true; - break; - case 1: - item.size=value.toString(); - emit dataChanged(index,index); - return true; - break; - case 2: - item.destination=value.toString(); - emit dataChanged(index,index); - return true; - break; - default: - return false; - } - } - return false; + TransfertItem& item = transfertItemList[row]; + if(role==Qt::UserRole) + { + item.id=value.toULongLong(); + return true; + } + else if(role==Qt::DisplayRole) + { + switch(column) + { + case 0: + item.source=value.toString(); + emit dataChanged(index,index); + return true; + break; + case 1: + item.size=value.toString(); + emit dataChanged(index,index); + return true; + break; + case 2: + item.destination=value.toString(); + emit dataChanged(index,index); + return true; + break; + default: + return false; + } + } + return false; } /* @@ -149,291 +164,407 @@ bool TransferModel::setData( const QModelIndex& index, const QVariant& value, in Return[1]: totalSize Return[2]: currentFile */ -QList<quint64> TransferModel::synchronizeItems(const QList<returnActionOnCopyList>& returnActions) +QList<quint64> TransferModel::synchronizeItems(const QList<Ultracopier::ReturnActionOnCopyList>& returnActions) { - loop_size=returnActions.size(); - index_for_loop=0; - totalFile=0; - totalSize=0; - currentFile=0; - emit layoutAboutToBeChanged(); - while(index_for_loop<loop_size) - { - const returnActionOnCopyList& action=returnActions.at(index_for_loop); - switch(action.type) - { - case AddingItem: - { - transfertItem newItem; - newItem.id=action.addAction.id; - newItem.source=action.addAction.sourceFullPath; - newItem.size=facilityEngine->sizeToString(action.addAction.size); - newItem.destination=action.addAction.destinationFullPath; - transfertItemList<<newItem; - totalFile++; - totalSize+=action.addAction.size; - ULTRACOPIER_DEBUGCONSOLE(DebugLevel_Notice,QString("id: %1, size: %2, name: %3").arg(action.addAction.id).arg(action.addAction.size).arg(action.addAction.sourceFullPath)); - } - break; - case MoveItem: - { - //bool current_entry= - if(action.userAction.position<0) - { - ULTRACOPIER_DEBUGCONSOLE(DebugLevel_Notice,QString("id: %1, position is wrong: %3").arg(action.addAction.id).arg(action.userAction.position)); - break; - } - if(action.userAction.position>(transfertItemList.size()-1)) - { - ULTRACOPIER_DEBUGCONSOLE(DebugLevel_Notice,QString("id: %1, position is wrong: %3").arg(action.addAction.id).arg(action.userAction.position)); - break; - } - if(action.userAction.moveAt<0) - { - ULTRACOPIER_DEBUGCONSOLE(DebugLevel_Notice,QString("id: %1, position is wrong: %3").arg(action.addAction.id).arg(action.userAction.position)); - break; - } - if(action.userAction.moveAt>(transfertItemList.size()-1)) - { - ULTRACOPIER_DEBUGCONSOLE(DebugLevel_Notice,QString("id: %1, position is wrong: %3").arg(action.addAction.id).arg(action.userAction.position)); - break; - } - transfertItemList.move(action.userAction.position,action.userAction.moveAt); - } - break; - case RemoveItem: - { - if(currentIndexSearch>0 && action.userAction.position<=currentIndexSearch) - currentIndexSearch--; - if(action.userAction.position<0) - { - ULTRACOPIER_DEBUGCONSOLE(DebugLevel_Notice,QString("id: %1, position is wrong: %3").arg(action.addAction.id).arg(action.userAction.position)); - break; - } - if(action.userAction.position>(transfertItemList.size()-1)) - { - ULTRACOPIER_DEBUGCONSOLE(DebugLevel_Notice,QString("id: %1, position is wrong: %3").arg(action.addAction.id).arg(action.userAction.position)); - break; - } - transfertItemList.removeAt(action.userAction.position); - currentFile++; - startId.remove(action.addAction.id); - stopId.remove(action.addAction.id); - } - break; - case PreOperation: - { - ItemOfCopyListWithMoreInformations tempItem; - tempItem.currentProgression=0; - tempItem.generalData=action.addAction; - tempItem.actionType=action.type; - internalRunningOperation[action.addAction.id]=tempItem; - ULTRACOPIER_DEBUGCONSOLE(DebugLevel_Notice,QString("set for file %1: actionType: PreOperation").arg(action.addAction.id)); - } - break; - case Transfer: - { - ULTRACOPIER_DEBUGCONSOLE(DebugLevel_Notice,QString("found entry for file %1: actionType: Transfer").arg(action.addAction.id)); - if(!startId.contains(action.addAction.id)) - startId << action.addAction.id; - stopId.remove(action.addAction.id); - if(internalRunningOperation.contains(action.addAction.id)) - internalRunningOperation[action.addAction.id].actionType=action.type; - else - ULTRACOPIER_DEBUGCONSOLE(DebugLevel_Warning,QString("unable to found entry for file %1: actionType: Transfer").arg(action.addAction.id)); - } - break; - case PostOperation: - { - if(!stopId.contains(action.addAction.id)) - stopId << action.addAction.id; - startId.remove(action.addAction.id); - internalRunningOperation.remove(action.addAction.id); - } - break; - case CustomOperation: - { - bool custom_with_progression=(action.addAction.size==1); - //without progression - if(custom_with_progression) - { - ULTRACOPIER_DEBUGCONSOLE(DebugLevel_Notice,QString("switch the file: %1 to custom operation with progression").arg(action.addAction.id)); - if(startId.remove(action.addAction.id)) - if(!stopId.contains(action.addAction.id)) - stopId << action.addAction.id; - } - //with progression - else - { - ULTRACOPIER_DEBUGCONSOLE(DebugLevel_Notice,QString("switch the file: %1 to custom operation without progression").arg(action.addAction.id)); - stopId.remove(action.addAction.id); - if(!startId.contains(action.addAction.id)) - startId << action.addAction.id; - } - if(internalRunningOperation.contains(action.addAction.id)) - { - ItemOfCopyListWithMoreInformations &item=internalRunningOperation[action.addAction.id]; - item.actionType=action.type; - item.custom_with_progression=custom_with_progression; - item.currentProgression=0; - } - } - break; - default: - //unknow code, ignore it - break; - } - index_for_loop++; - } - emit layoutChanged(); - return QList<quint64>() << totalFile << totalSize << currentFile; + const QModelIndexList oldIndexes = persistentIndexList(); + QModelIndexList newIndexes=oldIndexes; + QMap<int, quint64> oldMapping; // model index row in model before update, item id + QMap<quint64, int> newMapping; // item id, model index row in model after update + for ( int i = 0; i < oldIndexes.count(); i++ ) { + const QModelIndex& index = oldIndexes.at(i); + oldMapping[index.row()] = index.data( Qt::UserRole ).value<quint64>(); + } + + loop_size=returnActions.size(); + index_for_loop=0; + quint64 totalFile=0,totalSize=0,currentFile=0; + emit layoutAboutToBeChanged(); + while(index_for_loop<loop_size) + { + const Ultracopier::ReturnActionOnCopyList& action=returnActions.at(index_for_loop); + switch(action.type) + { + case Ultracopier::AddingItem: + { + TransfertItem newItem; + newItem.id=action.addAction.id; + newItem.source=action.addAction.sourceFullPath; + newItem.size=facilityEngine->sizeToString(action.addAction.size); + newItem.destination=action.addAction.destinationFullPath; + transfertItemList<<newItem; + totalFile++; + totalSize+=action.addAction.size; + } + break; + case Ultracopier::MoveItem: + { + //bool current_entry= + if(action.userAction.position<0) + { + ULTRACOPIER_DEBUGCONSOLE(Ultracopier::DebugLevel_Warning,QStringLiteral("id: %1, position is wrong: %2").arg(action.addAction.id).arg(action.userAction.position)); + break; + } + if(action.userAction.position>(transfertItemList.size()-1)) + { + ULTRACOPIER_DEBUGCONSOLE(Ultracopier::DebugLevel_Warning,QStringLiteral("id: %1, position is wrong: %2").arg(action.addAction.id).arg(action.userAction.position)); + break; + } + if(action.userAction.moveAt<0) + { + ULTRACOPIER_DEBUGCONSOLE(Ultracopier::DebugLevel_Warning,QStringLiteral("id: %1, position is wrong: %2").arg(action.addAction.id).arg(action.userAction.position)); + break; + } + if(action.userAction.moveAt>(transfertItemList.size()-1)) + { + ULTRACOPIER_DEBUGCONSOLE(Ultracopier::DebugLevel_Warning,QStringLiteral("id: %1, position is wrong: %2").arg(action.addAction.id).arg(action.userAction.position)); + break; + } + if(action.userAction.position==action.userAction.moveAt) + { + ULTRACOPIER_DEBUGCONSOLE(Ultracopier::DebugLevel_Warning,QStringLiteral("id: %1, move at same position: %2").arg(action.addAction.id).arg(action.userAction.position)); + break; + } + transfertItemList.move(action.userAction.position,action.userAction.moveAt); + //newIndexes.move(action.userAction.position,action.userAction.moveAt); + } + break; + case Ultracopier::RemoveItem: + { + if(currentIndexSearch>0 && action.userAction.position<=currentIndexSearch) + currentIndexSearch--; + if(action.userAction.position<0) + { + ULTRACOPIER_DEBUGCONSOLE(Ultracopier::DebugLevel_Notice,QStringLiteral("id: %1, position is wrong: %3").arg(action.addAction.id).arg(action.userAction.position)); + break; + } + if(action.userAction.position>(transfertItemList.size()-1)) + { + ULTRACOPIER_DEBUGCONSOLE(Ultracopier::DebugLevel_Notice,QStringLiteral("id: %1, position is wrong: %3").arg(action.addAction.id).arg(action.userAction.position)); + break; + } + transfertItemList.removeAt(action.userAction.position); + currentFile++; + startId.remove(action.addAction.id); + stopId.remove(action.addAction.id); + internalRunningOperation.remove(action.addAction.id); + //newIndexes.remove(action.userAction.moveAt); + } + break; + case Ultracopier::PreOperation: + { + ItemOfCopyListWithMoreInformations tempItem; + tempItem.currentReadProgression=0; + tempItem.currentWriteProgression=0; + tempItem.generalData=action.addAction; + tempItem.actionType=action.type; + internalRunningOperation[action.addAction.id]=tempItem; + } + break; + case Ultracopier::Transfer: + { + if(!startId.contains(action.addAction.id)) + startId << action.addAction.id; + stopId.remove(action.addAction.id); + if(internalRunningOperation.contains(action.addAction.id)) + internalRunningOperation[action.addAction.id].actionType=action.type; + else + ULTRACOPIER_DEBUGCONSOLE(Ultracopier::DebugLevel_Warning,QStringLiteral("unable to found entry for file %1: actionType: Transfer").arg(action.addAction.id)); + } + break; + case Ultracopier::PostOperation: + { + if(!stopId.contains(action.addAction.id)) + stopId << action.addAction.id; + startId.remove(action.addAction.id); + } + break; + case Ultracopier::CustomOperation: + { + bool custom_with_progression=(action.addAction.size==1); + //without progression + if(custom_with_progression) + { + if(startId.remove(action.addAction.id)) + if(!stopId.contains(action.addAction.id)) + stopId << action.addAction.id; + } + //with progression + else + { + stopId.remove(action.addAction.id); + if(!startId.contains(action.addAction.id)) + startId << action.addAction.id; + } + if(internalRunningOperation.contains(action.addAction.id)) + { + ItemOfCopyListWithMoreInformations &item=internalRunningOperation[action.addAction.id]; + item.actionType=action.type; + item.custom_with_progression=custom_with_progression; + item.currentReadProgression=0; + item.currentWriteProgression=0; + } + } + break; + default: + //unknow code, ignore it + break; + } + index_for_loop++; + } + + if(!oldIndexes.isEmpty()) + { + const QSet<quint64> ids = oldMapping.values().toSet(); + + for ( int i = 0; i < transfertItemList.count(); i++ ) { + const TransferModel::TransfertItem& item = transfertItemList.at(i); + + if ( ids.contains( item.id ) ) { + newMapping[ item.id ] = i; + } + } + + for ( int i = 0; i < oldIndexes.count(); i++ ) { + const QModelIndex& index = oldIndexes.at(i); + const int newRow = newMapping.value( oldMapping.value(index.row()), -1 ); + newIndexes[ i ] = newRow == -1 ? QModelIndex() : QAbstractTableModel::index( newRow, index.column(), index.parent() ); + } + } + + changePersistentIndexList( oldIndexes, newIndexes ); + emit layoutChanged(); + return QList<quint64>() << totalFile << totalSize << currentFile; } void TransferModel::setFacilityEngine(FacilityInterface * facilityEngine) { - this->facilityEngine=facilityEngine; + this->facilityEngine=facilityEngine; } int TransferModel::search(const QString &text,bool searchNext) { - emit layoutAboutToBeChanged(); - search_text=text; - emit layoutChanged(); - if(transfertItemList.size()==0) - return -1; - if(text.isEmpty()) - return -1; - if(searchNext) - { - currentIndexSearch++; - if(currentIndexSearch>=loop_size) - currentIndexSearch=0; - } - index_for_loop=0; - loop_size=transfertItemList.size(); - while(index_for_loop<loop_size) - { - if(transfertItemList.at(currentIndexSearch).source.indexOf(search_text,0,Qt::CaseInsensitive)!=-1 || transfertItemList.at(currentIndexSearch).destination.indexOf(search_text,0,Qt::CaseInsensitive)!=-1) - { - haveSearchItem=true; - searchId=transfertItemList.at(currentIndexSearch).id; - return currentIndexSearch; - } - currentIndexSearch++; - if(currentIndexSearch>=loop_size) - currentIndexSearch=0; - index_for_loop++; - } - haveSearchItem=false; - return -1; + emit layoutAboutToBeChanged(); + search_text=text; + emit layoutChanged(); + if(transfertItemList.size()==0) + return -1; + if(text.isEmpty()) + return -1; + if(searchNext) + { + currentIndexSearch++; + if(currentIndexSearch>=loop_size) + currentIndexSearch=0; + } + index_for_loop=0; + loop_size=transfertItemList.size(); + while(index_for_loop<loop_size) + { + if(transfertItemList.at(currentIndexSearch).source.indexOf(search_text,0,Qt::CaseInsensitive)!=-1 || transfertItemList.at(currentIndexSearch).destination.indexOf(search_text,0,Qt::CaseInsensitive)!=-1) + { + haveSearchItem=true; + searchId=transfertItemList.at(currentIndexSearch).id; + return currentIndexSearch; + } + currentIndexSearch++; + if(currentIndexSearch>=loop_size) + currentIndexSearch=0; + index_for_loop++; + } + haveSearchItem=false; + return -1; } int TransferModel::searchPrev(const QString &text) { - emit layoutAboutToBeChanged(); - search_text=text; - emit layoutChanged(); - if(transfertItemList.size()==0) - return -1; - if(text.isEmpty()) - return -1; - if(currentIndexSearch==0) - currentIndexSearch=loop_size-1; - else - currentIndexSearch--; - index_for_loop=0; - loop_size=transfertItemList.size(); - while(index_for_loop<loop_size) - { - if(transfertItemList.at(currentIndexSearch).source.indexOf(search_text,0,Qt::CaseInsensitive)!=-1 || transfertItemList.at(currentIndexSearch).destination.indexOf(search_text,0,Qt::CaseInsensitive)!=-1) - { - haveSearchItem=true; - searchId=transfertItemList.at(currentIndexSearch).id; - return currentIndexSearch; - } - if(currentIndexSearch==0) - currentIndexSearch=loop_size-1; - else - currentIndexSearch--; - index_for_loop++; - } - haveSearchItem=false; - return -1; + emit layoutAboutToBeChanged(); + search_text=text; + emit layoutChanged(); + if(transfertItemList.size()==0) + return -1; + if(text.isEmpty()) + return -1; + if(currentIndexSearch==0) + currentIndexSearch=loop_size-1; + else + currentIndexSearch--; + index_for_loop=0; + loop_size=transfertItemList.size(); + while(index_for_loop<loop_size) + { + if(transfertItemList.at(currentIndexSearch).source.indexOf(search_text,0,Qt::CaseInsensitive)!=-1 || transfertItemList.at(currentIndexSearch).destination.indexOf(search_text,0,Qt::CaseInsensitive)!=-1) + { + haveSearchItem=true; + searchId=transfertItemList.at(currentIndexSearch).id; + return currentIndexSearch; + } + if(currentIndexSearch==0) + currentIndexSearch=loop_size-1; + else + currentIndexSearch--; + index_for_loop++; + } + haveSearchItem=false; + return -1; } -void TransferModel::setFileProgression(QList<ProgressionItem> &progressionList) +void TransferModel::setFileProgression(QList<Ultracopier::ProgressionItem> &progressionList) { - loop_size=progressionList.size(); - index_for_loop=0; - while(index_for_loop<loop_size) - { - if(internalRunningOperation.contains(progressionList.at(index_for_loop).id)) - { - internalRunningOperation[progressionList.at(index_for_loop).id].generalData.size=progressionList.at(index_for_loop).total; - internalRunningOperation[progressionList.at(index_for_loop).id].currentProgression=progressionList.at(index_for_loop).current; - #ifdef ULTRACOPIER_PLUGIN_DEBUG - progressionList.removeAt(index_for_loop); - #endif - } - index_for_loop++; - } - #ifdef ULTRACOPIER_PLUGIN_DEBUG - if(progressionList.size()>0) - ULTRACOPIER_DEBUGCONSOLE(DebugLevel_Critical,"progression remaning items"); - #endif + loop_size=progressionList.size(); + index_for_loop=0; + while(index_for_loop<loop_size) + { + if(internalRunningOperation.contains(progressionList.at(index_for_loop).id)) + { + internalRunningOperation[progressionList.at(index_for_loop).id].generalData.size=progressionList.at(index_for_loop).total; + internalRunningOperation[progressionList.at(index_for_loop).id].currentReadProgression=progressionList.at(index_for_loop).currentRead; + internalRunningOperation[progressionList.at(index_for_loop).id].currentWriteProgression=progressionList.at(index_for_loop).currentWrite; + #ifdef ULTRACOPIER_PLUGIN_DEBUG + progressionList.removeAt(index_for_loop); + index_for_loop--; + loop_size--; + #endif + } + index_for_loop++; + } + #ifdef ULTRACOPIER_PLUGIN_DEBUG + if(progressionList.size()>0) + ULTRACOPIER_DEBUGCONSOLE(Ultracopier::DebugLevel_Notice,QStringLiteral("progression remaning items")); + #endif } -TransferModel::currentTransfertItem TransferModel::getCurrentTransfertItem() +TransferModel::currentTransfertItem TransferModel::getCurrentTransfertItem() const { - currentTransfertItem returnItem; - returnItem.haveItem=startId.size()>0; - if(returnItem.haveItem) - { - if(!internalRunningOperation.contains(*startId.constBegin())) - { - returnItem.haveItem=false; - return returnItem; - } - const ItemOfCopyListWithMoreInformations &itemTransfer=internalRunningOperation[*startId.constBegin()]; - returnItem.from=itemTransfer.generalData.sourceFullPath; - returnItem.to=itemTransfer.generalData.destinationFullPath; - returnItem.current_file=itemTransfer.generalData.destinationFileName+", "+facilityEngine->sizeToString(itemTransfer.generalData.size); - switch(itemTransfer.actionType) - { - case CustomOperation: - if(!itemTransfer.custom_with_progression) - returnItem.progressBar_file=-1; - else - { - if(itemTransfer.generalData.size>0) - returnItem.progressBar_file=((double)itemTransfer.currentProgression/itemTransfer.generalData.size)*65535; - else - returnItem.progressBar_file=-1; - } - break; - case Transfer: - if(itemTransfer.generalData.size>0) - returnItem.progressBar_file=((double)itemTransfer.currentProgression/itemTransfer.generalData.size)*65535; - else - returnItem.progressBar_file=0; - break; - //should never pass here - case PostOperation: - ULTRACOPIER_DEBUGCONSOLE(DebugLevel_Warning,QString("wrong action type for file %1: actionType: %2").arg(itemTransfer.generalData.id).arg(itemTransfer.actionType)); - returnItem.progressBar_file=65535; - break; - //should never pass here - case PreOperation: - ULTRACOPIER_DEBUGCONSOLE(DebugLevel_Warning,QString("wrong action type for file %1: actionType: %2").arg(itemTransfer.generalData.id).arg(itemTransfer.actionType)); - returnItem.progressBar_file=0; - break; - default: - returnItem.progressBar_file=0; - ULTRACOPIER_DEBUGCONSOLE(DebugLevel_Warning,QString("unknow action type for file %1: actionType: %2").arg(itemTransfer.generalData.id).arg(itemTransfer.actionType)); - break; - } - } -/* else - ULTRACOPIER_DEBUGCONSOLE(DebugLevel_Notice,QString("No have running item"));*/ - return returnItem; + currentTransfertItem returnItem; + returnItem.progressBar_read=-1; + returnItem.progressBar_write=0; + returnItem.haveItem=startId.size()>0; + if(returnItem.haveItem) + { + if(!internalRunningOperation.contains(*startId.constBegin())) + { + returnItem.haveItem=false; + return returnItem; + } + const ItemOfCopyListWithMoreInformations &itemTransfer=internalRunningOperation.value(*startId.constBegin()); + returnItem.from=itemTransfer.generalData.sourceFullPath; + returnItem.to=itemTransfer.generalData.destinationFullPath; + returnItem.current_file=itemTransfer.generalData.destinationFileName+QStringLiteral(", ")+facilityEngine->sizeToString(itemTransfer.generalData.size); + returnItem.id=itemTransfer.generalData.id; + switch(itemTransfer.actionType) + { + case Ultracopier::CustomOperation: + if(!itemTransfer.custom_with_progression) + returnItem.progressBar_read=-1; + else + { + if(itemTransfer.generalData.size>0) + { + returnItem.progressBar_read=((double)itemTransfer.currentReadProgression/itemTransfer.generalData.size)*65535; + returnItem.progressBar_write=((double)itemTransfer.currentWriteProgression/itemTransfer.generalData.size)*65535; + } + else + returnItem.progressBar_read=-1; + } + break; + case Ultracopier::Transfer: + if(itemTransfer.generalData.size>0) + { + returnItem.progressBar_read=((double)itemTransfer.currentReadProgression/itemTransfer.generalData.size)*65535; + returnItem.progressBar_write=((double)itemTransfer.currentWriteProgression/itemTransfer.generalData.size)*65535; + } + else + { + returnItem.progressBar_read=0; + returnItem.progressBar_write=0; + } + break; + //should never pass here + case Ultracopier::PostOperation: + ULTRACOPIER_DEBUGCONSOLE(Ultracopier::DebugLevel_Warning,QStringLiteral("wrong action type for file %1: actionType: %2").arg(itemTransfer.generalData.id).arg(itemTransfer.actionType)); + returnItem.progressBar_read=65535; + returnItem.progressBar_write=65535; + break; + //should never pass here + case Ultracopier::PreOperation: + ULTRACOPIER_DEBUGCONSOLE(Ultracopier::DebugLevel_Warning,QStringLiteral("wrong action type for file %1: actionType: %2").arg(itemTransfer.generalData.id).arg(itemTransfer.actionType)); + returnItem.progressBar_read=0; + returnItem.progressBar_write=0; + break; + default: + returnItem.progressBar_read=0; + returnItem.progressBar_write=0; + ULTRACOPIER_DEBUGCONSOLE(Ultracopier::DebugLevel_Warning,QStringLiteral("unknow action type for file %1: actionType: %2").arg(itemTransfer.generalData.id).arg(itemTransfer.actionType)); + break; + } + } + else + { + returnItem.haveItem=stopId.size()>0; + if(returnItem.haveItem) + { + if(!internalRunningOperation.contains(*stopId.constBegin())) + { + returnItem.haveItem=false; + return returnItem; + } + const ItemOfCopyListWithMoreInformations &itemTransfer=internalRunningOperation.value(*stopId.constBegin()); + returnItem.from=itemTransfer.generalData.sourceFullPath; + returnItem.to=itemTransfer.generalData.destinationFullPath; + returnItem.current_file=itemTransfer.generalData.destinationFileName+QStringLiteral(", ")+facilityEngine->sizeToString(itemTransfer.generalData.size); + returnItem.id=itemTransfer.generalData.id; + switch(itemTransfer.actionType) + { + case Ultracopier::CustomOperation: + if(!itemTransfer.custom_with_progression) + returnItem.progressBar_read=-1; + else + { + if(itemTransfer.generalData.size>0) + { + returnItem.progressBar_read=((double)itemTransfer.currentReadProgression/itemTransfer.generalData.size)*65535; + returnItem.progressBar_write=((double)itemTransfer.currentWriteProgression/itemTransfer.generalData.size)*65535; + } + else + returnItem.progressBar_read=-1; + } + break; + case Ultracopier::Transfer: + if(itemTransfer.generalData.size>0) + { + returnItem.progressBar_read=((double)itemTransfer.currentReadProgression/itemTransfer.generalData.size)*65535; + returnItem.progressBar_write=((double)itemTransfer.currentWriteProgression/itemTransfer.generalData.size)*65535; + } + else + { + returnItem.progressBar_read=0; + returnItem.progressBar_write=0; + } + break; + case Ultracopier::PostOperation: + ULTRACOPIER_DEBUGCONSOLE(Ultracopier::DebugLevel_Warning,QStringLiteral("wrong action type for file %1: actionType: %2").arg(itemTransfer.generalData.id).arg(itemTransfer.actionType)); + returnItem.progressBar_read=65535; + returnItem.progressBar_write=65535; + break; + //should never pass here + case Ultracopier::PreOperation: + ULTRACOPIER_DEBUGCONSOLE(Ultracopier::DebugLevel_Warning,QStringLiteral("wrong action type for file %1: actionType: %2").arg(itemTransfer.generalData.id).arg(itemTransfer.actionType)); + returnItem.progressBar_read=0; + returnItem.progressBar_write=0; + break; + default: + returnItem.progressBar_read=65535; + returnItem.progressBar_write=65535; + ULTRACOPIER_DEBUGCONSOLE(Ultracopier::DebugLevel_Warning,QStringLiteral("unknow action type for file %1: actionType: %2").arg(itemTransfer.generalData.id).arg(itemTransfer.actionType)); + break; + } + } + } + if(returnItem.haveItem && returnItem.progressBar_read!=-1 && returnItem.progressBar_write>returnItem.progressBar_read) + { + int tempVar=returnItem.progressBar_write; + returnItem.progressBar_write=returnItem.progressBar_read; + returnItem.progressBar_read=tempVar; + } + return returnItem; } diff --git a/plugins/Themes/Oxygen/TransferModel.h b/plugins/Themes/Oxygen/TransferModel.h index 913c96a..d2a4a1c 100644 --- a/plugins/Themes/Oxygen/TransferModel.h +++ b/plugins/Themes/Oxygen/TransferModel.h @@ -2,6 +2,7 @@ #define TRANSFERMODEL_H #include <QAbstractTableModel> +#include <QItemSelectionModel> #include <QModelIndex> #include <QVariant> #include <QList> @@ -17,75 +18,75 @@ /// \brief model to store the transfer list class TransferModel : public QAbstractTableModel { - Q_OBJECT + Q_OBJECT public: - /// \brief the transfer item displayed - struct transfertItem - { - quint64 id; - QString source; - QString size; - QString destination; - }; - /// \brief the transfer item with progression - struct ItemOfCopyListWithMoreInformations - { - quint64 currentProgression; - ItemOfCopyList generalData; - ActionTypeCopyList actionType; - bool custom_with_progression; - }; - /// \brief returned first transfer item - struct currentTransfertItem - { - quint64 id; - bool haveItem; - QString from; - QString to; - QString current_file; - int progressBar_file; - }; + /// \brief the transfer item displayed + struct TransfertItem + { + quint64 id; + QString source; + QString size; + QString destination; + }; + /// \brief the transfer item with progression + struct ItemOfCopyListWithMoreInformations + { + quint64 currentReadProgression,currentWriteProgression; + Ultracopier::ItemOfCopyList generalData; + Ultracopier::ActionTypeCopyList actionType; + bool custom_with_progression; + }; + /// \brief returned first transfer item + struct currentTransfertItem + { + quint64 id; + bool haveItem; + QString from; + QString to; + QString current_file; + int progressBar_read,progressBar_write; + }; - TransferModel(); + TransferModel(); - virtual int columnCount(const QModelIndex& parent = QModelIndex()) const; - virtual QVariant data(const QModelIndex& index, int role = Qt::DisplayRole) const; - virtual int rowCount(const QModelIndex& parent = QModelIndex()) const; - virtual QVariant headerData(int section, Qt::Orientation orientation, int role = Qt::DisplayRole) const; - virtual bool setData(const QModelIndex& index, const QVariant& value, int role = Qt::EditRole); - - QList<quint64> synchronizeItems(const QList<returnActionOnCopyList>& returnActions); - void setFacilityEngine(FacilityInterface * facilityEngine); + virtual int columnCount(const QModelIndex& parent = QModelIndex()) const; + virtual QVariant data(const QModelIndex& index, int role = Qt::DisplayRole) const; + virtual int rowCount(const QModelIndex& parent = QModelIndex()) const; + virtual QVariant headerData(int section, Qt::Orientation orientation, int role = Qt::DisplayRole) const; + virtual bool setData(const QModelIndex& index, const QVariant& value, int role = Qt::EditRole); - int search(const QString &text,bool searchNext); - int searchPrev(const QString &text); + QList<quint64> synchronizeItems(const QList<Ultracopier::ReturnActionOnCopyList>& returnActions); + void setFacilityEngine(FacilityInterface * facilityEngine); - void setFileProgression(QList<ProgressionItem> &progressionList); + int search(const QString &text,bool searchNext); + int searchPrev(const QString &text); - currentTransfertItem getCurrentTransfertItem(); + void setFileProgression(QList<Ultracopier::ProgressionItem> &progressionList); - quint64 firstId(); + currentTransfertItem getCurrentTransfertItem() const; + + quint64 firstId() const; protected: - QList<transfertItem> transfertItemList;///< To have a transfer list for the user - QSet<quint64> startId,stopId;///< To show what is started, what is stopped - QHash<quint64,ItemOfCopyListWithMoreInformations> internalRunningOperation;///< to have progression and stat - QIcon start,stop; + QList<TransfertItem> transfertItemList;///< To have a transfer list for the user + QSet<quint64> startId,stopId;///< To show what is started, what is stopped + QHash<quint64,ItemOfCopyListWithMoreInformations> internalRunningOperation;///< to have progression and stat private: - int loop_size,index_for_loop; - int sub_loop_size,sub_index_for_loop; - int row,column; - quint64 totalFile,totalSize,currentFile; - FacilityInterface * facilityEngine; - QString search_text; - /// \brief index from start the search, decresed by remove before it - int currentIndexSearch; - bool haveSearchItem; - quint64 searchId; + int loop_size,index_for_loop; + int sub_loop_size,sub_index_for_loop; + int row,column; + FacilityInterface * facilityEngine; + QString search_text; + /// \brief index from start the search, decresed by remove before it + int currentIndexSearch; + bool haveSearchItem; + quint64 searchId; + static QIcon *start; + static QIcon *stop; signals: - #ifdef ULTRACOPIER_PLUGIN_DEBUG - /// \brief To debug source - void debugInformation(DebugLevel level,QString fonction,QString text,QString file,int ligne); - #endif + #ifdef ULTRACOPIER_PLUGIN_DEBUG + /// \brief To debug source + void debugInformation(const Ultracopier::DebugLevel &level,QString fonction,QString text,QString file,int ligne) const; + #endif }; #endif // TRANSFERMODEL_H diff --git a/plugins/Themes/Oxygen/Variable.h b/plugins/Themes/Oxygen/Variable.h index 8179c93..8b6119b 100644 --- a/plugins/Themes/Oxygen/Variable.h +++ b/plugins/Themes/Oxygen/Variable.h @@ -1,15 +1,17 @@ /** \file Variable.h
\brief Define the environment variable
\author alpha_one_x86
-\version 0.3
-\date 2010 */
+\licence GPL3, see the file COPYING */
#ifndef VARIABLE_H
#define VARIABLE_H
+
//Un-comment this next line to put ultracopier plugin in debug mode
#define ULTRACOPIER_PLUGIN_DEBUG
+#define ULTRACOPIER_VERSION_ULTIMATE
+
#endif // VARIABLE_H
diff --git a/plugins/Themes/Oxygen/documentation.dox b/plugins/Themes/Oxygen/documentation.dox index 2c0cf64..629330b 100755..100644 --- a/plugins/Themes/Oxygen/documentation.dox +++ b/plugins/Themes/Oxygen/documentation.dox @@ -11,12 +11,12 @@ \section mainpage_overview Overview It's the default interface for Ultracopier. The first version, it's greatly inspirated by Supercopier. But have well evolued.\n - More informations on <a href="http://ultracopier-wiki.first-world.info/">the wiki of ultracopier</a>. Is part of Ultracopier 0.3 project. + More informations on <a href="http://ultracopier-wiki.first-world.info/">the wiki of ultracopier</a>. \section mainpage_platforms Platforms - This plugin might be usable in all environments where you find Qt 4.\n - To be compatible with the official Ultracopier plugins, you need compil it with Gcc, Qt4.8, and same env as Ultracopier have been compiled, see the documentation. + Ultracopier might be usable in all environments where you find Qt 5.\n + Ultracopier requires Qt 5.0 or newer. Tested on Qt 5.0. \section mainpage_downloads Downloads diff --git a/plugins/Themes/Oxygen/factory.cpp b/plugins/Themes/Oxygen/factory.cpp deleted file mode 100644 index 2e90337..0000000 --- a/plugins/Themes/Oxygen/factory.cpp +++ /dev/null @@ -1,146 +0,0 @@ -/** \file factory.cpp -\brief Define the factory core -\author alpha_one_x86 -\version 0.3 -\date 2010 */ - -#include <QtCore> - -#include "factory.h" - -Factory::Factory() -{ - optionsEngine=NULL; - tempWidget=new QWidget(); - ui=new Ui::options(); - ui->setupUi(tempWidget); -} - -Factory::~Factory() -{ -} - -PluginInterface_Themes * Factory::getInstance() -{ - ULTRACOPIER_DEBUGCONSOLE(DebugLevel_Notice,"start"); - PluginInterface_Themes * newInterface=new Themes( - optionsEngine->getOptionValue("checkBoxShowSpeed").toBool(),facilityEngine,optionsEngine->getOptionValue("moreButtonPushed").toBool() - ); - connect(newInterface,SIGNAL(debugInformation(DebugLevel,QString,QString,QString,int)),this,SIGNAL(debugInformation(DebugLevel,QString,QString,QString,int))); - connect(this,SIGNAL(reloadLanguage()),newInterface,SLOT(newLanguageLoaded())); - return newInterface; -} - -void Factory::setResources(OptionInterface * optionsEngine,const QString &writePath,const QString &pluginPath,FacilityInterface * facilityEngine,bool portableVersion) -{ - Q_UNUSED(portableVersion); - Q_UNUSED(writePath); - Q_UNUSED(pluginPath); - ULTRACOPIER_DEBUGCONSOLE(DebugLevel_Notice,"start, writePath: "+writePath+", pluginPath: "+pluginPath); - this->facilityEngine=facilityEngine; - if(optionsEngine!=NULL) - { - this->optionsEngine=optionsEngine; - //load the options - QList<QPair<QString, QVariant> > KeysList; - KeysList.append(qMakePair(QString("checkBoxShowSpeed"),QVariant(false))); - KeysList.append(qMakePair(QString("moreButtonPushed"),QVariant(false))); - optionsEngine->addOptionGroup(KeysList); - connect(optionsEngine,SIGNAL(resetOptions()),this,SLOT(resetOptions())); - } - #ifndef __GNUC__ - ULTRACOPIER_DEBUGCONSOLE(DebugLevel_Information,"__GNUC__ is set"); - #endif - #ifndef __GNUC__ - ULTRACOPIER_DEBUGCONSOLE(DebugLevel_Information,"__GNUC__ is set"); - #endif -} - -QWidget * Factory::options() -{ - if(optionsEngine!=NULL) - { - ui->checkBoxShowSpeed->setChecked(optionsEngine->getOptionValue("checkBoxShowSpeed").toBool()); - ui->checkBoxStartWithMoreButtonPushed->setChecked(optionsEngine->getOptionValue("moreButtonPushed").toBool()); - } - else - ULTRACOPIER_DEBUGCONSOLE(DebugLevel_Critical,"internal error, crash prevented"); - connect(ui->checkBoxShowSpeed,SIGNAL(toggled(bool)),this,SLOT(checkBoxShowSpeedHaveChanged(bool))); - connect(ui->checkBoxStartWithMoreButtonPushed,SIGNAL(toggled(bool)),this,SLOT(checkBoxStartWithMoreButtonPushedHaveChanged(bool))); - ULTRACOPIER_DEBUGCONSOLE(DebugLevel_Notice,"return the options"); - return tempWidget; -} - -QIcon Factory::getIcon(const QString &fileName) -{ - if(fileName=="SystemTrayIcon/exit.png") - { - QIcon tempIcon=QIcon::fromTheme("application-exit"); - if(!tempIcon.isNull()) - { - ULTRACOPIER_DEBUGCONSOLE(DebugLevel_Notice,QString("use substitution ionc for: %1").arg(fileName)); - return tempIcon; - } - } - if(fileName=="SystemTrayIcon/add.png") - { - QIcon tempIcon=QIcon::fromTheme("list-add"); - if(!tempIcon.isNull()) - { - ULTRACOPIER_DEBUGCONSOLE(DebugLevel_Notice,QString("use substitution ionc for: %1").arg(fileName)); - return tempIcon; - } - } - if(fileName=="SystemTrayIcon/informations.png") - { - QIcon tempIcon=QIcon::fromTheme("help-about"); - if(!tempIcon.isNull()) - { - ULTRACOPIER_DEBUGCONSOLE(DebugLevel_Notice,QString("use substitution ionc for: %1").arg(fileName)); - return tempIcon; - } - } - if(fileName=="SystemTrayIcon/options.png") - { - QIcon tempIcon=QIcon::fromTheme("applications-system"); - if(!tempIcon.isNull()) - { - ULTRACOPIER_DEBUGCONSOLE(DebugLevel_Notice,QString("use substitution ionc for: %1").arg(fileName)); - return tempIcon; - } - } - return QIcon(":/resources/"+fileName); -} - -void Factory::resetOptions() -{ - ui->checkBoxShowSpeed->setChecked(true); - ui->checkBoxStartWithMoreButtonPushed->setChecked(false); -} - -void Factory::checkBoxShowSpeedHaveChanged(bool toggled) -{ - ULTRACOPIER_DEBUGCONSOLE(DebugLevel_Information,"the checkbox have changed"); - if(optionsEngine!=NULL) - optionsEngine->setOptionValue("checkBoxShowSpeed",toggled); - else - ULTRACOPIER_DEBUGCONSOLE(DebugLevel_Critical,"internal error, crash prevented"); -} - -void Factory::checkBoxStartWithMoreButtonPushedHaveChanged(bool toggled) -{ - ULTRACOPIER_DEBUGCONSOLE(DebugLevel_Information,"the checkbox have changed"); - if(optionsEngine!=NULL) - optionsEngine->setOptionValue("moreButtonPushed",toggled); - else - ULTRACOPIER_DEBUGCONSOLE(DebugLevel_Critical,"internal error, crash prevented"); -} - -void Factory::newLanguageLoaded() -{ - ui->retranslateUi(tempWidget); - emit reloadLanguage(); -} - -Q_EXPORT_PLUGIN2(interface, Factory); - diff --git a/plugins/Themes/Oxygen/factory.h b/plugins/Themes/Oxygen/factory.h deleted file mode 100644 index f07b0cf..0000000 --- a/plugins/Themes/Oxygen/factory.h +++ /dev/null @@ -1,61 +0,0 @@ -/** \file factory.h -\brief Define the factory, to create instance of the interface -\author alpha_one_x86 -\version 0.3 -\date 2010 */ - -#ifndef FACTORY_H -#define FACTORY_H - -#include <QObject> -#include <QWidget> -#include <QMenu> -#include <QCloseEvent> -#include <QFile> -#include <QIcon> - -#include "../../../interface/PluginInterface_Themes.h" -#include "ui_options.h" -#include "interface.h" -#include "Environment.h" - -namespace Ui { - class options; -} - -/// \brief Define the factory, to create instance of the interface -class Factory : public PluginInterface_ThemesFactory -{ - Q_OBJECT - Q_INTERFACES(PluginInterface_ThemesFactory) -public: - Factory(); - ~Factory(); - /// \brief to return the instance of the copy engine - PluginInterface_Themes * getInstance(); - /// \brief set the resources, to store options, to have facilityInterface - void setResources(OptionInterface * optionsEngine,const QString &writePath,const QString &pluginPath,FacilityInterface * facilityEngine,bool portableVersion); - /// \brief to get the default options widget - QWidget * options(); - /// \brief to get a resource icon - QIcon getIcon(const QString &fileName); -private slots: - void checkBoxShowSpeedHaveChanged(bool toggled); - void checkBoxStartWithMoreButtonPushedHaveChanged(bool toggled); -public slots: - void resetOptions(); - void newLanguageLoaded(); -private: - OptionInterface * optionsEngine; - Ui::options *ui; - QWidget *tempWidget; - FacilityInterface * facilityEngine; -signals: - void reloadLanguage(); - #ifdef ULTRACOPIER_PLUGIN_DEBUG - /// \brief To debug source - void debugInformation(DebugLevel level,QString fonction,QString text,QString file,int ligne); - #endif -}; - -#endif // FACTORY_H diff --git a/plugins/Themes/Oxygen/informations.xml b/plugins/Themes/Oxygen/informations.xml index bf2d1e1..d81313d 100644 --- a/plugins/Themes/Oxygen/informations.xml +++ b/plugins/Themes/Oxygen/informations.xml @@ -17,11 +17,10 @@ <description xml:lang="en"><![CDATA[Oxygen style for Ultracopier]]></description> <description xml:lang="fr"><![CDATA[Style oxygen pour Ultracopier]]></description> <!-- Version of this release of this plugin, need be like that's: A.B.C.D, where A, B, C and D is number --> - <version>0.3.1.0</version> + <version>1.2.3.6</version> <!-- This internal name should never change, because it is used to detect when a particular plugin is updated. It must comprise only lower case ASCII characters (a-z), numerical digits (0-9), "-", "." or "_", and it must be be unique within the category. And have size lower than 64 char. --> <name>Oxygen</name> <!-- Dependency checking. This is used to check when a plugin may not be compatible with an updated version of either Ultracopier or another plugin. This example only checks Ultracopier. --> <dependencies><![CDATA[ - >=ultracopier-0.3.1.0 ]]></dependencies> </package>
\ No newline at end of file diff --git a/plugins/Themes/Oxygen/interface.cpp b/plugins/Themes/Oxygen/interface.cpp index f01b811..703f3b2 100755..100644 --- a/plugins/Themes/Oxygen/interface.cpp +++ b/plugins/Themes/Oxygen/interface.cpp @@ -1,860 +1,1068 @@ /** \file interface.cpp \brief Define the interface core -\author alpha_one_x86 -\version 0.3 -\date 2010 */ +\author alpha_one_x86 */ -#include <QtCore> #include <QMessageBox> +#include <QMimeData> +#include <QScrollArea> +#include <QColorDialog> +#include <QRect> +#include <QPainter> +#include <cmath> +#ifdef Q_OS_WIN + #ifndef NOMINMAX + #define NOMINMAX + #endif + #include <windows.h> +#endif #include "interface.h" #include "ui_interface.h" - -Themes::Themes(bool checkBoxShowSpeed,FacilityInterface * facilityEngine,bool moreButtonPushed) : - ui(new Ui::interfaceCopy()) -{ - this->facilityEngine=facilityEngine; - ui->setupUi(this); - ui->TransferList->setModel(&transferModel); - transferModel.setFacilityEngine(facilityEngine); - ui->tabWidget->setCurrentIndex(0); - ui->checkBoxShowSpeed->setChecked(checkBoxShowSpeed); - currentFile = 0; - totalFile = 0; - currentSize = 0; - totalSize = 0; - haveError = false; - this->show(); - menu=new QMenu(this); - ui->add->setMenu(menu); - on_checkBoxShowSpeed_toggled(ui->checkBoxShowSpeed->isChecked()); - currentSpeed = 0; - storeIsInPause = false; - isInPause(false); - modeIsForced = false; - haveStarted = false; - connect(ui->limitSpeed, SIGNAL(valueChanged(int)), this, SLOT(uiUpdateSpeed())); - connect(ui->checkBox_limitSpeed,SIGNAL(toggled(bool)), this, SLOT(uiUpdateSpeed())); - - connect(ui->actionAddFile,SIGNAL(triggered()),this,SLOT(forcedModeAddFile())); - connect(ui->actionAddFileToCopy,SIGNAL(triggered()),this,SLOT(forcedModeAddFileToCopy())); - connect(ui->actionAddFileToMove,SIGNAL(triggered()),this,SLOT(forcedModeAddFileToMove())); - connect(ui->actionAddFolderToCopy,SIGNAL(triggered()),this,SLOT(forcedModeAddFolderToCopy())); - connect(ui->actionAddFolderToMove,SIGNAL(triggered()),this,SLOT(forcedModeAddFolderToMove())); - connect(ui->actionAddFolder,SIGNAL(triggered()),this,SLOT(forcedModeAddFolder())); - - //setup the search part - closeTheSearchBox(); - TimerForSearch = new QTimer(this); - TimerForSearch->setInterval(500); - TimerForSearch->setSingleShot(true); - searchShortcut = new QShortcut(QKeySequence("Ctrl+F"),this); - searchShortcut2 = new QShortcut(QKeySequence("F3"),this); - searchShortcut3 = new QShortcut(QKeySequence("Escape"),this);//Qt::Key_Escape - - //connect the search part - connect(TimerForSearch, SIGNAL(timeout()), this, SLOT(hilightTheSearch())); - connect(searchShortcut, SIGNAL(activated()), this, SLOT(searchBoxShortcut())); - connect(searchShortcut2, SIGNAL(activated()), this, SLOT(on_pushButtonSearchNext_clicked())); - connect(ui->pushButtonCloseSearch, SIGNAL(clicked()), this, SLOT(closeTheSearchBox())); - connect(searchShortcut3, SIGNAL(activated()), this, SLOT(closeTheSearchBox())); - - //reload directly untranslatable text - newLanguageLoaded(); - - //unpush the more button - ui->moreButton->setChecked(moreButtonPushed); - on_moreButton_toggled(false); - - /// \note important for drag and drop, \see dropEvent() - setAcceptDrops(true); - - // try set the OS icon - QIcon tempIcon; - - tempIcon=QIcon::fromTheme("application-exit"); - if(!tempIcon.isNull()) - { - ui->cancelButton->setIcon(tempIcon); - ui->pushButtonCloseSearch->setIcon(tempIcon); - ui->shutdown->setIcon(tempIcon); - } - - tempIcon=QIcon::fromTheme("edit-delete"); - if(!tempIcon.isNull()) - ui->del->setIcon(tempIcon); - - tempIcon=QIcon::fromTheme("media-playback-pause"); - if(!tempIcon.isNull()) - { - player_pause=tempIcon; - ui->pauseButton->setIcon(tempIcon); - } - else - player_pause=QIcon(":/resources/player_pause.png"); - - tempIcon=QIcon::fromTheme("media-playback-play"); - if(!tempIcon.isNull()) - player_play=tempIcon; - else - player_play=QIcon(":/resources/player_play.png"); - - tempIcon=QIcon::fromTheme("media-skip-forward"); - if(!tempIcon.isNull()) - ui->skipButton->setIcon(tempIcon); - - tempIcon=QIcon::fromTheme("edit-find"); - if(!tempIcon.isNull()) - ui->searchButton->setIcon(tempIcon); - - tempIcon=QIcon::fromTheme("document-open"); - if(!tempIcon.isNull()) - ui->importTransferList->setIcon(tempIcon); - - tempIcon=QIcon::fromTheme("document-save"); - if(!tempIcon.isNull()) - ui->exportTransferList->setIcon(tempIcon); - - tempIcon=QIcon::fromTheme("list-add"); - if(!tempIcon.isNull()) - { - ui->add->setIcon(tempIcon); - ui->actionAddFile->setIcon(tempIcon); - ui->actionAddFileToCopy->setIcon(tempIcon); - ui->actionAddFileToMove->setIcon(tempIcon); - ui->actionAddFolder->setIcon(tempIcon); - ui->actionAddFolderToCopy->setIcon(tempIcon); - ui->actionAddFolderToMove->setIcon(tempIcon); - } - - shutdown=facilityEngine->haveFunctionality("shutdown"); - ui->shutdown->setVisible(shutdown); - - selectionModel=ui->TransferList->selectionModel(); - - #ifdef ULTRACOPIER_PLUGIN_DEBUG - connect(&transferModel,SIGNAL(debugInformation(DebugLevel,QString,QString,QString,int)),this,SIGNAL(debugInformation(DebugLevel,QString,QString,QString,int))); - #endif - - updateSpeed(); +#include "ThemesFactory.h" + +QIcon Themes::player_play; +QIcon Themes::player_pause; +QIcon Themes::tempExitIcon; +QIcon Themes::editDelete; +QIcon Themes::skinIcon; +QIcon Themes::editFind; +QIcon Themes::documentOpen; +QIcon Themes::documentSave; +QIcon Themes::listAdd; +bool Themes::iconLoaded=false; + +// The cmath header from MSVC does not contain round() +#if (defined(_WIN64) || defined(_WIN32)) && defined(_MSC_VER) +inline double round(double d) { + return floor( d + 0.5 ); } - -Themes::~Themes() +#endif + +Themes::Themes(const bool &alwaysOnTop, + const bool &showProgressionInTheTitle, + const QColor &progressColorWrite, + const QColor &progressColorRead, + const QColor &progressColorRemaining, + const bool &showDualProgression, + const quint8 &comboBox_copyEnd, + const bool &speedWithProgressBar, + const qint32 ¤tSpeed, + const bool &checkBoxShowSpeed, + FacilityInterface * facilityEngine, + const bool &moreButtonPushed, + const bool &minimizeToSystray, + const bool &startMinimized) : + ui(new Ui::interfaceCopy()), + uiOptions(new Ui::themesOptions()) { - ULTRACOPIER_DEBUGCONSOLE(DebugLevel_Notice,"start"); - disconnect(ui->actionAddFile); - disconnect(ui->actionAddFolder); - delete selectionModel; - delete menu; + this->facilityEngine=facilityEngine; + ui->setupUi(this); + uiOptions->setupUi(ui->optionsTab); + + currentFile = 0; + totalFile = 0; + currentSize = 0; + totalSize = 0; + getOldProgression = 200; + haveError = false; + stat = status_never_started; + modeIsForced = false; + haveStarted = false; + storeIsInPause = false; + durationStarted = false; + if(startMinimized) + this->showMinimized(); + + this->progressColorWrite = progressColorWrite; + this->progressColorRead = progressColorRead; + this->progressColorRemaining= progressColorRemaining; + this->currentSpeed = currentSpeed; + uiOptions->showProgressionInTheTitle->setChecked(showProgressionInTheTitle); + uiOptions->speedWithProgressBar->setChecked(speedWithProgressBar); + uiOptions->showDualProgression->setChecked(showDualProgression); + uiOptions->startMinimized->setEnabled(false); + uiOptions->alwaysOnTop->setChecked(alwaysOnTop); + uiOptions->minimizeToSystray->setChecked(minimizeToSystray); + //uiOptions->setupUi(ui->tabWidget->widget(ui->tabWidget->count()-1)); + uiOptions->labelStartWithMoreButtonPushed->setVisible(false); + uiOptions->checkBoxStartWithMoreButtonPushed->setVisible(false); + uiOptions->label_Slider_speed->setVisible(false); + uiOptions->SliderSpeed->setVisible(false); + uiOptions->label_SpeedMaxValue->setVisible(false); + uiOptions->comboBox_copyEnd->setCurrentIndex(comboBox_copyEnd); + speedWithProgressBar_toggled(speedWithProgressBar); + showDualProgression_toggled(showDualProgression); + QPixmap pixmap(75,20); + pixmap.fill(progressColorWrite); + uiOptions->progressColorWrite->setIcon(pixmap); + pixmap.fill(progressColorRead); + uiOptions->progressColorRead->setIcon(pixmap); + pixmap.fill(progressColorRemaining); + uiOptions->progressColorRemaining->setIcon(pixmap); + + transferModel.setFacilityEngine(facilityEngine);//need be before ui->TransferList->setModel(&transferModel); due to call of TransferModel::headerData() + ui->TransferList->setModel(&transferModel); + ui->tabWidget->setCurrentIndex(0); + uiOptions->toolBox->setCurrentIndex(0); + uiOptions->checkBoxShowSpeed->setChecked(checkBoxShowSpeed); + menu=new QMenu(this); + ui->add->setMenu(menu); + + //connect the options + checkBoxShowSpeed_toggled(uiOptions->checkBoxShowSpeed->isChecked()); + connect(uiOptions->checkBoxShowSpeed,&QCheckBox::stateChanged,this,&Themes::checkBoxShowSpeed_toggled); + connect(uiOptions->speedWithProgressBar,&QCheckBox::stateChanged,this,&Themes::speedWithProgressBar_toggled); + connect(uiOptions->showProgressionInTheTitle,&QCheckBox::stateChanged,this,&Themes::updateTitle); + connect(uiOptions->showDualProgression,&QCheckBox::stateChanged,this,&Themes::showDualProgression_toggled); + connect(uiOptions->progressColorWrite,&QAbstractButton::clicked,this,&Themes::progressColorWrite_clicked); + connect(uiOptions->progressColorRead, &QAbstractButton::clicked,this,&Themes::progressColorRead_clicked); + connect(uiOptions->progressColorRemaining,&QAbstractButton::clicked,this,&Themes::progressColorRemaining_clicked); + connect(uiOptions->alwaysOnTop,&QAbstractButton::clicked,this,&Themes::alwaysOnTop_clickedSlot); + + isInPause(false); + + connect(uiOptions->limitSpeed, static_cast<void(QSpinBox::*)(int)>(&QSpinBox::valueChanged), this, &Themes::uiUpdateSpeed); + connect(uiOptions->checkBox_limitSpeed,&QAbstractButton::toggled, this, &Themes::uiUpdateSpeed); + + connect(ui->actionAddFile,&QAction::triggered,this,&Themes::forcedModeAddFile); + connect(ui->actionAddFileToCopy,&QAction::triggered,this,&Themes::forcedModeAddFileToCopy); + connect(ui->actionAddFileToMove,&QAction::triggered,this,&Themes::forcedModeAddFileToMove); + connect(ui->actionAddFolderToCopy,&QAction::triggered,this,&Themes::forcedModeAddFolderToCopy); + connect(ui->actionAddFolderToMove,&QAction::triggered,this,&Themes::forcedModeAddFolderToMove); + connect(ui->actionAddFolder,&QAction::triggered,this,&Themes::forcedModeAddFolder); + connect(ui->exportErrorToTransferList,&QToolButton::triggered,this,&Themes::exportErrorIntoTransferList); + + //setup the search part + closeTheSearchBox(); + TimerForSearch = new QTimer(this); + TimerForSearch->setInterval(500); + TimerForSearch->setSingleShot(true); + searchShortcut = new QShortcut(QKeySequence(QKeySequence::Find),this); + searchShortcut2 = new QShortcut(QKeySequence(QKeySequence::FindNext),this); + searchShortcut3 = new QShortcut(QKeySequence(Qt::Key_Escape),this); + + //connect the search part + connect(TimerForSearch, &QTimer::timeout, this, &Themes::hilightTheSearchSlot); + connect(searchShortcut, &QShortcut::activated, this, &Themes::searchBoxShortcut); + connect(searchShortcut2, &QShortcut::activated, this, &Themes::on_pushButtonSearchNext_clicked); + connect(ui->pushButtonCloseSearch, &QPushButton::clicked, this, &Themes::closeTheSearchBox); + connect(searchShortcut3, &QShortcut::activated, this, &Themes::closeTheSearchBox); + + //reload directly untranslatable text + newLanguageLoaded(); + + //unpush the more button + ui->moreButton->setChecked(moreButtonPushed); + on_moreButton_toggled(moreButtonPushed); + + /// \note important for drag and drop, \see dropEvent() + setAcceptDrops(true); + + // try set the OS icon + if(!iconLoaded) + { + iconLoaded=true; + tempExitIcon=QIcon::fromTheme(QStringLiteral("application-exit")); + editDelete=QIcon::fromTheme(QStringLiteral("edit-delete")); + player_pause=QIcon::fromTheme(QStringLiteral("media-playback-pause")); + if(player_pause.isNull()) + player_pause=QIcon(QStringLiteral(":/Themes/Oxygen/resources/player_pause.png")); + player_play=QIcon::fromTheme(QStringLiteral("media-playback-play")); + if(player_play.isNull()) + player_play=QIcon(QStringLiteral(":/Themes/Oxygen/resources/player_play.png")); + skinIcon=QIcon::fromTheme(QStringLiteral("media-skip-forward")); + editFind=QIcon::fromTheme(QStringLiteral("edit-find")); + documentOpen=QIcon::fromTheme(QStringLiteral("document-open")); + documentSave=QIcon::fromTheme(QStringLiteral("document-save")); + listAdd=QIcon::fromTheme(QStringLiteral("list-add")); + } + if(!tempExitIcon.isNull()) + { + ui->cancelButton->setIcon(tempExitIcon); + ui->pushButtonCloseSearch->setIcon(tempExitIcon); + ui->shutdown->setIcon(tempExitIcon); + } + if(!editDelete.isNull()) + ui->del->setIcon(editDelete); + if(!player_pause.isNull()) + ui->pauseButton->setIcon(player_pause); + if(!skinIcon.isNull()) + ui->skipButton->setIcon(skinIcon); + if(!editFind.isNull()) + ui->searchButton->setIcon(editFind); + if(!documentOpen.isNull()) + ui->importTransferList->setIcon(documentOpen); + if(!documentSave.isNull()) + { + ui->exportTransferList->setIcon(documentSave); + ui->exportErrorToTransferList->setIcon(documentSave); + } + if(!listAdd.isNull()) + { + ui->add->setIcon(listAdd); + ui->actionAddFile->setIcon(listAdd); + ui->actionAddFileToCopy->setIcon(listAdd); + ui->actionAddFileToMove->setIcon(listAdd); + ui->actionAddFolder->setIcon(listAdd); + ui->actionAddFolderToCopy->setIcon(listAdd); + ui->actionAddFolderToMove->setIcon(listAdd); + } + #ifdef Q_OS_WIN32 + pixmapTop=QPixmap(QStringLiteral(":/Themes/Oxygen/resources/SystemTrayIcon/systray_Uncaught_Windows.png")); + pixmapBottom=QPixmap(QStringLiteral(":/Themes/Oxygen/resources/SystemTrayIcon/systray_Caught_Windows.png")); + #else + pixmapTop=QPixmap(QStringLiteral(":/Themes/Oxygen/resources/SystemTrayIcon/systray_Uncaught_Unix.png")); + pixmapBottom=QPixmap(QStringLiteral(":/Themes/Oxygen/resources/SystemTrayIcon/systray_Caught_Unix.png")); + #endif + + shutdown=facilityEngine->haveFunctionality(QStringLiteral("shutdown")); + ui->shutdown->setVisible(shutdown); + + selectionModel=ui->TransferList->selectionModel(); + + #ifdef ULTRACOPIER_PLUGIN_DEBUG + connect(&transferModel,&TransferModel::debugInformation,this,&Themes::debugInformation); + #endif + + updateSpeed(); + alwaysOnTop_clicked(false); + /*#ifdef Q_OS_WIN32 + uiOptions->labelAlwaysOnTop->hide(); + uiOptions->alwaysOnTop->hide(); + #endif*/ + #ifdef ULTRACOPIER_VERSION_ULTIMATE + ui->ad_ultimate->hide(); + #else + QString ultimateUrl=facilityEngine->ultimateUrl(); + if(ultimateUrl.isEmpty()) + ui->ad_ultimate->hide(); + else + ui->ad_ultimate->setText(QStringLiteral("<a href=\"%1\">%2</a>").arg(ultimateUrl).arg(tr("Buy the Ultimate version to fund development"))); + #endif + + show(); + + sysTrayIcon = new QSystemTrayIcon(this); + connect(sysTrayIcon,&QSystemTrayIcon::activated,this,&Themes::catchAction); } -void Themes::uiUpdateSpeed() +Themes::~Themes() { - if(ui->checkBoxShowSpeed->isChecked()) - return; - if(!ui->checkBox_limitSpeed->isChecked()) - currentSpeed=0; - else - currentSpeed=ui->limitSpeed->value(); - ULTRACOPIER_DEBUGCONSOLE(DebugLevel_Notice,QString("emit newSpeedLimitation(%1)").arg(currentSpeed)); - emit newSpeedLimitation(currentSpeed); + ULTRACOPIER_DEBUGCONSOLE(Ultracopier::DebugLevel_Notice,QStringLiteral("start")); + //disconnect(ui->actionAddFile); + //disconnect(ui->actionAddFolder); + delete selectionModel; + delete menu; + delete sysTrayIcon; } QWidget * Themes::getOptionsEngineWidget() { - return &optionEngineWidget; + return &optionEngineWidget; } -void Themes::getOptionsEngineEnabled(bool isEnabled) +void Themes::getOptionsEngineEnabled(const bool &isEnabled) { - if(isEnabled) - ui->tabWidget->addTab(&optionEngineWidget,facilityEngine->translateText("Copy engine")); + if(isEnabled) + { + QScrollArea *scrollArea=new QScrollArea(ui->tabWidget); + scrollArea->setWidgetResizable(true); + scrollArea->setWidget(&optionEngineWidget); + ui->tabWidget->addTab(scrollArea,facilityEngine->translateText(QStringLiteral("Copy engine"))); + } } void Themes::closeEvent(QCloseEvent *event) { - event->ignore(); - ULTRACOPIER_DEBUGCONSOLE(DebugLevel_Notice,"start"); - this->hide(); - emit cancel(); + event->ignore(); + ULTRACOPIER_DEBUGCONSOLE(Ultracopier::DebugLevel_Notice,QStringLiteral("start")); + this->hide(); + if(uiOptions->minimizeToSystray->isChecked()) + { + updateSysTrayIcon(); + sysTrayIcon->show(); + } + else + emit cancel(); } -void Themes::updateOverallInformation() +void Themes::updateSysTrayIcon() { - ui->overall->setText(tr("File %1/%2, size: %3/%4").arg(currentFile).arg(totalFile).arg(facilityEngine->sizeToString(currentSize)).arg(facilityEngine->sizeToString(totalSize))); -} - -void Themes::actionInProgess(EngineActionInProgress action) -{ - ULTRACOPIER_DEBUGCONSOLE(DebugLevel_Information,"start: "+QString::number(action)); - this->action=action; - switch(action) - { - case Copying: - case CopyingAndListing: - ui->progressBar_all->setMaximum(65535); - ui->progressBar_all->setMinimum(0); - break; - case Listing: - ui->progressBar_all->setMaximum(0); - ui->progressBar_all->setMinimum(0); - break; - case Idle: - if(haveStarted) - { - if(shutdown && ui->shutdown->isChecked()) - { - facilityEngine->callFunctionality("shutdown"); - return; - } - switch(ui->comboBox_copyEnd->currentIndex()) - { - case 2: - emit cancel(); - break; - case 0: - if(!haveError) - emit cancel(); - break; - default: - break; - } - } - break; - default: - ULTRACOPIER_DEBUGCONSOLE(DebugLevel_Critical,"Very wrong switch case!"); - break; - } - switch(action) - { - case Copying: - case CopyingAndListing: - ui->pauseButton->setEnabled(true); - haveStarted=true; - ui->cancelButton->setText(facilityEngine->translateText("Quit")); - break; - case Idle: - ui->pauseButton->setEnabled(false); - break; - default: - break; - } + if(totalSize==0) + { + sysTrayIcon->setIcon(dynaIcon(0,QStringLiteral("-"))); + return; + } + quint64 currentNew=currentSize*100; + //update systray icon + quint16 getVarProgression=currentNew/totalSize; + if(getOldProgression!=getVarProgression) + { + getOldProgression=getVarProgression; + sysTrayIcon->setIcon(dynaIcon(getVarProgression)); + } } -void Themes::newFolderListing(const QString &path) +void Themes::updateOverallInformation() { - ULTRACOPIER_DEBUGCONSOLE(DebugLevel_Notice,"start"); - if(action==Listing) - ui->from->setText(path); + if(uiOptions->showProgressionInTheTitle->isChecked()) + updateTitle(); + ui->overall->setText(tr("File %1/%2, size: %3/%4").arg(currentFile).arg(totalFile).arg(facilityEngine->sizeToString(currentSize)).arg(facilityEngine->sizeToString(totalSize))); } -void Themes::detectedSpeed(const quint64 &speed)//in byte per seconds +void Themes::actionInProgess(const Ultracopier::EngineActionInProgress &action) { - ui->currentSpeed->setText(facilityEngine->speedToString(speed)); + ULTRACOPIER_DEBUGCONSOLE(Ultracopier::DebugLevel_Information,QStringLiteral("start: ")+QString::number(action)); + this->action=action; + switch(action) + { + case Ultracopier::Copying: + case Ultracopier::CopyingAndListing: + ui->progressBar_all->setMaximum(65535); + ui->progressBar_all->setMinimum(0); + break; + case Ultracopier::Listing: + ui->progressBar_all->setMaximum(0); + ui->progressBar_all->setMinimum(0); + break; + case Ultracopier::Idle: + ui->progressBar_all->setMaximum(65535); + ui->progressBar_all->setMinimum(0); + if(haveStarted && transferModel.rowCount()<=0) + { + if(shutdown && ui->shutdown->isChecked()) + { + facilityEngine->callFunctionality(QStringLiteral("shutdown")); + return; + } + switch(uiOptions->comboBox_copyEnd->currentIndex()) + { + case 2: + emit cancel(); + break; + case 0: + if(!haveError) + emit cancel(); + else + ui->tabWidget->setCurrentWidget(ui->tab_error); + break; + default: + break; + } + stat = status_stopped; + if(durationStarted) + { + Ultracopier::TimeDecomposition time=facilityEngine->secondsToTimeDecomposition(duration.elapsed()/1000); + ui->labelTimeRemaining->setText(QStringLiteral("<html><body style=\"white-space:nowrap;\">")+facilityEngine->translateText(QStringLiteral("Completed in %1")).arg( + QString::number(time.hour)+QStringLiteral(":")+QString::number(time.minute).rightJustified(2,'0')+QStringLiteral(":")+QString::number(time.second).rightJustified(2,'0') + )+QStringLiteral("</body></html>")); + } + } + break; + default: + ULTRACOPIER_DEBUGCONSOLE(Ultracopier::DebugLevel_Critical,"Very wrong switch case!"); + break; + } + switch(action) + { + case Ultracopier::Copying: + case Ultracopier::CopyingAndListing: + ui->pauseButton->setEnabled(true); + if(!durationStarted) + { + duration.start(); + durationStarted=true; + } + haveStarted=true; + ui->cancelButton->setText(facilityEngine->translateText(QStringLiteral("Quit"))); + updatePause(); + break; + case Ultracopier::Listing: + ui->pauseButton->setEnabled(false); + haveStarted=true;//to close if skip at root folder collision + break; + case Ultracopier::Idle: + ui->pauseButton->setEnabled(false); + break; + default: + break; + } } -void Themes::remainingTime(const int &remainingSeconds) +void Themes::newFolderListing(const QString &path) { - QString labelTimeRemaining("<html><body style=\"white-space:nowrap;\">"+facilityEngine->translateText("Time remaining:")+" "); - if(remainingSeconds==-1) - labelTimeRemaining+="∞"; - else - { - TimeDecomposition time=facilityEngine->secondsToTimeDecomposition(remainingSeconds); - labelTimeRemaining+=QString::number(time.hour)+":"+QString::number(time.minute)+":"+QString::number(time.second); - } - labelTimeRemaining+="</body></html>"; - ui->labelTimeRemaining->setText(labelTimeRemaining); + QString newPath=path; + if(newPath.size()>(64+3)) + newPath=newPath.mid(0,32)+QStringLiteral("...")+newPath.mid(newPath.size()-32,32); + ULTRACOPIER_DEBUGCONSOLE(Ultracopier::DebugLevel_Notice,QStringLiteral("start")); + if(action==Ultracopier::Listing) + ui->from->setText(newPath); } -void Themes::newCollisionAction(const QString &action) +void Themes::detectedSpeed(const quint64 &speed)//in byte per seconds { - ULTRACOPIER_DEBUGCONSOLE(DebugLevel_Notice,"start"); - if(ui->comboBox_fileCollisions->findData(action)!=-1) - ui->comboBox_fileCollisions->setCurrentIndex(ui->comboBox_fileCollisions->findData(action)); + if(uiOptions->speedWithProgressBar->isChecked()) + { + quint64 tempSpeed=speed; + if(tempSpeed>999999999) + tempSpeed=999999999; + if(tempSpeed>(quint64)ui->progressBarCurrentSpeed->maximum()) + { + ULTRACOPIER_DEBUGCONSOLE(Ultracopier::DebugLevel_Notice,QStringLiteral("set max speed to: %1").arg(tempSpeed)); + ui->progressBarCurrentSpeed->setMaximum(tempSpeed); + } + ui->progressBarCurrentSpeed->setValue(tempSpeed); + ui->progressBarCurrentSpeed->setFormat(facilityEngine->speedToString(speed)); + } + else + ui->currentSpeed->setText(facilityEngine->speedToString(speed)); } -void Themes::newErrorAction(const QString &action) +void Themes::remainingTime(const int &remainingSeconds) { - ULTRACOPIER_DEBUGCONSOLE(DebugLevel_Notice,"start"); - if(ui->comboBox_copyErrors->findData(action)!=-1) - ui->comboBox_copyErrors->setCurrentIndex(ui->comboBox_copyErrors->findData(action)); + QString labelTimeRemaining(QStringLiteral("<html><body style=\"white-space:nowrap;\">")+facilityEngine->translateText(QStringLiteral("Time remaining:"))+QStringLiteral(" ")); + if(remainingSeconds==-1) + labelTimeRemaining+=QStringLiteral("∞"); + else + { + Ultracopier::TimeDecomposition time=facilityEngine->secondsToTimeDecomposition(remainingSeconds); + labelTimeRemaining+=QString::number(time.hour)+QStringLiteral(":")+QString::number(time.minute).rightJustified(2,'0')+QStringLiteral(":")+QString::number(time.second).rightJustified(2,'0'); + } + labelTimeRemaining+=QStringLiteral("</body></html>"); + ui->labelTimeRemaining->setText(labelTimeRemaining); } void Themes::errorDetected() { - haveError=true; + haveError=true; } -//speed limitation -bool Themes::setSpeedLimitation(const qint64 &speedLimitation) +/// \brief new error +void Themes::errorToRetry(const QString &source,const QString &destination,const QString &error) { - currentSpeed=speedLimitation; - updateSpeed(); - return true; + ui->errorList->addTopLevelItem(new QTreeWidgetItem(QStringList() << source << destination << error)); } -//get information about the copy -void Themes::setGeneralProgression(const quint64 ¤t,const quint64 &total) +/** \brief support speed limitation */ +void Themes::setSupportSpeedLimitation(const bool &supportSpeedLimitationBool) { - currentSize=current; - totalSize=total; - if(total>0) - { - int newIndicator=((double)current/total)*65535; - ui->progressBar_all->setValue(newIndicator); - } - else - ui->progressBar_all->setValue(0); + if(!supportSpeedLimitationBool) + { + ui->label_Slider_speed->setVisible(false); + ui->SliderSpeed->setVisible(false); + ui->label_SpeedMaxValue->setVisible(false); + uiOptions->labelShowSpeedAsMain->setVisible(false); + uiOptions->checkBoxShowSpeed->setVisible(false); + } + else + emit newSpeedLimitation(currentSpeed); } -void Themes::setFileProgression(const QList<ProgressionItem> &progressionList) -{ - QList<ProgressionItem> progressionListBis=progressionList; - transferModel.setFileProgression(progressionListBis); - updateCurrentFileInformation(); -} - -void Themes::setCollisionAction(const QList<QPair<QString,QString> > &list) +//get information about the copy +void Themes::setGeneralProgression(const quint64 ¤t,const quint64 &total) { - ui->comboBox_fileCollisions->clear(); - index=0; - loop_size=list.size(); - while(index<loop_size) - { - ui->comboBox_fileCollisions->addItem(list.at(index).first,list.at(index).second); - index++; - } + currentSize=current; + totalSize=total; + if(total>0) + { + int newIndicator=((double)current/total)*65535; + ui->progressBar_all->setValue(newIndicator); + } + else + ui->progressBar_all->setValue(0); + if(current>0) + stat = status_started; + updateOverallInformation(); + if(isHidden()) + updateSysTrayIcon(); } -void Themes::setErrorAction(const QList<QPair<QString,QString> > &list) +void Themes::setFileProgression(const QList<Ultracopier::ProgressionItem> &progressionList) { - ui->comboBox_fileCollisions->clear(); - index=0; - loop_size=list.size(); - while(index<loop_size) - { - ui->comboBox_copyErrors->addItem(list.at(index).first,list.at(index).second); - index++; - } + QList<Ultracopier::ProgressionItem> progressionListBis=progressionList; + transferModel.setFileProgression(progressionListBis); + updateCurrentFileInformation(); } //edit the transfer list /// \todo check and re-enable to selection -void Themes::getActionOnList(const QList<returnActionOnCopyList> &returnActions) +void Themes::getActionOnList(const QList<Ultracopier::ReturnActionOnCopyList> &returnActions) { - ULTRACOPIER_DEBUGCONSOLE(DebugLevel_Notice,"start, returnActions.size(): "+QString::number(returnActions.size())); - QList<quint64> returnValue=transferModel.synchronizeItems(returnActions); - totalFile+=returnValue[0]; - totalSize+=returnValue[1]; - currentFile+=returnValue[2]; - if(transferModel.rowCount()==0) - { - ui->skipButton->setEnabled(false); - ui->progressBar_all->setValue(65535); - ui->progressBar_file->setValue(65535); - currentSize=totalSize; - } - else - ui->skipButton->setEnabled(true); - updateOverallInformation(); - ULTRACOPIER_DEBUGCONSOLE(DebugLevel_Notice,"transferModel.rowCount(): "+QString::number(transferModel.rowCount())); + ULTRACOPIER_DEBUGCONSOLE(Ultracopier::DebugLevel_Notice,QStringLiteral("start, returnActions.size(): ")+QString::number(returnActions.size())); + QList<quint64> returnValue=transferModel.synchronizeItems(returnActions); + totalFile+=returnValue.first(); + totalSize+=returnValue.at(1); + currentFile+=returnValue.last(); + if(transferModel.rowCount()==0) + { + ui->skipButton->setEnabled(false); + ui->progressBar_all->setValue(65535); + ui->progressBar_file->setValue(65535); + currentSize=totalSize; + if(isHidden()) + updateSysTrayIcon(); + } + else + ui->skipButton->setEnabled(true); + updateOverallInformation(); + ULTRACOPIER_DEBUGCONSOLE(Ultracopier::DebugLevel_Notice,QStringLiteral("transferModel.rowCount(): ")+QString::number(transferModel.rowCount())); } -void Themes::setCopyType(CopyType type) +void Themes::setCopyType(const Ultracopier::CopyType &type) { - ULTRACOPIER_DEBUGCONSOLE(DebugLevel_Notice,"start"); - this->type=type; - updateModeAndType(); + ULTRACOPIER_DEBUGCONSOLE(Ultracopier::DebugLevel_Notice,QStringLiteral("start")); + this->type=type; + updateModeAndType(); } -void Themes::forceCopyMode(CopyMode mode) +void Themes::forceCopyMode(const Ultracopier::CopyMode &mode) { - ULTRACOPIER_DEBUGCONSOLE(DebugLevel_Notice,"start"); - modeIsForced=true; - this->mode=mode; - if(mode==Copy) - this->setWindowTitle("Ultracopier - "+facilityEngine->translateText("Copy")); - else - this->setWindowTitle("Ultracopier - "+facilityEngine->translateText("Move")); - updateModeAndType(); + ULTRACOPIER_DEBUGCONSOLE(Ultracopier::DebugLevel_Notice,QStringLiteral("start")); + modeIsForced=true; + this->mode=mode; + if(mode==Ultracopier::Copy) + ui->tabWidget->setTabText(0,tr("Copy list")); + else + ui->tabWidget->setTabText(0,tr("Move list")); + updateModeAndType(); + updateTitle(); } -void Themes::setTransferListOperation(TransferListOperation transferListOperation) +void Themes::setTransferListOperation(const Ultracopier::TransferListOperation &transferListOperation) { - ui->exportTransferList->setVisible(transferListOperation & TransferListOperation_Export); - ui->importTransferList->setVisible(transferListOperation & TransferListOperation_Import); + ui->exportTransferList->setVisible(transferListOperation & Ultracopier::TransferListOperation_Export); + ui->importTransferList->setVisible(transferListOperation & Ultracopier::TransferListOperation_Import); } void Themes::haveExternalOrder() { - ULTRACOPIER_DEBUGCONSOLE(DebugLevel_Notice,"start"); + ULTRACOPIER_DEBUGCONSOLE(Ultracopier::DebugLevel_Notice,QStringLiteral("start")); // ui->moreButton->toggle(); } -void Themes::isInPause(bool isInPause) +void Themes::isInPause(const bool &isInPause) { - ULTRACOPIER_DEBUGCONSOLE(DebugLevel_Notice,"isInPause: "+QString::number(isInPause)); - //resume in auto the pause - storeIsInPause=isInPause; - if(isInPause) - { - ui->pauseButton->setIcon(player_play); - ui->pauseButton->setText(facilityEngine->translateText("Resume")); - } - else - { - ui->pauseButton->setIcon(player_pause); - if(haveStarted) - ui->pauseButton->setText(facilityEngine->translateText("Pause")); - else - ui->pauseButton->setText(facilityEngine->translateText("Start")); - } + ULTRACOPIER_DEBUGCONSOLE(Ultracopier::DebugLevel_Notice,QStringLiteral("isInPause: ")+QString::number(isInPause)); + //resume in auto the pause + storeIsInPause=isInPause; + updatePause(); +} + +void Themes::updatePause() +{ + if(storeIsInPause) + { + ui->pauseButton->setIcon(player_play); + if(stat == status_started) + ui->pauseButton->setText(facilityEngine->translateText(QStringLiteral("Resume"))); + else + ui->pauseButton->setText(facilityEngine->translateText(QStringLiteral("Start"))); + } + else + { + ui->pauseButton->setIcon(player_pause); + ui->pauseButton->setText(facilityEngine->translateText(QStringLiteral("Pause"))); + } } void Themes::updateCurrentFileInformation() { - TransferModel::currentTransfertItem transfertItem=transferModel.getCurrentTransfertItem(); - if(transfertItem.haveItem) - { - ui->from->setText(transfertItem.from); - ui->to->setText(transfertItem.to); - ui->current_file->setText(transfertItem.current_file); - if(transfertItem.progressBar_file!=-1) - { - ui->progressBar_file->setRange(0,65535); - ui->progressBar_file->setValue(transfertItem.progressBar_file); - } - else - ui->progressBar_file->setRange(0,0); - } - else - { - ui->from->setText(""); - ui->to->setText(""); - ui->current_file->setText("-"); - if(haveStarted && transferModel.rowCount()==0) - ui->progressBar_file->setValue(65535); - else if(!haveStarted) - ui->progressBar_file->setValue(0); - } + TransferModel::currentTransfertItem transfertItem=transferModel.getCurrentTransfertItem(); + if(transfertItem.haveItem) + { + QString newPath=transfertItem.from; + if(newPath.size()>(64+3)) + newPath=newPath.mid(0,32)+QStringLiteral("...")+newPath.mid(newPath.size()-32,32); + ui->from->setText(newPath); + newPath=transfertItem.to; + if(newPath.size()>(64+3)) + newPath=newPath.mid(0,32)+QStringLiteral("...")+newPath.mid(newPath.size()-32,32); + ui->to->setText(newPath); + ui->current_file->setText(transfertItem.current_file); + if(transfertItem.progressBar_read!=-1) + { + ui->progressBar_file->setRange(0,65535); + if(uiOptions->showDualProgression->isChecked()) + { + if(transfertItem.progressBar_read!=transfertItem.progressBar_write) + { + float permilleread=round((float)transfertItem.progressBar_read/65535*1000)/1000; + float permillewrite=permilleread-0.001; + ui->progressBar_file->setStyleSheet(QStringLiteral("QProgressBar{border: 1px solid grey;text-align: center;background-color: qlineargradient(spread:pad, x1:%1, y1:0, x2:%2, y2:0, stop:0 %3, stop:1 %4);}QProgressBar::chunk{background-color:%5;}") + .arg(permilleread) + .arg(permillewrite) + .arg(progressColorRemaining.name()) + .arg(progressColorRead.name()) + .arg(progressColorWrite.name()) + ); + } + else + ui->progressBar_file->setStyleSheet(QStringLiteral("QProgressBar{border:1px solid grey;text-align:center;background-color:%1;}QProgressBar::chunk{background-color:%2;}") + .arg(progressColorRemaining.name()) + .arg(progressColorWrite.name()) + ); + ui->progressBar_file->setValue(transfertItem.progressBar_write); + } + else + ui->progressBar_file->setValue((transfertItem.progressBar_read+transfertItem.progressBar_write)/2); + } + else + ui->progressBar_file->setRange(0,0); + } + else + { + ui->from->setText(QStringLiteral("")); + ui->to->setText(QStringLiteral("")); + ui->current_file->setText(QStringLiteral("-")); + if(haveStarted && transferModel.rowCount()==0) + ui->progressBar_file->setValue(65535); + else if(!haveStarted) + ui->progressBar_file->setValue(0); + } } void Themes::on_putOnTop_clicked() { - ULTRACOPIER_DEBUGCONSOLE(DebugLevel_Notice,"start"); - selectedItems=selectionModel->selectedRows(); - ids.clear(); - index=0; - loop_size=selectedItems.size(); - while(index<loop_size) - { - ids << transferModel.data(selectedItems.at(index),Qt::UserRole).toULongLong(); - index++; - } - if(ids.size()>0) - emit moveItemsOnTop(ids); + ULTRACOPIER_DEBUGCONSOLE(Ultracopier::DebugLevel_Notice,QStringLiteral("start")); + selectedItems=selectionModel->selectedRows(); + QList<int> ids; + int index=0; + const int &loop_size=selectedItems.size(); + while(index<loop_size) + { + ids << transferModel.data(selectedItems.at(index),Qt::UserRole).toULongLong(); + index++; + } + if(ids.size()>0) + emit moveItemsOnTop(ids); } void Themes::on_pushUp_clicked() { - ULTRACOPIER_DEBUGCONSOLE(DebugLevel_Notice,"start"); - selectedItems=selectionModel->selectedRows(); - ids.clear(); - index=0; - loop_size=selectedItems.size(); - while(index<loop_size) - { - ids << transferModel.data(selectedItems.at(index),Qt::UserRole).toULongLong(); - index++; - } - if(ids.size()>0) - emit moveItemsUp(ids); + ULTRACOPIER_DEBUGCONSOLE(Ultracopier::DebugLevel_Notice,QStringLiteral("start")); + selectedItems=selectionModel->selectedRows(); + QList<int> ids; + int index=0; + const int &loop_size=selectedItems.size(); + while(index<loop_size) + { + ids << transferModel.data(selectedItems.at(index),Qt::UserRole).toULongLong(); + index++; + } + if(ids.size()>0) + emit moveItemsUp(ids); } void Themes::on_pushDown_clicked() { - ULTRACOPIER_DEBUGCONSOLE(DebugLevel_Notice,"start"); - selectedItems=selectionModel->selectedRows(); - ids.clear(); - index=0; - loop_size=selectedItems.size(); - while(index<loop_size) - { - ids << transferModel.data(selectedItems.at(index),Qt::UserRole).toULongLong(); - index++; - } - if(ids.size()>0) - emit moveItemsDown(ids); + ULTRACOPIER_DEBUGCONSOLE(Ultracopier::DebugLevel_Notice,QStringLiteral("start")); + selectedItems=selectionModel->selectedRows(); + QList<int> ids; + int index=0; + const int &loop_size=selectedItems.size(); + while(index<loop_size) + { + ids << transferModel.data(selectedItems.at(index),Qt::UserRole).toULongLong(); + index++; + } + if(ids.size()>0) + emit moveItemsDown(ids); } void Themes::on_putOnBottom_clicked() { - ULTRACOPIER_DEBUGCONSOLE(DebugLevel_Notice,"start"); - selectedItems=selectionModel->selectedRows(); - ids.clear(); - index=0; - loop_size=selectedItems.size(); - while(index<loop_size) - { - ids << transferModel.data(selectedItems.at(index),Qt::UserRole).toULongLong(); - index++; - } - if(ids.size()>0) - emit moveItemsOnBottom(ids); + ULTRACOPIER_DEBUGCONSOLE(Ultracopier::DebugLevel_Notice,QStringLiteral("start")); + selectedItems=selectionModel->selectedRows(); + QList<int> ids; + int index=0; + const int &loop_size=selectedItems.size(); + while(index<loop_size) + { + ids << transferModel.data(selectedItems.at(index),Qt::UserRole).toULongLong(); + index++; + } + if(ids.size()>0) + emit moveItemsOnBottom(ids); } void Themes::on_del_clicked() { - ULTRACOPIER_DEBUGCONSOLE(DebugLevel_Notice,"start"); - selectedItems=selectionModel->selectedRows(); - ids.clear(); - index=0; - loop_size=selectedItems.size(); - while(index<loop_size) - { - ids << transferModel.data(selectedItems.at(index),Qt::UserRole).toULongLong(); - index++; - } - if(ids.size()>0) - emit removeItems(ids); + ULTRACOPIER_DEBUGCONSOLE(Ultracopier::DebugLevel_Notice,QStringLiteral("start")); + selectedItems=selectionModel->selectedRows(); + QList<int> ids; + int index=0; + const int &loop_size=selectedItems.size(); + while(index<loop_size) + { + ids << transferModel.data(selectedItems.at(index),Qt::UserRole).toULongLong(); + index++; + } + if(ids.size()>0) + emit removeItems(ids); } void Themes::on_cancelButton_clicked() { - ULTRACOPIER_DEBUGCONSOLE(DebugLevel_Notice,"start"); - this->hide(); - emit cancel(); + ULTRACOPIER_DEBUGCONSOLE(Ultracopier::DebugLevel_Notice,QStringLiteral("start")); + this->hide(); + emit cancel(); +} + + +void Themes::speedWithProgressBar_toggled(bool checked) +{ + ULTRACOPIER_DEBUGCONSOLE(Ultracopier::DebugLevel_Notice,QStringLiteral("start")); + ui->progressBarCurrentSpeed->setVisible(checked); + ui->currentSpeed->setVisible(!checked); } -void Themes::on_checkBoxShowSpeed_toggled(bool checked) +void Themes::showDualProgression_toggled(bool checked) { - Q_UNUSED(checked); - updateSpeed(); + Q_UNUSED(checked); + ULTRACOPIER_DEBUGCONSOLE(Ultracopier::DebugLevel_Notice,QStringLiteral("start")); + updateProgressionColorBar(); +} + +void Themes::checkBoxShowSpeed_toggled(bool checked) +{ + ULTRACOPIER_DEBUGCONSOLE(Ultracopier::DebugLevel_Notice,QStringLiteral("start")); + Q_UNUSED(checked); + updateSpeed(); } void Themes::on_SliderSpeed_valueChanged(int value) { - if(!ui->checkBoxShowSpeed->isChecked()) - return; - switch(value) - { - case 0: - currentSpeed=0; - break; - case 1: - currentSpeed=1024; - break; - case 2: - currentSpeed=1024*4; - break; - case 3: - currentSpeed=1024*16; - break; - case 4: - currentSpeed=1024*64; - break; - case 5: - currentSpeed=1024*128; - break; - } - ULTRACOPIER_DEBUGCONSOLE(DebugLevel_Notice,QString("value: %1").arg(value)); - emit newSpeedLimitation(currentSpeed); - updateSpeed(); + if(!uiOptions->checkBoxShowSpeed->isChecked()) + return; + switch(value) + { + case 0: + currentSpeed=0; + break; + case 1: + currentSpeed=1024; + break; + case 2: + currentSpeed=1024*4; + break; + case 3: + currentSpeed=1024*16; + break; + case 4: + currentSpeed=1024*64; + break; + case 5: + currentSpeed=1024*128; + break; + } + ULTRACOPIER_DEBUGCONSOLE(Ultracopier::DebugLevel_Notice,QStringLiteral("value: %1").arg(value)); + emit newSpeedLimitation(currentSpeed); + updateSpeed(); +} + +void Themes::uiUpdateSpeed() +{ + if(uiOptions->checkBoxShowSpeed->isChecked()) + return; + if(!uiOptions->checkBox_limitSpeed->isChecked()) + currentSpeed=0; + else + currentSpeed=uiOptions->limitSpeed->value(); + ULTRACOPIER_DEBUGCONSOLE(Ultracopier::DebugLevel_Notice,QStringLiteral("emit newSpeedLimitation(%1)").arg(currentSpeed)); + emit newSpeedLimitation(currentSpeed); } void Themes::updateSpeed() { - ui->groupBoxSpeedLimit->setVisible(!ui->checkBoxShowSpeed->isChecked()); - ui->label_Slider_speed->setVisible(ui->checkBoxShowSpeed->isChecked()); - ui->SliderSpeed->setVisible(ui->checkBoxShowSpeed->isChecked()); - ui->label_SpeedMaxValue->setVisible(ui->checkBoxShowSpeed->isChecked()); - - if(ui->checkBoxShowSpeed->isChecked()) - { - ULTRACOPIER_DEBUGCONSOLE(DebugLevel_Notice,"checked"); - ui->limitSpeed->setEnabled(false); - if(currentSpeed==0) - { - ui->SliderSpeed->setValue(0); - ui->label_SpeedMaxValue->setText(facilityEngine->translateText("Unlimited")); - } - else if(currentSpeed<=1024) - { - if(currentSpeed!=1024) - { - currentSpeed=1024; - emit newSpeedLimitation(currentSpeed); - } - ui->SliderSpeed->setValue(1); - ui->label_SpeedMaxValue->setText(facilityEngine->speedToString((double)(1024*1024)*1)); - } - else if(currentSpeed<=1024*4) - { - if(currentSpeed!=1024*4) - { - currentSpeed=1024*4; - emit newSpeedLimitation(currentSpeed); - } - ui->SliderSpeed->setValue(2); - ui->label_SpeedMaxValue->setText(facilityEngine->speedToString((double)(1024*1024)*4)); - } - else if(currentSpeed<=1024*16) - { - if(currentSpeed!=1024*16) - { - currentSpeed=1024*16; - emit newSpeedLimitation(currentSpeed); - } - ui->SliderSpeed->setValue(3); - ui->label_SpeedMaxValue->setText(facilityEngine->speedToString((double)(1024*1024)*16)); - } - else if(currentSpeed<=1024*64) - { - if(currentSpeed!=1024*64) - { - currentSpeed=1024*64; - emit newSpeedLimitation(currentSpeed); - } - ui->SliderSpeed->setValue(4); - ui->label_SpeedMaxValue->setText(facilityEngine->speedToString((double)(1024*1024)*64)); - } - else - { - if(currentSpeed!=1024*128) - { - currentSpeed=1024*128; - emit newSpeedLimitation(currentSpeed); - } - ui->SliderSpeed->setValue(5); - ui->label_SpeedMaxValue->setText(facilityEngine->speedToString((double)(1024*1024)*128)); - } - } - else - { - ui->checkBox_limitSpeed->setChecked(currentSpeed>0); - if(currentSpeed>0) - ui->limitSpeed->setValue(currentSpeed); - ui->checkBox_limitSpeed->setEnabled(currentSpeed!=-1); - ui->limitSpeed->setEnabled(ui->checkBox_limitSpeed->isChecked()); - } + ui->label_Slider_speed->setVisible(uiOptions->checkBoxShowSpeed->isChecked()); + ui->SliderSpeed->setVisible(uiOptions->checkBoxShowSpeed->isChecked()); + ui->label_SpeedMaxValue->setVisible(uiOptions->checkBoxShowSpeed->isChecked()); + uiOptions->limitSpeed->setVisible(!uiOptions->checkBoxShowSpeed->isChecked()); + uiOptions->checkBox_limitSpeed->setVisible(!uiOptions->checkBoxShowSpeed->isChecked()); + + if(uiOptions->checkBoxShowSpeed->isChecked()) + { + ULTRACOPIER_DEBUGCONSOLE(Ultracopier::DebugLevel_Notice,QStringLiteral("checked, currentSpeed: %1").arg(currentSpeed)); + uiOptions->limitSpeed->setEnabled(false); + if(currentSpeed==0) + { + ui->SliderSpeed->setValue(0); + ui->label_SpeedMaxValue->setText(facilityEngine->translateText(QStringLiteral("Unlimited"))); + } + else if(currentSpeed<=1024) + { + if(currentSpeed!=1024) + { + currentSpeed=1024; + emit newSpeedLimitation(currentSpeed); + } + ui->SliderSpeed->setValue(1); + ui->label_SpeedMaxValue->setText(facilityEngine->speedToString((double)(1024*1024)*1)); + } + else if(currentSpeed<=1024*4) + { + if(currentSpeed!=1024*4) + { + currentSpeed=1024*4; + emit newSpeedLimitation(currentSpeed); + } + ui->SliderSpeed->setValue(2); + ui->label_SpeedMaxValue->setText(facilityEngine->speedToString((double)(1024*1024)*4)); + } + else if(currentSpeed<=1024*16) + { + if(currentSpeed!=1024*16) + { + currentSpeed=1024*16; + emit newSpeedLimitation(currentSpeed); + } + ui->SliderSpeed->setValue(3); + ui->label_SpeedMaxValue->setText(facilityEngine->speedToString((double)(1024*1024)*16)); + } + else if(currentSpeed<=1024*64) + { + if(currentSpeed!=1024*64) + { + currentSpeed=1024*64; + emit newSpeedLimitation(currentSpeed); + } + ui->SliderSpeed->setValue(4); + ui->label_SpeedMaxValue->setText(facilityEngine->speedToString((double)(1024*1024)*64)); + } + else + { + if(currentSpeed!=1024*128) + { + currentSpeed=1024*128; + emit newSpeedLimitation(currentSpeed); + } + ui->SliderSpeed->setValue(5); + ui->label_SpeedMaxValue->setText(facilityEngine->speedToString((double)(1024*1024)*128)); + } + } + else + { + uiOptions->checkBox_limitSpeed->setChecked(currentSpeed>0); + if(currentSpeed>0) + uiOptions->limitSpeed->setValue(currentSpeed); + uiOptions->checkBox_limitSpeed->setEnabled(currentSpeed!=-1); + uiOptions->limitSpeed->setEnabled(uiOptions->checkBox_limitSpeed->isChecked()); + } } void Themes::on_pauseButton_clicked() { - ULTRACOPIER_DEBUGCONSOLE(DebugLevel_Notice,"start"); - if(storeIsInPause) - emit resume(); - else - emit pause(); + ULTRACOPIER_DEBUGCONSOLE(Ultracopier::DebugLevel_Notice,QStringLiteral("start")); + if(storeIsInPause) + emit resume(); + else + emit pause(); } void Themes::on_skipButton_clicked() { - TransferModel::currentTransfertItem transfertItem=transferModel.getCurrentTransfertItem(); - if(transfertItem.haveItem) - { - ULTRACOPIER_DEBUGCONSOLE(DebugLevel_Notice,QString("skip at running: %1").arg(transfertItem.id)); - emit skip(transfertItem.id); - } - else - { - if(transferModel.rowCount()>1) - { - ULTRACOPIER_DEBUGCONSOLE(DebugLevel_Notice,QString("skip at idle: %1").arg(transferModel.firstId())); - emit skip(transferModel.firstId()); - } - else - ULTRACOPIER_DEBUGCONSOLE(DebugLevel_Critical,"unable to skip the transfer, because no transfer running"); - } + TransferModel::currentTransfertItem transfertItem=transferModel.getCurrentTransfertItem(); + if(transfertItem.haveItem) + { + ULTRACOPIER_DEBUGCONSOLE(Ultracopier::DebugLevel_Notice,QStringLiteral("skip at running: %1").arg(transfertItem.id)); + emit skip(transfertItem.id); + } + else + { + if(transferModel.rowCount()>1) + { + ULTRACOPIER_DEBUGCONSOLE(Ultracopier::DebugLevel_Notice,QStringLiteral("skip at idle: %1").arg(transferModel.firstId())); + emit skip(transferModel.firstId()); + } + else + ULTRACOPIER_DEBUGCONSOLE(Ultracopier::DebugLevel_Critical,"unable to skip the transfer, because no transfer running"); + } } void Themes::updateModeAndType() { - menu->clear(); - if(modeIsForced) - { - menu->addAction(ui->actionAddFile); - if(type==FileAndFolder) - menu->addAction(ui->actionAddFolder); - } - else - { - menu->addAction(ui->actionAddFileToCopy); - menu->addAction(ui->actionAddFileToMove); - if(type==FileAndFolder) - { - menu->addAction(ui->actionAddFolderToCopy); - menu->addAction(ui->actionAddFolderToMove); - } - } + menu->clear(); + if(modeIsForced) + { + menu->addAction(ui->actionAddFile); + if(type==Ultracopier::FileAndFolder) + menu->addAction(ui->actionAddFolder); + } + else + { + menu->addAction(ui->actionAddFileToCopy); + menu->addAction(ui->actionAddFileToMove); + if(type==Ultracopier::FileAndFolder) + { + menu->addAction(ui->actionAddFolderToCopy); + menu->addAction(ui->actionAddFolderToMove); + } + } } void Themes::forcedModeAddFile() { - ULTRACOPIER_DEBUGCONSOLE(DebugLevel_Notice,"start"); - emit userAddFile(mode); + ULTRACOPIER_DEBUGCONSOLE(Ultracopier::DebugLevel_Notice,QStringLiteral("start")); + emit userAddFile(mode); } void Themes::forcedModeAddFolder() { - ULTRACOPIER_DEBUGCONSOLE(DebugLevel_Notice,"start"); - emit userAddFolder(mode); + ULTRACOPIER_DEBUGCONSOLE(Ultracopier::DebugLevel_Notice,QStringLiteral("start")); + emit userAddFolder(mode); } void Themes::forcedModeAddFileToCopy() { - ULTRACOPIER_DEBUGCONSOLE(DebugLevel_Notice,"start"); - emit userAddFile(Copy); + ULTRACOPIER_DEBUGCONSOLE(Ultracopier::DebugLevel_Notice,QStringLiteral("start")); + emit userAddFile(Ultracopier::Copy); } void Themes::forcedModeAddFolderToCopy() { - ULTRACOPIER_DEBUGCONSOLE(DebugLevel_Notice,"start"); - emit userAddFolder(Copy); + ULTRACOPIER_DEBUGCONSOLE(Ultracopier::DebugLevel_Notice,QStringLiteral("start")); + emit userAddFolder(Ultracopier::Copy); } void Themes::forcedModeAddFileToMove() { - ULTRACOPIER_DEBUGCONSOLE(DebugLevel_Notice,"start"); - emit userAddFile(Move); + ULTRACOPIER_DEBUGCONSOLE(Ultracopier::DebugLevel_Notice,QStringLiteral("start")); + emit userAddFile(Ultracopier::Move); } void Themes::forcedModeAddFolderToMove() { - ULTRACOPIER_DEBUGCONSOLE(DebugLevel_Notice,"start"); - emit userAddFolder(Move); + ULTRACOPIER_DEBUGCONSOLE(Ultracopier::DebugLevel_Notice,QStringLiteral("start")); + emit userAddFolder(Ultracopier::Move); } void Themes::newLanguageLoaded() { - ULTRACOPIER_DEBUGCONSOLE(DebugLevel_Notice,"start"); - if(modeIsForced) - forceCopyMode(mode); - ui->retranslateUi(this); - if(!haveStarted) - ui->current_file->setText(tr("File Name, 0KB")); - else - updateCurrentFileInformation(); - updateOverallInformation(); - updateSpeed(); - ui->tabWidget->setTabText(4,facilityEngine->translateText("Copy engine")); - on_moreButton_toggled(ui->moreButton->isChecked()); + ULTRACOPIER_DEBUGCONSOLE(Ultracopier::DebugLevel_Notice,QStringLiteral("start")); + if(modeIsForced) + forceCopyMode(mode); + ui->retranslateUi(this); + uiOptions->retranslateUi(this); + uiOptions->comboBox_copyEnd->setItemText(0,tr("Don't close if errors are found")); + uiOptions->comboBox_copyEnd->setItemText(1,tr("Never close")); + uiOptions->comboBox_copyEnd->setItemText(2,tr("Always close")); + if(!haveStarted) + ui->current_file->setText(tr("File Name, 0KB")); + else + updateCurrentFileInformation(); + updateOverallInformation(); + updateSpeed(); + if(ui->tabWidget->count()>=4) + ui->tabWidget->setTabText(ui->tabWidget->count()-1,facilityEngine->translateText(QStringLiteral("Copy engine"))); + on_moreButton_toggled(ui->moreButton->isChecked()); } void Themes::on_pushButtonCloseSearch_clicked() { - closeTheSearchBox(); + closeTheSearchBox(); } //close the search box void Themes::closeTheSearchBox() { - currentIndexSearch = -1; - ui->lineEditSearch->clear(); - ui->lineEditSearch->hide(); - ui->pushButtonSearchPrev->hide(); - ui->pushButtonSearchNext->hide(); - ui->pushButtonCloseSearch->hide(); - ui->searchButton->setChecked(false); - hilightTheSearch(); + currentIndexSearch = -1; + ui->lineEditSearch->clear(); + ui->lineEditSearch->hide(); + ui->pushButtonSearchPrev->hide(); + ui->pushButtonSearchNext->hide(); + ui->pushButtonCloseSearch->hide(); + ui->searchButton->setChecked(false); + hilightTheSearch(); } //search box shortcut void Themes::searchBoxShortcut() { /* if(ui->lineEditSearch->isHidden()) - {*/ - ui->lineEditSearch->show(); - ui->pushButtonSearchPrev->show(); - ui->pushButtonSearchNext->show(); - ui->pushButtonCloseSearch->show(); - ui->lineEditSearch->setFocus(Qt::ShortcutFocusReason); - ui->searchButton->setChecked(true); + {*/ + ui->lineEditSearch->show(); + ui->pushButtonSearchPrev->show(); + ui->pushButtonSearchNext->show(); + ui->pushButtonCloseSearch->show(); + ui->lineEditSearch->setFocus(Qt::ShortcutFocusReason); + ui->searchButton->setChecked(true); /* } - else - closeTheSearchBox();*/ + else + closeTheSearchBox();*/ } //hilight the search void Themes::hilightTheSearch(bool searchNext) { - int result=transferModel.search(ui->lineEditSearch->text(),searchNext); - if(ui->lineEditSearch->text().isEmpty()) - ui->lineEditSearch->setStyleSheet(""); - else - { - if(result==-1) - ui->lineEditSearch->setStyleSheet("background-color: rgb(255, 150, 150);"); - else - { - ui->lineEditSearch->setStyleSheet("background-color: rgb(193,255,176);"); - ui->TransferList->scrollTo(transferModel.index(result,0)); - } - } + int result=transferModel.search(ui->lineEditSearch->text(),searchNext); + if(ui->lineEditSearch->text().isEmpty()) + ui->lineEditSearch->setStyleSheet(""); + else + { + if(result==-1) + ui->lineEditSearch->setStyleSheet(QStringLiteral("background-color: rgb(255, 150, 150);")); + else + { + ui->lineEditSearch->setStyleSheet(QStringLiteral("background-color: rgb(193,255,176);")); + ui->TransferList->scrollTo(transferModel.index(result,0)); + } + } +} + +void Themes::hilightTheSearchSlot() +{ + hilightTheSearch(); } void Themes::on_pushButtonSearchPrev_clicked() { - int result=transferModel.searchPrev(ui->lineEditSearch->text()); - if(ui->lineEditSearch->text().isEmpty()) - ui->lineEditSearch->setStyleSheet(""); - else - { - if(result==-1) - ui->lineEditSearch->setStyleSheet("background-color: rgb(255, 150, 150);"); - else - { - ui->lineEditSearch->setStyleSheet("background-color: rgb(193,255,176);"); - ui->TransferList->scrollTo(transferModel.index(result,0)); - } - } + int result=transferModel.searchPrev(ui->lineEditSearch->text()); + if(ui->lineEditSearch->text().isEmpty()) + ui->lineEditSearch->setStyleSheet(""); + else + { + if(result==-1) + ui->lineEditSearch->setStyleSheet(QStringLiteral("background-color: rgb(255, 150, 150);")); + else + { + ui->lineEditSearch->setStyleSheet(QStringLiteral("background-color: rgb(193,255,176);")); + ui->TransferList->scrollTo(transferModel.index(result,0)); + } + } } void Themes::on_pushButtonSearchNext_clicked() { - hilightTheSearch(true); + hilightTheSearch(true); } void Themes::on_lineEditSearch_returnPressed() { - hilightTheSearch(); + hilightTheSearch(); } void Themes::on_lineEditSearch_textChanged(QString text) { - if(text=="") - { - TimerForSearch->stop(); - hilightTheSearch(); - } - else - TimerForSearch->start(); + if(text=="") + { + TimerForSearch->stop(); + hilightTheSearch(); + } + else + TimerForSearch->start(); } void Themes::on_moreButton_toggled(bool checked) { - if(checked) - this->setMaximumHeight(16777215); - else - this->setMaximumHeight(130); - // usefull under windows - this->updateGeometry(); - this->update(); - this->adjustSize(); -} - -void Themes::on_comboBox_copyErrors_currentIndexChanged(int index) -{ - ULTRACOPIER_DEBUGCONSOLE(DebugLevel_Notice,"start"); - emit sendErrorAction(ui->comboBox_copyErrors->itemData(index).toString()); -} - -void Themes::on_comboBox_fileCollisions_currentIndexChanged(int index) -{ - ULTRACOPIER_DEBUGCONSOLE(DebugLevel_Notice,"start"); - emit sendCollisionAction(ui->comboBox_fileCollisions->itemData(index).toString()); + if(checked) + this->setMaximumHeight(16777215); + else + this->setMaximumHeight(130); + // usefull under windows + this->updateGeometry(); + this->update(); + this->adjustSize(); } /* drag event processing @@ -867,45 +1075,306 @@ void dragLeaveEvent(QDragLeaveEvent* event); */ void Themes::dropEvent(QDropEvent *event) { - const QMimeData* mimeData = event->mimeData(); - if(mimeData->hasUrls()) - { - emit urlDropped(mimeData->urls()); - event->acceptProposedAction(); - } + ULTRACOPIER_DEBUGCONSOLE(Ultracopier::DebugLevel_Notice,QStringLiteral("start")); + const QMimeData* mimeData = event->mimeData(); + if(mimeData->hasUrls()) + { + ULTRACOPIER_DEBUGCONSOLE(Ultracopier::DebugLevel_Notice,QStringLiteral("hasUrls")); + emit urlDropped(mimeData->urls()); + event->acceptProposedAction(); + } } void Themes::dragEnterEvent(QDragEnterEvent* event) { - // if some actions should not be usable, like move, this code must be adopted - event->acceptProposedAction(); + ULTRACOPIER_DEBUGCONSOLE(Ultracopier::DebugLevel_Notice,QStringLiteral("start")); + // if some actions should not be usable, like move, this code must be adopted + const QMimeData* mimeData = event->mimeData(); + if(mimeData->hasUrls()) + { + ULTRACOPIER_DEBUGCONSOLE(Ultracopier::DebugLevel_Notice,QStringLiteral("hasUrls")); + event->acceptProposedAction(); + } } void Themes::dragMoveEvent(QDragMoveEvent* event) { - // if some actions should not be usable, like move, this code must be adopted - event->acceptProposedAction(); + // if some actions should not be usable, like move, this code must be adopted + const QMimeData* mimeData = event->mimeData(); + if(mimeData->hasUrls()) + event->acceptProposedAction(); } void Themes::dragLeaveEvent(QDragLeaveEvent* event) { - event->accept(); + ULTRACOPIER_DEBUGCONSOLE(Ultracopier::DebugLevel_Notice,QStringLiteral("start")); + event->accept(); } void Themes::on_searchButton_toggled(bool checked) { - if(checked) - searchBoxShortcut(); - else - closeTheSearchBox(); + if(checked) + searchBoxShortcut(); + else + closeTheSearchBox(); } void Themes::on_exportTransferList_clicked() { - emit exportTransferList(); + emit exportTransferList(); } void Themes::on_importTransferList_clicked() { - emit importTransferList(); + emit importTransferList(); +} + +void Themes::progressColorWrite_clicked() +{ + QColor color=QColorDialog::getColor(progressColorWrite,this,tr("Select a color")); + if(!color.isValid()) + return; + progressColorWrite=color; + QPixmap pixmap(75,20); + pixmap.fill(progressColorWrite); + uiOptions->progressColorWrite->setIcon(pixmap); + updateProgressionColorBar(); +} + +void Themes::progressColorRead_clicked() +{ + QColor color=QColorDialog::getColor(progressColorRead,this,tr("Select a color")); + if(!color.isValid()) + return; + progressColorRead=color; + QPixmap pixmap(75,20); + pixmap.fill(progressColorRead); + uiOptions->progressColorRead->setIcon(pixmap); + updateProgressionColorBar(); +} + +void Themes::progressColorRemaining_clicked() +{ + QColor color=QColorDialog::getColor(progressColorRemaining,this,tr("Select a color")); + if(!color.isValid()) + return; + progressColorRemaining=color; + QPixmap pixmap(75,20); + pixmap.fill(progressColorRemaining); + uiOptions->progressColorRemaining->setIcon(pixmap); + updateProgressionColorBar(); +} + +void Themes::alwaysOnTop_clicked(bool reshow) +{ + Qt::WindowFlags flags = windowFlags(); + #ifdef Q_OS_WIN32 + if(uiOptions->alwaysOnTop->isChecked()) + SetWindowPos((HWND)this->winId(), HWND_TOPMOST, 0, 0, 0, 0, SWP_NOMOVE | SWP_NOSIZE | SWP_NOACTIVATE); + else + SetWindowPos((HWND)this->winId(), HWND_NOTOPMOST, 0, 0, 0, 0, SWP_NOMOVE | SWP_NOSIZE | SWP_NOACTIVATE); + #endif + #ifdef Q_OS_LINUX + if(uiOptions->alwaysOnTop->isChecked()) + flags=flags | Qt::X11BypassWindowManagerHint; + else + flags=flags & ~Qt::X11BypassWindowManagerHint; + #endif + if(uiOptions->alwaysOnTop->isChecked()) + flags=flags | Qt::WindowStaysOnTopHint; + else + flags=flags & ~Qt::WindowStaysOnTopHint; + ULTRACOPIER_DEBUGCONSOLE(Ultracopier::DebugLevel_Notice,"uiOptions->alwaysOnTop->isChecked(): "+QString::number(uiOptions->alwaysOnTop->isChecked())+", flags: "+QString::number(flags)); + setWindowFlags(flags); + if(reshow) + show(); +} + +void Themes::alwaysOnTop_clickedSlot() +{ + alwaysOnTop_clicked(true); +} + +void Themes::updateProgressionColorBar() +{ + ULTRACOPIER_DEBUGCONSOLE(Ultracopier::DebugLevel_Notice,QStringLiteral("start")); + uiOptions->labelProgressionColor->setVisible(uiOptions->showDualProgression->isChecked()); + uiOptions->frameProgressionColor->setVisible(uiOptions->showDualProgression->isChecked()); + if(!uiOptions->showDualProgression->isChecked()) + { + ui->progressBar_all->setStyleSheet(QStringLiteral("")); + ui->progressBar_file->setStyleSheet(QStringLiteral("")); + ui->progressBarCurrentSpeed->setStyleSheet(QStringLiteral("")); + } + else + { + ui->progressBar_all->setStyleSheet(QStringLiteral("QProgressBar{border:1px solid grey;text-align:center;background-color:%1;}QProgressBar::chunk{background-color:%2;}") + .arg(progressColorRemaining.name()) + .arg(progressColorWrite.name()) + ); + ui->progressBar_file->setStyleSheet(QStringLiteral("QProgressBar{border:1px solid grey;text-align:center;background-color:%1;}QProgressBar::chunk{background-color:%2;}") + .arg(progressColorRemaining.name()) + .arg(progressColorWrite.name()) + ); + ui->progressBarCurrentSpeed->setStyleSheet(QStringLiteral("QProgressBar{border:1px solid grey;text-align:center;background-color:%1;}QProgressBar::chunk{background-color:%2;}") + .arg(progressColorRemaining.name()) + .arg(progressColorWrite.name()) + ); + } + if(stat==status_never_started) + updateCurrentFileInformation(); +} + +void Themes::updateTitle() +{ + if(uiOptions->showProgressionInTheTitle->isChecked() && totalSize>0) + { + if(!modeIsForced) + this->setWindowTitle(tr("%1 %2% of %3").arg(facilityEngine->translateText(QStringLiteral("Transfer"))).arg((currentSize*100)/totalSize).arg(facilityEngine->sizeToString(totalSize))+QStringLiteral(" - ")+facilityEngine->softwareName()); + else + { + if(mode==Ultracopier::Copy) + this->setWindowTitle(tr("%1 %2% of %3").arg(facilityEngine->translateText(QStringLiteral("Copy"))).arg((currentSize*100)/totalSize).arg(facilityEngine->sizeToString(totalSize))+QStringLiteral(" - ")+facilityEngine->softwareName()); + else + this->setWindowTitle(tr("%1 %2% of %3").arg(facilityEngine->translateText(QStringLiteral("Move"))).arg((currentSize*100)/totalSize).arg(facilityEngine->sizeToString(totalSize))+QStringLiteral(" - ")+facilityEngine->softwareName()); + } + } + else + { + if(!modeIsForced) + this->setWindowTitle(QStringLiteral("%1").arg(facilityEngine->translateText(QStringLiteral("Transfer")))+QStringLiteral(" - ")+facilityEngine->softwareName()); + else + { + if(mode==Ultracopier::Copy) + this->setWindowTitle(QStringLiteral("%1").arg(facilityEngine->translateText(QStringLiteral("Copy")))+QStringLiteral(" - ")+facilityEngine->softwareName()); + else + this->setWindowTitle(QStringLiteral("%1").arg(facilityEngine->translateText(QStringLiteral("Move")))+QStringLiteral(" - ")+facilityEngine->softwareName()); + } + } +} + +/** \brief Create progessive icon + +Do QIcon with top and bottom image mixed and percent writed on it. +The icon it be search in the style path. +Do by mongaulois, remake by alpha_one_x86. +\param percent indique how many percent need be showed, sould be between 0 and 100 +\param text The showed text if needed (optionnal) +\return QIcon of the final image +\note Can be used as it: dynaIcon(75,"...") +*/ +QIcon Themes::dynaIcon(int percent,QString text) const +{ + #ifdef ULTRACOPIER_PLUGIN_DEBUG + if(pixmapTop.isNull() || pixmapBottom.isNull()) + ULTRACOPIER_DEBUGCONSOLE(Ultracopier::DebugLevel_Warning,"Error loading the icons"); + #endif + if(percent==-1) + percent=getOldProgression; + if(percent<0) + percent=0; + if(percent>100) + percent=100; + //pixmap avec un fond transparent + #ifdef Q_OS_WIN32 + quint8 imageSize=16; + #else + quint8 imageSize=22; + #endif + QPixmap resultImage(imageSize,imageSize); + resultImage.fill(Qt::transparent); + { + QPainter painter(&resultImage); + #ifndef Q_OS_WIN32 + QFont font(QStringLiteral("Courier New"),9); + font.setBold(true); + font.setKerning(true); + painter.setFont(font); + #endif + #ifdef Q_OS_WIN32 + QFont font(QStringLiteral("Courier New"),8); + font.setBold(true); + font.setKerning(true); + painter.setFont(font); + #endif + + //preprocessing the calcul + quint8 bottomPixel=(percent*imageSize)/100; + quint8 topPixel=imageSize-bottomPixel; + + //top image + if(topPixel>0) + { + QRect target(0, 0, imageSize, topPixel); + QRect source(0, 0, imageSize, topPixel); + painter.drawPixmap(target, pixmapTop, source); + } + + //bottom image + if(bottomPixel>0) + { + QRect target2(0, topPixel, imageSize, bottomPixel); + QRect source2(0, topPixel, imageSize, bottomPixel); + painter.drawPixmap(target2, pixmapBottom, source2); + } + + qint8 textxOffset=0; + qint8 textyOffset=0; + if(text.isEmpty()) + { + if(percent!=100) + text=QString::number(percent); + else + { + text=QStringLiteral(":)"); + #ifdef Q_OS_WIN32 + textyOffset-=2; + #else + textyOffset-=1; + #endif + } + } + if(text.size()==1) + { + textxOffset+=3; + #ifdef Q_OS_WIN32 + textxOffset-=1; + #endif + } + else + { + #ifdef Q_OS_WIN32 + textxOffset-=1; + #endif + } + #ifndef Q_OS_WIN32 + textxOffset+=2; + textyOffset+=3; + #endif + painter.setPen(QPen(Qt::black)); + painter.drawText(3+textxOffset,13+textyOffset,text); + painter.setPen(QPen(Qt::white)); + painter.drawText(2+textxOffset,12+textyOffset,text); + } + return QIcon(resultImage); +} + +/** \brief For catch an action on the systray icon +\param reason Why it activated +*/ +void Themes::catchAction(QSystemTrayIcon::ActivationReason reason) +{ + if(reason==QSystemTrayIcon::DoubleClick || reason==QSystemTrayIcon::Trigger) + { + sysTrayIcon->hide(); + this->show(); + ULTRACOPIER_DEBUGCONSOLE(Ultracopier::DebugLevel_Information,"Double Click detected"); + } + else + ULTRACOPIER_DEBUGCONSOLE(Ultracopier::DebugLevel_Information,QStringLiteral("reason: %1").arg(reason)); +} + +void Themes::on_exportErrorToTransferList_clicked() +{ + emit exportErrorIntoTransferList(); } diff --git a/plugins/Themes/Oxygen/interface.h b/plugins/Themes/Oxygen/interface.h index 7470520..ee3cadd 100755..100644 --- a/plugins/Themes/Oxygen/interface.h +++ b/plugins/Themes/Oxygen/interface.h @@ -1,8 +1,7 @@ /** \file interface.h \brief Define the interface \author alpha_one_x86 -\version 0.3 -\date 2010 */ +\licence GPL3, see the file COPYING */ #ifndef INTERFACE_H #define INTERFACE_H @@ -13,199 +12,211 @@ #include <QCloseEvent> #include <QShortcut> #include <QItemSelectionModel> +#include <QTimer> +#include <QTime> +#include <QSystemTrayIcon> +#include <QPixmap> #include "../../../interface/PluginInterface_Themes.h" #include "ui_interface.h" -#include "ui_options.h" +#include "ui_themesOptions.h" #include "Environment.h" #include "TransferModel.h" // for windows progress bar #ifndef __GNUC__ -#include <shobjidl.h> +# include <shobjidl.h> #endif namespace Ui { - class interfaceCopy; + class interfaceCopy; + class themesOptions; } /// \brief Define the interface class Themes : public PluginInterface_Themes { - Q_OBJECT + Q_OBJECT public: - Themes(bool checkBoxShowSpeed,FacilityInterface * facilityEngine,bool moreButtonPushed); - ~Themes(); - //send information about the copy - /// \brief to set the action in progress - void actionInProgess(EngineActionInProgress); - /// \brief the new folder is listing - void newFolderListing(const QString &path); - /** \brief show the detected speed - * in byte per seconds */ - void detectedSpeed(const quint64 &speed); - /** \brief show the remaining time - * time in seconds */ - void remainingTime(const int &remainingSeconds); - /// \brief set the current collision action - void newCollisionAction(const QString &action); - /// \brief set the current error action - void newErrorAction(const QString &action); - /// \brief set one error is detected - void errorDetected(); - //speed limitation - /** \brief the max speed used - * in byte per seconds, -1 if not able, 0 if disabled */ - bool setSpeedLimitation(const qint64 &speedLimitation); - //get information about the copy - /// \brief show the general progression - void setGeneralProgression(const quint64 ¤t,const quint64 &total); - /// \brief show the file progression - void setFileProgression(const QList<ProgressionItem> &progressionList); - /// \brief set collision action - void setCollisionAction(const QList<QPair<QString,QString> > &); - /// \brief set error action - void setErrorAction(const QList<QPair<QString,QString> > &); - /// \brief set the copyType -> file or folder - void setCopyType(CopyType); - /// \brief set the copyMove -> copy or move, to force in copy or move, else support both - void forceCopyMode(CopyMode); - /// \brief set if transfer list is exportable/importable - void setTransferListOperation(TransferListOperation transferListOperation); - //edit the transfer list - /// \brief get action on the transfer list (add/move/remove) - void getActionOnList(const QList<returnActionOnCopyList> &returnActions); - /** \brief set if the order is external (like file manager copy) - * to notify the interface, which can hide add folder/filer button */ - void haveExternalOrder(); - /// \brief set if is in pause - void isInPause(bool); - /// \brief get the widget for the copy engine - QWidget * getOptionsEngineWidget(); - /// \brief to set if the copy engine is found - void getOptionsEngineEnabled(bool isEnabled); + Themes(const bool &alwaysOnTop, + const bool &showProgressionInTheTitle, + const QColor &progressColorWrite, + const QColor &progressColorRead, + const QColor &progressColorRemaining, + const bool &showDualProgression, + const quint8 &comboBox_copyEnd, + const bool &speedWithProgressBar, + const qint32 ¤tSpeed, + const bool &checkBoxShowSpeed, + FacilityInterface * facilityEngine, + const bool &moreButtonPushed, + const bool &minimizeToSystray, + const bool &startMinimized); + ~Themes(); + //send information about the copy + /// \brief to set the action in progress + void actionInProgess(const Ultracopier::EngineActionInProgress &); + /// \brief the new folder is listing + void newFolderListing(const QString &path); + /** \brief show the detected speed + * in byte per seconds */ + void detectedSpeed(const quint64 &speed); + /** \brief show the remaining time + * time in seconds */ + void remainingTime(const int &remainingSeconds); + /// \brief set the current collision action + void newCollisionAction(const QString &action); + /// \brief set the current error action + void newErrorAction(const QString &action); + /// \brief set one error is detected + void errorDetected(); + /// \brief new error + void errorToRetry(const QString &source,const QString &destination,const QString &error); + /** \brief support speed limitation */ + void setSupportSpeedLimitation(const bool &supportSpeedLimitationBool); + //get information about the copy + /// \brief show the general progression + void setGeneralProgression(const quint64 ¤t,const quint64 &total); + /// \brief show the file progression + void setFileProgression(const QList<Ultracopier::ProgressionItem> &progressionList); + /// \brief set the copyType -> file or folder + void setCopyType(const Ultracopier::CopyType &); + /// \brief set the copyMove -> copy or move, to force in copy or move, else support both + void forceCopyMode(const Ultracopier::CopyMode &); + /// \brief set if transfer list is exportable/importable + void setTransferListOperation(const Ultracopier::TransferListOperation &transferListOperation); + //edit the transfer list + /// \brief get action on the transfer list (add/move/remove) + void getActionOnList(const QList<Ultracopier::ReturnActionOnCopyList> &returnActions); + /** \brief set if the order is external (like file manager copy) + * to notify the interface, which can hide add folder/filer button */ + void haveExternalOrder(); + /// \brief set if is in pause + void isInPause(const bool &); + /// \brief get the widget for the copy engine + QWidget * getOptionsEngineWidget(); + /// \brief to set if the copy engine is found + void getOptionsEngineEnabled(const bool &isEnabled); + enum status{status_never_started,status_started,status_stopped}; + status stat; public slots: - /// \brief set the translate - void newLanguageLoaded(); + /// \brief set the translate + void newLanguageLoaded(); private slots: - void on_putOnTop_clicked(); - void on_pushUp_clicked(); - void on_pushDown_clicked(); - void on_putOnBottom_clicked(); - void on_del_clicked(); - void on_cancelButton_clicked(); - void on_checkBoxShowSpeed_toggled(bool checked); - void on_SliderSpeed_valueChanged(int value); - void on_pauseButton_clicked(); - void on_skipButton_clicked(); - void forcedModeAddFile(); - void forcedModeAddFolder(); - void forcedModeAddFileToCopy(); - void forcedModeAddFolderToCopy(); - void forcedModeAddFileToMove(); - void forcedModeAddFolderToMove(); - void uiUpdateSpeed(); - void on_pushButtonCloseSearch_clicked(); - //close the search box - void closeTheSearchBox(); - //search box shortcut - void searchBoxShortcut(); - //hilight the search - void hilightTheSearch(bool searchNext=false); - //auto connect - void on_pushButtonSearchPrev_clicked(); - void on_pushButtonSearchNext_clicked(); - void on_lineEditSearch_returnPressed(); - void on_lineEditSearch_textChanged(QString text); - void on_moreButton_toggled(bool checked); - void on_comboBox_copyErrors_currentIndexChanged(int index); - void on_comboBox_fileCollisions_currentIndexChanged(int index); - void on_searchButton_toggled(bool checked); - void on_exportTransferList_clicked(); - void on_importTransferList_clicked(); + void on_putOnTop_clicked(); + void on_pushUp_clicked(); + void on_pushDown_clicked(); + void on_putOnBottom_clicked(); + void on_del_clicked(); + void on_cancelButton_clicked(); + void speedWithProgressBar_toggled(bool checked); + void showDualProgression_toggled(bool checked); + void checkBoxShowSpeed_toggled(bool checked); + void on_SliderSpeed_valueChanged(int value); + void on_pauseButton_clicked(); + void on_skipButton_clicked(); + void forcedModeAddFile(); + void forcedModeAddFolder(); + void forcedModeAddFileToCopy(); + void forcedModeAddFolderToCopy(); + void forcedModeAddFileToMove(); + void forcedModeAddFolderToMove(); + void uiUpdateSpeed(); + void on_pushButtonCloseSearch_clicked(); + //close the search box + void closeTheSearchBox(); + //search box shortcut + void searchBoxShortcut(); + //hilight the search + void hilightTheSearch(bool searchNext=false); + void hilightTheSearchSlot(); + //auto connect + void on_pushButtonSearchPrev_clicked(); + void on_pushButtonSearchNext_clicked(); + void on_lineEditSearch_returnPressed(); + void on_lineEditSearch_textChanged(QString text); + void on_moreButton_toggled(bool checked); + void on_searchButton_toggled(bool checked); + void on_exportTransferList_clicked(); + void on_importTransferList_clicked(); + void progressColorWrite_clicked(); + void progressColorRead_clicked(); + void progressColorRemaining_clicked(); + void alwaysOnTop_clicked(bool reshow); + void alwaysOnTop_clickedSlot(); + void updateProgressionColorBar(); + void updateTitle(); + void catchAction(QSystemTrayIcon::ActivationReason reason); + void on_exportErrorToTransferList_clicked(); private: - Ui::interfaceCopy *ui; - quint64 currentFile; - quint64 totalFile; - quint64 currentSize; - quint64 totalSize; - void updateOverallInformation(); - void updateCurrentFileInformation(); - QMenu *menu; - EngineActionInProgress action; - void closeEvent(QCloseEvent *event); - qint64 currentSpeed;///< in KB/s, assume as 0KB/s as default like every where - void updateSpeed(); - bool storeIsInPause; - bool modeIsForced; - CopyType type; - CopyMode mode; - void updateModeAndType(); - bool haveStarted; - bool haveError; - QWidget optionEngineWidget; - QShortcut *searchShortcut; - QShortcut *searchShortcut2; - QShortcut *searchShortcut3; - QTimer *TimerForSearch; - int currentIndexSearch; ///< Current index search in starting at the end - FacilityInterface * facilityEngine; - QIcon player_play,player_pause; - QItemSelectionModel *selectionModel; - QModelIndexList selectedItems; - //temp variables - int loop_size,loop_sub_size,index,indexAction; - QList<int> ids; - quint64 baseRow,addRow,removeRow; - /// \brief the custom transfer model - TransferModel transferModel; - /** \brief drag event processing + QTime duration; + bool durationStarted; + QPixmap pixmapTop,pixmapBottom; + QColor progressColorWrite,progressColorRead,progressColorRemaining; + Ui::interfaceCopy *ui; + Ui::themesOptions *uiOptions; + quint64 currentFile; + quint64 totalFile; + quint64 currentSize; + quint64 totalSize; + quint8 getOldProgression; + QSystemTrayIcon *sysTrayIcon; + void updateOverallInformation(); + void updateCurrentFileInformation(); + QMenu *menu; + Ultracopier::EngineActionInProgress action; + void closeEvent(QCloseEvent *event); + qint32 currentSpeed;///< in KB/s, assume as 0KB/s as default like every where + void updateSpeed(); + bool storeIsInPause; + bool modeIsForced; + Ultracopier::CopyType type; + Ultracopier::CopyMode mode; + void updateModeAndType(); + bool haveStarted; + bool haveError; + QWidget optionEngineWidget; + QShortcut *searchShortcut; + QShortcut *searchShortcut2; + QShortcut *searchShortcut3; + QTimer *TimerForSearch; + int currentIndexSearch; ///< Current index search in starting at the end + FacilityInterface * facilityEngine; + QItemSelectionModel *selectionModel; + QModelIndexList selectedItems; + /// \brief the custom transfer model + TransferModel transferModel; - need setAcceptDrops(true); into the constructor - need implementation to accept the drop: - void dragEnterEvent(QDragEnterEvent* event); - void dragMoveEvent(QDragMoveEvent* event); - void dragLeaveEvent(QDragLeaveEvent* event); - */ - void dropEvent(QDropEvent *event); - /** \brief accept all event to allow the drag and drop - \see dropEvent() */ - void dragEnterEvent(QDragEnterEvent* event); - /** \brief accept all event to allow the drag and drop - \see dropEvent() */ - void dragMoveEvent(QDragMoveEvent* event); - /** \brief accept all event to allow the drag and drop - \see dropEvent() */ - void dragLeaveEvent(QDragLeaveEvent* event); - //have functionality - bool shutdown; + static QIcon player_play,player_pause,tempExitIcon,editDelete,skinIcon,editFind,documentOpen,documentSave,listAdd; + static bool iconLoaded; + + /** \brief drag event processing + + need setAcceptDrops(true); into the constructor + need implementation to accept the drop: + void dragEnterEvent(QDragEnterEvent* event); + void dragMoveEvent(QDragMoveEvent* event); + void dragLeaveEvent(QDragLeaveEvent* event); + */ + void dropEvent(QDropEvent *event); + /** \brief accept all event to allow the drag and drop + \see dropEvent() */ + void dragEnterEvent(QDragEnterEvent* event); + /** \brief accept all event to allow the drag and drop + \see dropEvent() */ + void dragMoveEvent(QDragMoveEvent* event); + /** \brief accept all event to allow the drag and drop + \see dropEvent() */ + void dragLeaveEvent(QDragLeaveEvent* event); + //have functionality + bool shutdown; + void updatePause(); + QIcon dynaIcon(int percent,QString text="") const; + void updateSysTrayIcon(); signals: - #ifdef ULTRACOPIER_PLUGIN_DEBUG - /// \brief To debug source - void debugInformation(DebugLevel level,QString fonction,QString text,QString file,int ligne); - #endif - //set the transfer list - void removeItems(QList<int> ids); - void moveItemsOnTop(QList<int> ids); - void moveItemsUp(QList<int> ids); - void moveItemsDown(QList<int> ids); - void moveItemsOnBottom(QList<int> ids); - void exportTransferList(); - void importTransferList(); - //user ask ask to add folder (add it with interface ask source/destination) - void userAddFolder(CopyMode); - void userAddFile(CopyMode); - void urlDropped(QList<QUrl> urls); - //action on the copy - void pause(); - void resume(); - void skip(quint64 id); - void cancel(); - //edit the action - void sendCollisionAction(QString action); - void sendErrorAction(QString action); - void newSpeedLimitation(qint64); + /// \brief To debug source + void debugInformation(const Ultracopier::DebugLevel &level,const QString &fonction,const QString &text,const QString &file,const int &ligne) const; }; #endif // INTERFACE_H diff --git a/plugins/Themes/Oxygen/interface.pro b/plugins/Themes/Oxygen/interface.pro index dda4098..8ddf147 100644 --- a/plugins/Themes/Oxygen/interface.pro +++ b/plugins/Themes/Oxygen/interface.pro @@ -1,47 +1,59 @@ +CONFIG += c++11 +QMAKE_CXXFLAGS+="-std=c++0x -Wall -Wextra" +mac:QMAKE_CXXFLAGS+="-stdlib=libc++" + +QT += widgets TEMPLATE = lib CONFIG += plugin -HEADERS = interface.h \ - StructEnumDefinition.h \ - factory.h \ +HEADERS = ThemesFactory.h \ + StructEnumDefinition.h \ DebugEngineMacro.h \ Environment.h \ Variable.h \ ../../../interface/PluginInterface_Themes.h \ ../../../interface/FacilityInterface.h \ ../../../interface/OptionInterface.h \ - TransferModel.h -SOURCES = interface.cpp \ - factory.cpp \ - TransferModel.cpp + TransferModel.h \ + interface.h +SOURCES = ThemesFactory.cpp \ + TransferModel.cpp \ + interface.cpp TARGET = $$qtLibraryTarget(interface) -TRANSLATIONS += Languages/fr/translation.ts \ - Languages/ar/translation.ts \ - Languages/zh/translation.ts \ - Languages/es/translation.ts \ +TRANSLATIONS += Languages/ar/translation.ts \ Languages/de/translation.ts \ Languages/el/translation.ts \ + Languages/en/translation.ts \ + Languages/es/translation.ts \ + Languages/fr/translation.ts \ + Languages/hi/translation.ts \ + Languages/hu/translation.ts \ + Languages/id/translation.ts \ Languages/it/translation.ts \ Languages/ja/translation.ts \ - Languages/id/translation.ts \ - Languages/pl/translation.ts \ - Languages/ru/translation.ts \ - Languages/tr/translation.ts \ - Languages/th/translation.ts \ - Languages/hi/translation.ts \ + Languages/ko/translation.ts \ Languages/nl/translation.ts \ Languages/no/translation.ts \ + Languages/pl/translation.ts \ Languages/pt/translation.ts \ - Languages/ko/translation.ts + Languages/ru/translation.ts \ + Languages/th/translation.ts \ + Languages/tr/translation.ts \ + Languages/zh/translation.ts win32 { - RESOURCES += resources_windows.qrc + RESOURCES += } !win32 { - RESOURCES += resources_unix.qrc + RESOURCES += } -RESOURCES += resources.qrc +!CONFIG(static) { +RESOURCES += \ + interfaceResources.qrc \ + interfaceResources_unix.qrc \ + interfaceResources_windows.qrc +} FORMS += \ interface.ui \ - options.ui + themesOptions.ui diff --git a/plugins/Themes/Oxygen/interface.ui b/plugins/Themes/Oxygen/interface.ui index ae628ba..ef07b17 100644 --- a/plugins/Themes/Oxygen/interface.ui +++ b/plugins/Themes/Oxygen/interface.ui @@ -6,7 +6,7 @@ <rect> <x>0</x> <y>0</y> - <width>483</width> + <width>508</width> <height>448</height> </rect> </property> @@ -14,8 +14,8 @@ <string notr="true">Ultracopier</string> </property> <property name="windowIcon"> - <iconset resource="resources.qrc"> - <normaloff>:/resources/main.png</normaloff>:/resources/main.png</iconset> + <iconset resource="interfaceResources.qrc"> + <normaloff>:/Themes/Oxygen/resources/main.png</normaloff>:/Themes/Oxygen/resources/main.png</iconset> </property> <layout class="QVBoxLayout"> <property name="spacing"> @@ -38,23 +38,19 @@ </item> <item> <widget class="QLabel" name="from"> + <property name="sizePolicy"> + <sizepolicy hsizetype="Expanding" vsizetype="Preferred"> + <horstretch>0</horstretch> + <verstretch>0</verstretch> + </sizepolicy> + </property> <property name="text"> <string/> </property> - </widget> - </item> - <item> - <spacer name="horizontalSpacer_5"> - <property name="orientation"> - <enum>Qt::Horizontal</enum> - </property> - <property name="sizeHint" stdset="0"> - <size> - <width>40</width> - <height>20</height> - </size> + <property name="textFormat"> + <enum>Qt::PlainText</enum> </property> - </spacer> + </widget> </item> </layout> </item> @@ -72,23 +68,19 @@ </item> <item> <widget class="QLabel" name="to"> + <property name="sizePolicy"> + <sizepolicy hsizetype="Expanding" vsizetype="Preferred"> + <horstretch>0</horstretch> + <verstretch>0</verstretch> + </sizepolicy> + </property> <property name="text"> <string/> </property> - </widget> - </item> - <item> - <spacer name="horizontalSpacer_4"> - <property name="orientation"> - <enum>Qt::Horizontal</enum> - </property> - <property name="sizeHint" stdset="0"> - <size> - <width>40</width> - <height>20</height> - </size> + <property name="textFormat"> + <enum>Qt::PlainText</enum> </property> - </spacer> + </widget> </item> </layout> </item> @@ -99,26 +91,19 @@ <property name="text"> <string notr="true">File 0/0, Total: 0KB</string> </property> + <property name="textFormat"> + <enum>Qt::PlainText</enum> + </property> </widget> </item> <item> <widget class="QLabel" name="labelTimeRemaining"> - <property name="text"> - <string notr="true"><!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN" "http://www.w3.org/TR/REC-html40/strict.dtd"> -<html><head><meta name="qrichtext" content="1" /><style type="text/css"> -p, li { white-space: pre-wrap; } -</style></head><body style=" font-family:'Sans Serif'; font-size:9pt; font-weight:400; font-style:normal;"> -<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;">0:0:0</p></body></html></string> - </property> <property name="textFormat"> <enum>Qt::RichText</enum> </property> <property name="alignment"> <set>Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter</set> </property> - <property name="wordWrap"> - <bool>true</bool> - </property> </widget> </item> <item> @@ -130,11 +115,11 @@ p, li { white-space: pre-wrap; } </size> </property> <property name="toolTip"> - <string>Shutdown when is finish</string> + <string>Close on transfer completion</string> </property> <property name="icon"> - <iconset resource="resources.qrc"> - <normaloff>:/resources/SystemTrayIcon/exit.png</normaloff>:/resources/SystemTrayIcon/exit.png</iconset> + <iconset resource="interfaceResources.qrc"> + <normaloff>:/Themes/Oxygen/resources/SystemTrayIcon/exit.png</normaloff>:/Themes/Oxygen/resources/SystemTrayIcon/exit.png</iconset> </property> <property name="checkable"> <bool>true</bool> @@ -164,6 +149,9 @@ p, li { white-space: pre-wrap; } <property name="text"> <string notr="true">File Name, 0KB</string> </property> + <property name="textFormat"> + <enum>Qt::PlainText</enum> + </property> </widget> </item> <item> @@ -180,12 +168,28 @@ p, li { white-space: pre-wrap; } </widget> </item> <item> + <widget class="QLabel" name="ad_ultimate"> + <property name="textFormat"> + <enum>Qt::RichText</enum> + </property> + <property name="openExternalLinks"> + <bool>true</bool> + </property> + </widget> + </item> + <item> <layout class="QHBoxLayout"> <property name="spacing"> <number>4</number> </property> <item> <widget class="QLabel" name="currentSpeed"> + <property name="sizePolicy"> + <sizepolicy hsizetype="Expanding" vsizetype="Preferred"> + <horstretch>0</horstretch> + <verstretch>0</verstretch> + </sizepolicy> + </property> <property name="minimumSize"> <size> <width>60</width> @@ -193,22 +197,28 @@ p, li { white-space: pre-wrap; } </size> </property> <property name="text"> - <string>0KB/sec</string> + <string notr="true">0KB/sec</string> </property> </widget> </item> <item> - <spacer> - <property name="orientation"> - <enum>Qt::Horizontal</enum> - </property> - <property name="sizeHint" stdset="0"> + <widget class="QProgressBar" name="progressBarCurrentSpeed"> + <property name="maximumSize"> <size> - <width>40</width> - <height>20</height> + <width>16777215</width> + <height>16</height> </size> </property> - </spacer> + <property name="maximum"> + <number>1</number> + </property> + <property name="value"> + <number>0</number> + </property> + <property name="format"> + <string notr="true">0KB/sec</string> + </property> + </widget> </item> <item> <widget class="QPushButton" name="moreButton"> @@ -216,8 +226,8 @@ p, li { white-space: pre-wrap; } <string>&More</string> </property> <property name="icon"> - <iconset resource="resources.qrc"> - <normaloff>:/resources/moveDown.png</normaloff>:/resources/moveDown.png</iconset> + <iconset resource="interfaceResources.qrc"> + <normaloff>:/Themes/Oxygen/resources/moveDown.png</normaloff>:/Themes/Oxygen/resources/moveDown.png</iconset> </property> <property name="checkable"> <bool>true</bool> @@ -236,8 +246,8 @@ p, li { white-space: pre-wrap; } <string>&Pause</string> </property> <property name="icon"> - <iconset resource="resources.qrc"> - <normaloff>:/resources/player_pause.png</normaloff>:/resources/player_pause.png</iconset> + <iconset resource="interfaceResources.qrc"> + <normaloff>:/Themes/Oxygen/resources/player_pause.png</normaloff>:/Themes/Oxygen/resources/player_pause.png</iconset> </property> </widget> </item> @@ -250,8 +260,8 @@ p, li { white-space: pre-wrap; } <string>&Skip</string> </property> <property name="icon"> - <iconset resource="resources.qrc"> - <normaloff>:/resources/player_end.png</normaloff>:/resources/player_end.png</iconset> + <iconset resource="interfaceResources.qrc"> + <normaloff>:/Themes/Oxygen/resources/player_end.png</normaloff>:/Themes/Oxygen/resources/player_end.png</iconset> </property> </widget> </item> @@ -261,8 +271,8 @@ p, li { white-space: pre-wrap; } <string>&Cancel</string> </property> <property name="icon"> - <iconset resource="resources.qrc"> - <normaloff>:/resources/cancel.png</normaloff>:/resources/cancel.png</iconset> + <iconset resource="interfaceResources.qrc"> + <normaloff>:/Themes/Oxygen/resources/cancel.png</normaloff>:/Themes/Oxygen/resources/cancel.png</iconset> </property> </widget> </item> @@ -273,7 +283,7 @@ p, li { white-space: pre-wrap; } <item> <widget class="QLabel" name="label_Slider_speed"> <property name="text"> - <string>Limit copy speed at:</string> + <string>Limit copy speed to:</string> </property> </widget> </item> @@ -290,7 +300,7 @@ p, li { white-space: pre-wrap; } <item> <widget class="QLabel" name="label_SpeedMaxValue"> <property name="text"> - <string>Unlimited</string> + <string notr="true">Unlimited</string> </property> </widget> </item> @@ -314,13 +324,9 @@ p, li { white-space: pre-wrap; } <property name="currentIndex"> <number>0</number> </property> - <widget class="QWidget" name="tab"> - <attribute name="icon"> - <iconset> - <normaloff>:/styles/kde3/player_playlist.png</normaloff>:/styles/kde3/player_playlist.png</iconset> - </attribute> + <widget class="QWidget" name="tab_main"> <attribute name="title"> - <string>Copy list</string> + <string>Transfer list</string> </attribute> <layout class="QHBoxLayout"> <item> @@ -342,9 +348,12 @@ p, li { white-space: pre-wrap; } <height>22</height> </size> </property> + <property name="toolTip"> + <string>Move the selected items to the top</string> + </property> <property name="icon"> - <iconset resource="resources.qrc"> - <normaloff>:/resources/putOnTop.png</normaloff>:/resources/putOnTop.png</iconset> + <iconset resource="interfaceResources.qrc"> + <normaloff>:/Themes/Oxygen/resources/putOnTop.png</normaloff>:/Themes/Oxygen/resources/putOnTop.png</iconset> </property> <property name="autoRaise"> <bool>true</bool> @@ -365,9 +374,12 @@ p, li { white-space: pre-wrap; } <height>22</height> </size> </property> + <property name="toolTip"> + <string>Move up the selected items</string> + </property> <property name="icon"> - <iconset resource="resources.qrc"> - <normaloff>:/resources/moveUp.png</normaloff>:/resources/moveUp.png</iconset> + <iconset resource="interfaceResources.qrc"> + <normaloff>:/Themes/Oxygen/resources/moveUp.png</normaloff>:/Themes/Oxygen/resources/moveUp.png</iconset> </property> <property name="autoRaise"> <bool>true</bool> @@ -388,9 +400,12 @@ p, li { white-space: pre-wrap; } <height>22</height> </size> </property> + <property name="toolTip"> + <string>Move down the selected items</string> + </property> <property name="icon"> - <iconset resource="resources.qrc"> - <normaloff>:/resources/moveDown.png</normaloff>:/resources/moveDown.png</iconset> + <iconset resource="interfaceResources.qrc"> + <normaloff>:/Themes/Oxygen/resources/moveDown.png</normaloff>:/Themes/Oxygen/resources/moveDown.png</iconset> </property> <property name="autoRaise"> <bool>true</bool> @@ -411,9 +426,12 @@ p, li { white-space: pre-wrap; } <height>22</height> </size> </property> + <property name="toolTip"> + <string>Move the selected items to the bottom</string> + </property> <property name="icon"> - <iconset resource="resources.qrc"> - <normaloff>:/resources/putOnBottom.png</normaloff>:/resources/putOnBottom.png</iconset> + <iconset resource="interfaceResources.qrc"> + <normaloff>:/Themes/Oxygen/resources/putOnBottom.png</normaloff>:/Themes/Oxygen/resources/putOnBottom.png</iconset> </property> <property name="autoRaise"> <bool>true</bool> @@ -434,9 +452,12 @@ p, li { white-space: pre-wrap; } <height>22</height> </size> </property> + <property name="toolTip"> + <string>Add file/folder</string> + </property> <property name="icon"> - <iconset resource="resources.qrc"> - <normaloff>:/resources/add.png</normaloff>:/resources/add.png</iconset> + <iconset resource="interfaceResources.qrc"> + <normaloff>:/Themes/Oxygen/resources/add.png</normaloff>:/Themes/Oxygen/resources/add.png</iconset> </property> <property name="popupMode"> <enum>QToolButton::InstantPopup</enum> @@ -460,9 +481,12 @@ p, li { white-space: pre-wrap; } <height>22</height> </size> </property> + <property name="toolTip"> + <string>Delete the selected items</string> + </property> <property name="icon"> - <iconset resource="resources.qrc"> - <normaloff>:/resources/remove.png</normaloff>:/resources/remove.png</iconset> + <iconset resource="interfaceResources.qrc"> + <normaloff>:/Themes/Oxygen/resources/remove.png</normaloff>:/Themes/Oxygen/resources/remove.png</iconset> </property> <property name="autoRaise"> <bool>true</bool> @@ -484,11 +508,11 @@ p, li { white-space: pre-wrap; } </size> </property> <property name="toolTip"> - <string>Ctrl+F</string> + <string>Search</string> </property> <property name="icon"> - <iconset resource="resources.qrc"> - <normaloff>:/resources/search.png</normaloff>:/resources/search.png</iconset> + <iconset resource="interfaceResources.qrc"> + <normaloff>:/Themes/Oxygen/resources/search.png</normaloff>:/Themes/Oxygen/resources/search.png</iconset> </property> <property name="checkable"> <bool>true</bool> @@ -512,9 +536,12 @@ p, li { white-space: pre-wrap; } <height>22</height> </size> </property> + <property name="toolTip"> + <string>Export the transfer list</string> + </property> <property name="icon"> - <iconset resource="resources.qrc"> - <normaloff>:/resources/export-transfer-list.png</normaloff>:/resources/export-transfer-list.png</iconset> + <iconset resource="interfaceResources.qrc"> + <normaloff>:/Themes/Oxygen/resources/export-transfer-list.png</normaloff>:/Themes/Oxygen/resources/export-transfer-list.png</iconset> </property> <property name="autoRaise"> <bool>true</bool> @@ -535,9 +562,12 @@ p, li { white-space: pre-wrap; } <height>22</height> </size> </property> + <property name="toolTip"> + <string>Import the transfer list</string> + </property> <property name="icon"> - <iconset resource="resources.qrc"> - <normaloff>:/resources/import-transfer-list.png</normaloff>:/resources/import-transfer-list.png</iconset> + <iconset resource="interfaceResources.qrc"> + <normaloff>:/Themes/Oxygen/resources/import-transfer-list.png</normaloff>:/Themes/Oxygen/resources/import-transfer-list.png</iconset> </property> <property name="autoRaise"> <bool>true</bool> @@ -614,8 +644,8 @@ p, li { white-space: pre-wrap; } </size> </property> <property name="icon"> - <iconset resource="resources.qrc"> - <normaloff>:/resources/remove.png</normaloff>:/resources/remove.png</iconset> + <iconset resource="interfaceResources.qrc"> + <normaloff>:/Themes/Oxygen/resources/remove.png</normaloff>:/Themes/Oxygen/resources/remove.png</iconset> </property> <property name="flat"> <bool>true</bool> @@ -628,339 +658,111 @@ p, li { white-space: pre-wrap; } </item> </layout> </widget> - <widget class="QWidget" name="tab_2"> - <attribute name="icon"> - <iconset> - <normaloff>:/styles/kde3/tools.png</normaloff>:/styles/kde3/tools.png</iconset> - </attribute> + <widget class="QWidget" name="tab_error"> <attribute name="title"> - <string>Options</string> + <string>Error</string> </attribute> - <layout class="QVBoxLayout"> - <property name="spacing"> - <number>3</number> - </property> + <layout class="QHBoxLayout" name="horizontalLayout"> <item> - <widget class="QGroupBox" name="groupBoxCopyEnd"> - <property name="title"> - <string>Copy end</string> - </property> - <layout class="QHBoxLayout"> - <property name="spacing"> - <number>2</number> - </property> - <property name="leftMargin"> - <number>2</number> - </property> - <property name="topMargin"> - <number>0</number> - </property> - <property name="rightMargin"> - <number>2</number> - </property> - <property name="bottomMargin"> - <number>1</number> - </property> - <item> - <widget class="QLabel" name="label_copyEnd"> - <property name="text"> - <string>At the end of the copy: </string> - </property> - </widget> - </item> - <item> - <spacer> - <property name="orientation"> - <enum>Qt::Horizontal</enum> - </property> - <property name="sizeHint" stdset="0"> - <size> - <width>16</width> - <height>20</height> - </size> - </property> - </spacer> - </item> - <item> - <widget class="QComboBox" name="comboBox_copyEnd"> - <property name="sizePolicy"> - <sizepolicy hsizetype="Fixed" vsizetype="Fixed"> - <horstretch>0</horstretch> - <verstretch>0</verstretch> - </sizepolicy> - </property> - <property name="minimumSize"> - <size> - <width>210</width> - <height>0</height> - </size> - </property> - <property name="maximumSize"> - <size> - <width>210</width> - <height>22</height> - </size> - </property> - <item> - <property name="text"> - <string>Don't close if errors are found</string> - </property> - </item> - <item> - <property name="text"> - <string>Never close</string> - </property> - </item> - <item> - <property name="text"> - <string>Always close</string> - </property> - </item> - </widget> - </item> - </layout> - </widget> + <layout class="QVBoxLayout" name="verticalLayout"> + <item> + <widget class="QToolButton" name="exportErrorToTransferList"> + <property name="minimumSize"> + <size> + <width>22</width> + <height>22</height> + </size> + </property> + <property name="maximumSize"> + <size> + <width>22</width> + <height>22</height> + </size> + </property> + <property name="toolTip"> + <string>Export the errors into transfer list</string> + </property> + <property name="icon"> + <iconset resource="interfaceResources.qrc"> + <normaloff>:/Themes/Oxygen/resources/export-transfer-list.png</normaloff>:/Themes/Oxygen/resources/export-transfer-list.png</iconset> + </property> + <property name="autoRaise"> + <bool>true</bool> + </property> + </widget> + </item> + <item> + <spacer name="verticalSpacer"> + <property name="orientation"> + <enum>Qt::Vertical</enum> + </property> + <property name="sizeHint" stdset="0"> + <size> + <width>20</width> + <height>40</height> + </size> + </property> + </spacer> + </item> + </layout> </item> <item> - <widget class="QGroupBox" name="groupBoxSpeedLimit"> - <property name="title"> - <string>Speed limit</string> + <widget class="QTreeWidget" name="errorList"> + <property name="selectionMode"> + <enum>QAbstractItemView::NoSelection</enum> </property> - <layout class="QHBoxLayout"> - <property name="spacing"> - <number>2</number> - </property> - <property name="leftMargin"> - <number>2</number> - </property> - <property name="topMargin"> - <number>0</number> - </property> - <property name="rightMargin"> - <number>2</number> - </property> - <property name="bottomMargin"> - <number>1</number> - </property> - <item> - <widget class="QCheckBox" name="checkBox_limitSpeed"> - <property name="text"> - <string>Limit copy speed at:</string> - </property> - </widget> - </item> - <item> - <widget class="QSpinBox" name="limitSpeed"> - <property name="enabled"> - <bool>false</bool> - </property> - <property name="suffix"> - <string> KB/s</string> - </property> - <property name="minimum"> - <number>1</number> - </property> - <property name="maximum"> - <number>999999</number> - </property> - </widget> - </item> - <item> - <spacer> - <property name="orientation"> - <enum>Qt::Horizontal</enum> - </property> - <property name="sizeType"> - <enum>QSizePolicy::Fixed</enum> - </property> - <property name="sizeHint" stdset="0"> - <size> - <width>138</width> - <height>10</height> - </size> - </property> - </spacer> - </item> - </layout> - </widget> - </item> - <item> - <widget class="QGroupBox" name="groupBoxFileCollisions"> - <property name="title"> - <string>File collisions</string> + <property name="rootIsDecorated"> + <bool>false</bool> </property> - <layout class="QHBoxLayout"> - <property name="spacing"> - <number>2</number> - </property> - <property name="leftMargin"> - <number>2</number> - </property> - <property name="topMargin"> - <number>0</number> - </property> - <property name="rightMargin"> - <number>2</number> - </property> - <property name="bottomMargin"> - <number>1</number> - </property> - <item> - <widget class="QLabel" name="label_fileCollisions"> - <property name="text"> - <string>What to do: </string> - </property> - </widget> - </item> - <item> - <spacer> - <property name="orientation"> - <enum>Qt::Horizontal</enum> - </property> - <property name="sizeHint" stdset="0"> - <size> - <width>31</width> - <height>20</height> - </size> - </property> - </spacer> - </item> - <item> - <widget class="QComboBox" name="comboBox_fileCollisions"> - <property name="minimumSize"> - <size> - <width>210</width> - <height>0</height> - </size> - </property> - <property name="maximumSize"> - <size> - <width>16777215</width> - <height>22</height> - </size> - </property> - </widget> - </item> - </layout> - </widget> - </item> - <item> - <widget class="QGroupBox" name="groupBoxCopyErrors"> - <property name="title"> - <string>Copy errors</string> + <property name="uniformRowHeights"> + <bool>true</bool> </property> - <layout class="QHBoxLayout"> - <property name="spacing"> - <number>2</number> + <column> + <property name="text"> + <string>Source</string> </property> - <property name="leftMargin"> - <number>2</number> + </column> + <column> + <property name="text"> + <string>Destination</string> </property> - <property name="topMargin"> - <number>0</number> + </column> + <column> + <property name="text"> + <string>Error</string> </property> - <property name="rightMargin"> - <number>2</number> - </property> - <property name="bottomMargin"> - <number>1</number> - </property> - <item> - <widget class="QLabel" name="label_copyErrors"> - <property name="text"> - <string>What to do: </string> - </property> - </widget> - </item> - <item> - <spacer> - <property name="orientation"> - <enum>Qt::Horizontal</enum> - </property> - <property name="sizeHint" stdset="0"> - <size> - <width>40</width> - <height>20</height> - </size> - </property> - </spacer> - </item> - <item> - <widget class="QComboBox" name="comboBox_copyErrors"> - <property name="minimumSize"> - <size> - <width>210</width> - <height>0</height> - </size> - </property> - <property name="maximumSize"> - <size> - <width>210</width> - <height>22</height> - </size> - </property> - </widget> - </item> - </layout> + </column> </widget> </item> - <item> - <spacer> - <property name="orientation"> - <enum>Qt::Vertical</enum> - </property> - <property name="sizeHint" stdset="0"> - <size> - <width>360</width> - <height>21</height> - </size> - </property> - </spacer> - </item> </layout> </widget> - <widget class="QWidget" name="tab_3"> - <attribute name="icon"> - <iconset> - <normaloff>:/styles/kde3/player_playlist.png</normaloff>:/styles/kde3/player_playlist.png</iconset> - </attribute> + <widget class="QWidget" name="tab_interface"> <attribute name="title"> <string>Interface</string> </attribute> - <layout class="QVBoxLayout" name="verticalLayout"> - <item> - <layout class="QFormLayout" name="formLayout"> - <property name="fieldGrowthPolicy"> - <enum>QFormLayout::ExpandingFieldsGrow</enum> - </property> - <item row="0" column="0"> - <widget class="QLabel" name="label_8"> - <property name="text"> - <string>Show speed as main informations</string> - </property> - </widget> - </item> - <item row="0" column="1"> - <widget class="QCheckBox" name="checkBoxShowSpeed"> - <property name="text"> - <string/> - </property> - </widget> - </item> - </layout> - </item> + <layout class="QHBoxLayout" name="horizontalLayout_2"> + <property name="spacing"> + <number>0</number> + </property> + <property name="margin"> + <number>0</number> + </property> <item> - <spacer name="verticalSpacer"> - <property name="orientation"> - <enum>Qt::Vertical</enum> + <widget class="QScrollArea" name="optionsTab"> + <property name="widgetResizable"> + <bool>true</bool> </property> - <property name="sizeHint" stdset="0"> - <size> - <width>20</width> - <height>220</height> - </size> - </property> - </spacer> + <widget class="QWidget" name="scrollAreaWidgetContents"> + <property name="geometry"> + <rect> + <x>0</x> + <y>0</y> + <width>492</width> + <height>227</height> + </rect> + </property> + </widget> + </widget> </item> </layout> </widget> @@ -969,8 +771,8 @@ p, li { white-space: pre-wrap; } </layout> <action name="actionAddFile"> <property name="icon"> - <iconset resource="resources.qrc"> - <normaloff>:/resources/add.png</normaloff>:/resources/add.png</iconset> + <iconset resource="interfaceResources.qrc"> + <normaloff>:/Themes/Oxygen/resources/add.png</normaloff>:/Themes/Oxygen/resources/add.png</iconset> </property> <property name="text"> <string>Add file</string> @@ -978,8 +780,8 @@ p, li { white-space: pre-wrap; } </action> <action name="actionAddFolder"> <property name="icon"> - <iconset resource="resources.qrc"> - <normaloff>:/resources/add.png</normaloff>:/resources/add.png</iconset> + <iconset resource="interfaceResources.qrc"> + <normaloff>:/Themes/Oxygen/resources/add.png</normaloff>:/Themes/Oxygen/resources/add.png</iconset> </property> <property name="text"> <string>Add folder</string> @@ -987,8 +789,8 @@ p, li { white-space: pre-wrap; } </action> <action name="actionAddFileToMove"> <property name="icon"> - <iconset resource="resources.qrc"> - <normaloff>:/resources/add.png</normaloff>:/resources/add.png</iconset> + <iconset resource="interfaceResources.qrc"> + <normaloff>:/Themes/Oxygen/resources/add.png</normaloff>:/Themes/Oxygen/resources/add.png</iconset> </property> <property name="text"> <string>Move file(s)</string> @@ -996,8 +798,8 @@ p, li { white-space: pre-wrap; } </action> <action name="actionAddFolderToMove"> <property name="icon"> - <iconset resource="resources.qrc"> - <normaloff>:/resources/add.png</normaloff>:/resources/add.png</iconset> + <iconset resource="interfaceResources.qrc"> + <normaloff>:/Themes/Oxygen/resources/add.png</normaloff>:/Themes/Oxygen/resources/add.png</iconset> </property> <property name="text"> <string>Move folder</string> @@ -1005,8 +807,8 @@ p, li { white-space: pre-wrap; } </action> <action name="actionAddFileToCopy"> <property name="icon"> - <iconset resource="resources.qrc"> - <normaloff>:/resources/add.png</normaloff>:/resources/add.png</iconset> + <iconset resource="interfaceResources.qrc"> + <normaloff>:/Themes/Oxygen/resources/add.png</normaloff>:/Themes/Oxygen/resources/add.png</iconset> </property> <property name="text"> <string>Copy file(s)</string> @@ -1014,8 +816,8 @@ p, li { white-space: pre-wrap; } </action> <action name="actionAddFolderToCopy"> <property name="icon"> - <iconset resource="resources.qrc"> - <normaloff>:/resources/add.png</normaloff>:/resources/add.png</iconset> + <iconset resource="interfaceResources.qrc"> + <normaloff>:/Themes/Oxygen/resources/add.png</normaloff>:/Themes/Oxygen/resources/add.png</iconset> </property> <property name="text"> <string>Copy folder</string> @@ -1023,7 +825,7 @@ p, li { white-space: pre-wrap; } </action> </widget> <resources> - <include location="resources.qrc"/> + <include location="interfaceResources.qrc"/> </resources> <connections> <connection> @@ -1042,21 +844,5 @@ p, li { white-space: pre-wrap; } </hint> </hints> </connection> - <connection> - <sender>checkBox_limitSpeed</sender> - <signal>clicked(bool)</signal> - <receiver>limitSpeed</receiver> - <slot>setEnabled(bool)</slot> - <hints> - <hint type="sourcelabel"> - <x>121</x> - <y>304</y> - </hint> - <hint type="destinationlabel"> - <x>328</x> - <y>305</y> - </hint> - </hints> - </connection> </connections> </ui> diff --git a/plugins/Themes/Oxygen/resources.qrc b/plugins/Themes/Oxygen/interfaceResources.qrc index 75f6259..60060b3 100644 --- a/plugins/Themes/Oxygen/resources.qrc +++ b/plugins/Themes/Oxygen/interfaceResources.qrc @@ -1,5 +1,5 @@ <RCC> - <qresource prefix="/"> + <qresource prefix="/Themes/Oxygen"> <file>resources/add.png</file> <file>resources/cancel.png</file> <file>resources/main.png</file> diff --git a/plugins/Themes/Oxygen/resources_unix.qrc b/plugins/Themes/Oxygen/interfaceResources_unix.qrc index ae3894b..27fb1d2 100644 --- a/plugins/Themes/Oxygen/resources_unix.qrc +++ b/plugins/Themes/Oxygen/interfaceResources_unix.qrc @@ -1,6 +1,6 @@ <RCC> - <qresource prefix="/"> - <file>resources/SystemTrayIcon/systray_Caught_Unix.png</file> + <qresource prefix="/Themes/Oxygen"> + <file>resources/SystemTrayIcon/systray_Caught_Unix.png</file> <file>resources/SystemTrayIcon/systray_Semiuncaught_Unix.png</file> <file>resources/SystemTrayIcon/systray_Uncaught_Unix.png</file> </qresource> diff --git a/plugins/Themes/Oxygen/resources_windows.qrc b/plugins/Themes/Oxygen/interfaceResources_windows.qrc index 99829b3..f917ac3 100644 --- a/plugins/Themes/Oxygen/resources_windows.qrc +++ b/plugins/Themes/Oxygen/interfaceResources_windows.qrc @@ -1,5 +1,5 @@ <RCC> - <qresource prefix="/"> + <qresource prefix="/Themes/Oxygen"> <file>resources/SystemTrayIcon/systray_Caught_Windows.png</file> <file>resources/SystemTrayIcon/systray_Semiuncaught_Windows.png</file> <file>resources/SystemTrayIcon/systray_Uncaught_Windows.png</file> diff --git a/plugins/Themes/Oxygen/options.ui b/plugins/Themes/Oxygen/options.ui index ad4826e..96e4efa 100644 --- a/plugins/Themes/Oxygen/options.ui +++ b/plugins/Themes/Oxygen/options.ui @@ -6,36 +6,285 @@ <rect> <x>0</x> <y>0</y> - <width>249</width> - <height>54</height> + <width>515</width> + <height>251</height> </rect> </property> - <layout class="QFormLayout" name="formLayout"> - <property name="fieldGrowthPolicy"> - <enum>QFormLayout::ExpandingFieldsGrow</enum> - </property> - <item row="0" column="0"> - <widget class="QLabel" name="label"> + <layout class="QGridLayout" name="gridLayout"> + <item row="4" column="2"> + <widget class="QFrame" name="frameProgressionColor"> + <layout class="QHBoxLayout" name="horizontalLayout"> + <property name="spacing"> + <number>0</number> + </property> + <property name="leftMargin"> + <number>0</number> + </property> + <property name="topMargin"> + <number>0</number> + </property> + <property name="rightMargin"> + <number>0</number> + </property> + <property name="bottomMargin"> + <number>0</number> + </property> + <item> + <widget class="QPushButton" name="progressColorWrite"> + <property name="minimumSize"> + <size> + <width>75</width> + <height>20</height> + </size> + </property> + <property name="maximumSize"> + <size> + <width>75</width> + <height>20</height> + </size> + </property> + <property name="iconSize"> + <size> + <width>75</width> + <height>20</height> + </size> + </property> + <property name="flat"> + <bool>true</bool> + </property> + </widget> + </item> + <item> + <widget class="QPushButton" name="progressColorRead"> + <property name="minimumSize"> + <size> + <width>75</width> + <height>20</height> + </size> + </property> + <property name="maximumSize"> + <size> + <width>75</width> + <height>20</height> + </size> + </property> + <property name="iconSize"> + <size> + <width>75</width> + <height>20</height> + </size> + </property> + <property name="flat"> + <bool>true</bool> + </property> + </widget> + </item> + <item> + <widget class="QPushButton" name="progressColorRemaining"> + <property name="minimumSize"> + <size> + <width>75</width> + <height>20</height> + </size> + </property> + <property name="maximumSize"> + <size> + <width>75</width> + <height>20</height> + </size> + </property> + <property name="iconSize"> + <size> + <width>75</width> + <height>20</height> + </size> + </property> + <property name="flat"> + <bool>true</bool> + </property> + </widget> + </item> + <item> + <spacer name="horizontalSpacer_2"> + <property name="orientation"> + <enum>Qt::Horizontal</enum> + </property> + <property name="sizeHint" stdset="0"> + <size> + <width>40</width> + <height>20</height> + </size> + </property> + </spacer> + </item> + </layout> + </widget> + </item> + <item row="4" column="0"> + <widget class="QLabel" name="labelProgressionColor"> <property name="text"> - <string>Show speed as main informations</string> + <string>Progression color</string> </property> </widget> </item> - <item row="0" column="1"> - <widget class="QCheckBox" name="checkBoxShowSpeed"/> + <item row="7" column="2"> + <widget class="QLabel" name="label_SpeedMaxValue"> + <property name="text"> + <string notr="true">Unlimited</string> + </property> + </widget> </item> - <item row="1" column="1"> - <widget class="QCheckBox" name="checkBoxStartWithMoreButtonPushed"/> + <item row="8" column="0"> + <widget class="QCheckBox" name="checkBox_limitSpeed"> + <property name="text"> + <string>Limit copy speed at:</string> + </property> + </widget> + </item> + <item row="8" column="1"> + <widget class="QSpinBox" name="limitSpeed"> + <property name="enabled"> + <bool>false</bool> + </property> + <property name="suffix"> + <string> KB/s</string> + </property> + <property name="minimum"> + <number>1</number> + </property> + <property name="maximum"> + <number>999999</number> + </property> + </widget> + </item> + <item row="2" column="0" colspan="2"> + <widget class="QLabel" name="labelSpeedWithProgressBar"> + <property name="text"> + <string>Speed with progress bar</string> + </property> + </widget> + </item> + <item row="5" column="1"> + <spacer name="horizontalSpacer"> + <property name="orientation"> + <enum>Qt::Horizontal</enum> + </property> + <property name="sizeHint" stdset="0"> + <size> + <width>122</width> + <height>20</height> + </size> + </property> + </spacer> + </item> + <item row="9" column="0"> + <spacer name="verticalSpacer"> + <property name="orientation"> + <enum>Qt::Vertical</enum> + </property> + <property name="sizeHint" stdset="0"> + <size> + <width>20</width> + <height>40</height> + </size> + </property> + </spacer> + </item> + <item row="5" column="2"> + <widget class="QComboBox" name="comboBox_copyEnd"> + <item> + <property name="text"> + <string notr="true">Don't close if errors are found</string> + </property> + </item> + <item> + <property name="text"> + <string notr="true">Never close</string> + </property> + </item> + <item> + <property name="text"> + <string notr="true">Always close</string> + </property> + </item> + </widget> + </item> + <item row="5" column="0"> + <widget class="QLabel" name="label_2"> + <property name="text"> + <string>At the end of the copy: </string> + </property> + </widget> + </item> + <item row="3" column="2"> + <widget class="QCheckBox" name="showDualProgression"/> + </item> + <item row="7" column="0"> + <widget class="QLabel" name="label_Slider_speed"> + <property name="text"> + <string>Limit copy speed at:</string> + </property> + </widget> </item> - <item row="1" column="0"> + <item row="1" column="0" colspan="2"> <widget class="QLabel" name="labelStartWithMoreButtonPushed"> <property name="text"> - <string>Start with more button pushed</string> + <string>Start with the "more button" pushed</string> + </property> + </widget> + </item> + <item row="7" column="1"> + <widget class="QSlider" name="SliderSpeed"> + <property name="maximum"> + <number>5</number> + </property> + <property name="orientation"> + <enum>Qt::Horizontal</enum> + </property> + </widget> + </item> + <item row="3" column="0" colspan="2"> + <widget class="QLabel" name="label"> + <property name="text"> + <string>Show dual progression</string> + </property> + </widget> + </item> + <item row="1" column="2"> + <widget class="QCheckBox" name="checkBoxStartWithMoreButtonPushed"/> + </item> + <item row="2" column="2"> + <widget class="QCheckBox" name="speedWithProgressBar"/> + </item> + <item row="0" column="0" colspan="2"> + <widget class="QLabel" name="labelShowSpeedAsMain"> + <property name="text"> + <string>Show speed as main information</string> </property> </widget> </item> + <item row="0" column="2"> + <widget class="QCheckBox" name="checkBoxShowSpeed"/> + </item> </layout> </widget> <resources/> - <connections/> + <connections> + <connection> + <sender>checkBox_limitSpeed</sender> + <signal>clicked(bool)</signal> + <receiver>limitSpeed</receiver> + <slot>setEnabled(bool)</slot> + <hints> + <hint type="sourcelabel"> + <x>109</x> + <y>144</y> + </hint> + <hint type="destinationlabel"> + <x>199</x> + <y>144</y> + </hint> + </hints> + </connection> + </connections> </ui> diff --git a/plugins/Themes/Oxygen/plugin.json b/plugins/Themes/Oxygen/plugin.json new file mode 100644 index 0000000..9e26dfe --- /dev/null +++ b/plugins/Themes/Oxygen/plugin.json @@ -0,0 +1 @@ +{}
\ No newline at end of file diff --git a/plugins/Themes/Oxygen/resources/SystemTrayIcon/add.png b/plugins/Themes/Oxygen/resources/SystemTrayIcon/add.png Binary files differindex 1e03be9..7932127 100644 --- a/plugins/Themes/Oxygen/resources/SystemTrayIcon/add.png +++ b/plugins/Themes/Oxygen/resources/SystemTrayIcon/add.png diff --git a/plugins/Themes/Oxygen/resources/SystemTrayIcon/exit.png b/plugins/Themes/Oxygen/resources/SystemTrayIcon/exit.png Binary files differindex 201353e..ae3c4e8 100644 --- a/plugins/Themes/Oxygen/resources/SystemTrayIcon/exit.png +++ b/plugins/Themes/Oxygen/resources/SystemTrayIcon/exit.png diff --git a/plugins/Themes/Oxygen/resources/SystemTrayIcon/informations.png b/plugins/Themes/Oxygen/resources/SystemTrayIcon/informations.png Binary files differindex e1eb797..5b7b255 100644 --- a/plugins/Themes/Oxygen/resources/SystemTrayIcon/informations.png +++ b/plugins/Themes/Oxygen/resources/SystemTrayIcon/informations.png diff --git a/plugins/Themes/Oxygen/resources/SystemTrayIcon/options.png b/plugins/Themes/Oxygen/resources/SystemTrayIcon/options.png Binary files differindex d35365c..23ec531 100644 --- a/plugins/Themes/Oxygen/resources/SystemTrayIcon/options.png +++ b/plugins/Themes/Oxygen/resources/SystemTrayIcon/options.png diff --git a/plugins/Themes/Oxygen/resources/SystemTrayIcon/systray_Caught_Unix.png b/plugins/Themes/Oxygen/resources/SystemTrayIcon/systray_Caught_Unix.png Binary files differindex a81e70d..6f5d1cf 100644 --- a/plugins/Themes/Oxygen/resources/SystemTrayIcon/systray_Caught_Unix.png +++ b/plugins/Themes/Oxygen/resources/SystemTrayIcon/systray_Caught_Unix.png diff --git a/plugins/Themes/Oxygen/resources/SystemTrayIcon/systray_Caught_Windows.png b/plugins/Themes/Oxygen/resources/SystemTrayIcon/systray_Caught_Windows.png Binary files differindex 8072aea..5464856 100644 --- a/plugins/Themes/Oxygen/resources/SystemTrayIcon/systray_Caught_Windows.png +++ b/plugins/Themes/Oxygen/resources/SystemTrayIcon/systray_Caught_Windows.png diff --git a/plugins/Themes/Oxygen/resources/SystemTrayIcon/systray_Semiuncaught_Unix.png b/plugins/Themes/Oxygen/resources/SystemTrayIcon/systray_Semiuncaught_Unix.png Binary files differindex f40ea82..b2bb2e3 100644 --- a/plugins/Themes/Oxygen/resources/SystemTrayIcon/systray_Semiuncaught_Unix.png +++ b/plugins/Themes/Oxygen/resources/SystemTrayIcon/systray_Semiuncaught_Unix.png diff --git a/plugins/Themes/Oxygen/resources/SystemTrayIcon/systray_Semiuncaught_Windows.png b/plugins/Themes/Oxygen/resources/SystemTrayIcon/systray_Semiuncaught_Windows.png Binary files differindex 8d673e4..0abeb5f 100644 --- a/plugins/Themes/Oxygen/resources/SystemTrayIcon/systray_Semiuncaught_Windows.png +++ b/plugins/Themes/Oxygen/resources/SystemTrayIcon/systray_Semiuncaught_Windows.png diff --git a/plugins/Themes/Oxygen/resources/SystemTrayIcon/systray_Uncaught_Unix.png b/plugins/Themes/Oxygen/resources/SystemTrayIcon/systray_Uncaught_Unix.png Binary files differindex 9ce4779..5e313b9 100644 --- a/plugins/Themes/Oxygen/resources/SystemTrayIcon/systray_Uncaught_Unix.png +++ b/plugins/Themes/Oxygen/resources/SystemTrayIcon/systray_Uncaught_Unix.png diff --git a/plugins/Themes/Oxygen/resources/SystemTrayIcon/systray_Uncaught_Windows.png b/plugins/Themes/Oxygen/resources/SystemTrayIcon/systray_Uncaught_Windows.png Binary files differindex d0fca1b..828e7e6 100644 --- a/plugins/Themes/Oxygen/resources/SystemTrayIcon/systray_Uncaught_Windows.png +++ b/plugins/Themes/Oxygen/resources/SystemTrayIcon/systray_Uncaught_Windows.png diff --git a/plugins/Themes/Oxygen/resources/add.png b/plugins/Themes/Oxygen/resources/add.png Binary files differindex 1e03be9..7932127 100644 --- a/plugins/Themes/Oxygen/resources/add.png +++ b/plugins/Themes/Oxygen/resources/add.png diff --git a/plugins/Themes/Oxygen/resources/cancel.png b/plugins/Themes/Oxygen/resources/cancel.png Binary files differindex 201353e..ae3c4e8 100644 --- a/plugins/Themes/Oxygen/resources/cancel.png +++ b/plugins/Themes/Oxygen/resources/cancel.png diff --git a/plugins/Themes/Oxygen/resources/export-transfer-list.png b/plugins/Themes/Oxygen/resources/export-transfer-list.png Binary files differindex 259e887..3a0aac6 100644 --- a/plugins/Themes/Oxygen/resources/export-transfer-list.png +++ b/plugins/Themes/Oxygen/resources/export-transfer-list.png diff --git a/plugins/Themes/Oxygen/resources/import-transfer-list.png b/plugins/Themes/Oxygen/resources/import-transfer-list.png Binary files differindex 58db827..ee47f0d 100644 --- a/plugins/Themes/Oxygen/resources/import-transfer-list.png +++ b/plugins/Themes/Oxygen/resources/import-transfer-list.png diff --git a/plugins/Themes/Oxygen/resources/main.png b/plugins/Themes/Oxygen/resources/main.png Binary files differindex 8072aea..5464856 100644 --- a/plugins/Themes/Oxygen/resources/main.png +++ b/plugins/Themes/Oxygen/resources/main.png diff --git a/plugins/Themes/Oxygen/resources/moveDown.png b/plugins/Themes/Oxygen/resources/moveDown.png Binary files differindex 03f2014..82a312c 100644 --- a/plugins/Themes/Oxygen/resources/moveDown.png +++ b/plugins/Themes/Oxygen/resources/moveDown.png diff --git a/plugins/Themes/Oxygen/resources/moveUp.png b/plugins/Themes/Oxygen/resources/moveUp.png Binary files differindex 5e42321..7f7ba72 100644 --- a/plugins/Themes/Oxygen/resources/moveUp.png +++ b/plugins/Themes/Oxygen/resources/moveUp.png diff --git a/plugins/Themes/Oxygen/resources/player_end.png b/plugins/Themes/Oxygen/resources/player_end.png Binary files differindex 0d22924..18982db 100644 --- a/plugins/Themes/Oxygen/resources/player_end.png +++ b/plugins/Themes/Oxygen/resources/player_end.png diff --git a/plugins/Themes/Oxygen/resources/player_pause.png b/plugins/Themes/Oxygen/resources/player_pause.png Binary files differindex a9b3113..68ee21f 100644 --- a/plugins/Themes/Oxygen/resources/player_pause.png +++ b/plugins/Themes/Oxygen/resources/player_pause.png diff --git a/plugins/Themes/Oxygen/resources/player_play.png b/plugins/Themes/Oxygen/resources/player_play.png Binary files differindex 80ff3a1..a1c5b83 100644 --- a/plugins/Themes/Oxygen/resources/player_play.png +++ b/plugins/Themes/Oxygen/resources/player_play.png diff --git a/plugins/Themes/Oxygen/resources/putOnBottom.png b/plugins/Themes/Oxygen/resources/putOnBottom.png Binary files differindex aadd380..512286e 100644 --- a/plugins/Themes/Oxygen/resources/putOnBottom.png +++ b/plugins/Themes/Oxygen/resources/putOnBottom.png diff --git a/plugins/Themes/Oxygen/resources/putOnTop.png b/plugins/Themes/Oxygen/resources/putOnTop.png Binary files differindex 6f54166..30fe96b 100644 --- a/plugins/Themes/Oxygen/resources/putOnTop.png +++ b/plugins/Themes/Oxygen/resources/putOnTop.png diff --git a/plugins/Themes/Oxygen/resources/remove.png b/plugins/Themes/Oxygen/resources/remove.png Binary files differindex 5b4c488..b711740 100644 --- a/plugins/Themes/Oxygen/resources/remove.png +++ b/plugins/Themes/Oxygen/resources/remove.png diff --git a/plugins/Themes/Oxygen/resources/search.png b/plugins/Themes/Oxygen/resources/search.png Binary files differindex 3b674c3..cef1836 100644 --- a/plugins/Themes/Oxygen/resources/search.png +++ b/plugins/Themes/Oxygen/resources/search.png diff --git a/plugins/Themes/Oxygen/themesOptions.ui b/plugins/Themes/Oxygen/themesOptions.ui new file mode 100644 index 0000000..b3ac73b --- /dev/null +++ b/plugins/Themes/Oxygen/themesOptions.ui @@ -0,0 +1,426 @@ +<?xml version="1.0" encoding="UTF-8"?> +<ui version="4.0"> + <class>themesOptions</class> + <widget class="QWidget" name="themesOptions"> + <property name="geometry"> + <rect> + <x>0</x> + <y>0</y> + <width>519</width> + <height>389</height> + </rect> + </property> + <layout class="QVBoxLayout" name="verticalLayout"> + <property name="spacing"> + <number>0</number> + </property> + <property name="leftMargin"> + <number>0</number> + </property> + <property name="topMargin"> + <number>0</number> + </property> + <property name="rightMargin"> + <number>0</number> + </property> + <property name="bottomMargin"> + <number>0</number> + </property> + <item> + <widget class="QToolBox" name="toolBox"> + <property name="currentIndex"> + <number>0</number> + </property> + <widget class="QWidget" name="page"> + <property name="geometry"> + <rect> + <x>0</x> + <y>0</y> + <width>509</width> + <height>292</height> + </rect> + </property> + <attribute name="label"> + <string>Use</string> + </attribute> + <layout class="QGridLayout" name="gridLayout_3"> + <item row="0" column="0"> + <widget class="QLabel" name="labelStartWithMoreButtonPushed"> + <property name="text"> + <string>Start with the "more button" pushed</string> + </property> + </widget> + </item> + <item row="0" column="1"> + <widget class="QCheckBox" name="checkBoxStartWithMoreButtonPushed"/> + </item> + <item row="1" column="0"> + <widget class="QLabel" name="labelAlwaysOnTop"> + <property name="text"> + <string>Always on top</string> + </property> + </widget> + </item> + <item row="2" column="0"> + <widget class="QLabel" name="label"> + <property name="text"> + <string>Minimize on close to systray</string> + </property> + </widget> + </item> + <item row="2" column="1"> + <widget class="QCheckBox" name="minimizeToSystray"/> + </item> + <item row="4" column="1" colspan="2"> + <widget class="QComboBox" name="comboBox_copyEnd"> + <item> + <property name="text"> + <string notr="true">Don't close if errors are found</string> + </property> + </item> + <item> + <property name="text"> + <string notr="true">Never close</string> + </property> + </item> + <item> + <property name="text"> + <string notr="true">Always close</string> + </property> + </item> + </widget> + </item> + <item row="4" column="0"> + <widget class="QLabel" name="label_2"> + <property name="text"> + <string>At the end of the copy</string> + </property> + </widget> + </item> + <item row="5" column="0"> + <widget class="QLabel" name="label_Slider_speed"> + <property name="text"> + <string>Limit copy speed to</string> + </property> + </widget> + </item> + <item row="5" column="1" colspan="2"> + <layout class="QHBoxLayout" name="horizontalLayout_2"> + <item> + <widget class="QSlider" name="SliderSpeed"> + <property name="sizePolicy"> + <sizepolicy hsizetype="Minimum" vsizetype="Fixed"> + <horstretch>0</horstretch> + <verstretch>0</verstretch> + </sizepolicy> + </property> + <property name="maximum"> + <number>5</number> + </property> + <property name="orientation"> + <enum>Qt::Horizontal</enum> + </property> + </widget> + </item> + <item> + <widget class="QLabel" name="label_SpeedMaxValue"> + <property name="text"> + <string notr="true">Unlimited</string> + </property> + </widget> + </item> + </layout> + </item> + <item row="6" column="0"> + <widget class="QCheckBox" name="checkBox_limitSpeed"> + <property name="text"> + <string>Limit copy speed to</string> + </property> + </widget> + </item> + <item row="6" column="1" colspan="2"> + <widget class="QSpinBox" name="limitSpeed"> + <property name="enabled"> + <bool>false</bool> + </property> + <property name="suffix"> + <string> KB/s</string> + </property> + <property name="minimum"> + <number>1</number> + </property> + <property name="maximum"> + <number>999999</number> + </property> + </widget> + </item> + <item row="7" column="2"> + <spacer name="verticalSpacer_3"> + <property name="orientation"> + <enum>Qt::Vertical</enum> + </property> + <property name="sizeHint" stdset="0"> + <size> + <width>20</width> + <height>133</height> + </size> + </property> + </spacer> + </item> + <item row="1" column="1" colspan="2"> + <widget class="QCheckBox" name="alwaysOnTop"/> + </item> + <item row="3" column="0"> + <widget class="QLabel" name="label_startMinimized"> + <property name="text"> + <string>Start minimized</string> + </property> + </widget> + </item> + <item row="3" column="1"> + <widget class="QCheckBox" name="startMinimized"> + <property name="text"> + <string/> + </property> + </widget> + </item> + </layout> + </widget> + <widget class="QWidget" name="page_2"> + <property name="geometry"> + <rect> + <x>0</x> + <y>0</y> + <width>509</width> + <height>292</height> + </rect> + </property> + <attribute name="label"> + <string>Informations</string> + </attribute> + <layout class="QGridLayout" name="gridLayout_2"> + <item row="0" column="0"> + <widget class="QLabel" name="labelShowSpeedAsMain"> + <property name="text"> + <string>Show speed as main information</string> + </property> + </widget> + </item> + <item row="0" column="1"> + <widget class="QCheckBox" name="checkBoxShowSpeed"/> + </item> + <item row="1" column="2"> + <spacer name="verticalSpacer_2"> + <property name="orientation"> + <enum>Qt::Vertical</enum> + </property> + <property name="sizeHint" stdset="0"> + <size> + <width>20</width> + <height>529</height> + </size> + </property> + </spacer> + </item> + </layout> + </widget> + <widget class="QWidget" name="page_3"> + <property name="geometry"> + <rect> + <x>0</x> + <y>0</y> + <width>509</width> + <height>292</height> + </rect> + </property> + <attribute name="label"> + <string>Display</string> + </attribute> + <layout class="QGridLayout" name="gridLayout"> + <item row="0" column="0"> + <widget class="QLabel" name="labelSpeedWithProgressBar"> + <property name="text"> + <string>Speed with progress bar</string> + </property> + </widget> + </item> + <item row="0" column="1"> + <widget class="QCheckBox" name="speedWithProgressBar"/> + </item> + <item row="1" column="0"> + <widget class="QLabel" name="labelDualProgression"> + <property name="text"> + <string>Show dual progression</string> + </property> + </widget> + </item> + <item row="1" column="1"> + <widget class="QCheckBox" name="showDualProgression"/> + </item> + <item row="2" column="0"> + <widget class="QLabel" name="label_3"> + <property name="text"> + <string>Show progression in the title</string> + </property> + </widget> + </item> + <item row="2" column="1"> + <widget class="QCheckBox" name="showProgressionInTheTitle"/> + </item> + <item row="3" column="0"> + <widget class="QLabel" name="labelProgressionColor"> + <property name="text"> + <string>Progression color</string> + </property> + </widget> + </item> + <item row="3" column="1"> + <widget class="QFrame" name="frameProgressionColor"> + <property name="minimumSize"> + <size> + <width>225</width> + <height>20</height> + </size> + </property> + <property name="maximumSize"> + <size> + <width>225</width> + <height>20</height> + </size> + </property> + <property name="toolTip"> + <string>Click to edit the color</string> + </property> + <layout class="QHBoxLayout" name="horizontalLayout"> + <property name="spacing"> + <number>0</number> + </property> + <property name="leftMargin"> + <number>0</number> + </property> + <property name="topMargin"> + <number>0</number> + </property> + <property name="rightMargin"> + <number>0</number> + </property> + <property name="bottomMargin"> + <number>0</number> + </property> + <item> + <widget class="QPushButton" name="progressColorWrite"> + <property name="minimumSize"> + <size> + <width>75</width> + <height>20</height> + </size> + </property> + <property name="maximumSize"> + <size> + <width>75</width> + <height>20</height> + </size> + </property> + <property name="iconSize"> + <size> + <width>75</width> + <height>20</height> + </size> + </property> + <property name="flat"> + <bool>true</bool> + </property> + </widget> + </item> + <item> + <widget class="QPushButton" name="progressColorRead"> + <property name="minimumSize"> + <size> + <width>75</width> + <height>20</height> + </size> + </property> + <property name="maximumSize"> + <size> + <width>75</width> + <height>20</height> + </size> + </property> + <property name="iconSize"> + <size> + <width>75</width> + <height>20</height> + </size> + </property> + <property name="flat"> + <bool>true</bool> + </property> + </widget> + </item> + <item> + <widget class="QPushButton" name="progressColorRemaining"> + <property name="minimumSize"> + <size> + <width>75</width> + <height>20</height> + </size> + </property> + <property name="maximumSize"> + <size> + <width>75</width> + <height>20</height> + </size> + </property> + <property name="iconSize"> + <size> + <width>75</width> + <height>20</height> + </size> + </property> + <property name="flat"> + <bool>true</bool> + </property> + </widget> + </item> + </layout> + </widget> + </item> + <item row="4" column="0"> + <spacer name="verticalSpacer"> + <property name="orientation"> + <enum>Qt::Vertical</enum> + </property> + <property name="sizeHint" stdset="0"> + <size> + <width>20</width> + <height>455</height> + </size> + </property> + </spacer> + </item> + </layout> + </widget> + </widget> + </item> + </layout> + </widget> + <resources/> + <connections> + <connection> + <sender>checkBox_limitSpeed</sender> + <signal>clicked(bool)</signal> + <receiver>limitSpeed</receiver> + <slot>setEnabled(bool)</slot> + <hints> + <hint type="sourcelabel"> + <x>109</x> + <y>144</y> + </hint> + <hint type="destinationlabel"> + <x>199</x> + <y>144</y> + </hint> + </hints> + </connection> + </connections> +</ui> |