Skip to content
Permalink
Browse files
Fix typo in commnets for zoom in map tool
git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@5819 c8812cc2-4d05-0410-92ff-de0c093fc19c
  • Loading branch information
timlinux committed Sep 12, 2006
1 parent 4249cc5 commit 552f9ed0987607dfa609ded64c1b7592122e1cf4
Showing with 16 additions and 2 deletions.
  1. +1 −1 src/gui/qgisapp.cpp
  2. +15 −1 src/gui/qgscustomprojectiondialog.cpp
@@ -3155,7 +3155,7 @@ void QgisApp::zoomIn()
{
QgsDebugMsg ("Setting map tool to zoomIn");

QgsMapTool* tool = new QgsMapToolZoom(mMapCanvas, FALSE /* zoomOut */);
QgsMapTool* tool = new QgsMapToolZoom(mMapCanvas, FALSE /* zoomIn */);
tool->setAction(mActionZoomIn);
mMapCanvas->setMapTool(tool);

@@ -65,6 +65,11 @@ QgsCustomProjectionDialog::QgsCustomProjectionDialog(QWidget *parent, Qt::WFlags
on_pbnFirst_clicked();
else
on_pbnNew_clicked();
//automatically go to insert mode if there are not recs yet
if (mRecordCountLong<1)
{
on_pbnNew_clicked();
}
}

QgsCustomProjectionDialog::~QgsCustomProjectionDialog()
@@ -428,15 +433,23 @@ void QgsCustomProjectionDialog::on_pbnFirst_clicked()
//enable nav buttons as appropriate
pbnFirst->setEnabled(false);
pbnPrevious->setEnabled(false);
if (mCurrentRecordLong==mRecordCountLong)
//automatically go to insert mode if there are not recs yet
if (mRecordCountLong < 1)
{
on_pbnNew_clicked();
pbnDelete->setEnabled(false);
}
else if (mCurrentRecordLong==mRecordCountLong)
{
pbnNext->setEnabled(false);
pbnLast->setEnabled(false);
pbnDelete->setEnabled(false);
}
else
{
pbnNext->setEnabled(true);
pbnLast->setEnabled(true);
pbnDelete->setEnabled(false);
}
}

@@ -694,6 +707,7 @@ void QgsCustomProjectionDialog::on_pbnNew_clicked()
pbnPrevious->setEnabled(false);
pbnNext->setEnabled(false);
pbnLast->setEnabled(false);
pbnDelete->setEnabled(false);
pbnNew->setText(tr("Abort"));
//clear the controls
leName->setText("");

0 comments on commit 552f9ed

Please sign in to comment.