~ubuntu-branches/ubuntu/hardy/qgis/hardy

« back to all changes in this revision

Viewing changes to plugins/grass/qgsgrasstools.h

  • Committer: Bazaar Package Importer
  • Author(s): William Grant
  • Date: 2007-05-06 13:42:32 UTC
  • mfrom: (1.1.2 upstream)
  • Revision ID: james.westby@ubuntu.com-20070506134232-pyli6t388w5asd8x
Tags: 0.8.0-3ubuntu1
* Merge from Debian unstable. Remaining Ubuntu changes:
  - debian/rules, debian/qgis.install, debian/qgis.dirs debian/qgis.desktop:
    Add and install .desktop.
* debian/qgis.desktop: Remove Applications category; it's not real.
* Modify Maintainer value to match Debian-Maintainer-Field Spec

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
/***************************************************************************
2
 
                              qgsgrasstools.h 
3
 
                             -------------------
4
 
    begin                : March, 2005
5
 
    copyright            : (C) 2005 by Radim Blazek
6
 
    email                : blazek@itc.it
7
 
 ***************************************************************************/
8
 
/***************************************************************************
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
 
 ***************************************************************************/
16
 
#ifndef QGSGRASSTOOLS_H
17
 
#define QGSGRASSTOOLS_H
18
 
 
19
 
class QCloseEvent;
20
 
class QString;
21
 
class QListView;
22
 
class QDomNode;
23
 
class QDomElement;
24
 
 
25
 
// Must be here, so that it is included to moc file
26
 
#include "../../src/qgisapp.h"
27
 
#include "../../src/qgisiface.h"
28
 
 
29
 
class QgsGrassProvider;
30
 
#include "qgsgrasstoolsbase.h"
31
 
 
32
 
/*! \class QgsGrassTools
33
 
 *  \brief Interface to GRASS modules.
34
 
 *
35
 
 */
36
 
class QgsGrassTools: public QgsGrassToolsBase
37
 
{
38
 
    Q_OBJECT;
39
 
 
40
 
public:
41
 
    //! Constructor
42
 
    QgsGrassTools ( QgisApp *qgisApp, QgisIface *iface, 
43
 
                   QWidget * parent = 0, const char * name = 0, WFlags f = 0 );
44
 
 
45
 
    //! Destructor
46
 
    ~QgsGrassTools();
47
 
 
48
 
    //! Recursively add sections and modules to the list view
49
 
    //  If parent is 0, the modules are added to mModulesListView root
50
 
    void addModules ( QListViewItem *parent, QDomElement &element );
51
 
 
52
 
    //! Returns application directory
53
 
    QString appDir();
54
 
 
55
 
public slots:
56
 
    //! Load configuration from file
57
 
    bool loadConfig(QString filePath);
58
 
    
59
 
    //! Close
60
 
    void close ( void);
61
 
 
62
 
    //! Close event
63
 
    void closeEvent(QCloseEvent *e);
64
 
 
65
 
    //! Restore window position 
66
 
    void restorePosition();
67
 
 
68
 
    //! Save window position 
69
 
    void saveWindowLocation();
70
 
 
71
 
    //! Module in list clicked
72
 
    void moduleClicked ( QListViewItem * item );
73
 
 
74
 
private:
75
 
    //! QGIS application
76
 
    QgisApp *mQgisApp;
77
 
 
78
 
    //! Pointer to the QGIS interface object
79
 
    QgisIface *mIface;
80
 
 
81
 
    //! Pointer to canvas
82
 
    QgsMapCanvas *mCanvas;
83
 
 
84
 
    //! QGIS directory
85
 
    QString mAppDir;
86
 
};
87
 
 
88
 
#endif // QGSGRASSTOOLS_H