Skip to content
Permalink
Browse files
Allow large numbers to be entered (reverted to line edits)
Saved ui in qt4.2.x


git-svn-id: http://svn.osgeo.org/qgis/trunk@8120 c8812cc2-4d05-0410-92ff-de0c093fc19c
  • Loading branch information
timlinux committed Feb 8, 2008
1 parent 438f277 commit 542339e17d7590d0b5bab38a197b68798b1ccd8c
Showing with 193 additions and 157 deletions.
  1. +24 −24 src/plugins/grid_maker/plugingui.cpp
  2. +169 −133 src/plugins/grid_maker/pluginguibase.ui
@@ -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())
{
@@ -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
);
}
//

0 comments on commit 542339e

Please sign in to comment.