Skip to content

Commit

Permalink
Allow large numbers to be entered (reverted to line edits)
Browse files Browse the repository at this point in the history
Saved ui in qt4.2.x


git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@8120 c8812cc2-4d05-0410-92ff-de0c093fc19c
  • Loading branch information
timlinux committed Feb 8, 2008
1 parent 829350e commit 3db89f1
Show file tree
Hide file tree
Showing 2 changed files with 193 additions and 157 deletions.
48 changes: 24 additions & 24 deletions src/plugins/grid_maker/plugingui.cpp
Expand Up @@ -39,12 +39,12 @@ void QgsGridMakerPluginGui::on_buttonBox_accepted()
//
QgsLogger::debug("GrativuleCreator called with: " +
leOutputShapeFile->text() + " " +
spindblXInterval->text() + " " +
spindblYInterval->text() + " " +
QString::number(spindblMinX->value()) + " " +
QString::number(spindblMinY->value()) + " " +
QString::number(spindblMaxX->value()) + " " +
QString::number(spindblMaxY->value()));
leXInterval->text() + " " +
leYInterval->text() + " " +
leXLowerLeft->text() + " " +
leYLowerLeft->text() + " " +
leXUpperRight->text() + " " +
leYUpperRight->text());

if (leOutputShapeFile->text().isEmpty())
{
Expand All @@ -54,36 +54,36 @@ void QgsGridMakerPluginGui::on_buttonBox_accepted()
}


double myLongitudeInterval = spindblXInterval->value();
double myLatitudeInterval = spindblYInterval->value();
double myLongitudeOrigin = spindblMinX->value();
double myLatitudeOrigin = spindblMinY->value();
double myEndPointLongitude = spindblMaxX->value();
double myEndPointLatitude = spindblMaxY->value();
double myXInterval = leXInterval->text().toDouble();
double myYInterval = leYInterval->text().toDouble();
double myXOrigin = leXLowerLeft->text().toDouble();
double myYOrigin = leYLowerLeft->text().toDouble();
double myEndPointX = leXUpperRight->text().toDouble();
double myEndPointY = leYUpperRight->text().toDouble();


if (radPoint->isChecked())
{
GraticuleCreator myGraticuleCreator ( leOutputShapeFile->text());
myGraticuleCreator.generatePointGraticule(
myLongitudeInterval,
myLatitudeInterval,
myLongitudeOrigin,
myLatitudeOrigin,
myEndPointLongitude,
myEndPointLatitude
myXInterval,
myYInterval,
myXOrigin,
myYOrigin,
myEndPointX,
myEndPointY
);
}
else
{
GraticuleCreator myGraticuleCreator ( leOutputShapeFile->text());
myGraticuleCreator.generatePolygonGraticule(
myLongitudeInterval,
myLatitudeInterval,
myLongitudeOrigin,
myLatitudeOrigin,
myEndPointLongitude,
myEndPointLatitude
myXInterval,
myYInterval,
myXOrigin,
myYOrigin,
myEndPointX,
myEndPointY
);
}
//
Expand Down

0 comments on commit 3db89f1

Please sign in to comment.