pluginDialog.h 630 Bytes
Newer Older
1 2 3 4 5 6 7
#ifndef _PLUGINDIALOG_H_
#define _PLUGINDIALOG_H_

#include "ui_pluginDialog.h"

#include "types.h"

8
class PluginDialog : public QDialog, public Ui::PluginDialog
Pierre Kraemer's avatar
Pierre Kraemer committed
9
{
10
	Q_OBJECT
Pierre Kraemer's avatar
Pierre Kraemer committed
11

12
public:
13
	PluginDialog(Window* window);
14 15 16
	~PluginDialog();

protected:
17
	Window* m_window;
18

Pierre Kraemer's avatar
Pierre Kraemer committed
19
	bool restoreState();
20 21 22 23

private:
	bool init;

Pierre Kraemer's avatar
Pierre Kraemer committed
24 25 26 27 28 29
	enum EntryType
	{
		DIR = 1,
		FILE,
		FILE_DIR
	};
30 31 32 33

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

Pierre Kraemer's avatar
Pierre Kraemer committed
36
	void cb_togglePlugin(QTreeWidgetItem* item, int column);
37 38 39

	void customContextMenu(const QPoint & pos);

Pierre Kraemer's avatar
Pierre Kraemer committed
40 41
	void cb_acceptDialog();

42
//	void showPluginInfo();
43 44 45
};

#endif