controlDock_pluginTab.h 1.13 KB
Newer Older
Pierre Kraemer's avatar
Pierre Kraemer committed
1 2 3 4 5
#ifndef _CONTROL_DOCK_PLUGIN_TAB_H_
#define _CONTROL_DOCK_PLUGIN_TAB_H_

#include "ui_controlDock_PluginTabWidget.h"

Thery Sylvain's avatar
Thery Sylvain committed
6
#include "dll.h"
Sylvain Thery's avatar
Sylvain Thery committed
7

Pierre Kraemer's avatar
Pierre Kraemer committed
8 9 10 11 12 13 14 15 16 17 18
namespace CGoGN
{

namespace SCHNApps
{

class SCHNApps;
class Plugin;
class PluginInteraction;
class View;

Sylvain Thery's avatar
Sylvain Thery committed
19
class SCHNAPPS_API ControlDock_PluginTab : public QWidget, public Ui::ControlDock_PluginTabWidget
Pierre Kraemer's avatar
Pierre Kraemer committed
20 21 22 23 24 25 26 27 28 29 30 31
{
	Q_OBJECT

public:
	ControlDock_PluginTab(SCHNApps* s);
	QString title() { return QString("Plugins"); }

private slots:
	// slots called from UI actions
	void addPluginDirectoryClicked();
	void enableSelectedPluginsClicked();
	void disableSelectedPluginsClicked();
Sylvain Thery's avatar
Sylvain Thery committed
32
//	void pluginCheckStateChanged(QListWidgetItem* item);
Pierre Kraemer's avatar
Pierre Kraemer committed
33 34 35 36 37

	// slots called from SCHNApps signals
	void pluginAvailableAdded(QString name);
	void pluginEnabled(Plugin* plugin);
	void pluginDisabled(Plugin* plugin);
Sylvain Thery's avatar
Sylvain Thery committed
38
//	void selectedViewChanged(View* prev, View* cur);
Pierre Kraemer's avatar
Pierre Kraemer committed
39 40

	// slots called from selected View signals
Sylvain Thery's avatar
Sylvain Thery committed
41 42
//	void selectedViewPluginLinked(PluginInteraction* plugin);
//	void selectedViewPluginUnlinked(PluginInteraction* plugin);
Pierre Kraemer's avatar
Pierre Kraemer committed
43 44 45 46 47 48 49 50 51 52 53

private:
	SCHNApps* m_schnapps;
	bool b_updatingUI;
};

} // namespace SCHNApps

} // namespace CGoGN

#endif