mirror of
https://github.com/qgis/QGIS.git
synced 2025-02-24 00:47:57 -05:00
105 lines
2.7 KiB
C++
105 lines
2.7 KiB
C++
/***************************************************************************
|
|
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>
|
|
#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("<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);
|
|
}
|
|
void QgsDlgPgBuffer::help()
|
|
{
|
|
qI->openURL("plugins/geoprocessing/buffer/index.html",true);
|
|
}
|