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/PluginLoader | |
parent | 20062a6a4bc2aec8ada645baa78ff68892ccd154 (diff) |
New upstream version 1.4.0.8
Diffstat (limited to 'plugins-alternative/PluginLoader')
36 files changed, 0 insertions, 501 deletions
diff --git a/plugins-alternative/PluginLoader/keybinding/DebugEngineMacro.h b/plugins-alternative/PluginLoader/keybinding/DebugEngineMacro.h deleted file mode 100644 index f9b5349..0000000 --- a/plugins-alternative/PluginLoader/keybinding/DebugEngineMacro.h +++ /dev/null @@ -1,28 +0,0 @@ -/** \file DebugEngineMacro.h -\brief Define the macro for the debug -\author alpha_one_x86 -\licence GPL3, see the file COPYING */ - -#ifndef DEBUGENGINEMACRO_H -#define DEBUGENGINEMACRO_H - -#ifdef WIN32 -# define __func__ __FUNCTION__ -#endif - -/// \brief Macro for the debug log -#ifdef ULTRACOPIER_PLUGIN_DEBUG - #if defined (__FILE__) && defined (__LINE__) - #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_PLUGIN_DEBUG - #define ULTRACOPIER_DEBUGCONSOLE(a,b) void() -#endif // ULTRACOPIER_PLUGIN_DEBUG - -#endif // DEBUGENGINEMACRO_H - - - - diff --git a/plugins-alternative/PluginLoader/keybinding/Environment.h b/plugins-alternative/PluginLoader/keybinding/Environment.h deleted file mode 100644 index 265a5a6..0000000 --- a/plugins-alternative/PluginLoader/keybinding/Environment.h +++ /dev/null @@ -1,10 +0,0 @@ -/** \file Environment.h
-\brief Define the environment variable and global function
-\author alpha_one_x86
-\licence GPL3, see the file COPYING */
-
-#include "Variable.h"
-/// \brief The global include
-#include "StructEnumDefinition.h"
-#include "DebugEngineMacro.h"
-
diff --git a/plugins-alternative/PluginLoader/keybinding/KeyBind.cpp b/plugins-alternative/PluginLoader/keybinding/KeyBind.cpp deleted file mode 100644 index 0fd5287..0000000 --- a/plugins-alternative/PluginLoader/keybinding/KeyBind.cpp +++ /dev/null @@ -1,11 +0,0 @@ -#include "KeyBind.h" - -KeyBind::KeyBind(QWidget *parent) : - QLineEdit(parent) -{ -} - -void KeyBind::keyPressEvent(QKeyEvent * event) -{ - emit newKey(event); -} diff --git a/plugins-alternative/PluginLoader/keybinding/KeyBind.h b/plugins-alternative/PluginLoader/keybinding/KeyBind.h deleted file mode 100644 index f4abf68..0000000 --- a/plugins-alternative/PluginLoader/keybinding/KeyBind.h +++ /dev/null @@ -1,18 +0,0 @@ -#ifndef KEYBIND_H -#define KEYBIND_H - -#include <QLineEdit> - -class KeyBind : public QLineEdit -{ - Q_OBJECT -public: - explicit KeyBind(QWidget *parent = 0); - -signals: - void newKey(QKeyEvent * event); -public slots: - void keyPressEvent(QKeyEvent * event); -}; - -#endif // KEYBIND_H diff --git a/plugins-alternative/PluginLoader/keybinding/Languages/ar/translation.ts b/plugins-alternative/PluginLoader/keybinding/Languages/ar/translation.ts deleted file mode 100644 index 6401616..0000000 --- a/plugins-alternative/PluginLoader/keybinding/Languages/ar/translation.ts +++ /dev/null @@ -1,4 +0,0 @@ -<?xml version="1.0" encoding="utf-8"?> -<!DOCTYPE TS> -<TS version="2.1"> -</TS> diff --git a/plugins-alternative/PluginLoader/keybinding/Languages/de/translation.ts b/plugins-alternative/PluginLoader/keybinding/Languages/de/translation.ts deleted file mode 100644 index 9c19382..0000000 --- a/plugins-alternative/PluginLoader/keybinding/Languages/de/translation.ts +++ /dev/null @@ -1,4 +0,0 @@ -<?xml version="1.0" encoding="utf-8"?> -<!DOCTYPE TS> -<TS version="2.1" language="de" sourcelanguage="en"> -</TS> diff --git a/plugins-alternative/PluginLoader/keybinding/Languages/el/translation.ts b/plugins-alternative/PluginLoader/keybinding/Languages/el/translation.ts deleted file mode 100644 index 6401616..0000000 --- a/plugins-alternative/PluginLoader/keybinding/Languages/el/translation.ts +++ /dev/null @@ -1,4 +0,0 @@ -<?xml version="1.0" encoding="utf-8"?> -<!DOCTYPE TS> -<TS version="2.1"> -</TS> diff --git a/plugins-alternative/PluginLoader/keybinding/Languages/en/translation.ts b/plugins-alternative/PluginLoader/keybinding/Languages/en/translation.ts deleted file mode 100644 index 5315a75..0000000 --- a/plugins-alternative/PluginLoader/keybinding/Languages/en/translation.ts +++ /dev/null @@ -1,4 +0,0 @@ -<?xml version="1.0" encoding="utf-8"?> -<!DOCTYPE TS> -<TS version="2.1" language="en"> -</TS> diff --git a/plugins-alternative/PluginLoader/keybinding/Languages/es/translation.ts b/plugins-alternative/PluginLoader/keybinding/Languages/es/translation.ts deleted file mode 100644 index ddce2f5..0000000 --- a/plugins-alternative/PluginLoader/keybinding/Languages/es/translation.ts +++ /dev/null @@ -1,4 +0,0 @@ -<?xml version="1.0" encoding="utf-8"?> -<!DOCTYPE TS> -<TS version="2.1" language="es" sourcelanguage="en"> -</TS> diff --git a/plugins-alternative/PluginLoader/keybinding/Languages/fr/translation.ts b/plugins-alternative/PluginLoader/keybinding/Languages/fr/translation.ts deleted file mode 100644 index 4c23f0c..0000000 --- a/plugins-alternative/PluginLoader/keybinding/Languages/fr/translation.ts +++ /dev/null @@ -1,4 +0,0 @@ -<?xml version="1.0" encoding="utf-8"?> -<!DOCTYPE TS> -<TS version="2.1" language="fr" sourcelanguage="en"> -</TS> diff --git a/plugins-alternative/PluginLoader/keybinding/Languages/hi/translation.ts b/plugins-alternative/PluginLoader/keybinding/Languages/hi/translation.ts deleted file mode 100644 index 6401616..0000000 --- a/plugins-alternative/PluginLoader/keybinding/Languages/hi/translation.ts +++ /dev/null @@ -1,4 +0,0 @@ -<?xml version="1.0" encoding="utf-8"?> -<!DOCTYPE TS> -<TS version="2.1"> -</TS> diff --git a/plugins-alternative/PluginLoader/keybinding/Languages/hu/translation.ts b/plugins-alternative/PluginLoader/keybinding/Languages/hu/translation.ts deleted file mode 100644 index d6fed88..0000000 --- a/plugins-alternative/PluginLoader/keybinding/Languages/hu/translation.ts +++ /dev/null @@ -1,4 +0,0 @@ -<?xml version="1.0" encoding="utf-8"?> -<!DOCTYPE TS> -<TS version="2.1" language="hu"> -</TS> diff --git a/plugins-alternative/PluginLoader/keybinding/Languages/id/translation.ts b/plugins-alternative/PluginLoader/keybinding/Languages/id/translation.ts deleted file mode 100644 index 6401616..0000000 --- a/plugins-alternative/PluginLoader/keybinding/Languages/id/translation.ts +++ /dev/null @@ -1,4 +0,0 @@ -<?xml version="1.0" encoding="utf-8"?> -<!DOCTYPE TS> -<TS version="2.1"> -</TS> diff --git a/plugins-alternative/PluginLoader/keybinding/Languages/it/translation.ts b/plugins-alternative/PluginLoader/keybinding/Languages/it/translation.ts deleted file mode 100644 index 61c0491..0000000 --- a/plugins-alternative/PluginLoader/keybinding/Languages/it/translation.ts +++ /dev/null @@ -1,4 +0,0 @@ -<?xml version="1.0" encoding="utf-8"?> -<!DOCTYPE TS> -<TS version="2.1" language="it_IT"> -</TS> diff --git a/plugins-alternative/PluginLoader/keybinding/Languages/ja/translation.ts b/plugins-alternative/PluginLoader/keybinding/Languages/ja/translation.ts deleted file mode 100644 index 6401616..0000000 --- a/plugins-alternative/PluginLoader/keybinding/Languages/ja/translation.ts +++ /dev/null @@ -1,4 +0,0 @@ -<?xml version="1.0" encoding="utf-8"?> -<!DOCTYPE TS> -<TS version="2.1"> -</TS> diff --git a/plugins-alternative/PluginLoader/keybinding/Languages/ko/translation.ts b/plugins-alternative/PluginLoader/keybinding/Languages/ko/translation.ts deleted file mode 100644 index 7d70aed..0000000 --- a/plugins-alternative/PluginLoader/keybinding/Languages/ko/translation.ts +++ /dev/null @@ -1,4 +0,0 @@ -<?xml version="1.0" encoding="utf-8"?> -<!DOCTYPE TS> -<TS version="2.1" language="ko_KR"> -</TS> diff --git a/plugins-alternative/PluginLoader/keybinding/Languages/nl/translation.ts b/plugins-alternative/PluginLoader/keybinding/Languages/nl/translation.ts deleted file mode 100644 index 6401616..0000000 --- a/plugins-alternative/PluginLoader/keybinding/Languages/nl/translation.ts +++ /dev/null @@ -1,4 +0,0 @@ -<?xml version="1.0" encoding="utf-8"?> -<!DOCTYPE TS> -<TS version="2.1"> -</TS> diff --git a/plugins-alternative/PluginLoader/keybinding/Languages/no/translation.ts b/plugins-alternative/PluginLoader/keybinding/Languages/no/translation.ts deleted file mode 100644 index 6401616..0000000 --- a/plugins-alternative/PluginLoader/keybinding/Languages/no/translation.ts +++ /dev/null @@ -1,4 +0,0 @@ -<?xml version="1.0" encoding="utf-8"?> -<!DOCTYPE TS> -<TS version="2.1"> -</TS> diff --git a/plugins-alternative/PluginLoader/keybinding/Languages/pl/translation.ts b/plugins-alternative/PluginLoader/keybinding/Languages/pl/translation.ts deleted file mode 100644 index 6401616..0000000 --- a/plugins-alternative/PluginLoader/keybinding/Languages/pl/translation.ts +++ /dev/null @@ -1,4 +0,0 @@ -<?xml version="1.0" encoding="utf-8"?> -<!DOCTYPE TS> -<TS version="2.1"> -</TS> diff --git a/plugins-alternative/PluginLoader/keybinding/Languages/pt/translation.ts b/plugins-alternative/PluginLoader/keybinding/Languages/pt/translation.ts deleted file mode 100644 index 6401616..0000000 --- a/plugins-alternative/PluginLoader/keybinding/Languages/pt/translation.ts +++ /dev/null @@ -1,4 +0,0 @@ -<?xml version="1.0" encoding="utf-8"?> -<!DOCTYPE TS> -<TS version="2.1"> -</TS> diff --git a/plugins-alternative/PluginLoader/keybinding/Languages/ru/translation.ts b/plugins-alternative/PluginLoader/keybinding/Languages/ru/translation.ts deleted file mode 100644 index 2d19eed..0000000 --- a/plugins-alternative/PluginLoader/keybinding/Languages/ru/translation.ts +++ /dev/null @@ -1,4 +0,0 @@ -<?xml version="1.0" encoding="utf-8"?> -<!DOCTYPE TS> -<TS version="2.1" language="ru" sourcelanguage="en"> -</TS> diff --git a/plugins-alternative/PluginLoader/keybinding/Languages/th/translation.ts b/plugins-alternative/PluginLoader/keybinding/Languages/th/translation.ts deleted file mode 100644 index 6401616..0000000 --- a/plugins-alternative/PluginLoader/keybinding/Languages/th/translation.ts +++ /dev/null @@ -1,4 +0,0 @@ -<?xml version="1.0" encoding="utf-8"?> -<!DOCTYPE TS> -<TS version="2.1"> -</TS> diff --git a/plugins-alternative/PluginLoader/keybinding/Languages/tr/translation.ts b/plugins-alternative/PluginLoader/keybinding/Languages/tr/translation.ts deleted file mode 100644 index 6401616..0000000 --- a/plugins-alternative/PluginLoader/keybinding/Languages/tr/translation.ts +++ /dev/null @@ -1,4 +0,0 @@ -<?xml version="1.0" encoding="utf-8"?> -<!DOCTYPE TS> -<TS version="2.1"> -</TS> diff --git a/plugins-alternative/PluginLoader/keybinding/Languages/zh/translation.ts b/plugins-alternative/PluginLoader/keybinding/Languages/zh/translation.ts deleted file mode 100644 index 6401616..0000000 --- a/plugins-alternative/PluginLoader/keybinding/Languages/zh/translation.ts +++ /dev/null @@ -1,4 +0,0 @@ -<?xml version="1.0" encoding="utf-8"?> -<!DOCTYPE TS> -<TS version="2.1"> -</TS> diff --git a/plugins-alternative/PluginLoader/keybinding/OptionsWidget.cpp b/plugins-alternative/PluginLoader/keybinding/OptionsWidget.cpp deleted file mode 100644 index a48e61f..0000000 --- a/plugins-alternative/PluginLoader/keybinding/OptionsWidget.cpp +++ /dev/null @@ -1,55 +0,0 @@ -#include "OptionsWidget.h"
-#include "KeyBind.h"
-#include "ui_OptionsWidget.h"
-
-#include <QKeyEvent>
-
-OptionsWidget::OptionsWidget(QWidget *parent) :
- QWidget(parent),
- modifier(QList<int>() << Qt::Key_Control << Qt::Key_Shift << Qt::Key_Super_R << Qt::Key_Super_L << Qt::Key_Meta << Qt::Key_Alt << Qt::Key_AltGr),
- ui(new Ui::OptionsWidget)
-{
- ui->setupUi(this);
-
- keyBind=new KeyBind(this);
- ui->vboxLayout->addWidget(keyBind);
- connect(keyBind,&KeyBind::newKey,this,&OptionsWidget::newKeyBind);
-}
-
-OptionsWidget::~OptionsWidget()
-{
- delete ui;
-}
-
-void OptionsWidget::retranslate()
-{
- ui->retranslateUi(this);
-}
-
-void OptionsWidget::setKeyBind(const QKeySequence &keySequence)
-{
- keyBind->setText(keySequence.toString());
-}
-
-void OptionsWidget::newKey(QKeyEvent * event)
-{
- int keyInt = event->key();
- if(!modifier.contains(keyInt))
- {
- const Qt::KeyboardModifiers &modifiers = event->modifiers();
- if(modifiers & Qt::ShiftModifier)
- keyInt += Qt::SHIFT;
- if(modifiers & Qt::ControlModifier)
- keyInt += Qt::CTRL;
- if(modifiers & Qt::AltModifier)
- keyInt += Qt::ALT;
- if(modifiers & Qt::MetaModifier)
- keyInt += Qt::META;
-
- const QKeySequence &keySeq = QKeySequence(keyInt);
- keyBind->setText(keySeq.toString());
-
- sendKeyBind(keySeq);
- }
-}
-
diff --git a/plugins-alternative/PluginLoader/keybinding/OptionsWidget.h b/plugins-alternative/PluginLoader/keybinding/OptionsWidget.h deleted file mode 100644 index e0d8e4b..0000000 --- a/plugins-alternative/PluginLoader/keybinding/OptionsWidget.h +++ /dev/null @@ -1,31 +0,0 @@ -#ifndef OptionsWidget_H
-#define OptionsWidget_H
-
-#include <QWidget>
-#include "KeyBind.h"
-
-namespace Ui {
-class OptionsWidget;
-}
-
-class OptionsWidget : public QWidget
-{
- Q_OBJECT
-
-public:
- explicit OptionsWidget(QWidget *parent = 0);
- ~OptionsWidget();
- void setKeyBind(const QKeySequence &keySequence);
- void retranslate();
-private:
- const QList<int> modifier;
- Ui::OptionsWidget *ui;
- KeyBind *keyBind;
-private slots:
- void newKey(QKeyEvent * event);
-signals:
- void sendKeyBind(const QKeySequence &keySequence);
- void newKeyBind(QKeyEvent * event);
-};
-
-#endif // OptionsWidget_H
diff --git a/plugins-alternative/PluginLoader/keybinding/OptionsWidget.ui b/plugins-alternative/PluginLoader/keybinding/OptionsWidget.ui deleted file mode 100644 index 2bc3cbe..0000000 --- a/plugins-alternative/PluginLoader/keybinding/OptionsWidget.ui +++ /dev/null @@ -1,31 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?>
-<ui version="4.0">
- <class>OptionsWidget</class>
- <widget class="QWidget" name="OptionsWidget">
- <property name="geometry">
- <rect>
- <x>0</x>
- <y>0</y>
- <width>195</width>
- <height>58</height>
- </rect>
- </property>
- <layout class="QVBoxLayout">
- <item>
- <spacer name="verticalSpacer">
- <property name="orientation">
- <enum>Qt::Vertical</enum>
- </property>
- <property name="sizeHint" stdset="0">
- <size>
- <width>20</width>
- <height>40</height>
- </size>
- </property>
- </spacer>
- </item>
- </layout>
- </widget>
- <resources/>
- <connections/>
-</ui>
diff --git a/plugins-alternative/PluginLoader/keybinding/PlatformMacro.h b/plugins-alternative/PluginLoader/keybinding/PlatformMacro.h deleted file mode 100644 index f7586b0..0000000 --- a/plugins-alternative/PluginLoader/keybinding/PlatformMacro.h +++ /dev/null @@ -1 +0,0 @@ -#include "../../../PlatformMacro.h" diff --git a/plugins-alternative/PluginLoader/keybinding/StructEnumDefinition.h b/plugins-alternative/PluginLoader/keybinding/StructEnumDefinition.h deleted file mode 100644 index c1758f4..0000000 --- a/plugins-alternative/PluginLoader/keybinding/StructEnumDefinition.h +++ /dev/null @@ -1 +0,0 @@ -#include "../../../StructEnumDefinition.h" diff --git a/plugins-alternative/PluginLoader/keybinding/Variable.h b/plugins-alternative/PluginLoader/keybinding/Variable.h deleted file mode 100644 index 90e1557..0000000 --- a/plugins-alternative/PluginLoader/keybinding/Variable.h +++ /dev/null @@ -1,16 +0,0 @@ -/** \file Variable.h
-\brief Define the environment variable
-\author alpha_one_x86
-\licence GPL3, see the file COPYING */
-
-#ifndef VARIABLE_H
-#define VARIABLE_H
-
-//Un-comment this next line to put ultracopier plugin in debug mode
-#define ULTRACOPIER_PLUGIN_DEBUG
-//#define ULTRACOPIER_PLUGIN_ALL_IN_ONE
-
-#endif // VARIABLE_H
-
-
-
diff --git a/plugins-alternative/PluginLoader/keybinding/documentation.dox b/plugins-alternative/PluginLoader/keybinding/documentation.dox deleted file mode 100644 index b9c9d13..0000000 --- a/plugins-alternative/PluginLoader/keybinding/documentation.dox +++ /dev/null @@ -1,33 +0,0 @@ -/* -*- mode: C++ ; c-file-style: "stroustrup" -*- **/ - -/* - This file contains NO source code, just some documentation for doxygen to - parse. -*/ - -/*! - \mainpage catchcopy-v0002 - - \section mainpage_overview Overview - - Is the plugin to load the catchcopy plugin into the windows file manager. Mostly it use the command: regsvr32 /s catchcopy32.dll/catchcopy64.dll\n - More informations on <a href="http://ultracopier-wiki.first-world.info/">the wiki of ultracopier</a>. - - \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 <a href="http://ultracopier.first-world.info/">Ultracopier</a> project page, via git, snapshot sources, ... - - \section mainpage_algorithm Requirements - - You can see the documentation on <a href="http://catchcopy.first-world.info/">Catchcopy web site</a>. It use catchcopy32.dll/catchcopy64.dll as explorer plugin for the windows's file manager. Need it into the plugins.\n - In function if Ultracopier is compiled by portable version, try load the dll by other way. - - \section license GPL Version 3 - The code source is under GPL3. - -*/ diff --git a/plugins-alternative/PluginLoader/keybinding/informations.xml b/plugins-alternative/PluginLoader/keybinding/informations.xml deleted file mode 100644 index 784d801..0000000 --- a/plugins-alternative/PluginLoader/keybinding/informations.xml +++ /dev/null @@ -1,27 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<package> - <title xml:lang="en"><![CDATA[Plugin loader for catchcopy v0002]]></title><!-- english is required --> - <title xml:lang="fr"><![CDATA[Chargeur de plugin pour catchcopy v0002]]></title> - <!-- What kind of plugin this is --> - <category>PluginLoader</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>windows-x86</architecture> - <!-- Detailed description --> - <description xml:lang="en"><![CDATA[Plugin loader for catchcopy v0002. Allow to receive copy list from plugin/explorer compatible with catchcopy.]]></description> - <description xml:lang="fr"><![CDATA[Chargeur de plugin pour catchcopy v0002. Permet de recevoir un liste de copie venant d'un plugin/explorateur avec catchcopy.]]></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>1.4.0.6</version> - <!-- This internal name should never change, because it is used to detect when a particular plugin is updated. It must comprise only lower case ASCII characters (a-z), numerical digits (0-9), "-", "." or "_", and it must be be unique within the category. And have size lower than 64 char. --> - <name>keybinding</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-1.0 - ]]></dependencies> -</package>
\ No newline at end of file diff --git a/plugins-alternative/PluginLoader/keybinding/plugin.json b/plugins-alternative/PluginLoader/keybinding/plugin.json deleted file mode 100644 index 9e26dfe..0000000 --- a/plugins-alternative/PluginLoader/keybinding/plugin.json +++ /dev/null @@ -1 +0,0 @@ -{}
\ No newline at end of file diff --git a/plugins-alternative/PluginLoader/keybinding/pluginLoader.cpp b/plugins-alternative/PluginLoader/keybinding/pluginLoader.cpp deleted file mode 100644 index 387b09e..0000000 --- a/plugins-alternative/PluginLoader/keybinding/pluginLoader.cpp +++ /dev/null @@ -1,61 +0,0 @@ -/** \file pluginLoader.cpp -\brief Define the session plugin loader test -\author alpha_one_x86 */ - -#include "pluginLoader.h" -#include "PlatformMacro.h" - -#include <QFile> -#include <QDir> - -#ifndef Q_OS_UNIX -#error "Only for unix" -#endif - -KeyBindPlugin::KeyBindPlugin() -{ - connect(&optionsWidget,&OptionsWidget::sendKeyBind,this,&KeyBindPlugin::setKeyBind); -} - -KeyBindPlugin::~KeyBindPlugin() -{ -} - -void KeyBindPlugin::setResources(OptionInterface * options,const QString &writePath,const QString &pluginPath,const bool &portableVersion) -{ - Q_UNUSED(options); - Q_UNUSED(writePath); - Q_UNUSED(pluginPath); - Q_UNUSED(portableVersion); - this->optionsEngine=options; - if(optionsEngine!=NULL) - { - QList<QPair<QString, QVariant> > KeysList; - KeysList.append(qMakePair(QStringLiteral("keySequence"),QString())); - optionsEngine->addOptionGroup(KeysList); - optionsWidget.setKeyBind(QKeySequence::fromString(optionsEngine->getOptionValue("keySequence").toString())); - } -} - -/// \brief to get the options widget, NULL if not have -QWidget * KeyBindPlugin::options() -{ - return &optionsWidget; -} - -void KeyBindPlugin::newLanguageLoaded() -{ - optionsWidget.retranslate(); -} - -/// \brief try enable/disable the catching -void KeyBindPlugin::setEnabled(const bool &needBeRegistred) -{ - Q_UNUSED(needBeRegistred); -} - -void KeyBindPlugin::setKeyBind(const QKeySequence &keySequence) -{ - optionsEngine->setOptionValue("keySequence",keySequence); -} - diff --git a/plugins-alternative/PluginLoader/keybinding/pluginLoader.h b/plugins-alternative/PluginLoader/keybinding/pluginLoader.h deleted file mode 100644 index 1361c0d..0000000 --- a/plugins-alternative/PluginLoader/keybinding/pluginLoader.h +++ /dev/null @@ -1,47 +0,0 @@ -/** \file pluginLoader.h -\brief Define the plugin loader -\author alpha_one_x86 -\licence GPL3, see the file COPYING */ - -#ifndef PLUGIN_LOADER_TEST_H -#define PLUGIN_LOADER_TEST_H - -#include <QObject> -#include <QMessageBox> - -#include <QString> -#include <QStringList> -#include <QProcess> -#include <QSet> -#include <QKeySequence> - -#include "../../../interface/PluginInterface_PluginLoader.h" -#include "Environment.h" -#include "OptionsWidget.h" - -/// \brief \brief Define the plugin loader -class KeyBindPlugin : public PluginInterface_PluginLoader -{ - Q_OBJECT - Q_PLUGIN_METADATA(IID "first-world.info.ultracopier.PluginInterface.PluginLoader/1.0.0.0" FILE "plugin.json") - Q_INTERFACES(PluginInterface_PluginLoader) -public: - KeyBindPlugin(); - ~KeyBindPlugin(); - /// \brief try enable/disable the catching - void setEnabled(const bool &needBeRegistred); - /// \brief to set resources, writePath can be empty if read only mode - void setResources(OptionInterface * options,const QString &writePath,const QString &pluginPath,const bool &portableVersion); - /// \brief to get the options widget, NULL if not have - QWidget * options(); -public slots: - /// \brief to reload the translation, because the new language have been loaded - void newLanguageLoaded(); -private: - OptionInterface * optionsEngine; - OptionsWidget optionsWidget; -private slots: - void setKeyBind(const QKeySequence &keySequence); -}; - -#endif // PLUGIN_LOADER_TEST_H diff --git a/plugins-alternative/PluginLoader/keybinding/pluginLoader.pro b/plugins-alternative/PluginLoader/keybinding/pluginLoader.pro deleted file mode 100644 index ad5404b..0000000 --- a/plugins-alternative/PluginLoader/keybinding/pluginLoader.pro +++ /dev/null @@ -1,50 +0,0 @@ -CONFIG += c++11 -QMAKE_CXXFLAGS+="-std=c++0x -Wall -Wextra" -mac:QMAKE_CXXFLAGS+="-stdlib=libc++" - -QT += widgets -TEMPLATE = lib -CONFIG += plugin -HEADERS = \ - StructEnumDefinition.h \ - pluginLoader.h \ - DebugEngineMacro.h \ - Environment.h \ - Variable.h \ - PlatformMacro.h \ - ../../../interface/PluginInterface_PluginLoader.h \ - OptionsWidget.h \ - KeyBind.h -SOURCES = \ - pluginLoader.cpp \ - OptionsWidget.cpp \ - KeyBind.cpp -TARGET = $$qtLibraryTarget(pluginLoader) -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/pt/translation.ts \ - Languages/ru/translation.ts \ - Languages/th/translation.ts \ - Languages/tr/translation.ts \ - Languages/zh/translation.ts - -FORMS += \ - OptionsWidget.ui - -CONFIG(static, static|shared) { -DEFINES += ULTRACOPIER_PLUGIN_ALL_IN_ONE -} - |