~ubuntu-branches/ubuntu/quantal/qgis/quantal

« back to all changes in this revision

Viewing changes to plugins/geoprocessing/qgsdlgpgbuffer.cpp

  • Committer: Bazaar Package Importer
  • Author(s): Steve Halasz
  • Date: 2005-11-05 16:04:45 UTC
  • mfrom: (1.1.1 upstream)
  • Revision ID: james.westby@ubuntu.com-20051105160445-l0g4isz5bc9yehet
Tags: 0.7.4-1
* New upstream release
* Build GRASS support in qgis-plugin-grass package (Closes: #248649)

Show diffs side-by-side

added added

removed removed

Lines of Context:
17
17
 *   (at your option) any later version.                                   *
18
18
 *                                                                         *
19
19
 ***************************************************************************/
20
 
 /*  $Id: qgsdlgpgbuffer.cpp,v 1.5 2004/02/07 23:33:49 gsherman Exp $ */
 
20
 /*  $Id: qgsdlgpgbuffer.cpp,v 1.5.14.1 2005/06/03 05:02:14 gsherman Exp $ */
21
21
#include <qlineedit.h>
22
22
#include <qlabel.h>
23
23
#include <qcheckbox.h>
24
24
#include <qcombobox.h>
 
25
#include <qvalidator.h>
25
26
#include "qgsdlgpgbuffer.h"
26
27
#include <qspinbox.h>
27
28
#include "../../src/qgisiface.h"
29
30
QgsDlgPgBuffer::QgsDlgPgBuffer( QgisIface * _qI, QWidget * parent, const char *name)
30
31
:QgsDlgPgBufferBase(parent, name),qI(_qI)
31
32
{
 
33
  // set the validator
 
34
  distanceValidator = new QDoubleValidator(0, 9e9, 6, this);
 
35
  txtBufferDistance->setValidator(distanceValidator);
32
36
}
33
37
 
34
38
QgsDlgPgBuffer::~QgsDlgPgBuffer()
41
45
 
42
46
QString QgsDlgPgBuffer::bufferDistance()
43
47
{
44
 
    return QString::number(spinBufferDistance->value());
 
48
    return txtBufferDistance->text();
45
49
}
46
50
 
47
51
QString QgsDlgPgBuffer::bufferLayerName()