summaryrefslogtreecommitdiff
path: root/PluginInformation.h
diff options
context:
space:
mode:
Diffstat (limited to 'PluginInformation.h')
-rw-r--r--PluginInformation.h42
1 files changed, 42 insertions, 0 deletions
diff --git a/PluginInformation.h b/PluginInformation.h
new file mode 100644
index 0000000..d3c1d5a
--- /dev/null
+++ b/PluginInformation.h
@@ -0,0 +1,42 @@
+/** \file PluginInformation.h
+\brief Define the plugin information
+\author alpha_one_x86
+\licence GPL3, see the file COPYING */
+
+#ifndef PLUGININFORMATION_H
+#define PLUGININFORMATION_H
+
+#include <QDialog>
+#include <QDateTime>
+
+#include "Environment.h"
+
+namespace Ui {
+ class PluginInformation;
+}
+
+/** \brief to show the plugin information */
+class PluginInformation : public QDialog
+{
+ Q_OBJECT
+ public:
+ explicit PluginInformation();
+ ~PluginInformation();
+ /** \brief get translated categorie */
+ std::string categoryToTranslation(const PluginType &category) const;
+ /** \brief to get the new plugin informations */
+ void setPlugin(const PluginsAvailable &plugin);
+ /** \brief to set the language */
+ void setLanguage(const std::string &language);
+ public slots:
+ void retranslateInformation();
+ private:
+ bool pluginIsLoaded;
+ PluginsAvailable plugin;
+ Ui::PluginInformation *ui;
+ std::string language;
+ std::string getInformationText(const PluginsAvailable &plugin,const std::string &informationName);
+ std::string getTranslatedText(const PluginsAvailable &plugin,const std::string &informationName,const std::string &mainShortName);
+};
+
+#endif // PLUGININFORMATION_H