~librecad-dev/librecad/librecad

« back to all changes in this revision

Viewing changes to plugins/list/list.h

  • Committer: Scott Howard
  • Date: 2014-02-21 19:07:55 UTC
  • Revision ID: showard@debian.org-20140221190755-csjax9wb146hgdq4
first commit

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/*****************************************************************************/
 
2
/*  list.h - List selected entities                                          */
 
3
/*                                                                           */
 
4
/*  Copyright (C) 2011 Rallaz, rallazz@gmail.com                             */
 
5
/*                                                                           */
 
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
/*****************************************************************************/
 
12
 
 
13
#ifndef LIST_H
 
14
#define LIST_H
 
15
 
 
16
#include <QDialog>
 
17
#include "qc_plugininterface.h"
 
18
#include <QTextEdit>
 
19
 
 
20
//class QTextEdit;
 
21
class Plug_Entity;
 
22
 
 
23
class LC_List : public QObject, QC_PluginInterface
 
24
{
 
25
    Q_OBJECT
 
26
     Q_INTERFACES(QC_PluginInterface)
 
27
#if QT_VERSION >= 0x050000
 
28
     Q_PLUGIN_METADATA(IID "org.librecad.list" FILE  "list.json")
 
29
#endif
 
30
 
 
31
 public:
 
32
    virtual PluginCapabilities getCapabilities() const;
 
33
    virtual QString name() const;
 
34
    virtual void execComm(Document_Interface *doc,
 
35
                                       QWidget *parent, QString cmd);
 
36
 
 
37
private:
 
38
    QString getStrData(Plug_Entity *ent);
 
39
    Document_Interface *d;
 
40
};
 
41
 
 
42
class lc_Listdlg : public QDialog
 
43
{
 
44
    Q_OBJECT
 
45
 
 
46
public:
 
47
    explicit lc_Listdlg(QWidget *parent = 0);
 
48
    ~lc_Listdlg();
 
49
    void setText(QString text);
 
50
 
 
51
public slots:
 
52
//    void processAction(QStringList *commandList);
 
53
//    void processAction(Document_Interface *doc);
 
54
//    void checkAccept();
 
55
 
 
56
protected:
 
57
//    void closeEvent(QCloseEvent *event);
 
58
 
 
59
private:
 
60
//    void readSettings();
 
61
//    void writeSettings();
 
62
//    bool failGUI(QString *msg);
 
63
 
 
64
private:
 
65
//    QString errmsg;
 
66
//    QLineEdit *startxedit;
 
67
//    QLineEdit *startyedit;
 
68
//    QLineEdit *endxedit;
 
69
    QTextEdit edit;
 
70
};
 
71
 
 
72
#endif // LIST_H