controlDock_pluginTab.h 1.26 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"

Sylvain Thery's avatar
Sylvain Thery committed
6 7 8 9 10 11 12 13 14
#ifdef WIN32
#if defined SCHNAPPSLIB_DLL_EXPORT
#define SCHNAPPS_API __declspec(dllexport)
#else
#define SCHNAPPS_API __declspec(dllimport)
#endif
#endif


Pierre Kraemer's avatar
Pierre Kraemer committed
15 16 17 18 19 20 21 22 23 24 25
namespace CGoGN
{

namespace SCHNApps
{

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

Sylvain Thery's avatar
Sylvain Thery committed
26
class SCHNAPPS_API ControlDock_PluginTab : public QWidget, public Ui::ControlDock_PluginTabWidget
Pierre Kraemer's avatar
Pierre Kraemer committed
27 28 29 30 31 32 33 34 35 36 37 38
{
	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
39
//	void pluginCheckStateChanged(QListWidgetItem* item);
Pierre Kraemer's avatar
Pierre Kraemer committed
40 41 42 43 44

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

	// slots called from selected View signals
Sylvain Thery's avatar
Sylvain Thery committed
48 49
//	void selectedViewPluginLinked(PluginInteraction* plugin);
//	void selectedViewPluginUnlinked(PluginInteraction* plugin);
Pierre Kraemer's avatar
Pierre Kraemer committed
50 51 52 53 54 55 56 57 58 59 60

private:
	SCHNApps* m_schnapps;
	bool b_updatingUI;
};

} // namespace SCHNApps

} // namespace CGoGN

#endif