QCAD
Open Source 2D CAD
Loading...
Searching...
No Matches
RDxfPlugin.h
Go to the documentation of this file.
1#ifndef RDXFPLUGIN_H_
2#define RDXFPLUGIN_H_
3
4#include <QObject>
5
6#include "RPluginInterface.h"
7
8class RSpline;
9
13class RDxfPlugin : public QObject, public RPluginInterface
14{
15 Q_OBJECT
16 Q_INTERFACES(RPluginInterface)
17#if QT_VERSION >= 0x050000
18 Q_PLUGIN_METADATA(IID "org.qcad.dxf")
19#endif
20
21public:
22 virtual bool init();
23 virtual void uninit(bool) {}
24 virtual void postInit(InitStatus) {}
25#if QT_VERSION < 0x060000
26 virtual void initScriptExtensions(QScriptEngine&) {}
27#endif
28 virtual void initTranslations() {}
29 virtual RPluginInfo getPluginInfo();
30 virtual bool checkLicense() { return true; }
31};
32
33#endif
Definition RDxfPlugin.h:14
virtual bool checkLicense()
Definition RDxfPlugin.h:30
virtual bool init()
Called immediately after the plugin has been loaded, directly after starting the application.
Definition RDxfPlugin.cpp:6
virtual void initScriptExtensions(QScriptEngine &)
Called whenever a new script engine is instantiated.
Definition RDxfPlugin.h:26
virtual void initTranslations()
Called when the user chosen language changed.
Definition RDxfPlugin.h:28
virtual void postInit(InitStatus)
Called after the application has been fully loaded, directly before entering the main event loop.
Definition RDxfPlugin.h:24
virtual RPluginInfo getPluginInfo()
Definition RDxfPlugin.cpp:16
virtual void uninit(bool)
Called before a plugin is removed / unloaded.
Definition RDxfPlugin.h:23
Information about a plugin.
Definition RPluginInfo.h:42
Interface for all C++ QCAD plugins.
Definition RPluginInterface.h:43
InitStatus
Definition RPluginInterface.h:45
Low-level mathematical representation of a spline.
Definition RSpline.h:59