Skip to content

Commit aecc041

Browse files
author
timlinux
committedAug 7, 2008
Patial fix for #971 - prevent extents display being obscured by other status messages. The part not implemented yet but requested in the ticket is to be able to manually edit and set the extents. The implementation here provides a toggle button on the status bar to switch between display of mouse coordinates and current extents.
git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@9017 c8812cc2-4d05-0410-92ff-de0c093fc19c

File tree

7 files changed

+449
-87
lines changed

7 files changed

+449
-87
lines changed
 

‎images/themes/default/extents.png

701 Bytes
Loading

‎images/themes/default/extents.svg

Lines changed: 115 additions & 0 deletions
Loading

‎images/themes/default/tracking.png

2.11 KB
Loading

‎images/themes/default/tracking.svg

Lines changed: 199 additions & 0 deletions
Loading

‎src/app/qgisapp.cpp

Lines changed: 128 additions & 87 deletions
Large diffs are not rendered by default.

‎src/app/qgisapp.h

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -333,6 +333,7 @@ public slots:
333333

334334
public slots:
335335
void showProgress(int theProgress, int theTotalSteps);
336+
void extentsViewToggled(bool theFlag);
336337
void showExtents();
337338
void showStatusMessage(QString theMessage);
338339
void updateMouseCoordinatePrecision();
@@ -607,6 +608,8 @@ class Tools
607608
QProgressBar * mProgressBar;
608609
//! Widget used to suppress rendering
609610
QCheckBox * mRenderSuppressionCBox;
611+
//! A toggle to switch between mouse coords and view extents display
612+
QToolButton * mToggleExtentsViewButton;
610613
//! Button used to stop rendering
611614
QToolButton* mStopRenderButton;
612615
//! Widget in status bar used to show status of on the fly projection

‎src/gui/qgsprojectionselector.cpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -660,6 +660,10 @@ void QgsProjectionSelector::applyProjList(QSet<QString> * crsFilter)
660660
{
661661
// This is a projected srs
662662

663+
if (previousSrsTypeNode == NULL)
664+
{
665+
previousSrsTypeNode = mProjList;
666+
}
663667
QTreeWidgetItem *node;
664668
QString srsType = QString::fromUtf8((char*)sqlite3_column_text(ppStmt, 3));
665669
// Find the node for this type and add the projection to it

0 commit comments

Comments
 (0)
Please sign in to comment.