Feature request #5561

Project Scale List

Added by Michael Douchin almost 12 years ago. Updated over 11 years ago.

Assignee:Alexander Bruy
Category:Project Loading/Saving
Pull Request or Patch supplied:Yes Resolution:fixed
Easy fix?:No Copied to github as #:15146


This patch adds a new feature in Qgis Desktop project properties. The aim is to provide a way to configure and use a scale list for each project:

  • display and manage a list of user defined scales per project in the project properties dialog
  • replace the content of the status bar scale combobox if project scales are defined when opening an existing project
  • default scale list is used whenever no project scale list has been found

The patch can be found here

PS: This is my first patch for Qgis, so feel free to comment/modify/annotate.
PS2: I assigned this patch to Alexander Bruy, author of the QScaleCombobox class.

gistfile1.diff Magnifier (11.8 KB) Michael Douchin, 2012-06-01 07:03 AM


#1 Updated by Nathan Woodrow almost 12 years ago

Good job. Looks good to me. Might have to wait until 1.8 is out though as it's a new feature, not really a bug fix.

#2 Updated by Alexander Bruy almost 12 years ago

  • Target version changed from Version 1.8.0 to Version 2.0.0

Thanks for patch, I'll look at it ASAP. But as this new feature it can be applied only after releasing 1.8.0

#3 Updated by Michael Douchin almost 12 years ago

  • Pull Request or Patch supplied changed from No to Yes

Thanks for reviewing this patch. Good point for postpone it to Qgis after 1.8.
Please have a look to my use of the method "showScale" and "mMapCanvas->updateScale()". I did not know very well Qgis core, so it may be a bit hacky...

#4 Updated by Michael Douchin over 11 years ago

"physical" file attached (just in case)

#5 Updated by Alexander Bruy over 11 years ago

  • Status changed from Open to In Progress

#6 Updated by Alexander Bruy over 11 years ago

  • Resolution set to fixed
  • Status changed from In Progress to Closed

Available starting from fe2252de5e

Also available in: Atom PDF