QGIS/plugins/geoprocessing/qgsdlgpgbuffer.cpp

100 lines
2.5 KiB
C++
Raw Normal View History

/***************************************************************************
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 <qlineedit.h>
#include <qlabel.h>
#include <qcheckbox.h>
#include <qcombobox.h>
#include "qgsdlgpgbuffer.h"
#include <qspinbox.h>
QgsDlgPgBuffer::QgsDlgPgBuffer(QWidget * parent, const char *name)
:QgsDlgPgBufferBase(parent, name)
{
}
QgsDlgPgBuffer::~QgsDlgPgBuffer()
{
}
void QgsDlgPgBuffer::setBufferLabel(QString & lbl)
{
lblBufferInfo->setText("<h2>"+lbl+"</h2>");
}
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);
}