pluginsDialog.h 881 Bytes
Newer Older
Pierre Kraemer's avatar
Pierre Kraemer committed
1
2
#ifndef _PLUGINSDIALOG_H_
#define _PLUGINSDIALOG_H_
3

Pierre Kraemer's avatar
Pierre Kraemer committed
4
#include "ui_pluginsDialog.h"
5
6
7

#include "types.h"

Pierre Kraemer's avatar
Pierre Kraemer committed
8
9
10
11
12
13
14
15
16
17
18
19
20
struct PluginInfo
{
	PluginInfo(const QString& path, const QString& name) :
		pluginPath(path),
		pluginName(name)
	{}

	PluginInfo() {}

	QString pluginPath;
	QString pluginName;
};

Pierre Kraemer's avatar
Pierre Kraemer committed
21
class PluginsDialog : public QDialog, public Ui::PluginsDialog
Pierre Kraemer's avatar
Pierre Kraemer committed
22
{
23
	Q_OBJECT
Pierre Kraemer's avatar
Pierre Kraemer committed
24

25
public:
Pierre Kraemer's avatar
Pierre Kraemer committed
26
27
	PluginsDialog(Window* window);
	~PluginsDialog();
28
29

protected:
30
	Window* m_window;
Pierre Kraemer's avatar
Pierre Kraemer committed
31
	QHash<QTreeWidgetItem*, PluginInfo> m_listedPlugins;
32

Pierre Kraemer's avatar
Pierre Kraemer committed
33
//	bool restoreState();
34
35
36
37

private:
	bool init;

Pierre Kraemer's avatar
Pierre Kraemer committed
38
39
40
41
42
43
	enum EntryType
	{
		DIR = 1,
		FILE,
		FILE_DIR
	};
44
45
46
47

protected slots:
	void cb_addPlugins();
	void cb_removePlugins();
Pierre Kraemer's avatar
Pierre Kraemer committed
48
	void cb_addPluginsDirectory();
49

Pierre Kraemer's avatar
Pierre Kraemer committed
50
	void cb_togglePlugin(QTreeWidgetItem* item, int column);
51

Pierre Kraemer's avatar
Pierre Kraemer committed
52
//	void customContextMenu(const QPoint & pos);
53

Pierre Kraemer's avatar
Pierre Kraemer committed
54
//	void cb_acceptDialog();
Pierre Kraemer's avatar
Pierre Kraemer committed
55

56
//	void showPluginInfo();
57
58
59
};

#endif