~ubuntu-branches/ubuntu/wily/qgis/wily

« back to all changes in this revision

Viewing changes to src/plugins/dxf2shp_converter/dxf2shpconverter.h

  • Committer: Bazaar Package Importer
  • Author(s): Johan Van de Wauw
  • Date: 2010-07-11 20:23:24 UTC
  • mfrom: (3.1.4 squeeze)
  • Revision ID: james.westby@ubuntu.com-20100711202324-5ktghxa7hracohmr
Tags: 1.4.0+12730-3ubuntu1
* Merge from Debian unstable (LP: #540941).
* Fix compilation issues with QT 4.7
* Add build-depends on libqt4-webkit-dev 

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/***************************************************************************
 
2
 * Copyright (C) 2008 Paolo L. Scala, Barbara Rita Barricelli, Marco Padula *
 
3
 * CNR, Milan Unit (Information Technology),                               *
 
4
 * Construction Technologies Institute.\n";                                *
 
5
 *                                                                         *
 
6
 * email : Paolo L. Scala <scala@itc.cnr.it>                               *
 
7
 *                                                                         *
 
8
 *   This is a plugin generated from the QGIS plugin template              *
 
9
 *                                                                         *
 
10
 *   This program is free software; you can redistribute it and/or modify  *
 
11
 *   it under the terms of the GNU General Public License as published by  *
 
12
 *   the Free Software Foundation; either version 2 of the License, or     *
 
13
 *   (at your option) any later version.                                   *
 
14
 *                                                                         *
 
15
 *  $Id$ *
 
16
 * **************************************************************************/
 
17
#ifndef dxf2shpConverter_H
 
18
#define dxf2shpConverter_H
 
19
 
 
20
//QT4 includes
 
21
#include <QObject>
 
22
 
 
23
//QGIS includes
 
24
#include "../qgisplugin.h"
 
25
 
 
26
//forward declarations
 
27
class QAction;
 
28
 
 
29
class QgisInterface;
 
30
 
 
31
/**
 
32
 * \class dxf2shpConverter:
 
33
 * \brief DXF importer plugin for QGIS
 
34
 */
 
35
class dxf2shpConverter: public QObject, public QgisPlugin
 
36
{
 
37
    Q_OBJECT
 
38
  public:
 
39
 
 
40
    //////////////////////////////////////////////////////////////////////
 
41
    //
 
42
    //                MANDATORY PLUGIN METHODS FOLLOW
 
43
    //
 
44
    //////////////////////////////////////////////////////////////////////
 
45
 
 
46
    /**
 
47
     * Constructor for a plugin. The QgisInterface pointer is passed by
 
48
     * QGIS when it attempts to instantiate the plugin.
 
49
     * @param theInterface Pointer to the QgisInterface object.
 
50
     */
 
51
    dxf2shpConverter( QgisInterface *theInterface );
 
52
    //! Destructor
 
53
    virtual ~dxf2shpConverter();
 
54
 
 
55
  public slots:
 
56
    //! init the gui
 
57
    virtual void initGui();
 
58
    //! Show the dialog box
 
59
    void run();
 
60
    //! unload the plugin
 
61
    void unload();
 
62
    //! show the help document
 
63
    void help();
 
64
    //! update the plugins theme when the app tells us its theme is changed
 
65
    void setCurrentTheme( QString theThemeName );
 
66
 
 
67
    void addMyLayer( QString, QString );
 
68
 
 
69
  private:
 
70
 
 
71
    ////////////////////////////////////////////////////////////////////
 
72
    //
 
73
    // MANDATORY PLUGIN PROPERTY DECLARATIONS  .....
 
74
    //
 
75
    ////////////////////////////////////////////////////////////////////
 
76
 
 
77
    int mPluginType;
 
78
    //! Pointer to the QGIS interface object
 
79
    QgisInterface *mQGisIface;
 
80
    //!pointer to the qaction for this plugin
 
81
    QAction *mQActionPointer;
 
82
    ////////////////////////////////////////////////////////////////////
 
83
    //
 
84
    // ADD YOUR OWN PROPERTY DECLARATIONS AFTER THIS POINT.....
 
85
    //
 
86
    ////////////////////////////////////////////////////////////////////
 
87
    QString mQString;
 
88
};
 
89
 
 
90
#endif //dxf2shpConverter_H