diff options
author | Thomas Preud'homme <robotux@celest.fr> | 2018-05-29 05:44:34 +0100 |
---|---|---|
committer | Thomas Preud'homme <robotux@celest.fr> | 2018-05-29 05:44:34 +0100 |
commit | 594fcba67600704bee9115c86e18927b2237b304 (patch) | |
tree | 38dc620e6b8e9a76c1953ded39c1dc006a830728 /plugins-alternative/Themes/Teracopy/factory.cpp | |
parent | 20062a6a4bc2aec8ada645baa78ff68892ccd154 (diff) |
New upstream version 1.4.0.8
Diffstat (limited to 'plugins-alternative/Themes/Teracopy/factory.cpp')
-rw-r--r-- | plugins-alternative/Themes/Teracopy/factory.cpp | 70 |
1 files changed, 0 insertions, 70 deletions
diff --git a/plugins-alternative/Themes/Teracopy/factory.cpp b/plugins-alternative/Themes/Teracopy/factory.cpp deleted file mode 100644 index 2b176bf..0000000 --- a/plugins-alternative/Themes/Teracopy/factory.cpp +++ /dev/null @@ -1,70 +0,0 @@ -/** \file factory.cpp -\brief Define the factory core -\author alpha_one_x86 -*/ - -#include "factory.h" - -PluginInterface_Themes * ThemesFactory::getInstance() -{ - ULTRACOPIER_DEBUGCONSOLE(Ultracopier::DebugLevel_Notice,"start"); - Themes * newInterface=new Themes(facilityEngine); - #ifdef ULTRACOPIER_PLUGIN_DEBUG - connect(newInterface,&Themes::debugInformation,this,&PluginInterface_ThemesFactory::debugInformation); - #endif - connect(this,&ThemesFactory::reloadLanguage,newInterface,&Themes::newLanguageLoaded); - return newInterface; -} - -void ThemesFactory::setResources(OptionInterface * options,const QString &writePath,const QString &pluginPath,FacilityInterface * facilityInterface,const bool &portableVersion) -{ - Q_UNUSED(writePath); - Q_UNUSED(pluginPath); - this->facilityEngine=facilityInterface; - ULTRACOPIER_DEBUGCONSOLE(Ultracopier::DebugLevel_Notice,"start, writePath: "+writePath+", pluginPath: "+pluginPath); - Q_UNUSED(portableVersion); - Q_UNUSED(options); -} - -QWidget * ThemesFactory::options() -{ - return NULL; -} - -void ThemesFactory::resetOptions() -{ -} - -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/Teracopy/resources/"+fileName); -} - -void ThemesFactory::newLanguageLoaded() -{ - emit reloadLanguage(); -} |