surface_import.h 661 Bytes
Newer Older
1 2
#ifndef _SURFACE_IMPORT_PLUGIN_H_
#define _SURFACE_IMPORT_PLUGIN_H_
Pierre Kraemer's avatar
Pierre Kraemer committed
3 4 5 6 7 8 9 10 11

#include "plugin_processing.h"

namespace CGoGN
{

namespace SCHNApps
{

12
class Surface_Import_Plugin : public PluginProcessing
Pierre Kraemer's avatar
Pierre Kraemer committed
13 14 15
{
	Q_OBJECT
	Q_INTERFACES(CGoGN::SCHNApps::Plugin)
Sylvain Thery's avatar
Sylvain Thery committed
16 17 18
#if CGOGN_QT_DESIRED_VERSION == 5
	Q_PLUGIN_METADATA(IID "CGoGN.SCHNapps.Plugin")
#endif
Pierre Kraemer's avatar
Pierre Kraemer committed
19 20

public:
21
	Surface_Import_Plugin()
22
	{}
Pierre Kraemer's avatar
Pierre Kraemer committed
23

24
	~Surface_Import_Plugin()
Pierre Kraemer's avatar
Pierre Kraemer committed
25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44
	{}

private:
	virtual bool enable();
	virtual void disable() {}

public slots:
	MapHandlerGen* importFromFile(const QString& fileName);
	void importFromFileDialog();

private:
	QAction* importAction;
};

} // namespace SCHNApps

} // namespace CGoGN

#endif