/*************************************************************************** qgsdlgbuffer.cpp Buffer dialog - Subclasses qgsdlgbufferbase Part of the Geoprocessing plugin for PostgreSQL/PostGIS layers ------------------- begin : Jan 21, 2004 copyright : (C) 2004 by Gary E.Sherman email : sherman at mrcc.com ***************************************************************************/ /*************************************************************************** * * * 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. * * * ***************************************************************************/ /* $Id$ */ #include #include #include #include #include "qgsdlgpgbuffer.h" #include #include "../../src/qgisiface.h" QgsDlgPgBuffer::QgsDlgPgBuffer( QgisIface * _qI, QWidget * parent, const char *name) :QgsDlgPgBufferBase(parent, name),qI(_qI) { } QgsDlgPgBuffer::~QgsDlgPgBuffer() { } void QgsDlgPgBuffer::setBufferLabel(QString & lbl) { lblBufferInfo->setText("

"+lbl+"

"); } QString QgsDlgPgBuffer::bufferDistance() { return QString::number(spinBufferDistance->value()); } QString QgsDlgPgBuffer::bufferLayerName() { return txtBufferedLayerName->text(); } bool QgsDlgPgBuffer::addLayerToMap() { return chkAddToMap->isChecked(); } QString QgsDlgPgBuffer::geometryColumn() { return txtGeometryColumn->text(); } QString QgsDlgPgBuffer::srid() { return txtSrid->text(); } QString QgsDlgPgBuffer::objectIdColumn() { return cmbFields->currentText(); } QString QgsDlgPgBuffer::schema() { return cmbSchema->currentText(); } void QgsDlgPgBuffer::addFieldItem(QString field) { cmbFields->insertItem(field); } void QgsDlgPgBuffer::addSchema(QString schema) { cmbSchema->insertItem(schema); } void QgsDlgPgBuffer::setSrid(QString srid) { txtSrid->setText(srid); } void QgsDlgPgBuffer::setBufferLayerName(QString name) { txtBufferedLayerName->setText(name); } void QgsDlgPgBuffer::setGeometryColumn(QString name) { txtGeometryColumn->setText(name); } void QgsDlgPgBuffer::help() { qI->openURL("plugins/geoprocessing/buffer/index.html",true); }