1
/*****************************************************************************/
2
/* sample.h - plugin example for LibreCAD */
4
/* Copyright (C) 2011 Rallaz, rallazz@gmail.com */
6
/* This library is free software, licensed under the terms of the GNU */
7
/* General Public License as published by the Free Software Foundation, */
8
/* either version 2 of the License, or (at your option) any later version. */
9
/* You should have received a copy of the GNU General Public License */
10
/* along with this program. If not, see <http://www.gnu.org/licenses/>. */
11
/*****************************************************************************/
16
#include "qc_plugininterface.h"
20
class LC_Sample : public QObject, QC_PluginInterface
23
Q_INTERFACES(QC_PluginInterface)
24
#if QT_VERSION >= 0x050000
25
Q_PLUGIN_METADATA(IID "org.librecad.sample" FILE "sample.json")
29
virtual PluginCapabilities getCapabilities() const;
30
virtual QString name() const;
31
virtual void execComm(Document_Interface *doc,
32
QWidget *parent, QString cmd);
35
class lc_Sampledlg : public QDialog
40
explicit lc_Sampledlg(QWidget *parent = 0);
44
// void processAction(QStringList *commandList);
45
void processAction(Document_Interface *doc);
49
void closeEvent(QCloseEvent *event);
54
bool failGUI(QString *msg);
58
QLineEdit *startxedit;
59
QLineEdit *startyedit;