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 "qgsgrassselectbase.h"
19
/*! \class QgsGrassSelect
20
* \brief Dialog to select GRASS layer.
23
class QgsGrassSelect: public QgsGrassSelectBase
27
//QgsGrassSelect(QWidget *parent = 0, int type = VECTOR );
28
QgsGrassSelect(int type = VECTOR );
32
enum TYPE { VECTOR, RASTER, GROUP }; // GROUP = group of rasters, used in selectedType
40
//! Open dialog for Gisdbase
41
void getGisdbase(void);
43
//! Reset combobox of locations for current Gisdbase
44
void setLocations (void );
46
//! Reset combobox of mapsets for current Location
47
void setMapsets (void );
49
//! Reset combobox of maps for current Gisdbase + Location
52
//! Reset combobox of layers for current Gisdbase + Location + Map
53
void setLayers (void );
60
int selectedType; // RASTER or GROUP
63
int type; // map type (mapset element)
64
static bool first; // called first time
65
static QString lastGisdbase; // Last selected values
66
static QString lastLocation;
67
static QString lastMapset;
68
static QString lastVectorMap;
69
static QString lastRasterMap;
70
static QString lastLayer; // vector layer
72
void restorePosition(void);
73
void saveWindowLocation(void);
77
#endif // QGSGRASSSELECT_H