mirror of
https://github.com/qgis/QGIS.git
synced 2025-02-26 00:02:08 -05:00
git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@4234 c8812cc2-4d05-0410-92ff-de0c093fc19c
93 lines
2.6 KiB
C++
93 lines
2.6 KiB
C++
//Added by qt3to4:
|
|
#include <QCloseEvent>
|
|
/***************************************************************************
|
|
qgsgrasstools.h
|
|
-------------------
|
|
begin : March, 2005
|
|
copyright : (C) 2005 by Radim Blazek
|
|
email : blazek@itc.it
|
|
***************************************************************************/
|
|
/***************************************************************************
|
|
* *
|
|
* This program is free software; you can redistribute it and/or modify *
|
|
* it under the terms of the GNU General Public License as published by *
|
|
* the Free Software Foundation; either version 2 of the License, or *
|
|
* (at your option) any later version. *
|
|
* *
|
|
***************************************************************************/
|
|
#ifndef QGSGRASSTOOLS_H
|
|
#define QGSGRASSTOOLS_H
|
|
|
|
class QCloseEvent;
|
|
class QString;
|
|
class Q3ListView;
|
|
class QDomNode;
|
|
class QDomElement;
|
|
|
|
// Must be here, so that it is included to moc file
|
|
#include "../../src/qgisapp.h"
|
|
#include "../../src/qgisiface.h"
|
|
|
|
class QgsGrassProvider;
|
|
#include "qgsgrasstoolsbase.h"
|
|
|
|
/*! \class QgsGrassTools
|
|
* \brief Interface to GRASS modules.
|
|
*
|
|
*/
|
|
class QgsGrassTools: public QgsGrassToolsBase
|
|
{
|
|
Q_OBJECT;
|
|
|
|
public:
|
|
//! Constructor
|
|
QgsGrassTools ( QgisApp *qgisApp, QgisIface *iface,
|
|
QWidget * parent = 0, const char * name = 0, Qt::WFlags f = 0 );
|
|
|
|
//! Destructor
|
|
~QgsGrassTools();
|
|
|
|
//! Recursively add sections and modules to the list view
|
|
// If parent is 0, the modules are added to mModulesListView root
|
|
void addModules ( Q3ListViewItem *parent, QDomElement &element );
|
|
|
|
//! Returns application directory
|
|
QString appDir();
|
|
|
|
public slots:
|
|
//! Load configuration from file
|
|
bool loadConfig(QString filePath);
|
|
|
|
//! Close
|
|
void close ( void);
|
|
|
|
//! Close event
|
|
void closeEvent(QCloseEvent *e);
|
|
|
|
//! Restore window position
|
|
void restorePosition();
|
|
|
|
//! Save window position
|
|
void saveWindowLocation();
|
|
|
|
//! Module in list clicked
|
|
void moduleClicked ( Q3ListViewItem * item );
|
|
|
|
//! Current mapset changed
|
|
void mapsetChanged();
|
|
private:
|
|
//! QGIS application
|
|
QgisApp *mQgisApp;
|
|
|
|
//! Pointer to the QGIS interface object
|
|
QgisIface *mIface;
|
|
|
|
//! Pointer to canvas
|
|
QgsMapCanvas *mCanvas;
|
|
|
|
//! QGIS directory
|
|
QString mAppDir;
|
|
};
|
|
|
|
#endif // QGSGRASSTOOLS_H
|