forked from alphaonex86/Ultracopier
-
Notifications
You must be signed in to change notification settings - Fork 0
/
PluginInformation.h
42 lines (36 loc) · 1.23 KB
/
PluginInformation.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
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 */
QString 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 QString &language);
public slots:
void retranslateInformation();
private:
bool pluginIsLoaded;
PluginsAvailable plugin;
Ui::PluginInformation *ui;
QString language;
QString getInformationText(const PluginsAvailable &plugin,const QString &informationName);
QString getTranslatedText(const PluginsAvailable &plugin,const QString &informationName,const QString &mainShortName);
};
#endif // PLUGININFORMATION_H