1
/***************************************************************************
2
qgsgrassselect.h - Select GRASS layer dialog
5
copyright : (C) 2004 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 QGSGRASSSELECT_H
17
#define QGSGRASSSELECT_H
18
#include "ui_qgsgrassselectbase.h"
20
/*! \class QgsGrassSelect
21
* \brief Dialog to select GRASS layer.
24
class QgsGrassSelect: public QDialog, private Ui::QgsGrassSelectBase
30
//QgsGrassSelect(QWidget *parent = 0, int type = VECTOR );
31
QgsGrassSelect(int type = VECTOR );
40
GROUP, // group of rasters, used in selectedType
41
MAPCALC // file in $MAPSET/mapcalc directory (used by QgsGrassMapcalc)
44
//! Get list of vector layer
45
static QStringList vectorLayers ( QString, QString, QString, QString );
52
int selectedType; // RASTER or GROUP
59
void on_cancel_clicked();
61
//! Open dialog for Gisdbase
62
void on_GisdbaseBrowse_clicked();
64
//! Reset combobox of locations for current Gisdbase
65
void on_egisdbase_textChanged() { setLocations(); }
68
//! Reset combobox of mapsets for current Location
69
void on_elocation_activated() { setMapsets(); }
72
//! Reset combobox of maps for current Gisdbase + Location
73
void on_emapset_activated() { setMaps(); }
76
//! Reset combobox of layers for current Gisdbase + Location + Map
77
void on_emap_activated() { setLayers(); }
82
int type; // map type (mapset element)
83
static bool first; // called first time
84
static QString lastGisdbase; // Last selected values
85
static QString lastLocation;
86
static QString lastMapset;
87
static QString lastVectorMap;
88
static QString lastRasterMap;
89
static QString lastLayer; // vector layer
90
static QString lastMapcalc;
92
void restorePosition(void);
93
void saveWindowLocation(void);
97
#endif // QGSGRASSSELECT_H