[go: up one dir, main page]

File: PluginInformation.h

package info (click to toggle)
ultracopier 0.3.1.0-1
  • links: PTS, VCS
  • area: main
  • in suites: jessie, jessie-kfreebsd, stretch
  • size: 6,640 kB
  • ctags: 3,679
  • sloc: cpp: 27,286; ansic: 1,860; xml: 536; makefile: 38
file content (44 lines) | stat: -rw-r--r-- 1,120 bytes parent folder | download
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
43
44
/** \file PluginInformation.h
\brief Define the plugin information
\author alpha_one_x86
\version 0.3
\date 2010
\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(PluginType category);
		/** \brief to get the new plugin informations */
		void setPlugin(PluginsAvailable plugin);
		/** \brief to set the language */
		void setLanguage(QString language);
	public slots:
		void retranslateInformation();
	private:
		bool pluginIsLoaded;
		PluginsAvailable plugin;
		Ui::PluginInformation *ui;
		QString language;
		QString getInformationText(PluginsAvailable plugin,QString informationName);
		QString getTranslatedText(PluginsAvailable plugin,QString informationName,QString mainShortName);
};

#endif // PLUGININFORMATION_H