diff options
Diffstat (limited to 'plugins/Themes')
59 files changed, 6741 insertions, 0 deletions
diff --git a/plugins/Themes/Oxygen/DebugEngineMacro.h b/plugins/Themes/Oxygen/DebugEngineMacro.h new file mode 100644 index 0000000..a3dd648 --- /dev/null +++ b/plugins/Themes/Oxygen/DebugEngineMacro.h @@ -0,0 +1,25 @@ +/** \file DebugEngineMacro.h +\brief Define the macro for the debug +\author alpha_one_x86 +\version 0.3 +\date 2010 */ + +#ifndef DEBUGENGINEMACRO_H +#define DEBUGENGINEMACRO_H + +/// \brief Macro for the debug log +#ifdef ULTRACOPIER_PLUGIN_DEBUG + #if defined (__FILE__) && defined (__LINE__) + #define ULTRACOPIER_DEBUGCONSOLE(a,b) emit debugInformation(a,__func__,b,__FILE__,__LINE__) + #else + #define ULTRACOPIER_DEBUGCONSOLE(a,b) emit debugInformation(a,__func__,b) + #endif +#else // ULTRACOPIER_DEBUG + #define ULTRACOPIER_DEBUGCONSOLE(a,b) void() +#endif // ULTRACOPIER_DEBUG + +#endif // DEBUGENGINEMACRO_H + + + + diff --git a/plugins/Themes/Oxygen/Environment.h b/plugins/Themes/Oxygen/Environment.h new file mode 100644 index 0000000..94fd104 --- /dev/null +++ b/plugins/Themes/Oxygen/Environment.h @@ -0,0 +1,11 @@ +/** \file Environment.h
+\brief Define the environment variable and global function
+\author alpha_one_x86
+\version 0.3
+\date 2010 */
+
+#include "Variable.h"
+/// \brief The global include
+#include "StructEnumDefinition.h"
+#include "DebugEngineMacro.h"
+
diff --git a/plugins/Themes/Oxygen/Languages/ar/translation.ts b/plugins/Themes/Oxygen/Languages/ar/translation.ts new file mode 100644 index 0000000..43608a5 --- /dev/null +++ b/plugins/Themes/Oxygen/Languages/ar/translation.ts @@ -0,0 +1,218 @@ +<?xml version="1.0" encoding="utf-8"?> +<!DOCTYPE TS> +<TS version="2.0"> +<context> + <name>InterfacePlugin</name> + <message> + <location filename="../../interface.cpp" line="87"/> + <source>Copy engine</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../../interface.cpp" line="100"/> + <source>File %1/%2, size: %3/%4</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../../interface.cpp" line="145"/> + <source>Quit</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../../interface.cpp" line="670"/> + <source>Unlimited</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../../interface.cpp" line="849"/> + <source>File Name, 0KB</source> + <translation type="unfinished"></translation> + </message> +</context> +<context> + <name>interfaceCopy</name> + <message> + <location filename="../../interface.ui"/> + <source>From:</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../../interface.ui"/> + <source>To:</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../../interface.ui"/> + <source>0KB/sec</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../../interface.ui"/> + <source>&More</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../../interface.ui"/> + <source>&Pause</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../../interface.ui"/> + <source>&Skip</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../../interface.ui"/> + <source>&Cancel</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../../interface.ui"/> + <source>Limit copy speed at:</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../../interface.ui"/> + <source>Unlimited</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../../interface.ui"/> + <source>Copy list</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../../interface.ui"/> + <source>Source</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../../interface.ui"/> + <source>Size</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../../interface.ui"/> + <source>Destination</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../../interface.ui"/> + <source>Previous</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../../interface.ui"/> + <source>Next</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../../interface.ui"/> + <source>Options</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../../interface.ui"/> + <source>Copy end</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../../interface.ui"/> + <source>At the end of the copy: </source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../../interface.ui"/> + <source>Don't close if errors are found</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../../interface.ui"/> + <source>Never close</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../../interface.ui"/> + <source>Always close</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../../interface.ui"/> + <source>Speed limit</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../../interface.ui"/> + <source> KB/s</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../../interface.ui"/> + <source>File collisions</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../../interface.ui"/> + <source>What to do: </source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../../interface.ui"/> + <source>Copy errors</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../../interface.ui"/> + <source>Interface</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../../interface.ui"/> + <source>Show speed as main informations</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../../interface.ui"/> + <source>Add file</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../../interface.ui"/> + <source>Add folder</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../../interface.ui"/> + <source>Move file(s)</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../../interface.ui"/> + <source>Move folder</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../../interface.ui"/> + <source>Copy file(s)</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../../interface.ui"/> + <source>Copy folder</source> + <translation type="unfinished"></translation> + </message> +</context> +<context> + <name>options</name> + <message> + <location filename="../../options.ui"/> + <source>Form</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../../options.ui"/> + <source>Show speed as main informations</source> + <translation type="unfinished"></translation> + </message> +</context> +</TS> diff --git a/plugins/Themes/Oxygen/Languages/de/translation.ts b/plugins/Themes/Oxygen/Languages/de/translation.ts new file mode 100644 index 0000000..43608a5 --- /dev/null +++ b/plugins/Themes/Oxygen/Languages/de/translation.ts @@ -0,0 +1,218 @@ +<?xml version="1.0" encoding="utf-8"?> +<!DOCTYPE TS> +<TS version="2.0"> +<context> + <name>InterfacePlugin</name> + <message> + <location filename="../../interface.cpp" line="87"/> + <source>Copy engine</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../../interface.cpp" line="100"/> + <source>File %1/%2, size: %3/%4</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../../interface.cpp" line="145"/> + <source>Quit</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../../interface.cpp" line="670"/> + <source>Unlimited</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../../interface.cpp" line="849"/> + <source>File Name, 0KB</source> + <translation type="unfinished"></translation> + </message> +</context> +<context> + <name>interfaceCopy</name> + <message> + <location filename="../../interface.ui"/> + <source>From:</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../../interface.ui"/> + <source>To:</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../../interface.ui"/> + <source>0KB/sec</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../../interface.ui"/> + <source>&More</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../../interface.ui"/> + <source>&Pause</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../../interface.ui"/> + <source>&Skip</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../../interface.ui"/> + <source>&Cancel</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../../interface.ui"/> + <source>Limit copy speed at:</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../../interface.ui"/> + <source>Unlimited</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../../interface.ui"/> + <source>Copy list</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../../interface.ui"/> + <source>Source</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../../interface.ui"/> + <source>Size</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../../interface.ui"/> + <source>Destination</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../../interface.ui"/> + <source>Previous</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../../interface.ui"/> + <source>Next</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../../interface.ui"/> + <source>Options</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../../interface.ui"/> + <source>Copy end</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../../interface.ui"/> + <source>At the end of the copy: </source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../../interface.ui"/> + <source>Don't close if errors are found</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../../interface.ui"/> + <source>Never close</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../../interface.ui"/> + <source>Always close</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../../interface.ui"/> + <source>Speed limit</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../../interface.ui"/> + <source> KB/s</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../../interface.ui"/> + <source>File collisions</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../../interface.ui"/> + <source>What to do: </source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../../interface.ui"/> + <source>Copy errors</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../../interface.ui"/> + <source>Interface</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../../interface.ui"/> + <source>Show speed as main informations</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../../interface.ui"/> + <source>Add file</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../../interface.ui"/> + <source>Add folder</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../../interface.ui"/> + <source>Move file(s)</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../../interface.ui"/> + <source>Move folder</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../../interface.ui"/> + <source>Copy file(s)</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../../interface.ui"/> + <source>Copy folder</source> + <translation type="unfinished"></translation> + </message> +</context> +<context> + <name>options</name> + <message> + <location filename="../../options.ui"/> + <source>Form</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../../options.ui"/> + <source>Show speed as main informations</source> + <translation type="unfinished"></translation> + </message> +</context> +</TS> diff --git a/plugins/Themes/Oxygen/Languages/el/translation.ts b/plugins/Themes/Oxygen/Languages/el/translation.ts new file mode 100644 index 0000000..43608a5 --- /dev/null +++ b/plugins/Themes/Oxygen/Languages/el/translation.ts @@ -0,0 +1,218 @@ +<?xml version="1.0" encoding="utf-8"?> +<!DOCTYPE TS> +<TS version="2.0"> +<context> + <name>InterfacePlugin</name> + <message> + <location filename="../../interface.cpp" line="87"/> + <source>Copy engine</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../../interface.cpp" line="100"/> + <source>File %1/%2, size: %3/%4</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../../interface.cpp" line="145"/> + <source>Quit</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../../interface.cpp" line="670"/> + <source>Unlimited</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../../interface.cpp" line="849"/> + <source>File Name, 0KB</source> + <translation type="unfinished"></translation> + </message> +</context> +<context> + <name>interfaceCopy</name> + <message> + <location filename="../../interface.ui"/> + <source>From:</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../../interface.ui"/> + <source>To:</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../../interface.ui"/> + <source>0KB/sec</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../../interface.ui"/> + <source>&More</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../../interface.ui"/> + <source>&Pause</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../../interface.ui"/> + <source>&Skip</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../../interface.ui"/> + <source>&Cancel</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../../interface.ui"/> + <source>Limit copy speed at:</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../../interface.ui"/> + <source>Unlimited</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../../interface.ui"/> + <source>Copy list</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../../interface.ui"/> + <source>Source</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../../interface.ui"/> + <source>Size</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../../interface.ui"/> + <source>Destination</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../../interface.ui"/> + <source>Previous</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../../interface.ui"/> + <source>Next</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../../interface.ui"/> + <source>Options</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../../interface.ui"/> + <source>Copy end</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../../interface.ui"/> + <source>At the end of the copy: </source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../../interface.ui"/> + <source>Don't close if errors are found</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../../interface.ui"/> + <source>Never close</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../../interface.ui"/> + <source>Always close</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../../interface.ui"/> + <source>Speed limit</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../../interface.ui"/> + <source> KB/s</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../../interface.ui"/> + <source>File collisions</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../../interface.ui"/> + <source>What to do: </source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../../interface.ui"/> + <source>Copy errors</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../../interface.ui"/> + <source>Interface</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../../interface.ui"/> + <source>Show speed as main informations</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../../interface.ui"/> + <source>Add file</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../../interface.ui"/> + <source>Add folder</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../../interface.ui"/> + <source>Move file(s)</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../../interface.ui"/> + <source>Move folder</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../../interface.ui"/> + <source>Copy file(s)</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../../interface.ui"/> + <source>Copy folder</source> + <translation type="unfinished"></translation> + </message> +</context> +<context> + <name>options</name> + <message> + <location filename="../../options.ui"/> + <source>Form</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../../options.ui"/> + <source>Show speed as main informations</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 new file mode 100644 index 0000000..43608a5 --- /dev/null +++ b/plugins/Themes/Oxygen/Languages/es/translation.ts @@ -0,0 +1,218 @@ +<?xml version="1.0" encoding="utf-8"?> +<!DOCTYPE TS> +<TS version="2.0"> +<context> + <name>InterfacePlugin</name> + <message> + <location filename="../../interface.cpp" line="87"/> + <source>Copy engine</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../../interface.cpp" line="100"/> + <source>File %1/%2, size: %3/%4</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../../interface.cpp" line="145"/> + <source>Quit</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../../interface.cpp" line="670"/> + <source>Unlimited</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../../interface.cpp" line="849"/> + <source>File Name, 0KB</source> + <translation type="unfinished"></translation> + </message> +</context> +<context> + <name>interfaceCopy</name> + <message> + <location filename="../../interface.ui"/> + <source>From:</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../../interface.ui"/> + <source>To:</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../../interface.ui"/> + <source>0KB/sec</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../../interface.ui"/> + <source>&More</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../../interface.ui"/> + <source>&Pause</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../../interface.ui"/> + <source>&Skip</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../../interface.ui"/> + <source>&Cancel</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../../interface.ui"/> + <source>Limit copy speed at:</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../../interface.ui"/> + <source>Unlimited</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../../interface.ui"/> + <source>Copy list</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../../interface.ui"/> + <source>Source</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../../interface.ui"/> + <source>Size</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../../interface.ui"/> + <source>Destination</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../../interface.ui"/> + <source>Previous</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../../interface.ui"/> + <source>Next</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../../interface.ui"/> + <source>Options</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../../interface.ui"/> + <source>Copy end</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../../interface.ui"/> + <source>At the end of the copy: </source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../../interface.ui"/> + <source>Don't close if errors are found</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../../interface.ui"/> + <source>Never close</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../../interface.ui"/> + <source>Always close</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../../interface.ui"/> + <source>Speed limit</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../../interface.ui"/> + <source> KB/s</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../../interface.ui"/> + <source>File collisions</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../../interface.ui"/> + <source>What to do: </source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../../interface.ui"/> + <source>Copy errors</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../../interface.ui"/> + <source>Interface</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../../interface.ui"/> + <source>Show speed as main informations</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../../interface.ui"/> + <source>Add file</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../../interface.ui"/> + <source>Add folder</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../../interface.ui"/> + <source>Move file(s)</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../../interface.ui"/> + <source>Move folder</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../../interface.ui"/> + <source>Copy file(s)</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../../interface.ui"/> + <source>Copy folder</source> + <translation type="unfinished"></translation> + </message> +</context> +<context> + <name>options</name> + <message> + <location filename="../../options.ui"/> + <source>Form</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../../options.ui"/> + <source>Show speed as main informations</source> + <translation type="unfinished"></translation> + </message> +</context> +</TS> diff --git a/plugins/Themes/Oxygen/Languages/fr/translation.ts b/plugins/Themes/Oxygen/Languages/fr/translation.ts new file mode 100644 index 0000000..89f64bc --- /dev/null +++ b/plugins/Themes/Oxygen/Languages/fr/translation.ts @@ -0,0 +1,218 @@ +<?xml version="1.0" encoding="utf-8"?> +<!DOCTYPE TS> +<TS version="2.0" language="fr" sourcelanguage="en"> +<context> + <name>InterfacePlugin</name> + <message> + <location filename="../../interface.cpp" line="+87"/> + <source>Copy engine</source> + <translation>Moteur de copie</translation> + </message> + <message> + <location line="+13"/> + <source>File %1/%2, size: %3/%4</source> + <translation>Fichier %1/%2, taille: %3/%4</translation> + </message> + <message> + <location line="+45"/> + <source>Quit</source> + <translation>Quitter</translation> + </message> + <message> + <location line="+525"/> + <source>Unlimited</source> + <translation>Illimité</translation> + </message> + <message> + <location line="+179"/> + <source>File Name, 0KB</source> + <translation>Nom de fichier, 0Ko</translation> + </message> +</context> +<context> + <name>interfaceCopy</name> + <message> + <location filename="../../interface.ui"/> + <source>From:</source> + <translation>Depuis:</translation> + </message> + <message> + <location/> + <source>To:</source> + <translation>Vers:</translation> + </message> + <message> + <location/> + <source>0KB/sec</source> + <translation>0Ko/s</translation> + </message> + <message> + <location/> + <source>&More</source> + <translation>Pl&us</translation> + </message> + <message> + <location/> + <source>&Pause</source> + <translation>&Pause</translation> + </message> + <message> + <location/> + <source>&Skip</source> + <translation>&Passer</translation> + </message> + <message> + <location/> + <source>&Cancel</source> + <translation>&Annuler</translation> + </message> + <message> + <location/> + <source>Limit copy speed at:</source> + <translation>Limiter la vitesse de copie à :</translation> + </message> + <message> + <location/> + <source>Unlimited</source> + <translation>Illimité</translation> + </message> + <message> + <location/> + <source>Copy list</source> + <translation>Liste de copie</translation> + </message> + <message> + <location/> + <source>Source</source> + <translation>Source</translation> + </message> + <message> + <location/> + <source>Size</source> + <translation>Taille</translation> + </message> + <message> + <location/> + <source>Destination</source> + <translation>Destination</translation> + </message> + <message> + <location/> + <source>Previous</source> + <translation>Précedent</translation> + </message> + <message> + <location/> + <source>Next</source> + <translation>Suivant</translation> + </message> + <message> + <location/> + <source>Options</source> + <translation>Options</translation> + </message> + <message> + <location/> + <source>Copy end</source> + <translation>Fin de copie</translation> + </message> + <message> + <location/> + <source>At the end of the copy: </source> + <translation>A la fin de la copie:</translation> + </message> + <message> + <location/> + <source>Don't close if errors are found</source> + <translation>Garder ouvert s'il y a des erreurs</translation> + </message> + <message> + <location/> + <source>Never close</source> + <translation>Ne jamais fermer</translation> + </message> + <message> + <location/> + <source>Always close</source> + <translation>Toujours fermer</translation> + </message> + <message> + <location/> + <source>Speed limit</source> + <translation>Limitation de la vitesse</translation> + </message> + <message> + <location/> + <source> KB/s</source> + <translation> Ko/s</translation> + </message> + <message> + <location/> + <source>File collisions</source> + <translation>Collision de fichier</translation> + </message> + <message> + <location/> + <source>What to do: </source> + <translation>Opération à effectuer:</translation> + </message> + <message> + <location/> + <source>Copy errors</source> + <translation>Erreurs de copie</translation> + </message> + <message> + <location/> + <source>Interface</source> + <translation>Interface</translation> + </message> + <message> + <location/> + <source>Show speed as main informations</source> + <translation>Montrer la vitesse comme une information principale</translation> + </message> + <message> + <location/> + <source>Add file</source> + <translation>Ajouter un fichier</translation> + </message> + <message> + <location/> + <source>Add folder</source> + <translation>Ajouter un répertoire</translation> + </message> + <message> + <location/> + <source>Move file(s)</source> + <translation>Déplacer les fichier(s)</translation> + </message> + <message> + <location/> + <source>Move folder</source> + <translation>Déplacer un répertoire</translation> + </message> + <message> + <location/> + <source>Copy file(s)</source> + <translation>Copier les fichier(s)</translation> + </message> + <message> + <location/> + <source>Copy folder</source> + <translation>Copier un répertoire</translation> + </message> +</context> +<context> + <name>options</name> + <message> + <location filename="../../options.ui"/> + <source>Form</source> + <translation>Depuis</translation> + </message> + <message> + <location/> + <source>Show speed as main informations</source> + <translation>Montrer la vitesse comme une information principale</translation> + </message> +</context> +</TS> diff --git a/plugins/Themes/Oxygen/Languages/hi/translation.ts b/plugins/Themes/Oxygen/Languages/hi/translation.ts new file mode 100644 index 0000000..43608a5 --- /dev/null +++ b/plugins/Themes/Oxygen/Languages/hi/translation.ts @@ -0,0 +1,218 @@ +<?xml version="1.0" encoding="utf-8"?> +<!DOCTYPE TS> +<TS version="2.0"> +<context> + <name>InterfacePlugin</name> + <message> + <location filename="../../interface.cpp" line="87"/> + <source>Copy engine</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../../interface.cpp" line="100"/> + <source>File %1/%2, size: %3/%4</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../../interface.cpp" line="145"/> + <source>Quit</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../../interface.cpp" line="670"/> + <source>Unlimited</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../../interface.cpp" line="849"/> + <source>File Name, 0KB</source> + <translation type="unfinished"></translation> + </message> +</context> +<context> + <name>interfaceCopy</name> + <message> + <location filename="../../interface.ui"/> + <source>From:</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../../interface.ui"/> + <source>To:</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../../interface.ui"/> + <source>0KB/sec</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../../interface.ui"/> + <source>&More</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../../interface.ui"/> + <source>&Pause</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../../interface.ui"/> + <source>&Skip</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../../interface.ui"/> + <source>&Cancel</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../../interface.ui"/> + <source>Limit copy speed at:</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../../interface.ui"/> + <source>Unlimited</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../../interface.ui"/> + <source>Copy list</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../../interface.ui"/> + <source>Source</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../../interface.ui"/> + <source>Size</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../../interface.ui"/> + <source>Destination</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../../interface.ui"/> + <source>Previous</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../../interface.ui"/> + <source>Next</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../../interface.ui"/> + <source>Options</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../../interface.ui"/> + <source>Copy end</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../../interface.ui"/> + <source>At the end of the copy: </source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../../interface.ui"/> + <source>Don't close if errors are found</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../../interface.ui"/> + <source>Never close</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../../interface.ui"/> + <source>Always close</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../../interface.ui"/> + <source>Speed limit</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../../interface.ui"/> + <source> KB/s</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../../interface.ui"/> + <source>File collisions</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../../interface.ui"/> + <source>What to do: </source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../../interface.ui"/> + <source>Copy errors</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../../interface.ui"/> + <source>Interface</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../../interface.ui"/> + <source>Show speed as main informations</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../../interface.ui"/> + <source>Add file</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../../interface.ui"/> + <source>Add folder</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../../interface.ui"/> + <source>Move file(s)</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../../interface.ui"/> + <source>Move folder</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../../interface.ui"/> + <source>Copy file(s)</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../../interface.ui"/> + <source>Copy folder</source> + <translation type="unfinished"></translation> + </message> +</context> +<context> + <name>options</name> + <message> + <location filename="../../options.ui"/> + <source>Form</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../../options.ui"/> + <source>Show speed as main informations</source> + <translation type="unfinished"></translation> + </message> +</context> +</TS> diff --git a/plugins/Themes/Oxygen/Languages/id/translation.ts b/plugins/Themes/Oxygen/Languages/id/translation.ts new file mode 100644 index 0000000..43608a5 --- /dev/null +++ b/plugins/Themes/Oxygen/Languages/id/translation.ts @@ -0,0 +1,218 @@ +<?xml version="1.0" encoding="utf-8"?> +<!DOCTYPE TS> +<TS version="2.0"> +<context> + <name>InterfacePlugin</name> + <message> + <location filename="../../interface.cpp" line="87"/> + <source>Copy engine</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../../interface.cpp" line="100"/> + <source>File %1/%2, size: %3/%4</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../../interface.cpp" line="145"/> + <source>Quit</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../../interface.cpp" line="670"/> + <source>Unlimited</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../../interface.cpp" line="849"/> + <source>File Name, 0KB</source> + <translation type="unfinished"></translation> + </message> +</context> +<context> + <name>interfaceCopy</name> + <message> + <location filename="../../interface.ui"/> + <source>From:</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../../interface.ui"/> + <source>To:</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../../interface.ui"/> + <source>0KB/sec</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../../interface.ui"/> + <source>&More</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../../interface.ui"/> + <source>&Pause</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../../interface.ui"/> + <source>&Skip</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../../interface.ui"/> + <source>&Cancel</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../../interface.ui"/> + <source>Limit copy speed at:</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../../interface.ui"/> + <source>Unlimited</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../../interface.ui"/> + <source>Copy list</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../../interface.ui"/> + <source>Source</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../../interface.ui"/> + <source>Size</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../../interface.ui"/> + <source>Destination</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../../interface.ui"/> + <source>Previous</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../../interface.ui"/> + <source>Next</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../../interface.ui"/> + <source>Options</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../../interface.ui"/> + <source>Copy end</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../../interface.ui"/> + <source>At the end of the copy: </source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../../interface.ui"/> + <source>Don't close if errors are found</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../../interface.ui"/> + <source>Never close</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../../interface.ui"/> + <source>Always close</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../../interface.ui"/> + <source>Speed limit</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../../interface.ui"/> + <source> KB/s</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../../interface.ui"/> + <source>File collisions</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../../interface.ui"/> + <source>What to do: </source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../../interface.ui"/> + <source>Copy errors</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../../interface.ui"/> + <source>Interface</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../../interface.ui"/> + <source>Show speed as main informations</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../../interface.ui"/> + <source>Add file</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../../interface.ui"/> + <source>Add folder</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../../interface.ui"/> + <source>Move file(s)</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../../interface.ui"/> + <source>Move folder</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../../interface.ui"/> + <source>Copy file(s)</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../../interface.ui"/> + <source>Copy folder</source> + <translation type="unfinished"></translation> + </message> +</context> +<context> + <name>options</name> + <message> + <location filename="../../options.ui"/> + <source>Form</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../../options.ui"/> + <source>Show speed as main informations</source> + <translation type="unfinished"></translation> + </message> +</context> +</TS> diff --git a/plugins/Themes/Oxygen/Languages/it/translation.ts b/plugins/Themes/Oxygen/Languages/it/translation.ts new file mode 100644 index 0000000..43608a5 --- /dev/null +++ b/plugins/Themes/Oxygen/Languages/it/translation.ts @@ -0,0 +1,218 @@ +<?xml version="1.0" encoding="utf-8"?> +<!DOCTYPE TS> +<TS version="2.0"> +<context> + <name>InterfacePlugin</name> + <message> + <location filename="../../interface.cpp" line="87"/> + <source>Copy engine</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../../interface.cpp" line="100"/> + <source>File %1/%2, size: %3/%4</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../../interface.cpp" line="145"/> + <source>Quit</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../../interface.cpp" line="670"/> + <source>Unlimited</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../../interface.cpp" line="849"/> + <source>File Name, 0KB</source> + <translation type="unfinished"></translation> + </message> +</context> +<context> + <name>interfaceCopy</name> + <message> + <location filename="../../interface.ui"/> + <source>From:</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../../interface.ui"/> + <source>To:</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../../interface.ui"/> + <source>0KB/sec</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../../interface.ui"/> + <source>&More</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../../interface.ui"/> + <source>&Pause</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../../interface.ui"/> + <source>&Skip</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../../interface.ui"/> + <source>&Cancel</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../../interface.ui"/> + <source>Limit copy speed at:</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../../interface.ui"/> + <source>Unlimited</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../../interface.ui"/> + <source>Copy list</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../../interface.ui"/> + <source>Source</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../../interface.ui"/> + <source>Size</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../../interface.ui"/> + <source>Destination</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../../interface.ui"/> + <source>Previous</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../../interface.ui"/> + <source>Next</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../../interface.ui"/> + <source>Options</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../../interface.ui"/> + <source>Copy end</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../../interface.ui"/> + <source>At the end of the copy: </source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../../interface.ui"/> + <source>Don't close if errors are found</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../../interface.ui"/> + <source>Never close</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../../interface.ui"/> + <source>Always close</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../../interface.ui"/> + <source>Speed limit</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../../interface.ui"/> + <source> KB/s</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../../interface.ui"/> + <source>File collisions</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../../interface.ui"/> + <source>What to do: </source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../../interface.ui"/> + <source>Copy errors</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../../interface.ui"/> + <source>Interface</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../../interface.ui"/> + <source>Show speed as main informations</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../../interface.ui"/> + <source>Add file</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../../interface.ui"/> + <source>Add folder</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../../interface.ui"/> + <source>Move file(s)</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../../interface.ui"/> + <source>Move folder</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../../interface.ui"/> + <source>Copy file(s)</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../../interface.ui"/> + <source>Copy folder</source> + <translation type="unfinished"></translation> + </message> +</context> +<context> + <name>options</name> + <message> + <location filename="../../options.ui"/> + <source>Form</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../../options.ui"/> + <source>Show speed as main informations</source> + <translation type="unfinished"></translation> + </message> +</context> +</TS> diff --git a/plugins/Themes/Oxygen/Languages/ja/translation.ts b/plugins/Themes/Oxygen/Languages/ja/translation.ts new file mode 100644 index 0000000..4ea1e31 --- /dev/null +++ b/plugins/Themes/Oxygen/Languages/ja/translation.ts @@ -0,0 +1,218 @@ +<?xml version="1.0" encoding="utf-8"?> +<!DOCTYPE TS> +<TS version="2.0"> +<context> + <name>InterfacePlugin</name> + <message> + <location filename="../../interface.cpp" line="84"/> + <source>Copy engine</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../../interface.cpp" line="97"/> + <source>File %1/%2, size: %3/%4</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../../interface.cpp" line="142"/> + <source>Quit</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../../interface.cpp" line="667"/> + <source>Unlimited</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../../interface.cpp" line="846"/> + <source>File Name, 0KB</source> + <translation type="unfinished"></translation> + </message> +</context> +<context> + <name>interfaceCopy</name> + <message> + <location filename="../../interface.ui"/> + <source>From:</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../../interface.ui"/> + <source>To:</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../../interface.ui"/> + <source>0KB/sec</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../../interface.ui"/> + <source>&More</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../../interface.ui"/> + <source>&Pause</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../../interface.ui"/> + <source>&Skip</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../../interface.ui"/> + <source>&Cancel</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../../interface.ui"/> + <source>Limit copy speed at:</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../../interface.ui"/> + <source>Unlimited</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../../interface.ui"/> + <source>Copy list</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../../interface.ui"/> + <source>Source</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../../interface.ui"/> + <source>Size</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../../interface.ui"/> + <source>Destination</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../../interface.ui"/> + <source>Previous</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../../interface.ui"/> + <source>Next</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../../interface.ui"/> + <source>Options</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../../interface.ui"/> + <source>Copy end</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../../interface.ui"/> + <source>At the end of the copy: </source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../../interface.ui"/> + <source>Don't close if errors are found</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../../interface.ui"/> + <source>Never close</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../../interface.ui"/> + <source>Always close</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../../interface.ui"/> + <source>Speed limit</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../../interface.ui"/> + <source> KB/s</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../../interface.ui"/> + <source>File collisions</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../../interface.ui"/> + <source>What to do: </source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../../interface.ui"/> + <source>Copy errors</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../../interface.ui"/> + <source>Interface</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../../interface.ui"/> + <source>Show speed as main informations</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../../interface.ui"/> + <source>Add file</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../../interface.ui"/> + <source>Add folder</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../../interface.ui"/> + <source>Move file(s)</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../../interface.ui"/> + <source>Move folder</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../../interface.ui"/> + <source>Copy file(s)</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../../interface.ui"/> + <source>Copy folder</source> + <translation type="unfinished"></translation> + </message> +</context> +<context> + <name>options</name> + <message> + <location filename="../../options.ui"/> + <source>Form</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../../options.ui"/> + <source>Show speed as main informations</source> + <translation type="unfinished"></translation> + </message> +</context> +</TS> diff --git a/plugins/Themes/Oxygen/Languages/nl/translation.ts b/plugins/Themes/Oxygen/Languages/nl/translation.ts new file mode 100644 index 0000000..43608a5 --- /dev/null +++ b/plugins/Themes/Oxygen/Languages/nl/translation.ts @@ -0,0 +1,218 @@ +<?xml version="1.0" encoding="utf-8"?> +<!DOCTYPE TS> +<TS version="2.0"> +<context> + <name>InterfacePlugin</name> + <message> + <location filename="../../interface.cpp" line="87"/> + <source>Copy engine</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../../interface.cpp" line="100"/> + <source>File %1/%2, size: %3/%4</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../../interface.cpp" line="145"/> + <source>Quit</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../../interface.cpp" line="670"/> + <source>Unlimited</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../../interface.cpp" line="849"/> + <source>File Name, 0KB</source> + <translation type="unfinished"></translation> + </message> +</context> +<context> + <name>interfaceCopy</name> + <message> + <location filename="../../interface.ui"/> + <source>From:</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../../interface.ui"/> + <source>To:</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../../interface.ui"/> + <source>0KB/sec</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../../interface.ui"/> + <source>&More</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../../interface.ui"/> + <source>&Pause</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../../interface.ui"/> + <source>&Skip</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../../interface.ui"/> + <source>&Cancel</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../../interface.ui"/> + <source>Limit copy speed at:</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../../interface.ui"/> + <source>Unlimited</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../../interface.ui"/> + <source>Copy list</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../../interface.ui"/> + <source>Source</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../../interface.ui"/> + <source>Size</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../../interface.ui"/> + <source>Destination</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../../interface.ui"/> + <source>Previous</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../../interface.ui"/> + <source>Next</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../../interface.ui"/> + <source>Options</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../../interface.ui"/> + <source>Copy end</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../../interface.ui"/> + <source>At the end of the copy: </source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../../interface.ui"/> + <source>Don't close if errors are found</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../../interface.ui"/> + <source>Never close</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../../interface.ui"/> + <source>Always close</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../../interface.ui"/> + <source>Speed limit</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../../interface.ui"/> + <source> KB/s</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../../interface.ui"/> + <source>File collisions</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../../interface.ui"/> + <source>What to do: </source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../../interface.ui"/> + <source>Copy errors</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../../interface.ui"/> + <source>Interface</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../../interface.ui"/> + <source>Show speed as main informations</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../../interface.ui"/> + <source>Add file</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../../interface.ui"/> + <source>Add folder</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../../interface.ui"/> + <source>Move file(s)</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../../interface.ui"/> + <source>Move folder</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../../interface.ui"/> + <source>Copy file(s)</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../../interface.ui"/> + <source>Copy folder</source> + <translation type="unfinished"></translation> + </message> +</context> +<context> + <name>options</name> + <message> + <location filename="../../options.ui"/> + <source>Form</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../../options.ui"/> + <source>Show speed as main informations</source> + <translation type="unfinished"></translation> + </message> +</context> +</TS> diff --git a/plugins/Themes/Oxygen/Languages/no/translation.ts b/plugins/Themes/Oxygen/Languages/no/translation.ts new file mode 100644 index 0000000..43608a5 --- /dev/null +++ b/plugins/Themes/Oxygen/Languages/no/translation.ts @@ -0,0 +1,218 @@ +<?xml version="1.0" encoding="utf-8"?> +<!DOCTYPE TS> +<TS version="2.0"> +<context> + <name>InterfacePlugin</name> + <message> + <location filename="../../interface.cpp" line="87"/> + <source>Copy engine</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../../interface.cpp" line="100"/> + <source>File %1/%2, size: %3/%4</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../../interface.cpp" line="145"/> + <source>Quit</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../../interface.cpp" line="670"/> + <source>Unlimited</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../../interface.cpp" line="849"/> + <source>File Name, 0KB</source> + <translation type="unfinished"></translation> + </message> +</context> +<context> + <name>interfaceCopy</name> + <message> + <location filename="../../interface.ui"/> + <source>From:</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../../interface.ui"/> + <source>To:</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../../interface.ui"/> + <source>0KB/sec</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../../interface.ui"/> + <source>&More</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../../interface.ui"/> + <source>&Pause</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../../interface.ui"/> + <source>&Skip</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../../interface.ui"/> + <source>&Cancel</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../../interface.ui"/> + <source>Limit copy speed at:</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../../interface.ui"/> + <source>Unlimited</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../../interface.ui"/> + <source>Copy list</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../../interface.ui"/> + <source>Source</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../../interface.ui"/> + <source>Size</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../../interface.ui"/> + <source>Destination</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../../interface.ui"/> + <source>Previous</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../../interface.ui"/> + <source>Next</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../../interface.ui"/> + <source>Options</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../../interface.ui"/> + <source>Copy end</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../../interface.ui"/> + <source>At the end of the copy: </source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../../interface.ui"/> + <source>Don't close if errors are found</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../../interface.ui"/> + <source>Never close</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../../interface.ui"/> + <source>Always close</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../../interface.ui"/> + <source>Speed limit</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../../interface.ui"/> + <source> KB/s</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../../interface.ui"/> + <source>File collisions</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../../interface.ui"/> + <source>What to do: </source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../../interface.ui"/> + <source>Copy errors</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../../interface.ui"/> + <source>Interface</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../../interface.ui"/> + <source>Show speed as main informations</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../../interface.ui"/> + <source>Add file</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../../interface.ui"/> + <source>Add folder</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../../interface.ui"/> + <source>Move file(s)</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../../interface.ui"/> + <source>Move folder</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../../interface.ui"/> + <source>Copy file(s)</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../../interface.ui"/> + <source>Copy folder</source> + <translation type="unfinished"></translation> + </message> +</context> +<context> + <name>options</name> + <message> + <location filename="../../options.ui"/> + <source>Form</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../../options.ui"/> + <source>Show speed as main informations</source> + <translation type="unfinished"></translation> + </message> +</context> +</TS> diff --git a/plugins/Themes/Oxygen/Languages/pl/translation.ts b/plugins/Themes/Oxygen/Languages/pl/translation.ts new file mode 100644 index 0000000..43608a5 --- /dev/null +++ b/plugins/Themes/Oxygen/Languages/pl/translation.ts @@ -0,0 +1,218 @@ +<?xml version="1.0" encoding="utf-8"?> +<!DOCTYPE TS> +<TS version="2.0"> +<context> + <name>InterfacePlugin</name> + <message> + <location filename="../../interface.cpp" line="87"/> + <source>Copy engine</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../../interface.cpp" line="100"/> + <source>File %1/%2, size: %3/%4</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../../interface.cpp" line="145"/> + <source>Quit</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../../interface.cpp" line="670"/> + <source>Unlimited</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../../interface.cpp" line="849"/> + <source>File Name, 0KB</source> + <translation type="unfinished"></translation> + </message> +</context> +<context> + <name>interfaceCopy</name> + <message> + <location filename="../../interface.ui"/> + <source>From:</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../../interface.ui"/> + <source>To:</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../../interface.ui"/> + <source>0KB/sec</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../../interface.ui"/> + <source>&More</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../../interface.ui"/> + <source>&Pause</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../../interface.ui"/> + <source>&Skip</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../../interface.ui"/> + <source>&Cancel</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../../interface.ui"/> + <source>Limit copy speed at:</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../../interface.ui"/> + <source>Unlimited</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../../interface.ui"/> + <source>Copy list</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../../interface.ui"/> + <source>Source</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../../interface.ui"/> + <source>Size</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../../interface.ui"/> + <source>Destination</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../../interface.ui"/> + <source>Previous</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../../interface.ui"/> + <source>Next</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../../interface.ui"/> + <source>Options</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../../interface.ui"/> + <source>Copy end</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../../interface.ui"/> + <source>At the end of the copy: </source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../../interface.ui"/> + <source>Don't close if errors are found</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../../interface.ui"/> + <source>Never close</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../../interface.ui"/> + <source>Always close</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../../interface.ui"/> + <source>Speed limit</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../../interface.ui"/> + <source> KB/s</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../../interface.ui"/> + <source>File collisions</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../../interface.ui"/> + <source>What to do: </source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../../interface.ui"/> + <source>Copy errors</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../../interface.ui"/> + <source>Interface</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../../interface.ui"/> + <source>Show speed as main informations</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../../interface.ui"/> + <source>Add file</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../../interface.ui"/> + <source>Add folder</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../../interface.ui"/> + <source>Move file(s)</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../../interface.ui"/> + <source>Move folder</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../../interface.ui"/> + <source>Copy file(s)</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../../interface.ui"/> + <source>Copy folder</source> + <translation type="unfinished"></translation> + </message> +</context> +<context> + <name>options</name> + <message> + <location filename="../../options.ui"/> + <source>Form</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../../options.ui"/> + <source>Show speed as main informations</source> + <translation type="unfinished"></translation> + </message> +</context> +</TS> diff --git a/plugins/Themes/Oxygen/Languages/pt/translation.ts b/plugins/Themes/Oxygen/Languages/pt/translation.ts new file mode 100644 index 0000000..43608a5 --- /dev/null +++ b/plugins/Themes/Oxygen/Languages/pt/translation.ts @@ -0,0 +1,218 @@ +<?xml version="1.0" encoding="utf-8"?> +<!DOCTYPE TS> +<TS version="2.0"> +<context> + <name>InterfacePlugin</name> + <message> + <location filename="../../interface.cpp" line="87"/> + <source>Copy engine</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../../interface.cpp" line="100"/> + <source>File %1/%2, size: %3/%4</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../../interface.cpp" line="145"/> + <source>Quit</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../../interface.cpp" line="670"/> + <source>Unlimited</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../../interface.cpp" line="849"/> + <source>File Name, 0KB</source> + <translation type="unfinished"></translation> + </message> +</context> +<context> + <name>interfaceCopy</name> + <message> + <location filename="../../interface.ui"/> + <source>From:</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../../interface.ui"/> + <source>To:</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../../interface.ui"/> + <source>0KB/sec</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../../interface.ui"/> + <source>&More</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../../interface.ui"/> + <source>&Pause</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../../interface.ui"/> + <source>&Skip</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../../interface.ui"/> + <source>&Cancel</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../../interface.ui"/> + <source>Limit copy speed at:</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../../interface.ui"/> + <source>Unlimited</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../../interface.ui"/> + <source>Copy list</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../../interface.ui"/> + <source>Source</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../../interface.ui"/> + <source>Size</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../../interface.ui"/> + <source>Destination</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../../interface.ui"/> + <source>Previous</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../../interface.ui"/> + <source>Next</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../../interface.ui"/> + <source>Options</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../../interface.ui"/> + <source>Copy end</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../../interface.ui"/> + <source>At the end of the copy: </source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../../interface.ui"/> + <source>Don't close if errors are found</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../../interface.ui"/> + <source>Never close</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../../interface.ui"/> + <source>Always close</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../../interface.ui"/> + <source>Speed limit</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../../interface.ui"/> + <source> KB/s</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../../interface.ui"/> + <source>File collisions</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../../interface.ui"/> + <source>What to do: </source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../../interface.ui"/> + <source>Copy errors</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../../interface.ui"/> + <source>Interface</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../../interface.ui"/> + <source>Show speed as main informations</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../../interface.ui"/> + <source>Add file</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../../interface.ui"/> + <source>Add folder</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../../interface.ui"/> + <source>Move file(s)</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../../interface.ui"/> + <source>Move folder</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../../interface.ui"/> + <source>Copy file(s)</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../../interface.ui"/> + <source>Copy folder</source> + <translation type="unfinished"></translation> + </message> +</context> +<context> + <name>options</name> + <message> + <location filename="../../options.ui"/> + <source>Form</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../../options.ui"/> + <source>Show speed as main informations</source> + <translation type="unfinished"></translation> + </message> +</context> +</TS> diff --git a/plugins/Themes/Oxygen/Languages/ru/translation.ts b/plugins/Themes/Oxygen/Languages/ru/translation.ts new file mode 100644 index 0000000..43608a5 --- /dev/null +++ b/plugins/Themes/Oxygen/Languages/ru/translation.ts @@ -0,0 +1,218 @@ +<?xml version="1.0" encoding="utf-8"?> +<!DOCTYPE TS> +<TS version="2.0"> +<context> + <name>InterfacePlugin</name> + <message> + <location filename="../../interface.cpp" line="87"/> + <source>Copy engine</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../../interface.cpp" line="100"/> + <source>File %1/%2, size: %3/%4</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../../interface.cpp" line="145"/> + <source>Quit</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../../interface.cpp" line="670"/> + <source>Unlimited</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../../interface.cpp" line="849"/> + <source>File Name, 0KB</source> + <translation type="unfinished"></translation> + </message> +</context> +<context> + <name>interfaceCopy</name> + <message> + <location filename="../../interface.ui"/> + <source>From:</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../../interface.ui"/> + <source>To:</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../../interface.ui"/> + <source>0KB/sec</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../../interface.ui"/> + <source>&More</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../../interface.ui"/> + <source>&Pause</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../../interface.ui"/> + <source>&Skip</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../../interface.ui"/> + <source>&Cancel</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../../interface.ui"/> + <source>Limit copy speed at:</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../../interface.ui"/> + <source>Unlimited</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../../interface.ui"/> + <source>Copy list</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../../interface.ui"/> + <source>Source</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../../interface.ui"/> + <source>Size</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../../interface.ui"/> + <source>Destination</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../../interface.ui"/> + <source>Previous</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../../interface.ui"/> + <source>Next</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../../interface.ui"/> + <source>Options</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../../interface.ui"/> + <source>Copy end</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../../interface.ui"/> + <source>At the end of the copy: </source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../../interface.ui"/> + <source>Don't close if errors are found</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../../interface.ui"/> + <source>Never close</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../../interface.ui"/> + <source>Always close</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../../interface.ui"/> + <source>Speed limit</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../../interface.ui"/> + <source> KB/s</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../../interface.ui"/> + <source>File collisions</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../../interface.ui"/> + <source>What to do: </source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../../interface.ui"/> + <source>Copy errors</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../../interface.ui"/> + <source>Interface</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../../interface.ui"/> + <source>Show speed as main informations</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../../interface.ui"/> + <source>Add file</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../../interface.ui"/> + <source>Add folder</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../../interface.ui"/> + <source>Move file(s)</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../../interface.ui"/> + <source>Move folder</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../../interface.ui"/> + <source>Copy file(s)</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../../interface.ui"/> + <source>Copy folder</source> + <translation type="unfinished"></translation> + </message> +</context> +<context> + <name>options</name> + <message> + <location filename="../../options.ui"/> + <source>Form</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../../options.ui"/> + <source>Show speed as main informations</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 new file mode 100644 index 0000000..43608a5 --- /dev/null +++ b/plugins/Themes/Oxygen/Languages/th/translation.ts @@ -0,0 +1,218 @@ +<?xml version="1.0" encoding="utf-8"?> +<!DOCTYPE TS> +<TS version="2.0"> +<context> + <name>InterfacePlugin</name> + <message> + <location filename="../../interface.cpp" line="87"/> + <source>Copy engine</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../../interface.cpp" line="100"/> + <source>File %1/%2, size: %3/%4</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../../interface.cpp" line="145"/> + <source>Quit</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../../interface.cpp" line="670"/> + <source>Unlimited</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../../interface.cpp" line="849"/> + <source>File Name, 0KB</source> + <translation type="unfinished"></translation> + </message> +</context> +<context> + <name>interfaceCopy</name> + <message> + <location filename="../../interface.ui"/> + <source>From:</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../../interface.ui"/> + <source>To:</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../../interface.ui"/> + <source>0KB/sec</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../../interface.ui"/> + <source>&More</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../../interface.ui"/> + <source>&Pause</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../../interface.ui"/> + <source>&Skip</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../../interface.ui"/> + <source>&Cancel</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../../interface.ui"/> + <source>Limit copy speed at:</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../../interface.ui"/> + <source>Unlimited</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../../interface.ui"/> + <source>Copy list</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../../interface.ui"/> + <source>Source</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../../interface.ui"/> + <source>Size</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../../interface.ui"/> + <source>Destination</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../../interface.ui"/> + <source>Previous</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../../interface.ui"/> + <source>Next</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../../interface.ui"/> + <source>Options</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../../interface.ui"/> + <source>Copy end</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../../interface.ui"/> + <source>At the end of the copy: </source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../../interface.ui"/> + <source>Don't close if errors are found</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../../interface.ui"/> + <source>Never close</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../../interface.ui"/> + <source>Always close</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../../interface.ui"/> + <source>Speed limit</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../../interface.ui"/> + <source> KB/s</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../../interface.ui"/> + <source>File collisions</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../../interface.ui"/> + <source>What to do: </source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../../interface.ui"/> + <source>Copy errors</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../../interface.ui"/> + <source>Interface</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../../interface.ui"/> + <source>Show speed as main informations</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../../interface.ui"/> + <source>Add file</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../../interface.ui"/> + <source>Add folder</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../../interface.ui"/> + <source>Move file(s)</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../../interface.ui"/> + <source>Move folder</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../../interface.ui"/> + <source>Copy file(s)</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../../interface.ui"/> + <source>Copy folder</source> + <translation type="unfinished"></translation> + </message> +</context> +<context> + <name>options</name> + <message> + <location filename="../../options.ui"/> + <source>Form</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../../options.ui"/> + <source>Show speed as main informations</source> + <translation type="unfinished"></translation> + </message> +</context> +</TS> diff --git a/plugins/Themes/Oxygen/Languages/tr/translation.ts b/plugins/Themes/Oxygen/Languages/tr/translation.ts new file mode 100644 index 0000000..43608a5 --- /dev/null +++ b/plugins/Themes/Oxygen/Languages/tr/translation.ts @@ -0,0 +1,218 @@ +<?xml version="1.0" encoding="utf-8"?> +<!DOCTYPE TS> +<TS version="2.0"> +<context> + <name>InterfacePlugin</name> + <message> + <location filename="../../interface.cpp" line="87"/> + <source>Copy engine</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../../interface.cpp" line="100"/> + <source>File %1/%2, size: %3/%4</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../../interface.cpp" line="145"/> + <source>Quit</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../../interface.cpp" line="670"/> + <source>Unlimited</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../../interface.cpp" line="849"/> + <source>File Name, 0KB</source> + <translation type="unfinished"></translation> + </message> +</context> +<context> + <name>interfaceCopy</name> + <message> + <location filename="../../interface.ui"/> + <source>From:</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../../interface.ui"/> + <source>To:</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../../interface.ui"/> + <source>0KB/sec</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../../interface.ui"/> + <source>&More</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../../interface.ui"/> + <source>&Pause</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../../interface.ui"/> + <source>&Skip</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../../interface.ui"/> + <source>&Cancel</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../../interface.ui"/> + <source>Limit copy speed at:</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../../interface.ui"/> + <source>Unlimited</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../../interface.ui"/> + <source>Copy list</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../../interface.ui"/> + <source>Source</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../../interface.ui"/> + <source>Size</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../../interface.ui"/> + <source>Destination</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../../interface.ui"/> + <source>Previous</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../../interface.ui"/> + <source>Next</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../../interface.ui"/> + <source>Options</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../../interface.ui"/> + <source>Copy end</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../../interface.ui"/> + <source>At the end of the copy: </source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../../interface.ui"/> + <source>Don't close if errors are found</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../../interface.ui"/> + <source>Never close</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../../interface.ui"/> + <source>Always close</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../../interface.ui"/> + <source>Speed limit</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../../interface.ui"/> + <source> KB/s</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../../interface.ui"/> + <source>File collisions</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../../interface.ui"/> + <source>What to do: </source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../../interface.ui"/> + <source>Copy errors</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../../interface.ui"/> + <source>Interface</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../../interface.ui"/> + <source>Show speed as main informations</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../../interface.ui"/> + <source>Add file</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../../interface.ui"/> + <source>Add folder</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../../interface.ui"/> + <source>Move file(s)</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../../interface.ui"/> + <source>Move folder</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../../interface.ui"/> + <source>Copy file(s)</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../../interface.ui"/> + <source>Copy folder</source> + <translation type="unfinished"></translation> + </message> +</context> +<context> + <name>options</name> + <message> + <location filename="../../options.ui"/> + <source>Form</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../../options.ui"/> + <source>Show speed as main informations</source> + <translation type="unfinished"></translation> + </message> +</context> +</TS> diff --git a/plugins/Themes/Oxygen/Languages/zh/translation.ts b/plugins/Themes/Oxygen/Languages/zh/translation.ts new file mode 100644 index 0000000..4ea1e31 --- /dev/null +++ b/plugins/Themes/Oxygen/Languages/zh/translation.ts @@ -0,0 +1,218 @@ +<?xml version="1.0" encoding="utf-8"?> +<!DOCTYPE TS> +<TS version="2.0"> +<context> + <name>InterfacePlugin</name> + <message> + <location filename="../../interface.cpp" line="84"/> + <source>Copy engine</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../../interface.cpp" line="97"/> + <source>File %1/%2, size: %3/%4</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../../interface.cpp" line="142"/> + <source>Quit</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../../interface.cpp" line="667"/> + <source>Unlimited</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../../interface.cpp" line="846"/> + <source>File Name, 0KB</source> + <translation type="unfinished"></translation> + </message> +</context> +<context> + <name>interfaceCopy</name> + <message> + <location filename="../../interface.ui"/> + <source>From:</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../../interface.ui"/> + <source>To:</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../../interface.ui"/> + <source>0KB/sec</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../../interface.ui"/> + <source>&More</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../../interface.ui"/> + <source>&Pause</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../../interface.ui"/> + <source>&Skip</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../../interface.ui"/> + <source>&Cancel</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../../interface.ui"/> + <source>Limit copy speed at:</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../../interface.ui"/> + <source>Unlimited</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../../interface.ui"/> + <source>Copy list</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../../interface.ui"/> + <source>Source</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../../interface.ui"/> + <source>Size</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../../interface.ui"/> + <source>Destination</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../../interface.ui"/> + <source>Previous</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../../interface.ui"/> + <source>Next</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../../interface.ui"/> + <source>Options</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../../interface.ui"/> + <source>Copy end</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../../interface.ui"/> + <source>At the end of the copy: </source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../../interface.ui"/> + <source>Don't close if errors are found</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../../interface.ui"/> + <source>Never close</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../../interface.ui"/> + <source>Always close</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../../interface.ui"/> + <source>Speed limit</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../../interface.ui"/> + <source> KB/s</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../../interface.ui"/> + <source>File collisions</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../../interface.ui"/> + <source>What to do: </source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../../interface.ui"/> + <source>Copy errors</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../../interface.ui"/> + <source>Interface</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../../interface.ui"/> + <source>Show speed as main informations</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../../interface.ui"/> + <source>Add file</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../../interface.ui"/> + <source>Add folder</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../../interface.ui"/> + <source>Move file(s)</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../../interface.ui"/> + <source>Move folder</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../../interface.ui"/> + <source>Copy file(s)</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../../interface.ui"/> + <source>Copy folder</source> + <translation type="unfinished"></translation> + </message> +</context> +<context> + <name>options</name> + <message> + <location filename="../../options.ui"/> + <source>Form</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../../options.ui"/> + <source>Show speed as main informations</source> + <translation type="unfinished"></translation> + </message> +</context> +</TS> diff --git a/plugins/Themes/Oxygen/StructEnumDefinition.h b/plugins/Themes/Oxygen/StructEnumDefinition.h new file mode 100644 index 0000000..c1758f4 --- /dev/null +++ b/plugins/Themes/Oxygen/StructEnumDefinition.h @@ -0,0 +1 @@ +#include "../../../StructEnumDefinition.h" diff --git a/plugins/Themes/Oxygen/TransferModel.cpp b/plugins/Themes/Oxygen/TransferModel.cpp new file mode 100644 index 0000000..d63c4f2 --- /dev/null +++ b/plugins/Themes/Oxygen/TransferModel.cpp @@ -0,0 +1,402 @@ +#include "TransferModel.h" + +#define COLUMN_COUNT 3 + +// Model + +TransferModel::TransferModel() +{ + start=QIcon(":/resources/player_play.png"); + stop=QIcon(":/resources/player_pause.png"); + currentIndexSearch=0; + haveSearchItem=false; +} + +int TransferModel::columnCount( const QModelIndex& parent ) const +{ + 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(); + + 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(); +} + +int TransferModel::rowCount( const QModelIndex& parent ) const +{ + return parent == QModelIndex() ? transfertItemList.count() : 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 tr( "Source" ); + case 1: + return tr( "Size" ); + case 2: + return tr( "Target" ); + } + } + + 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; + + 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; +} + +/* + Return[0]: totalFile + Return[1]: totalSize + Return[2]: currentFile + */ +QList<quint64> TransferModel::synchronizeItems(const QList<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; + } + break; + case MoveItem: + { + //bool current_entry= + transfertItemList.move(action.userAction.position,action.userAction.moveAt); + } + break; + case RemoveItem: + { + if(currentIndexSearch>0 && action.userAction.position<=currentIndexSearch) + currentIndexSearch--; + transfertItemList.removeAt(action.userAction.position); + currentFile++; + startId.removeOne(action.addAction.id); + stopId.removeOne(action.addAction.id); + } + break; + case PreOperation: + { + ItemOfCopyListWithMoreInformations tempItem; + tempItem.currentProgression=0; + tempItem.generalData=action.addAction; + InternalRunningOperation << tempItem; + } + break; + case Transfer: + { + if(!startId.contains(action.addAction.id)) + startId << action.addAction.id; + stopId.removeOne(action.addAction.id); + sub_index_for_loop=0; + sub_loop_size=InternalRunningOperation.size(); + while(sub_index_for_loop<sub_loop_size) + { + if(InternalRunningOperation.at(sub_index_for_loop).generalData.id==action.addAction.id) + { + InternalRunningOperation[sub_index_for_loop].actionType=action.type; + break; + } + sub_index_for_loop++; + } + } + break; + case PostOperation: + { + if(!stopId.contains(action.addAction.id)) + stopId << action.addAction.id; + startId.removeOne(action.addAction.id); + sub_index_for_loop=0; + sub_loop_size=InternalRunningOperation.size(); + while(sub_index_for_loop<sub_loop_size) + { + if(InternalRunningOperation.at(sub_index_for_loop).generalData.id==action.addAction.id) + { + InternalRunningOperation.removeAt(sub_index_for_loop); + break; + } + sub_index_for_loop++; + } + } + break; + case CustomOperation: + { + bool custom_with_progression=(action.addAction.size==1); + //without progression + if(custom_with_progression) + { + if(startId.removeOne(action.addAction.id)) + if(!stopId.contains(action.addAction.id)) + stopId << action.addAction.id; + } + //with progression + else + { + stopId.removeOne(action.addAction.id); + if(!startId.contains(action.addAction.id)) + startId << action.addAction.id; + } + sub_index_for_loop=0; + sub_loop_size=InternalRunningOperation.size(); + while(sub_index_for_loop<sub_loop_size) + { + if(InternalRunningOperation.at(sub_index_for_loop).generalData.id==action.addAction.id) + { + InternalRunningOperation[sub_index_for_loop].actionType=action.type; + InternalRunningOperation[sub_index_for_loop].custom_with_progression=custom_with_progression; + InternalRunningOperation[sub_index_for_loop].currentProgression=0; + break; + } + sub_index_for_loop++; + } + } + break; + default: + //unknow code, ignore it + break; + } + index_for_loop++; + } + emit layoutChanged(); + return QList<quint64>() << totalFile << totalSize << currentFile; +} + +void TransferModel::setFacilityEngine(FacilityInterface * 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; +} + +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; +} + +void TransferModel::setFileProgression(const QList<ProgressionItem> &progressionList) +{ + loop_size=InternalRunningOperation.size(); + sub_loop_size=progressionList.size(); + index_for_loop=0; + while(index_for_loop<loop_size) + { + sub_index_for_loop=0; + while(sub_index_for_loop<sub_loop_size) + { + if(progressionList.at(sub_index_for_loop).id==InternalRunningOperation.at(index_for_loop).generalData.id) + { + InternalRunningOperation[index_for_loop].generalData.size=progressionList.at(sub_index_for_loop).total; + InternalRunningOperation[index_for_loop].currentProgression=progressionList.at(sub_index_for_loop).current; + break; + } + sub_index_for_loop++; + } + index_for_loop++; + } +} + +TransferModel::currentTransfertItem TransferModel::getCurrentTransfertItem() +{ + currentTransfertItem returnItem; + returnItem.haveItem=InternalRunningOperation.size()>0; + if(returnItem.haveItem) + { + const ItemOfCopyListWithMoreInformations &itemTransfer=InternalRunningOperation.first(); + 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=0; + else + { + if(itemTransfer.generalData.size>0) + returnItem.progressBar_file=((double)itemTransfer.currentProgression/itemTransfer.generalData.size)*65535; + else + returnItem.progressBar_file=0; + } + break; + case Transfer: + if(itemTransfer.generalData.size>0) + returnItem.progressBar_file=((double)itemTransfer.currentProgression/itemTransfer.generalData.size)*65535; + else + returnItem.progressBar_file=0; + break; + case PostOperation: + returnItem.progressBar_file=65535; + break; + default: + returnItem.progressBar_file=0; + } + } + return returnItem; +} diff --git a/plugins/Themes/Oxygen/TransferModel.h b/plugins/Themes/Oxygen/TransferModel.h new file mode 100644 index 0000000..86fd1b4 --- /dev/null +++ b/plugins/Themes/Oxygen/TransferModel.h @@ -0,0 +1,79 @@ +#ifndef TRANSFERMODEL_H +#define TRANSFERMODEL_H + +#include <QAbstractTableModel> +#include <QModelIndex> +#include <QVariant> +#include <QList> +#include <QSet> +#include <QIcon> +#include <QString> + +#include "StructEnumDefinition.h" + +#include "../../../interface/FacilityInterface.h" + +class TransferModel : public QAbstractTableModel +{ + Q_OBJECT +public: + struct transfertItem + { + quint64 id; + QString source; + QString size; + QString destination; + }; + struct ItemOfCopyListWithMoreInformations + { + quint64 currentProgression; + ItemOfCopyList generalData; + ActionTypeCopyList actionType; + bool custom_with_progression; + }; + struct currentTransfertItem + { + quint64 id; + bool haveItem; + QString from; + QString to; + QString current_file; + int progressBar_file; + }; + + 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); + + int search(const QString &text,bool searchNext); + int searchPrev(const QString &text); + + void setFileProgression(const QList<ProgressionItem> &progressionList); + + currentTransfertItem getCurrentTransfertItem(); +protected: + QList<transfertItem> transfertItemList;///< To have a transfer list for the user + QList<quint64> startId,stopId;///< To show what is started, what is stopped + QList<ItemOfCopyListWithMoreInformations> InternalRunningOperation;///< to have progression and stat + QIcon start,stop; +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; +}; + +#endif // TRANSFERMODEL_H diff --git a/plugins/Themes/Oxygen/Variable.h b/plugins/Themes/Oxygen/Variable.h new file mode 100644 index 0000000..8179c93 --- /dev/null +++ b/plugins/Themes/Oxygen/Variable.h @@ -0,0 +1,16 @@ +/** \file Variable.h
+\brief Define the environment variable
+\author alpha_one_x86
+\version 0.3
+\date 2010 */
+
+#ifndef VARIABLE_H
+#define VARIABLE_H
+
+//Un-comment this next line to put ultracopier plugin in debug mode
+#define ULTRACOPIER_PLUGIN_DEBUG
+
+#endif // VARIABLE_H
+
+
+
diff --git a/plugins/Themes/Oxygen/documentation.dox b/plugins/Themes/Oxygen/documentation.dox new file mode 100755 index 0000000..2c0cf64 --- /dev/null +++ b/plugins/Themes/Oxygen/documentation.dox @@ -0,0 +1,32 @@ +/* -*- mode: C++ ; c-file-style: "stroustrup" -*- **/ + +/* + This file contains NO source code, just some documentation for doxygen to + parse. +*/ + +/*! + \mainpage Oxygen + + \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. + + \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. + + \section mainpage_downloads Downloads + + You can found link on <a href="http://ultracopier.first-world.info/">Ultracopier (Supercopier/Teracopy)</a> project page, via git, snapshot sources, ... + + \section license GPL Version 3 + The code source is under GPL3. The image is extacted from Oxygen icon pack of KDE4.\n + resources/export-transfer-list.png and resources/import-transfer-list.png done by png manipulation of KDE's oxygen icon pack (16x16/actions/format-indent-more.png + 16x16/actions/format-list-unordered.png), document-save.png -> all SystemTrayIcon/systray_* (color alteration).\n + From 16x16/actions/: list-add.png -> add.png and SystemTrayIcon/add.png, process-stop.png -> remove.png, document-save.png -> main.png and, arrow-down.png -> moveDown.png, arrow-up.png -> moveUp.png, system-shutdown.png -> cancel.png and SystemTrayIcon/exit.png, arrow-down-double.png -> putOnBottom.png, arrow-up-double.png -> putOnTop.png, media-skip-forward.png -> player_end.png, media-playback-pause.png -> player_pause.png, media-playback-start.png -> player_play.png, document-preview.png -> search.png, help-about.png -> SystemTrayIcon/informations.png \n + And 16x16/categories/applications-development.png -> SystemTrayIcon/options.png + +*/ + diff --git a/plugins/Themes/Oxygen/factory.cpp b/plugins/Themes/Oxygen/factory.cpp new file mode 100644 index 0000000..c509e10 --- /dev/null +++ b/plugins/Themes/Oxygen/factory.cpp @@ -0,0 +1,130 @@ +/** \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 + ); + 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(true))); + 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()); + else + ULTRACOPIER_DEBUGCONSOLE(DebugLevel_Critical,"internal error, crash prevented"); + connect(ui->checkBoxShowSpeed,SIGNAL(toggled(bool)),this,SLOT(checkBoxHaveChanged(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() +{ +} + +void Factory::checkBoxHaveChanged(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::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 new file mode 100644 index 0000000..4792553 --- /dev/null +++ b/plugins/Themes/Oxygen/factory.h @@ -0,0 +1,59 @@ +/** \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 checkBoxHaveChanged(bool toggled); + 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 new file mode 100644 index 0000000..4242146 --- /dev/null +++ b/plugins/Themes/Oxygen/informations.xml @@ -0,0 +1,27 @@ +<?xml version="1.0" encoding="UTF-8"?> +<package> + <title xml:lang="en"><![CDATA[Oxygen style for Ultracopier]]></title><!-- english is required --> + <title xml:lang="fr"><![CDATA[Style oxygen pour Ultracopier]]></title> + <!-- What kind of plugin this is --> + <category>Themes</category> + <!-- Who wrote this plugin --> + <author><![CDATA[BRULE Herman, alpha_one_x86 (alpha_one_x86@first-world.info)]]></author> + <!-- URL of page or site for this plugin (may provide additional information, bug reports, feature requests). --> + <website xml:lang="en"><![CDATA[http://ultracopier.first-world.info/]]></website><!-- not required --> + <website xml:lang="fr"><![CDATA[http://ultracopier-fr.first-world.info/]]></website><!-- not required --> + <!-- the date-time format should be in timestamps format --> + <pubDate>1287496800</pubDate> + <!-- the architecture code of this plugin, found PlatformMacro.h into ultracopier source --> + <architecture>linux-x86_64-pc</architecture> + <!-- Detailed description --> + <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.0.5</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.0.5 + ]]></dependencies> +</package>
\ No newline at end of file diff --git a/plugins/Themes/Oxygen/interface.cpp b/plugins/Themes/Oxygen/interface.cpp new file mode 100755 index 0000000..e080737 --- /dev/null +++ b/plugins/Themes/Oxygen/interface.cpp @@ -0,0 +1,901 @@ +/** \file interface.cpp +\brief Define the interface core +\author alpha_one_x86 +\version 0.3 +\date 2010 */ + +#include <QtCore> +#include <QMessageBox> + +#include "interface.h" +#include "ui_interface.h" + +Themes::Themes(bool checkBoxShowSpeed,FacilityInterface * facilityEngine) : + 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 = -1; + updateSpeed(); + 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(false); + 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(); +} + +Themes::~Themes() +{ + ULTRACOPIER_DEBUGCONSOLE(DebugLevel_Notice,"start"); + disconnect(ui->actionAddFile); + disconnect(ui->actionAddFolder); + delete selectionModel; + delete menu; +} + +void Themes::uiUpdateSpeed() +{ + if(!ui->checkBoxShowSpeed->isChecked()) + emit newSpeedLimitation(0); + else + emit newSpeedLimitation(ui->limitSpeed->value()); +} + +QWidget * Themes::getOptionsEngineWidget() +{ + return &optionEngineWidget; +} + +void Themes::getOptionsEngineEnabled(bool isEnabled) +{ + if(isEnabled) + ui->tabWidget->addTab(&optionEngineWidget,tr("Copy engine")); +} + +void Themes::closeEvent(QCloseEvent *event) +{ + event->ignore(); + ULTRACOPIER_DEBUGCONSOLE(DebugLevel_Notice,"start"); + this->hide(); + emit cancel(); +} + +void Themes::updateOverallInformation() +{ + 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(tr("Quit")); + break; + case Idle: + ui->pauseButton->setEnabled(false); + break; + default: + break; + } +} + +void Themes::newFolderListing(const QString &path) +{ + ULTRACOPIER_DEBUGCONSOLE(DebugLevel_Notice,"start"); + if(action==Listing) + ui->from->setText(path); +} + +void Themes::detectedSpeed(const quint64 &speed)//in byte per seconds +{ + ui->currentSpeed->setText(facilityEngine->speedToString(speed)); +} + +void Themes::remainingTime(const int &remainingSeconds) +{ + if(remainingSeconds==-1) + ui->labelTimeRemaining->setText("<html><body>∞</body></html>"); + else + { + TimeDecomposition time=facilityEngine->secondsToTimeDecomposition(remainingSeconds); + ui->labelTimeRemaining->setText(QString::number(time.hour)+":"+QString::number(time.minute)+":"+QString::number(time.second)); + } +} + +void Themes::newCollisionAction(const QString &action) +{ + ULTRACOPIER_DEBUGCONSOLE(DebugLevel_Notice,"start"); + if(ui->comboBox_fileCollisions->findData(action)!=-1) + ui->comboBox_fileCollisions->setCurrentIndex(ui->comboBox_fileCollisions->findData(action)); +} + +void Themes::newErrorAction(const QString &action) +{ + ULTRACOPIER_DEBUGCONSOLE(DebugLevel_Notice,"start"); + if(ui->comboBox_copyErrors->findData(action)!=-1) + ui->comboBox_copyErrors->setCurrentIndex(ui->comboBox_copyErrors->findData(action)); +} + +void Themes::errorDetected() +{ + haveError=true; +} + +//speed limitation +bool Themes::setSpeedLimitation(const qint64 &speedLimitation) +{ + currentSpeed=speedLimitation; + updateSpeed(); + return true; +} + +//get information about the copy +void Themes::setGeneralProgression(const quint64 ¤t,const quint64 &total) +{ + currentSize=current; + totalSize=total; + if(total>0) + { + int newIndicator=((double)current/total)*65535; + ui->progressBar_all->setValue(newIndicator); + } + else + ui->progressBar_all->setValue(0); +} + +void Themes::setFileProgression(const QList<ProgressionItem> &progressionList) +{ + transferModel.setFileProgression(progressionList); + updateCurrentFileInformation(); + ULTRACOPIER_DEBUGCONSOLE(DebugLevel_Warning,"Unable to found the file"); +} + +void Themes::setCollisionAction(const QList<QPair<QString,QString> > &list) +{ + 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++; + } +} + +void Themes::setErrorAction(const QList<QPair<QString,QString> > &list) +{ + 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++; + } +} + +//edit the transfer list +/// \todo check and re-enable to selection +void Themes::getActionOnList(const QList<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->progressBar_all->setValue(65535); + ui->progressBar_file->setValue(65535); + currentSize=totalSize; + } + updateOverallInformation(); + ULTRACOPIER_DEBUGCONSOLE(DebugLevel_Notice,"transferModel.rowCount(): "+QString::number(transferModel.rowCount())); +} + +void Themes::setCopyType(CopyType type) +{ + ULTRACOPIER_DEBUGCONSOLE(DebugLevel_Notice,"start"); + this->type=type; + updateModeAndType(); +} + +void Themes::forceCopyMode(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(); +} + +void Themes::setTransferListOperation(TransferListOperation transferListOperation) +{ + ui->exportTransferList->setVisible(transferListOperation & TransferListOperation_Export); + ui->importTransferList->setVisible(transferListOperation & TransferListOperation_Import); +} + +void Themes::haveExternalOrder() +{ + ULTRACOPIER_DEBUGCONSOLE(DebugLevel_Notice,"start"); +// ui->moreButton->toggle(); +} + +void Themes::isInPause(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); + ui->pauseButton->setText(facilityEngine->translateText("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); + ui->progressBar_file->setValue(transfertItem.progressBar_file); + } + else + { + ui->from->setText(""); + ui->to->setText(""); + ui->current_file->setText("-"); + if(haveStarted) + ui->progressBar_file->setValue(65535); + else + 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); +} + +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); +} + +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); +} + +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); +} + +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); +} + +void Themes::on_cancelButton_clicked() +{ + ULTRACOPIER_DEBUGCONSOLE(DebugLevel_Notice,"start"); + this->hide(); + emit cancel(); +} + +void Themes::on_checkBoxShowSpeed_toggled(bool checked) +{ + if(checked==checked) + updateSpeed(); +} + +void Themes::on_SliderSpeed_valueChanged(int 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; + } + emit newSpeedLimitation(currentSpeed); +} + +void Themes::updateSpeed() +{ + bool checked; + if(currentSpeed==-1) + { + ui->checkBoxShowSpeed->setEnabled(false); + checked=false; + } + else + { + ui->checkBoxShowSpeed->setEnabled(true); + checked=ui->checkBox_limitSpeed->isChecked(); + } + ui->label_Slider_speed->setVisible(checked); + ui->SliderSpeed->setVisible(checked); + ui->label_SpeedMaxValue->setVisible(checked); + ui->checkBox_limitSpeed->setEnabled(checked); + if(checked) + { + ui->limitSpeed->setEnabled(false); + if(currentSpeed==0) + { + ui->SliderSpeed->setValue(0); + ui->label_SpeedMaxValue->setText(tr("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()); + } +} + +void Themes::on_limitSpeed_valueChanged(int value) +{ + currentSpeed=value; + emit newSpeedLimitation(currentSpeed); +} + +void Themes::on_checkBox_limitSpeed_clicked() +{ + if(ui->checkBox_limitSpeed->isChecked()) + { + if(ui->checkBoxShowSpeed->isChecked()) + on_SliderSpeed_valueChanged(ui->SliderSpeed->value()); + else + on_limitSpeed_valueChanged(ui->limitSpeed->value()); + } + else + currentSpeed=0; +} + +void Themes::on_pauseButton_clicked() +{ + ULTRACOPIER_DEBUGCONSOLE(DebugLevel_Notice,"start"); + if(storeIsInPause) + emit resume(); + else + emit pause(); +} + +void Themes::on_skipButton_clicked() +{ + ULTRACOPIER_DEBUGCONSOLE(DebugLevel_Notice,"start"); + TransferModel::currentTransfertItem transfertItem=transferModel.getCurrentTransfertItem(); + if(transfertItem.haveItem) + emit skip(transfertItem.id); + else + ULTRACOPIER_DEBUGCONSOLE(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); + } + } +} + +void Themes::forcedModeAddFile() +{ + ULTRACOPIER_DEBUGCONSOLE(DebugLevel_Notice,"start"); + emit userAddFile(mode); +} + +void Themes::forcedModeAddFolder() +{ + ULTRACOPIER_DEBUGCONSOLE(DebugLevel_Notice,"start"); + emit userAddFolder(mode); +} + +void Themes::forcedModeAddFileToCopy() +{ + ULTRACOPIER_DEBUGCONSOLE(DebugLevel_Notice,"start"); + emit userAddFile(Copy); +} + +void Themes::forcedModeAddFolderToCopy() +{ + ULTRACOPIER_DEBUGCONSOLE(DebugLevel_Notice,"start"); + emit userAddFolder(Copy); +} + +void Themes::forcedModeAddFileToMove() +{ + ULTRACOPIER_DEBUGCONSOLE(DebugLevel_Notice,"start"); + emit userAddFile(Move); +} + +void Themes::forcedModeAddFolderToMove() +{ + ULTRACOPIER_DEBUGCONSOLE(DebugLevel_Notice,"start"); + emit userAddFolder(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()); +} + +void Themes::on_pushButtonCloseSearch_clicked() +{ + 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(); +} + +//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); +/* } + 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)); + } + } +} + +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)); + } + } +} + +void Themes::on_pushButtonSearchNext_clicked() +{ + hilightTheSearch(true); +} + +void Themes::on_lineEditSearch_returnPressed() +{ + hilightTheSearch(); +} + +void Themes::on_lineEditSearch_textChanged(QString text) +{ + 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()); +} + +/* 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 Themes::dropEvent(QDropEvent *event) +{ + const QMimeData* mimeData = event->mimeData(); + if(mimeData->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(); +} + +void Themes::dragMoveEvent(QDragMoveEvent* event) +{ + // if some actions should not be usable, like move, this code must be adopted + event->acceptProposedAction(); +} + +void Themes::dragLeaveEvent(QDragLeaveEvent* event) +{ + event->accept(); +} + +void Themes::on_searchButton_toggled(bool checked) +{ + if(checked) + searchBoxShortcut(); + else + closeTheSearchBox(); +} + +void Themes::on_exportTransferList_clicked() +{ + emit exportTransferList(); +} + +void Themes::on_importTransferList_clicked() +{ + emit importTransferList(); +} diff --git a/plugins/Themes/Oxygen/interface.h b/plugins/Themes/Oxygen/interface.h new file mode 100755 index 0000000..745d325 --- /dev/null +++ b/plugins/Themes/Oxygen/interface.h @@ -0,0 +1,213 @@ +/** \file interface.h +\brief Define the interface +\author alpha_one_x86 +\version 0.3 +\date 2010 */ + +#ifndef INTERFACE_H +#define INTERFACE_H + +#include <QObject> +#include <QWidget> +#include <QMenu> +#include <QCloseEvent> +#include <QShortcut> +#include <QItemSelectionModel> + +#include "../../../interface/PluginInterface_Themes.h" + +#include "ui_interface.h" +#include "ui_options.h" +#include "Environment.h" +#include "TransferModel.h" + +// for windows progress bar +#ifndef __GNUC__ +#include <shobjidl.h> +#endif + +namespace Ui { + class interfaceCopy; +} + +/// \brief Define the interface +class Themes : public PluginInterface_Themes +{ + Q_OBJECT +public: + Themes(bool checkBoxShowSpeed,FacilityInterface * facilityEngine); + ~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); +public slots: + /// \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_limitSpeed_valueChanged(int ); + void on_checkBox_limitSpeed_clicked(); + 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(); +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; + 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 + + 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; +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); +}; + +#endif // INTERFACE_H diff --git a/plugins/Themes/Oxygen/interface.pro b/plugins/Themes/Oxygen/interface.pro new file mode 100644 index 0000000..c5b2680 --- /dev/null +++ b/plugins/Themes/Oxygen/interface.pro @@ -0,0 +1,46 @@ +TEMPLATE = lib +CONFIG += plugin +HEADERS = interface.h \ + StructEnumDefinition.h \ + factory.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 +TARGET = $$qtLibraryTarget(interface) +TRANSLATIONS += Languages/fr/translation.ts \ + Languages/ar/translation.ts \ + Languages/ch/translation.ts \ + Languages/es/translation.ts \ + Languages/de/translation.ts \ + Languages/el/translation.ts \ + Languages/it/translation.ts \ + Languages/jp/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/nl/translation.ts \ + Languages/no/translation.ts \ + Languages/pt/translation.ts + +win32 { + RESOURCES += resources_windows.qrc +} +!win32 { + RESOURCES += resources_unix.qrc +} + +RESOURCES += resources.qrc + +FORMS += \ + interface.ui \ + options.ui diff --git a/plugins/Themes/Oxygen/interface.ui b/plugins/Themes/Oxygen/interface.ui new file mode 100644 index 0000000..5f2a0d9 --- /dev/null +++ b/plugins/Themes/Oxygen/interface.ui @@ -0,0 +1,1019 @@ +<?xml version="1.0" encoding="UTF-8"?> +<ui version="4.0"> + <class>interfaceCopy</class> + <widget class="QWidget" name="interfaceCopy"> + <property name="geometry"> + <rect> + <x>0</x> + <y>0</y> + <width>483</width> + <height>448</height> + </rect> + </property> + <property name="windowTitle"> + <string notr="true">Ultracopier</string> + </property> + <property name="windowIcon"> + <iconset resource="resources.qrc"> + <normaloff>:/resources/main.png</normaloff>:/resources/main.png</iconset> + </property> + <layout class="QVBoxLayout"> + <property name="spacing"> + <number>2</number> + </property> + <property name="margin"> + <number>1</number> + </property> + <item> + <layout class="QHBoxLayout"> + <property name="spacing"> + <number>2</number> + </property> + <item> + <widget class="QLabel" name="from_label"> + <property name="text"> + <string>From:</string> + </property> + </widget> + </item> + <item> + <widget class="QLabel" name="from"> + <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> + </spacer> + </item> + </layout> + </item> + <item> + <layout class="QHBoxLayout"> + <property name="spacing"> + <number>5</number> + </property> + <item> + <widget class="QLabel" name="to_label"> + <property name="text"> + <string>To:</string> + </property> + </widget> + </item> + <item> + <widget class="QLabel" name="to"> + <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> + </spacer> + </item> + </layout> + </item> + <item> + <layout class="QHBoxLayout" name="horizontalLayout_4"> + <item> + <widget class="QLabel" name="overall"> + <property name="text"> + <string notr="true">File 0/0, Total: 0KB</string> + </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;">&nbsp;</body></html></string> + </property> + <property name="alignment"> + <set>Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter</set> + </property> + </widget> + </item> + <item> + <widget class="QToolButton" name="shutdown"> + <property name="maximumSize"> + <size> + <width>20</width> + <height>20</height> + </size> + </property> + <property name="toolTip"> + <string>Shutdown when is finish</string> + </property> + <property name="icon"> + <iconset resource="resources.qrc"> + <normaloff>:/resources/SystemTrayIcon/exit.png</normaloff>:/resources/SystemTrayIcon/exit.png</iconset> + </property> + <property name="checkable"> + <bool>true</bool> + </property> + <property name="autoRaise"> + <bool>true</bool> + </property> + </widget> + </item> + </layout> + </item> + <item> + <widget class="QProgressBar" name="progressBar_all"> + <property name="maximumSize"> + <size> + <width>16777215</width> + <height>16</height> + </size> + </property> + <property name="maximum"> + <number>65535</number> + </property> + </widget> + </item> + <item> + <widget class="QLabel" name="current_file"> + <property name="text"> + <string notr="true">File Name, 0KB</string> + </property> + </widget> + </item> + <item> + <widget class="QProgressBar" name="progressBar_file"> + <property name="maximumSize"> + <size> + <width>16777215</width> + <height>16</height> + </size> + </property> + <property name="maximum"> + <number>65535</number> + </property> + </widget> + </item> + <item> + <layout class="QHBoxLayout"> + <property name="spacing"> + <number>4</number> + </property> + <item> + <widget class="QLabel" name="currentSpeed"> + <property name="minimumSize"> + <size> + <width>60</width> + <height>0</height> + </size> + </property> + <property name="text"> + <string>0KB/sec</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="QPushButton" name="moreButton"> + <property name="text"> + <string>&More</string> + </property> + <property name="icon"> + <iconset resource="resources.qrc"> + <normaloff>:/resources/moveDown.png</normaloff>:/resources/moveDown.png</iconset> + </property> + <property name="checkable"> + <bool>true</bool> + </property> + <property name="checked"> + <bool>true</bool> + </property> + </widget> + </item> + <item> + <widget class="QPushButton" name="pauseButton"> + <property name="enabled"> + <bool>false</bool> + </property> + <property name="text"> + <string>&Pause</string> + </property> + <property name="icon"> + <iconset resource="resources.qrc"> + <normaloff>:/resources/player_pause.png</normaloff>:/resources/player_pause.png</iconset> + </property> + </widget> + </item> + <item> + <widget class="QPushButton" name="skipButton"> + <property name="enabled"> + <bool>false</bool> + </property> + <property name="text"> + <string>&Skip</string> + </property> + <property name="icon"> + <iconset resource="resources.qrc"> + <normaloff>:/resources/player_end.png</normaloff>:/resources/player_end.png</iconset> + </property> + </widget> + </item> + <item> + <widget class="QPushButton" name="cancelButton"> + <property name="text"> + <string>&Cancel</string> + </property> + <property name="icon"> + <iconset resource="resources.qrc"> + <normaloff>:/resources/cancel.png</normaloff>:/resources/cancel.png</iconset> + </property> + </widget> + </item> + </layout> + </item> + <item> + <layout class="QHBoxLayout" name="limitSpeedAsMain"> + <item> + <widget class="QLabel" name="label_Slider_speed"> + <property name="text"> + <string>Limit copy speed at:</string> + </property> + </widget> + </item> + <item> + <widget class="QSlider" name="SliderSpeed"> + <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>Unlimited</string> + </property> + </widget> + </item> + <item> + <spacer> + <property name="orientation"> + <enum>Qt::Horizontal</enum> + </property> + <property name="sizeHint" stdset="0"> + <size> + <width>40</width> + <height>1</height> + </size> + </property> + </spacer> + </item> + </layout> + </item> + <item> + <widget class="QTabWidget" name="tabWidget"> + <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> + <attribute name="title"> + <string>Copy list</string> + </attribute> + <layout class="QHBoxLayout"> + <item> + <layout class="QVBoxLayout"> + <property name="spacing"> + <number>1</number> + </property> + <item> + <widget class="QToolButton" name="putOnTop"> + <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="icon"> + <iconset resource="resources.qrc"> + <normaloff>:/resources/putOnTop.png</normaloff>:/resources/putOnTop.png</iconset> + </property> + <property name="autoRaise"> + <bool>true</bool> + </property> + </widget> + </item> + <item> + <widget class="QToolButton" name="pushUp"> + <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="icon"> + <iconset resource="resources.qrc"> + <normaloff>:/resources/moveUp.png</normaloff>:/resources/moveUp.png</iconset> + </property> + <property name="autoRaise"> + <bool>true</bool> + </property> + </widget> + </item> + <item> + <widget class="QToolButton" name="pushDown"> + <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="icon"> + <iconset resource="resources.qrc"> + <normaloff>:/resources/moveDown.png</normaloff>:/resources/moveDown.png</iconset> + </property> + <property name="autoRaise"> + <bool>true</bool> + </property> + </widget> + </item> + <item> + <widget class="QToolButton" name="putOnBottom"> + <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="icon"> + <iconset resource="resources.qrc"> + <normaloff>:/resources/putOnBottom.png</normaloff>:/resources/putOnBottom.png</iconset> + </property> + <property name="autoRaise"> + <bool>true</bool> + </property> + </widget> + </item> + <item> + <widget class="QToolButton" name="add"> + <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="icon"> + <iconset resource="resources.qrc"> + <normaloff>:/resources/add.png</normaloff>:/resources/add.png</iconset> + </property> + <property name="popupMode"> + <enum>QToolButton::InstantPopup</enum> + </property> + <property name="autoRaise"> + <bool>true</bool> + </property> + </widget> + </item> + <item> + <widget class="QToolButton" name="del"> + <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="icon"> + <iconset resource="resources.qrc"> + <normaloff>:/resources/remove.png</normaloff>:/resources/remove.png</iconset> + </property> + <property name="autoRaise"> + <bool>true</bool> + </property> + </widget> + </item> + <item> + <widget class="QToolButton" name="searchButton"> + <property name="toolTip"> + <string>Ctrl+F</string> + </property> + <property name="icon"> + <iconset resource="resources.qrc"> + <normaloff>:/resources/search.png</normaloff>:/resources/search.png</iconset> + </property> + <property name="checkable"> + <bool>true</bool> + </property> + <property name="autoRaise"> + <bool>true</bool> + </property> + </widget> + </item> + <item> + <widget class="QToolButton" name="exportTransferList"> + <property name="icon"> + <iconset resource="resources.qrc"> + <normaloff>:/resources/export-transfer-list.png</normaloff>:/resources/export-transfer-list.png</iconset> + </property> + <property name="autoRaise"> + <bool>true</bool> + </property> + </widget> + </item> + <item> + <widget class="QToolButton" name="importTransferList"> + <property name="icon"> + <iconset resource="resources.qrc"> + <normaloff>:/resources/import-transfer-list.png</normaloff>:/resources/import-transfer-list.png</iconset> + </property> + <property name="autoRaise"> + <bool>true</bool> + </property> + </widget> + </item> + <item> + <spacer> + <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> + <layout class="QVBoxLayout" name="verticalLayout_3"> + <property name="spacing"> + <number>0</number> + </property> + <item> + <widget class="QTreeView" name="TransferList"> + <property name="selectionMode"> + <enum>QAbstractItemView::ExtendedSelection</enum> + </property> + <property name="rootIsDecorated"> + <bool>false</bool> + </property> + <property name="uniformRowHeights"> + <bool>true</bool> + </property> + </widget> + </item> + <item> + <layout class="QHBoxLayout" name="horizontalLayoutSearch"> + <property name="spacing"> + <number>0</number> + </property> + <item> + <widget class="QLineEdit" name="lineEditSearch"/> + </item> + <item> + <widget class="QPushButton" name="pushButtonSearchPrev"> + <property name="text"> + <string>Previous</string> + </property> + </widget> + </item> + <item> + <widget class="QPushButton" name="pushButtonSearchNext"> + <property name="text"> + <string>Next</string> + </property> + </widget> + </item> + <item> + <widget class="QPushButton" name="pushButtonCloseSearch"> + <property name="minimumSize"> + <size> + <width>25</width> + <height>25</height> + </size> + </property> + <property name="maximumSize"> + <size> + <width>25</width> + <height>25</height> + </size> + </property> + <property name="icon"> + <iconset resource="resources.qrc"> + <normaloff>:/resources/remove.png</normaloff>:/resources/remove.png</iconset> + </property> + <property name="flat"> + <bool>true</bool> + </property> + </widget> + </item> + </layout> + </item> + </layout> + </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> + <attribute name="title"> + <string>Options</string> + </attribute> + <layout class="QVBoxLayout"> + <property name="spacing"> + <number>3</number> + </property> + <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> + </item> + <item> + <widget class="QGroupBox" name="groupBoxSpeedLimit"> + <property name="title"> + <string>Speed limit</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="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> + <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> + <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_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> + </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> + <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> + <item> + <spacer name="verticalSpacer"> + <property name="orientation"> + <enum>Qt::Vertical</enum> + </property> + <property name="sizeHint" stdset="0"> + <size> + <width>20</width> + <height>220</height> + </size> + </property> + </spacer> + </item> + </layout> + </widget> + </widget> + </item> + </layout> + <action name="actionAddFile"> + <property name="icon"> + <iconset resource="resources.qrc"> + <normaloff>:/resources/add.png</normaloff>:/resources/add.png</iconset> + </property> + <property name="text"> + <string>Add file</string> + </property> + </action> + <action name="actionAddFolder"> + <property name="icon"> + <iconset resource="resources.qrc"> + <normaloff>:/resources/add.png</normaloff>:/resources/add.png</iconset> + </property> + <property name="text"> + <string>Add folder</string> + </property> + </action> + <action name="actionAddFileToMove"> + <property name="icon"> + <iconset resource="resources.qrc"> + <normaloff>:/resources/add.png</normaloff>:/resources/add.png</iconset> + </property> + <property name="text"> + <string>Move file(s)</string> + </property> + </action> + <action name="actionAddFolderToMove"> + <property name="icon"> + <iconset resource="resources.qrc"> + <normaloff>:/resources/add.png</normaloff>:/resources/add.png</iconset> + </property> + <property name="text"> + <string>Move folder</string> + </property> + </action> + <action name="actionAddFileToCopy"> + <property name="icon"> + <iconset resource="resources.qrc"> + <normaloff>:/resources/add.png</normaloff>:/resources/add.png</iconset> + </property> + <property name="text"> + <string>Copy file(s)</string> + </property> + </action> + <action name="actionAddFolderToCopy"> + <property name="icon"> + <iconset resource="resources.qrc"> + <normaloff>:/resources/add.png</normaloff>:/resources/add.png</iconset> + </property> + <property name="text"> + <string>Copy folder</string> + </property> + </action> + </widget> + <resources> + <include location="resources.qrc"/> + </resources> + <connections> + <connection> + <sender>moreButton</sender> + <signal>toggled(bool)</signal> + <receiver>tabWidget</receiver> + <slot>setVisible(bool)</slot> + <hints> + <hint type="sourcelabel"> + <x>218</x> + <y>144</y> + </hint> + <hint type="destinationlabel"> + <x>149</x> + <y>305</y> + </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/options.ui b/plugins/Themes/Oxygen/options.ui new file mode 100644 index 0000000..1455e7e --- /dev/null +++ b/plugins/Themes/Oxygen/options.ui @@ -0,0 +1,38 @@ +<?xml version="1.0" encoding="UTF-8"?> +<ui version="4.0"> + <class>options</class> + <widget class="QWidget" name="options"> + <property name="geometry"> + <rect> + <x>0</x> + <y>0</y> + <width>283</width> + <height>29</height> + </rect> + </property> + <property name="windowTitle"> + <string>Form</string> + </property> + <layout class="QFormLayout" name="formLayout"> + <property name="fieldGrowthPolicy"> + <enum>QFormLayout::ExpandingFieldsGrow</enum> + </property> + <item row="0" column="0"> + <widget class="QLabel" name="label"> + <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> + </widget> + <resources/> + <connections/> +</ui> diff --git a/plugins/Themes/Oxygen/resources.qrc b/plugins/Themes/Oxygen/resources.qrc new file mode 100644 index 0000000..75f6259 --- /dev/null +++ b/plugins/Themes/Oxygen/resources.qrc @@ -0,0 +1,22 @@ +<RCC> + <qresource prefix="/"> + <file>resources/add.png</file> + <file>resources/cancel.png</file> + <file>resources/main.png</file> + <file>resources/moveDown.png</file> + <file>resources/moveUp.png</file> + <file>resources/player_end.png</file> + <file>resources/player_pause.png</file> + <file>resources/player_play.png</file> + <file>resources/putOnBottom.png</file> + <file>resources/putOnTop.png</file> + <file>resources/remove.png</file> + <file>resources/search.png</file> + <file>resources/export-transfer-list.png</file> + <file>resources/import-transfer-list.png</file> + <file>resources/SystemTrayIcon/add.png</file> + <file>resources/SystemTrayIcon/exit.png</file> + <file>resources/SystemTrayIcon/informations.png</file> + <file>resources/SystemTrayIcon/options.png</file> + </qresource> +</RCC> diff --git a/plugins/Themes/Oxygen/resources/SystemTrayIcon/add.png b/plugins/Themes/Oxygen/resources/SystemTrayIcon/add.png Binary files differnew file mode 100644 index 0000000..1e03be9 --- /dev/null +++ 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 differnew file mode 100644 index 0000000..201353e --- /dev/null +++ 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 differnew file mode 100644 index 0000000..e1eb797 --- /dev/null +++ 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 differnew file mode 100644 index 0000000..d35365c --- /dev/null +++ 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 differnew file mode 100644 index 0000000..a81e70d --- /dev/null +++ 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 differnew file mode 100644 index 0000000..8072aea --- /dev/null +++ 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 differnew file mode 100644 index 0000000..f40ea82 --- /dev/null +++ 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 differnew file mode 100644 index 0000000..8d673e4 --- /dev/null +++ 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 differnew file mode 100644 index 0000000..9ce4779 --- /dev/null +++ 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 differnew file mode 100644 index 0000000..d0fca1b --- /dev/null +++ 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 differnew file mode 100644 index 0000000..1e03be9 --- /dev/null +++ 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 differnew file mode 100644 index 0000000..201353e --- /dev/null +++ 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 differnew file mode 100644 index 0000000..259e887 --- /dev/null +++ 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 differnew file mode 100644 index 0000000..58db827 --- /dev/null +++ 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 differnew file mode 100644 index 0000000..8072aea --- /dev/null +++ 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 differnew file mode 100644 index 0000000..03f2014 --- /dev/null +++ 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 differnew file mode 100644 index 0000000..5e42321 --- /dev/null +++ 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 differnew file mode 100644 index 0000000..0d22924 --- /dev/null +++ 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 differnew file mode 100644 index 0000000..a9b3113 --- /dev/null +++ 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 differnew file mode 100644 index 0000000..80ff3a1 --- /dev/null +++ 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 differnew file mode 100644 index 0000000..aadd380 --- /dev/null +++ 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 differnew file mode 100644 index 0000000..6f54166 --- /dev/null +++ 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 differnew file mode 100644 index 0000000..5b4c488 --- /dev/null +++ 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 differnew file mode 100644 index 0000000..3b674c3 --- /dev/null +++ b/plugins/Themes/Oxygen/resources/search.png diff --git a/plugins/Themes/Oxygen/resources_unix.qrc b/plugins/Themes/Oxygen/resources_unix.qrc new file mode 100644 index 0000000..ae3894b --- /dev/null +++ b/plugins/Themes/Oxygen/resources_unix.qrc @@ -0,0 +1,7 @@ +<RCC> + <qresource prefix="/"> + <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> +</RCC> diff --git a/plugins/Themes/Oxygen/resources_windows.qrc b/plugins/Themes/Oxygen/resources_windows.qrc new file mode 100644 index 0000000..99829b3 --- /dev/null +++ b/plugins/Themes/Oxygen/resources_windows.qrc @@ -0,0 +1,7 @@ +<RCC> + <qresource prefix="/"> + <file>resources/SystemTrayIcon/systray_Caught_Windows.png</file> + <file>resources/SystemTrayIcon/systray_Semiuncaught_Windows.png</file> + <file>resources/SystemTrayIcon/systray_Uncaught_Windows.png</file> + </qresource> +</RCC> |