1
/***************************************************************************
5
copyright : (C) 2005 by Radim Blazek
7
***************************************************************************/
8
/***************************************************************************
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. *
15
***************************************************************************/
16
#ifndef QGSGRASSTOOLS_H
17
#define QGSGRASSTOOLS_H
25
// Must be here, so that it is included to moc file
26
#include "../../src/qgisapp.h"
27
#include "../../src/qgisiface.h"
29
class QgsGrassProvider;
30
#include "qgsgrasstoolsbase.h"
32
/*! \class QgsGrassTools
33
* \brief Interface to GRASS modules.
36
class QgsGrassTools: public QgsGrassToolsBase
42
QgsGrassTools ( QgisApp *qgisApp, QgisIface *iface,
43
QWidget * parent = 0, const char * name = 0, WFlags f = 0 );
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 );
52
//! Returns application directory
56
//! Load configuration from file
57
bool loadConfig(QString filePath);
63
void closeEvent(QCloseEvent *e);
65
//! Restore window position
66
void restorePosition();
68
//! Save window position
69
void saveWindowLocation();
71
//! Module in list clicked
72
void moduleClicked ( QListViewItem * item );
78
//! Pointer to the QGIS interface object
82
QgsMapCanvas *mCanvas;
88
#endif // QGSGRASSTOOLS_H