1
/***************************************************************************
3
Buffer dialog - Subclasses qgsdlgbufferbase
4
Part of the Geoprocessing plugin for PostgreSQL/PostGIS layers
7
copyright : (C) 2004 by Gary E.Sherman
8
email : sherman at mrcc.com
10
***************************************************************************/
12
/***************************************************************************
14
* This program is free software; you can redistribute it and/or modify *
15
* it under the terms of the GNU General Public License as published by *
16
* the Free Software Foundation; either version 2 of the License, or *
17
* (at your option) any later version. *
19
***************************************************************************/
20
/* $Id: qgsdlgpgbuffer.cpp 4778 2006-01-29 05:55:07Z g_j_m $ */
23
#include "qgsdlgpgbuffer.h"
24
#include "qgscontexthelp.h"
25
#include "qgisiface.h"
27
QgsDlgPgBuffer::QgsDlgPgBuffer( QgisIface * _qI, QWidget * parent, Qt::WFlags fl)
28
:QDialog(parent, fl),qI(_qI)
32
distanceValidator = new QDoubleValidator(0, 9e9, 6, this);
33
txtBufferDistance->setValidator(distanceValidator);
36
QgsDlgPgBuffer::~QgsDlgPgBuffer()
39
void QgsDlgPgBuffer::setBufferLabel(QString & lbl)
41
lblBufferInfo->setText("<h2>"+lbl+"</h2>");
44
QString QgsDlgPgBuffer::bufferDistance()
46
return txtBufferDistance->text();
49
QString QgsDlgPgBuffer::bufferLayerName()
51
return txtBufferedLayerName->text();
54
bool QgsDlgPgBuffer::addLayerToMap()
56
return chkAddToMap->isChecked();
59
QString QgsDlgPgBuffer::geometryColumn()
61
return txtGeometryColumn->text();
64
QString QgsDlgPgBuffer::srid()
66
return txtSrid->text();
69
QString QgsDlgPgBuffer::objectIdColumn()
71
return cmbFields->currentText();
74
QString QgsDlgPgBuffer::schema()
76
return cmbSchema->currentText();
79
void QgsDlgPgBuffer::addFieldItem(QString field)
81
cmbFields->insertItem(field);
84
void QgsDlgPgBuffer::addSchema(QString schema)
86
cmbSchema->insertItem(schema);
89
void QgsDlgPgBuffer::setSrid(QString srid)
91
txtSrid->setText(srid);
94
void QgsDlgPgBuffer::setBufferLayerName(QString name)
96
txtBufferedLayerName->setText(name);
99
void QgsDlgPgBuffer::setGeometryColumn(QString name)
101
txtGeometryColumn->setText(name);
103
void QgsDlgPgBuffer::on_btnHelp_clicked()
105
QgsContextHelp::run(context_id);
106
// Old call to open help in browser qI->openURL("plugins/geoprocessing/buffer/index.html",true);