From 594fcba67600704bee9115c86e18927b2237b304 Mon Sep 17 00:00:00 2001 From: Thomas Preud'homme Date: Tue, 29 May 2018 05:44:34 +0100 Subject: New upstream version 1.4.0.8 --- .../Themes/Clean/Languages/ar/translation.ts | 55 +++ .../Themes/Clean/Languages/de/translation.ts | 55 +++ .../Themes/Clean/Languages/el/translation.ts | 55 +++ .../Themes/Clean/Languages/en/translation.ts | 55 +++ .../Themes/Clean/Languages/es/translation.ts | 55 +++ .../Themes/Clean/Languages/fr/translation.ts | 55 +++ .../Themes/Clean/Languages/hi/translation.ts | 55 +++ .../Themes/Clean/Languages/hu/translation.ts | 55 +++ .../Themes/Clean/Languages/id/translation.ts | 55 +++ .../Themes/Clean/Languages/it/translation.ts | 55 +++ .../Themes/Clean/Languages/ja/translation.ts | 55 +++ .../Themes/Clean/Languages/ko/translation.ts | 55 +++ .../Themes/Clean/Languages/nl/translation.ts | 55 +++ .../Themes/Clean/Languages/no/translation.ts | 55 +++ .../Themes/Clean/Languages/pl/translation.ts | 55 +++ .../Themes/Clean/Languages/ru/translation.ts | 55 +++ .../Themes/Clean/Languages/th/translation.ts | 55 +++ .../Themes/Clean/Languages/tr/translation.ts | 55 +++ .../Themes/Clean/Languages/zh/translation.ts | 55 +++ .../Themes/Clean/StructEnumDefinition.h | 1 + .../Themes/Clean/documentation.dox | 28 ++ plugins-unmaintained/Themes/Clean/factory.cpp | 65 ++++ plugins-unmaintained/Themes/Clean/factory.h | 39 ++ plugins-unmaintained/Themes/Clean/informations.xml | 26 ++ plugins-unmaintained/Themes/Clean/interface.cpp | 426 +++++++++++++++++++++ plugins-unmaintained/Themes/Clean/interface.h | 141 +++++++ plugins-unmaintained/Themes/Clean/interface.pro | 46 +++ plugins-unmaintained/Themes/Clean/interface.ui | 131 +++++++ plugins-unmaintained/Themes/Clean/plugin.json | 1 + plugins-unmaintained/Themes/Clean/resources.qrc | 5 + .../resources/SystemTrayIcon/informations.png | Bin 0 -> 841 bytes .../SystemTrayIcon/systray_Caught_Unix.png | Bin 0 -> 1093 bytes .../SystemTrayIcon/systray_Caught_Windows.png | Bin 0 -> 623 bytes .../SystemTrayIcon/systray_Semiuncaught_Unix.png | Bin 0 -> 1296 bytes .../systray_Semiuncaught_Windows.png | Bin 0 -> 841 bytes .../SystemTrayIcon/systray_Uncaught_Unix.png | Bin 0 -> 754 bytes .../SystemTrayIcon/systray_Uncaught_Windows.png | Bin 0 -> 485 bytes .../Themes/Clean/resources_unix.qrc | 7 + .../Themes/Clean/resources_windows.qrc | 7 + 39 files changed, 1968 insertions(+) create mode 100644 plugins-unmaintained/Themes/Clean/Languages/ar/translation.ts create mode 100644 plugins-unmaintained/Themes/Clean/Languages/de/translation.ts create mode 100644 plugins-unmaintained/Themes/Clean/Languages/el/translation.ts create mode 100644 plugins-unmaintained/Themes/Clean/Languages/en/translation.ts create mode 100644 plugins-unmaintained/Themes/Clean/Languages/es/translation.ts create mode 100644 plugins-unmaintained/Themes/Clean/Languages/fr/translation.ts create mode 100644 plugins-unmaintained/Themes/Clean/Languages/hi/translation.ts create mode 100644 plugins-unmaintained/Themes/Clean/Languages/hu/translation.ts create mode 100644 plugins-unmaintained/Themes/Clean/Languages/id/translation.ts create mode 100644 plugins-unmaintained/Themes/Clean/Languages/it/translation.ts create mode 100644 plugins-unmaintained/Themes/Clean/Languages/ja/translation.ts create mode 100644 plugins-unmaintained/Themes/Clean/Languages/ko/translation.ts create mode 100644 plugins-unmaintained/Themes/Clean/Languages/nl/translation.ts create mode 100644 plugins-unmaintained/Themes/Clean/Languages/no/translation.ts create mode 100644 plugins-unmaintained/Themes/Clean/Languages/pl/translation.ts create mode 100644 plugins-unmaintained/Themes/Clean/Languages/ru/translation.ts create mode 100644 plugins-unmaintained/Themes/Clean/Languages/th/translation.ts create mode 100644 plugins-unmaintained/Themes/Clean/Languages/tr/translation.ts create mode 100644 plugins-unmaintained/Themes/Clean/Languages/zh/translation.ts create mode 100644 plugins-unmaintained/Themes/Clean/StructEnumDefinition.h create mode 100644 plugins-unmaintained/Themes/Clean/documentation.dox create mode 100644 plugins-unmaintained/Themes/Clean/factory.cpp create mode 100644 plugins-unmaintained/Themes/Clean/factory.h create mode 100644 plugins-unmaintained/Themes/Clean/informations.xml create mode 100644 plugins-unmaintained/Themes/Clean/interface.cpp create mode 100644 plugins-unmaintained/Themes/Clean/interface.h create mode 100644 plugins-unmaintained/Themes/Clean/interface.pro create mode 100644 plugins-unmaintained/Themes/Clean/interface.ui create mode 100644 plugins-unmaintained/Themes/Clean/plugin.json create mode 100644 plugins-unmaintained/Themes/Clean/resources.qrc create mode 100644 plugins-unmaintained/Themes/Clean/resources/SystemTrayIcon/informations.png create mode 100644 plugins-unmaintained/Themes/Clean/resources/SystemTrayIcon/systray_Caught_Unix.png create mode 100644 plugins-unmaintained/Themes/Clean/resources/SystemTrayIcon/systray_Caught_Windows.png create mode 100644 plugins-unmaintained/Themes/Clean/resources/SystemTrayIcon/systray_Semiuncaught_Unix.png create mode 100644 plugins-unmaintained/Themes/Clean/resources/SystemTrayIcon/systray_Semiuncaught_Windows.png create mode 100644 plugins-unmaintained/Themes/Clean/resources/SystemTrayIcon/systray_Uncaught_Unix.png create mode 100644 plugins-unmaintained/Themes/Clean/resources/SystemTrayIcon/systray_Uncaught_Windows.png create mode 100644 plugins-unmaintained/Themes/Clean/resources_unix.qrc create mode 100644 plugins-unmaintained/Themes/Clean/resources_windows.qrc (limited to 'plugins-unmaintained/Themes/Clean') diff --git a/plugins-unmaintained/Themes/Clean/Languages/ar/translation.ts b/plugins-unmaintained/Themes/Clean/Languages/ar/translation.ts new file mode 100644 index 0000000..6a85bd4 --- /dev/null +++ b/plugins-unmaintained/Themes/Clean/Languages/ar/translation.ts @@ -0,0 +1,55 @@ + + + + + InterfacePlugin + + + %1/%2 files, %3/%4 + + + + + interface + + + Action: + + + + + Waiting + + + + + Add file + + + + + Add folder + + + + + Move file(s) + + + + + Move folder + + + + + Copy file(s) + + + + + Copy folder + + + + diff --git a/plugins-unmaintained/Themes/Clean/Languages/de/translation.ts b/plugins-unmaintained/Themes/Clean/Languages/de/translation.ts new file mode 100644 index 0000000..c505f80 --- /dev/null +++ b/plugins-unmaintained/Themes/Clean/Languages/de/translation.ts @@ -0,0 +1,55 @@ + + + + + InterfacePlugin + + + %1/%2 files, %3/%4 + %1/%2 Dateien, %3/%4 + + + + interface + + + Action: + Aktion: + + + + Waiting + Warten + + + + Add file + Datei hinzufügen + + + + Add folder + Ordner hinzufügen + + + + Move file(s) + Datei (en) verschieben + + + + Move folder + Ordner verschieben + + + + Copy file(s) + Datei (en) kopieren + + + + Copy folder + Ordner kopieren + + + diff --git a/plugins-unmaintained/Themes/Clean/Languages/el/translation.ts b/plugins-unmaintained/Themes/Clean/Languages/el/translation.ts new file mode 100644 index 0000000..6a85bd4 --- /dev/null +++ b/plugins-unmaintained/Themes/Clean/Languages/el/translation.ts @@ -0,0 +1,55 @@ + + + + + InterfacePlugin + + + %1/%2 files, %3/%4 + + + + + interface + + + Action: + + + + + Waiting + + + + + Add file + + + + + Add folder + + + + + Move file(s) + + + + + Move folder + + + + + Copy file(s) + + + + + Copy folder + + + + diff --git a/plugins-unmaintained/Themes/Clean/Languages/en/translation.ts b/plugins-unmaintained/Themes/Clean/Languages/en/translation.ts new file mode 100644 index 0000000..33bef34 --- /dev/null +++ b/plugins-unmaintained/Themes/Clean/Languages/en/translation.ts @@ -0,0 +1,55 @@ + + + + + InterfacePlugin + + + %1/%2 files, %3/%4 + + + + + interface + + + Action: + + + + + Waiting + + + + + Add file + + + + + Add folder + + + + + Move file(s) + + + + + Move folder + + + + + Copy file(s) + + + + + Copy folder + + + + diff --git a/plugins-unmaintained/Themes/Clean/Languages/es/translation.ts b/plugins-unmaintained/Themes/Clean/Languages/es/translation.ts new file mode 100644 index 0000000..cfbceba --- /dev/null +++ b/plugins-unmaintained/Themes/Clean/Languages/es/translation.ts @@ -0,0 +1,55 @@ + + + + + InterfacePlugin + + + %1/%2 files, %3/%4 + %1/%2 archivos, %3/%4 + + + + interface + + + Action: + Acción: + + + + Waiting + + + + + Add file + Añadir archivo + + + + Add folder + Añadir carpeta + + + + Move file(s) + Mover archivo(s) + + + + Move folder + Mueva la carpeta + + + + Copy file(s) + Copia el archivo(s) + + + + Copy folder + Copia la carpeta + + + diff --git a/plugins-unmaintained/Themes/Clean/Languages/fr/translation.ts b/plugins-unmaintained/Themes/Clean/Languages/fr/translation.ts new file mode 100644 index 0000000..1656d8b --- /dev/null +++ b/plugins-unmaintained/Themes/Clean/Languages/fr/translation.ts @@ -0,0 +1,55 @@ + + + + + InterfacePlugin + + + %1/%2 files, %3/%4 + %1/%2 fichiers, %3/%4 + + + + interface + + + Action: + Action: + + + + Move file(s) + Déplacer des fichiers + + + + Move folder + Déplacer un dossier + + + + Copy file(s) + Copier des fichiers + + + + Copy folder + Copier un dossier + + + + Add folder + Ajouter un dossier + + + + Waiting + + + + + Add file + Ajout de fichier + + + diff --git a/plugins-unmaintained/Themes/Clean/Languages/hi/translation.ts b/plugins-unmaintained/Themes/Clean/Languages/hi/translation.ts new file mode 100644 index 0000000..6a85bd4 --- /dev/null +++ b/plugins-unmaintained/Themes/Clean/Languages/hi/translation.ts @@ -0,0 +1,55 @@ + + + + + InterfacePlugin + + + %1/%2 files, %3/%4 + + + + + interface + + + Action: + + + + + Waiting + + + + + Add file + + + + + Add folder + + + + + Move file(s) + + + + + Move folder + + + + + Copy file(s) + + + + + Copy folder + + + + diff --git a/plugins-unmaintained/Themes/Clean/Languages/hu/translation.ts b/plugins-unmaintained/Themes/Clean/Languages/hu/translation.ts new file mode 100644 index 0000000..3bd0e03 --- /dev/null +++ b/plugins-unmaintained/Themes/Clean/Languages/hu/translation.ts @@ -0,0 +1,55 @@ + + + + + InterfacePlugin + + + %1/%2 files, %3/%4 + %1/%2 fájl, %3/%4 + + + + interface + + + Action: + Művelet: + + + + Waiting + Várakozás + + + + Add file + Fájl hozzáadása + + + + Add folder + Mappa hozzáadása + + + + Move file(s) + Fájl(ok) mozgatása + + + + Move folder + Mappa mozgatása + + + + Copy file(s) + Fájl(ok) másolása + + + + Copy folder + Mappa másolása + + + diff --git a/plugins-unmaintained/Themes/Clean/Languages/id/translation.ts b/plugins-unmaintained/Themes/Clean/Languages/id/translation.ts new file mode 100644 index 0000000..6a85bd4 --- /dev/null +++ b/plugins-unmaintained/Themes/Clean/Languages/id/translation.ts @@ -0,0 +1,55 @@ + + + + + InterfacePlugin + + + %1/%2 files, %3/%4 + + + + + interface + + + Action: + + + + + Waiting + + + + + Add file + + + + + Add folder + + + + + Move file(s) + + + + + Move folder + + + + + Copy file(s) + + + + + Copy folder + + + + diff --git a/plugins-unmaintained/Themes/Clean/Languages/it/translation.ts b/plugins-unmaintained/Themes/Clean/Languages/it/translation.ts new file mode 100644 index 0000000..7139344 --- /dev/null +++ b/plugins-unmaintained/Themes/Clean/Languages/it/translation.ts @@ -0,0 +1,55 @@ + + + + + InterfacePlugin + + + %1/%2 files, %3/%4 + %1/%2 file, %3/%4 + + + + interface + + + Action: + Azione: + + + + Waiting + + + + + Add file + Aggiungi file + + + + Add folder + Aggiungi cartella + + + + Move file(s) + Sposta file + + + + Move folder + Sposta la cartella + + + + Copy file(s) + Copia file + + + + Copy folder + Copia cartella + + + diff --git a/plugins-unmaintained/Themes/Clean/Languages/ja/translation.ts b/plugins-unmaintained/Themes/Clean/Languages/ja/translation.ts new file mode 100644 index 0000000..6a85bd4 --- /dev/null +++ b/plugins-unmaintained/Themes/Clean/Languages/ja/translation.ts @@ -0,0 +1,55 @@ + + + + + InterfacePlugin + + + %1/%2 files, %3/%4 + + + + + interface + + + Action: + + + + + Waiting + + + + + Add file + + + + + Add folder + + + + + Move file(s) + + + + + Move folder + + + + + Copy file(s) + + + + + Copy folder + + + + diff --git a/plugins-unmaintained/Themes/Clean/Languages/ko/translation.ts b/plugins-unmaintained/Themes/Clean/Languages/ko/translation.ts new file mode 100644 index 0000000..4d94016 --- /dev/null +++ b/plugins-unmaintained/Themes/Clean/Languages/ko/translation.ts @@ -0,0 +1,55 @@ + + + + + InterfacePlugin + + + %1/%2 files, %3/%4 + %1/%2 파일, %3/%4 + + + + interface + + + Action: + 실행: + + + + Waiting + + + + + Add file + 파일 추가 + + + + Add folder + 폴더 추가 + + + + Move file(s) + 파일 이동 + + + + Move folder + 폴더 이동 + + + + Copy file(s) + 파일 복사 + + + + Copy folder + 폴더 복사 + + + diff --git a/plugins-unmaintained/Themes/Clean/Languages/nl/translation.ts b/plugins-unmaintained/Themes/Clean/Languages/nl/translation.ts new file mode 100644 index 0000000..6a85bd4 --- /dev/null +++ b/plugins-unmaintained/Themes/Clean/Languages/nl/translation.ts @@ -0,0 +1,55 @@ + + + + + InterfacePlugin + + + %1/%2 files, %3/%4 + + + + + interface + + + Action: + + + + + Waiting + + + + + Add file + + + + + Add folder + + + + + Move file(s) + + + + + Move folder + + + + + Copy file(s) + + + + + Copy folder + + + + diff --git a/plugins-unmaintained/Themes/Clean/Languages/no/translation.ts b/plugins-unmaintained/Themes/Clean/Languages/no/translation.ts new file mode 100644 index 0000000..6a85bd4 --- /dev/null +++ b/plugins-unmaintained/Themes/Clean/Languages/no/translation.ts @@ -0,0 +1,55 @@ + + + + + InterfacePlugin + + + %1/%2 files, %3/%4 + + + + + interface + + + Action: + + + + + Waiting + + + + + Add file + + + + + Add folder + + + + + Move file(s) + + + + + Move folder + + + + + Copy file(s) + + + + + Copy folder + + + + diff --git a/plugins-unmaintained/Themes/Clean/Languages/pl/translation.ts b/plugins-unmaintained/Themes/Clean/Languages/pl/translation.ts new file mode 100644 index 0000000..6a85bd4 --- /dev/null +++ b/plugins-unmaintained/Themes/Clean/Languages/pl/translation.ts @@ -0,0 +1,55 @@ + + + + + InterfacePlugin + + + %1/%2 files, %3/%4 + + + + + interface + + + Action: + + + + + Waiting + + + + + Add file + + + + + Add folder + + + + + Move file(s) + + + + + Move folder + + + + + Copy file(s) + + + + + Copy folder + + + + diff --git a/plugins-unmaintained/Themes/Clean/Languages/ru/translation.ts b/plugins-unmaintained/Themes/Clean/Languages/ru/translation.ts new file mode 100644 index 0000000..2b1c013 --- /dev/null +++ b/plugins-unmaintained/Themes/Clean/Languages/ru/translation.ts @@ -0,0 +1,55 @@ + + + + + InterfacePlugin + + + %1/%2 files, %3/%4 + %1/%2 файлы, %3/%4 + + + + interface + + + Action: + Действие: + + + + Waiting + + + + + Add file + Добавить файл + + + + Add folder + Добавить папку + + + + Move file(s) + Перемещение файла (ов) + + + + Move folder + Перемещение папки + + + + Copy file(s) + Копировать файл (ы) + + + + Copy folder + Копировать папку + + + diff --git a/plugins-unmaintained/Themes/Clean/Languages/th/translation.ts b/plugins-unmaintained/Themes/Clean/Languages/th/translation.ts new file mode 100644 index 0000000..6a85bd4 --- /dev/null +++ b/plugins-unmaintained/Themes/Clean/Languages/th/translation.ts @@ -0,0 +1,55 @@ + + + + + InterfacePlugin + + + %1/%2 files, %3/%4 + + + + + interface + + + Action: + + + + + Waiting + + + + + Add file + + + + + Add folder + + + + + Move file(s) + + + + + Move folder + + + + + Copy file(s) + + + + + Copy folder + + + + diff --git a/plugins-unmaintained/Themes/Clean/Languages/tr/translation.ts b/plugins-unmaintained/Themes/Clean/Languages/tr/translation.ts new file mode 100644 index 0000000..6a85bd4 --- /dev/null +++ b/plugins-unmaintained/Themes/Clean/Languages/tr/translation.ts @@ -0,0 +1,55 @@ + + + + + InterfacePlugin + + + %1/%2 files, %3/%4 + + + + + interface + + + Action: + + + + + Waiting + + + + + Add file + + + + + Add folder + + + + + Move file(s) + + + + + Move folder + + + + + Copy file(s) + + + + + Copy folder + + + + diff --git a/plugins-unmaintained/Themes/Clean/Languages/zh/translation.ts b/plugins-unmaintained/Themes/Clean/Languages/zh/translation.ts new file mode 100644 index 0000000..6a85bd4 --- /dev/null +++ b/plugins-unmaintained/Themes/Clean/Languages/zh/translation.ts @@ -0,0 +1,55 @@ + + + + + InterfacePlugin + + + %1/%2 files, %3/%4 + + + + + interface + + + Action: + + + + + Waiting + + + + + Add file + + + + + Add folder + + + + + Move file(s) + + + + + Move folder + + + + + Copy file(s) + + + + + Copy folder + + + + diff --git a/plugins-unmaintained/Themes/Clean/StructEnumDefinition.h b/plugins-unmaintained/Themes/Clean/StructEnumDefinition.h new file mode 100644 index 0000000..c1758f4 --- /dev/null +++ b/plugins-unmaintained/Themes/Clean/StructEnumDefinition.h @@ -0,0 +1 @@ +#include "../../../StructEnumDefinition.h" diff --git a/plugins-unmaintained/Themes/Clean/documentation.dox b/plugins-unmaintained/Themes/Clean/documentation.dox new file mode 100644 index 0000000..589d9c7 --- /dev/null +++ b/plugins-unmaintained/Themes/Clean/documentation.dox @@ -0,0 +1,28 @@ +/* -*- mode: C++ ; c-file-style: "stroustrup" -*- **/ + +/* + This file contains NO source code, just some documentation for doxygen to + parse. +*/ + +/*! + \mainpage Clean + + \section mainpage_overview Overview + + It's interface to have minimal interface for Ultracopier.\n + More informations on the wiki of ultracopier. Is part of Ultracopier project as alternative plugin. + + \section mainpage_platforms Platforms + + Ultracopier might be usable in all environments where you find Qt 5.\n + Ultracopier requires Qt 5.0 or newer. Tested on Qt 5.0. + + \section mainpage_downloads Downloads + + You can find the link on Ultracopier 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. + +*/ diff --git a/plugins-unmaintained/Themes/Clean/factory.cpp b/plugins-unmaintained/Themes/Clean/factory.cpp new file mode 100644 index 0000000..6acbe3a --- /dev/null +++ b/plugins-unmaintained/Themes/Clean/factory.cpp @@ -0,0 +1,65 @@ +/** \file factory.cpp +\brief Define the factory core +\author alpha_one_x86 +*/ + +#include "factory.h" + +PluginInterface_Themes * ThemesFactory::getInstance() +{ + InterfacePlugin * newInterface=new InterfacePlugin(facilityEngine); + connect(this,&ThemesFactory::reloadLanguage,newInterface,&InterfacePlugin::newLanguageLoaded); + return newInterface; +} + +void ThemesFactory::setResources(OptionInterface * options, const QString &writePath, const QString &pluginPath, FacilityInterface * facilityInterface, const bool &portableVersion) +{ + Q_UNUSED(options) + Q_UNUSED(writePath) + Q_UNUSED(pluginPath) + this->facilityEngine=facilityInterface; + Q_UNUSED(portableVersion) +} + +QWidget * ThemesFactory::options() +{ + return NULL; +} + +QIcon ThemesFactory::getIcon(const QString &fileName) const +{ + if(fileName=="SystemTrayIcon/exit.png") + { + QIcon tempIcon=QIcon::fromTheme("application-exit"); + if(!tempIcon.isNull()) + return tempIcon; + } + if(fileName=="SystemTrayIcon/add.png") + { + QIcon tempIcon=QIcon::fromTheme("list-add"); + if(!tempIcon.isNull()) + return tempIcon; + } + if(fileName=="SystemTrayIcon/informations.png") + { + QIcon tempIcon=QIcon::fromTheme("help-about"); + if(!tempIcon.isNull()) + return tempIcon; + } + if(fileName=="SystemTrayIcon/options.png") + { + QIcon tempIcon=QIcon::fromTheme("applications-system"); + if(!tempIcon.isNull()) + return tempIcon; + } + return QIcon(":/Themes/Clean/resources/"+fileName); +} + +void ThemesFactory::resetOptions() +{ +} + +void ThemesFactory::newLanguageLoaded() +{ + emit reloadLanguage(); +} diff --git a/plugins-unmaintained/Themes/Clean/factory.h b/plugins-unmaintained/Themes/Clean/factory.h new file mode 100644 index 0000000..f9b1ee2 --- /dev/null +++ b/plugins-unmaintained/Themes/Clean/factory.h @@ -0,0 +1,39 @@ +/** \file factory.h +\brief Define the factory, to create instance of the interface +\author alpha_one_x86 +\licence GPL3, see the file COPYING */ + +#ifndef FACTORY_H +#define FACTORY_H + +#include +#include + +#include "interface.h" +#include "../../../interface/PluginInterface_Themes.h" + +/// \brief Define the factory, to create instance of the interface +class ThemesFactory : public PluginInterface_ThemesFactory +{ + Q_OBJECT + Q_PLUGIN_METADATA(IID "first-world.info.ultracopier.PluginInterface.ThemesFactory/1.0.1.0" FILE "plugin.json") + Q_INTERFACES(PluginInterface_ThemesFactory) + public: + /// \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 * options,const QString &writePath,const QString &pluginPath,FacilityInterface * facilityInterface,const bool &portableVersion); + /// \brief to get the default options widget + QWidget * options(); + /// \brief to get a resource icon + QIcon getIcon(const QString &fileName) const; + signals: + void reloadLanguage(); + public slots: + void resetOptions(); + void newLanguageLoaded(); + private: + FacilityInterface * facilityEngine; +}; + +#endif // FACTORY_H diff --git a/plugins-unmaintained/Themes/Clean/informations.xml b/plugins-unmaintained/Themes/Clean/informations.xml new file mode 100644 index 0000000..680d99a --- /dev/null +++ b/plugins-unmaintained/Themes/Clean/informations.xml @@ -0,0 +1,26 @@ + + + <![CDATA[Clean style for Ultracopier]]> + <![CDATA[Style Clean pour Ultracopier]]> + + Themes + + + + + + + 1287496800 + + windows-x86 + + + + + 1.4.0.8 + + Clean + + + \ No newline at end of file diff --git a/plugins-unmaintained/Themes/Clean/interface.cpp b/plugins-unmaintained/Themes/Clean/interface.cpp new file mode 100644 index 0000000..3f2cd2a --- /dev/null +++ b/plugins-unmaintained/Themes/Clean/interface.cpp @@ -0,0 +1,426 @@ +/** \file interface.cpp +\brief Define the interface core +\author alpha_one_x86 +*/ + +#include "interface.h" +#include "ui_interface.h" + +InterfacePlugin::InterfacePlugin(FacilityInterface * facilityEngine) : + ui(new Ui::interface()) +{ + ui->setupUi(this); + currentFile = 0; + totalFile = 0; + currentSize = 0; + totalSize = 0; + modeIsForced = false; + haveStarted = false; + this->facilityEngine = facilityEngine; + menu=new QMenu(this); + ui->toolButton->setMenu(menu); + updateModeAndType(); + + connect(ui->actionAddFile,&QAction::triggered,this,&InterfacePlugin::forcedModeAddFile); + connect(ui->actionAddFileToCopy,&QAction::triggered,this,&InterfacePlugin::forcedModeAddFileToCopy); + connect(ui->actionAddFileToMove,&QAction::triggered,this,&InterfacePlugin::forcedModeAddFileToMove); + connect(ui->actionAddFolderToCopy,&QAction::triggered,this,&InterfacePlugin::forcedModeAddFolderToCopy); + connect(ui->actionAddFolderToMove,&QAction::triggered,this,&InterfacePlugin::forcedModeAddFolderToMove); + connect(ui->actionAddFolder,&QAction::triggered,this,&InterfacePlugin::forcedModeAddFolder); + show(); +} + +InterfacePlugin::~InterfacePlugin() +{ + delete menu; +} + +void InterfacePlugin::forcedModeAddFile() +{ + emit userAddFile(mode); +} + +void InterfacePlugin::forcedModeAddFolder() +{ + emit userAddFolder(mode); +} + +void InterfacePlugin::forcedModeAddFileToCopy() +{ + emit userAddFile(Ultracopier::Copy); +} + +void InterfacePlugin::forcedModeAddFolderToCopy() +{ + emit userAddFolder(Ultracopier::Copy); +} + +void InterfacePlugin::forcedModeAddFileToMove() +{ + emit userAddFile(Ultracopier::Move); +} + +void InterfacePlugin::forcedModeAddFolderToMove() +{ + emit userAddFolder(Ultracopier::Move); +} + +void InterfacePlugin::updateModeAndType() +{ + menu->clear(); + if(modeIsForced) + { + menu->addAction(ui->actionAddFile); + if(type==Ultracopier::FileAndFolder) + menu->addAction(ui->actionAddFolder); + } + else + { + menu->addAction(ui->actionAddFileToCopy); + menu->addAction(ui->actionAddFileToMove); + if(type==Ultracopier::FileAndFolder) + { + menu->addAction(ui->actionAddFolderToCopy); + menu->addAction(ui->actionAddFolderToMove); + } + } +} + +void InterfacePlugin::closeEvent(QCloseEvent *event) +{ + event->ignore(); + this->hide(); + emit cancel(); +} + +void InterfacePlugin::detectedSpeed(const quint64 &speed) +{ + Q_UNUSED(speed) +} + +QWidget * InterfacePlugin::getOptionsEngineWidget() +{ + return NULL; +} + +void InterfacePlugin::getOptionsEngineEnabled(const bool &isEnabled) +{ + Q_UNUSED(isEnabled) +} + +void InterfacePlugin::setCopyType(const Ultracopier::CopyType &type) +{ + this->type=type; + updateModeAndType(); +} + +void InterfacePlugin::forceCopyMode(const Ultracopier::CopyMode &mode) +{ + modeIsForced=true; + this->mode=mode; + updateModeAndType(); +} + +void InterfacePlugin::updateTitle() +{ + QString actionString; + switch(action) + { + case Ultracopier::Listing: + actionString=facilityEngine->translateText("Listing"); + break; + case Ultracopier::Copying: + actionString=facilityEngine->translateText("Copying"); + break; + case Ultracopier::CopyingAndListing: + actionString=facilityEngine->translateText("Listing and copying"); + break; + case Ultracopier::Idle: + actionString="Ultracopier"; + break; + } + this->setWindowTitle(actionString+" - "+tr("%1/%2 files, %3/%4").arg(currentFile).arg(totalFile).arg(currentSize).arg(totalSize)); +} + +void InterfacePlugin::actionInProgess(const Ultracopier::EngineActionInProgress &action) +{ + this->action=action; + switch(action) + { + case Ultracopier::Copying: + case Ultracopier::CopyingAndListing: + ui->progressBar->setMaximum(65535); + ui->progressBar->setMinimum(0); + break; + case Ultracopier::Listing: + ui->progressBar->setMaximum(0); + ui->progressBar->setMinimum(0); + break; + case Ultracopier::Idle: + if(haveStarted) + emit cancel(); + break; + default: + break; + } + switch(action) + { + case Ultracopier::Copying: + case Ultracopier::CopyingAndListing: + haveStarted=true; + break; + default: + break; + } +} + +void InterfacePlugin::newTransferStart(const Ultracopier::ItemOfCopyList &item) +{ + ui->text->setText(item.sourceFullPath); +} + +void InterfacePlugin::newTransferStop(const quint64 &id) +{ + Q_UNUSED(id) +} + +void InterfacePlugin::newFolderListing(const QString &path) +{ + if(action==Ultracopier::Listing) + ui->text->setText(path); +} + +void InterfacePlugin::remainingTime(const int &remainingSeconds) +{ + Q_UNUSED(remainingSeconds) +} + +void InterfacePlugin::newCollisionAction(const QString &action) +{ + Q_UNUSED(action) +} + +void InterfacePlugin::newErrorAction(const QString &action) +{ + Q_UNUSED(action) +} + +void InterfacePlugin::errorDetected() +{ +} + +/// \brief new error +void InterfacePlugin::errorToRetry(const QString &source,const QString &destination,const QString &error) +{ + Q_UNUSED(source); + Q_UNUSED(destination); + Q_UNUSED(error); +} + +void InterfacePlugin::setTransferListOperation(const Ultracopier::TransferListOperation &transferListOperation) +{ + Q_UNUSED(transferListOperation) +} + +//speed limitation +bool InterfacePlugin::setSpeedLimitation(const qint64 &speedLimitation) +{ + Q_UNUSED(speedLimitation) + return false; +} + +//get information about the copy +void InterfacePlugin::setGeneralProgression(const quint64 ¤t,const quint64 &total) +{ + ui->progressBar->setValue(((double)current/total)*65535); +} + +void InterfacePlugin::setCollisionAction(const QList > &list) +{ + Q_UNUSED(list) +} + +void InterfacePlugin::setErrorAction(const QList > &list) +{ + Q_UNUSED(list) +} + +//edit the transfer list +void InterfacePlugin::getActionOnList(const QList &returnActions) +{ + Q_UNUSED(returnActions) +} + +void InterfacePlugin::haveExternalOrder() +{ + ui->toolButton->hide(); +} + +void InterfacePlugin::isInPause(const bool &isInPause) +{ + //resume in auto the pause + if(isInPause) + emit resume(); +} + +void InterfacePlugin::newLanguageLoaded() +{ + ui->retranslateUi(this); + updateTitle(); +} + +/* + Return[0]: totalFile + Return[1]: totalSize + Return[2]: currentFile + */ +void InterfacePlugin::synchronizeItems(const QList& returnActions) +{ + loop_size=returnActions.size(); + index_for_loop=0; + while(index_for_loop &progressionList) +{ + loop_size=InternalRunningOperation.size(); + sub_loop_size=progressionList.size(); + index_for_loop=0; + while(index_for_loop0; + 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 Ultracopier::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 Ultracopier::Transfer: + if(itemTransfer.generalData.size>0) + returnItem.progressBar_file=((double)itemTransfer.currentProgression/itemTransfer.generalData.size)*65535; + else + returnItem.progressBar_file=0; + break; + case Ultracopier::PostOperation: + returnItem.progressBar_file=65535; + break; + default: + returnItem.progressBar_file=0; + } + } + return returnItem; +} + diff --git a/plugins-unmaintained/Themes/Clean/interface.h b/plugins-unmaintained/Themes/Clean/interface.h new file mode 100644 index 0000000..e5b5c36 --- /dev/null +++ b/plugins-unmaintained/Themes/Clean/interface.h @@ -0,0 +1,141 @@ +/** \file interface.h +\brief Define the interface +\author alpha_one_x86 +\licence GPL3, see the file COPYING */ + +#ifndef INTERFACE_TEST_H +#define INTERFACE_TEST_H + +#include +#include +#include +#include + +#include "../../../interface/PluginInterface_Themes.h" + +namespace Ui { + class interface; +} + +/// \brief Define the interface +class InterfacePlugin : public PluginInterface_Themes +{ + Q_OBJECT +public slots: + //send information about the copy + /// \brief to set the action in progress + void actionInProgess(const Ultracopier::EngineActionInProgress&); + /// \brief new transfer have started + void newTransferStart(const Ultracopier::ItemOfCopyList &item); + /** \brief one transfer have been stopped + * is stopped, example: because error have occurred, and try later, don't remove the item! */ + void newTransferStop(const quint64 &id); + /// \brief the new folder is listing + void newFolderListing(const QString &path); + /** \brief show the detected speed + * in byte per seconds */ + void detectedSpeed(const quint64 &speed); + /** \brief show the remaining time + * time in seconds */ + void remainingTime(const int &remainingSeconds); + /// \brief set the current collision action + void newCollisionAction(const QString &action); + /// \brief set the current error action + void newErrorAction(const QString &action); + /// \brief set one error is detected + void errorDetected(); + /// \brief new error + void errorToRetry(const QString &source,const QString &destination,const QString &error); + //speed limitation + /** \brief the max speed used + * in byte per seconds, -1 if not able, 0 if disabled */ + bool setSpeedLimitation(const qint64 &speedLimitation); + //set the translate + void newLanguageLoaded(); + void synchronizeItems(const QList& returnActions); + /** \brief support speed limitation */ + void setSupportSpeedLimitation(const bool &supportSpeedLimitationBool); +public: + /// \brief the transfer item with progression + struct ItemOfCopyListWithMoreInformations + { + quint64 currentProgression; + Ultracopier::ItemOfCopyList generalData; + Ultracopier::ActionTypeCopyList actionType; + bool custom_with_progression; + }; + /// \brief returned first transfer item + struct currentTransfertItem + { + quint64 id; + bool haveItem; + QString from; + QString to; + QString current_file; + int progressBar_file; + }; + /// \brief get the widget for the copy engine + QWidget * getOptionsEngineWidget(); + /// \brief to set if the copy engine is found + void getOptionsEngineEnabled(const bool &isEnabled); + /// \brief get action on the transfer list (add/move/remove) + void getActionOnList(const QList &returnActions); + //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 &progressionList); + /// \brief set collision action + void setCollisionAction(const QList > &); + /// \brief set error action + void setErrorAction(const QList > &); + /// \brief set the copyType -> file or folder + void setCopyType(const Ultracopier::CopyType&); + /// \brief set the copyMove -> copy or move, to force in copy or move, else support both + void forceCopyMode(const Ultracopier::CopyMode &); + /// \brief set if transfer list is exportable/importable + void setTransferListOperation(const Ultracopier::TransferListOperation &transferListOperation); + /** \brief set if the order is external (like file manager copy) + * to notify the interface, which can hide add folder/filer button */ + void haveExternalOrder(); + /// \brief set if is in pause + void isInPause(const bool &); +signals: + #ifdef ULTRACOPIER_PLUGIN_DEBUG + /// \brief To debug source + void debugInformation(const DebugLevel &level,const QString &fonction,const QString &text,const QString &file,const int &ligne); + #endif +public: + //constructor and destructor + InterfacePlugin(FacilityInterface * facilityEngine); + ~InterfacePlugin(); +private: + Ui::interface *ui; + quint64 currentFile; + quint64 totalFile; + quint64 currentSize; + quint64 totalSize; + void updateTitle(); + QMenu *menu; + Ultracopier::EngineActionInProgress action; + void closeEvent(QCloseEvent *event); + void updateModeAndType(); + bool modeIsForced; + Ultracopier::CopyType type; + Ultracopier::CopyMode mode; + bool haveStarted; + QList InternalRunningOperation; + int loop_size,index_for_loop; + int sub_loop_size,sub_index_for_loop; + currentTransfertItem getCurrentTransfertItem(); + FacilityInterface * facilityEngine; +private slots: + void forcedModeAddFile(); + void forcedModeAddFolder(); + void forcedModeAddFileToCopy(); + void forcedModeAddFolderToCopy(); + void forcedModeAddFileToMove(); + void forcedModeAddFolderToMove(); +}; + +#endif // INTERFACE_TEST_H diff --git a/plugins-unmaintained/Themes/Clean/interface.pro b/plugins-unmaintained/Themes/Clean/interface.pro new file mode 100644 index 0000000..eb124c9 --- /dev/null +++ b/plugins-unmaintained/Themes/Clean/interface.pro @@ -0,0 +1,46 @@ +CONFIG += c++11 +QMAKE_CXXFLAGS+="-std=c++0x -Wall -Wextra" +mac:QMAKE_CXXFLAGS+="-stdlib=libc++" + +QT += widgets +TEMPLATE = lib +CONFIG += plugin +HEADERS = interface.h \ + StructEnumDefinition.h \ + factory.h \ + ../../../interface/PluginInterface_Themes.h +SOURCES = interface.cpp \ + factory.cpp +TARGET = $$qtLibraryTarget(interface) +TRANSLATIONS += Languages/ar/translation.ts \ + Languages/de/translation.ts \ + Languages/el/translation.ts \ + Languages/en/translation.ts \ + Languages/es/translation.ts \ + Languages/fr/translation.ts \ + Languages/hi/translation.ts \ + Languages/hu/translation.ts \ + Languages/id/translation.ts \ + Languages/it/translation.ts \ + Languages/ja/translation.ts \ + Languages/ko/translation.ts \ + Languages/nl/translation.ts \ + Languages/no/translation.ts \ + Languages/pl/translation.ts \ + Languages/ru/translation.ts \ + Languages/th/translation.ts \ + Languages/tr/translation.ts \ + Languages/zh/translation.ts + +FORMS += \ + interface.ui + +RESOURCES += \ + resources.qrc + +win32 { + RESOURCES += resources_windows.qrc +} +!win32 { + RESOURCES += resources_unix.qrc +} diff --git a/plugins-unmaintained/Themes/Clean/interface.ui b/plugins-unmaintained/Themes/Clean/interface.ui new file mode 100644 index 0000000..f178af7 --- /dev/null +++ b/plugins-unmaintained/Themes/Clean/interface.ui @@ -0,0 +1,131 @@ + + + interface + + + + 0 + 0 + 139 + 55 + + + + Ultracopier + + + + :/systray_Caught_Unix.png:/systray_Caught_Unix.png + + + + 0 + + + 0 + + + + + + + Action: + + + + + + + + true + + + + Waiting + + + + + + + + + + + 65535 + + + + + + + ... + + + QToolButton::InstantPopup + + + + + + + + + + :/Themes/Clean/resources/add.png:/Themes/Clean/resources/add.png + + + Add file + + + + + + :/Themes/Clean/resources/add.png:/Themes/Clean/resources/add.png + + + Add folder + + + + + + :/Themes/Clean/resources/add.png:/Themes/Clean/resources/add.png + + + Move file(s) + + + + + + :/Themes/Clean/resources/add.png:/Themes/Clean/resources/add.png + + + Move folder + + + + + + :/Themes/Clean/resources/add.png:/Themes/Clean/resources/add.png + + + Copy file(s) + + + + + + :/Themes/Clean/resources/add.png:/Themes/Clean/resources/add.png + + + Copy folder + + + + + + + + diff --git a/plugins-unmaintained/Themes/Clean/plugin.json b/plugins-unmaintained/Themes/Clean/plugin.json new file mode 100644 index 0000000..9e26dfe --- /dev/null +++ b/plugins-unmaintained/Themes/Clean/plugin.json @@ -0,0 +1 @@ +{} \ No newline at end of file diff --git a/plugins-unmaintained/Themes/Clean/resources.qrc b/plugins-unmaintained/Themes/Clean/resources.qrc new file mode 100644 index 0000000..40533c4 --- /dev/null +++ b/plugins-unmaintained/Themes/Clean/resources.qrc @@ -0,0 +1,5 @@ + + + resources/SystemTrayIcon/informations.png + + diff --git a/plugins-unmaintained/Themes/Clean/resources/SystemTrayIcon/informations.png b/plugins-unmaintained/Themes/Clean/resources/SystemTrayIcon/informations.png new file mode 100644 index 0000000..5b7b255 Binary files /dev/null and b/plugins-unmaintained/Themes/Clean/resources/SystemTrayIcon/informations.png differ diff --git a/plugins-unmaintained/Themes/Clean/resources/SystemTrayIcon/systray_Caught_Unix.png b/plugins-unmaintained/Themes/Clean/resources/SystemTrayIcon/systray_Caught_Unix.png new file mode 100644 index 0000000..6f5d1cf Binary files /dev/null and b/plugins-unmaintained/Themes/Clean/resources/SystemTrayIcon/systray_Caught_Unix.png differ diff --git a/plugins-unmaintained/Themes/Clean/resources/SystemTrayIcon/systray_Caught_Windows.png b/plugins-unmaintained/Themes/Clean/resources/SystemTrayIcon/systray_Caught_Windows.png new file mode 100644 index 0000000..5464856 Binary files /dev/null and b/plugins-unmaintained/Themes/Clean/resources/SystemTrayIcon/systray_Caught_Windows.png differ diff --git a/plugins-unmaintained/Themes/Clean/resources/SystemTrayIcon/systray_Semiuncaught_Unix.png b/plugins-unmaintained/Themes/Clean/resources/SystemTrayIcon/systray_Semiuncaught_Unix.png new file mode 100644 index 0000000..3961215 Binary files /dev/null and b/plugins-unmaintained/Themes/Clean/resources/SystemTrayIcon/systray_Semiuncaught_Unix.png differ diff --git a/plugins-unmaintained/Themes/Clean/resources/SystemTrayIcon/systray_Semiuncaught_Windows.png b/plugins-unmaintained/Themes/Clean/resources/SystemTrayIcon/systray_Semiuncaught_Windows.png new file mode 100644 index 0000000..45d6315 Binary files /dev/null and b/plugins-unmaintained/Themes/Clean/resources/SystemTrayIcon/systray_Semiuncaught_Windows.png differ diff --git a/plugins-unmaintained/Themes/Clean/resources/SystemTrayIcon/systray_Uncaught_Unix.png b/plugins-unmaintained/Themes/Clean/resources/SystemTrayIcon/systray_Uncaught_Unix.png new file mode 100644 index 0000000..ac4299a Binary files /dev/null and b/plugins-unmaintained/Themes/Clean/resources/SystemTrayIcon/systray_Uncaught_Unix.png differ diff --git a/plugins-unmaintained/Themes/Clean/resources/SystemTrayIcon/systray_Uncaught_Windows.png b/plugins-unmaintained/Themes/Clean/resources/SystemTrayIcon/systray_Uncaught_Windows.png new file mode 100644 index 0000000..6e6bae7 Binary files /dev/null and b/plugins-unmaintained/Themes/Clean/resources/SystemTrayIcon/systray_Uncaught_Windows.png differ diff --git a/plugins-unmaintained/Themes/Clean/resources_unix.qrc b/plugins-unmaintained/Themes/Clean/resources_unix.qrc new file mode 100644 index 0000000..847cc1c --- /dev/null +++ b/plugins-unmaintained/Themes/Clean/resources_unix.qrc @@ -0,0 +1,7 @@ + + + resources/SystemTrayIcon/systray_Caught_Unix.png + resources/SystemTrayIcon/systray_Semiuncaught_Unix.png + resources/SystemTrayIcon/systray_Uncaught_Unix.png + + diff --git a/plugins-unmaintained/Themes/Clean/resources_windows.qrc b/plugins-unmaintained/Themes/Clean/resources_windows.qrc new file mode 100644 index 0000000..7d8bbe1 --- /dev/null +++ b/plugins-unmaintained/Themes/Clean/resources_windows.qrc @@ -0,0 +1,7 @@ + + + resources/SystemTrayIcon/systray_Caught_Windows.png + resources/SystemTrayIcon/systray_Semiuncaught_Windows.png + resources/SystemTrayIcon/systray_Uncaught_Windows.png + + -- cgit v1.2.3