Hi devs,<br><br>I would like to learn C++ and understand Qgis code organisation, in order to participate in making a better Qgis. This is why I am trying to propose a simple new feature : in the project properties dialog, let the user choose the scales he vould like to use for the current project. Then, use these scales to replace the predefined scales in the status bar scales list. The next step would be to optionnaly force Qgis to stick to these scales when zooming in/out/extent, etc.<br>
<br>I have already coded the &quot;project properties dialog&quot; part : manage a list of scales, with add/delete buttons, and read/save in the project xml file.<br>Now I need to interact with the scale list, wich is normally added by src/app/qgisapp.cpp by the method<br>
   QgisApp::createStatusBar()<br><br>The scale list is creating using the class QgsScaleComboBox :<br>mScaleEdit = new QgsScaleComboBox( statusBar() );<br><br>Now, I need som help. I tried to access the scale list directly using QgisApp::instance()-&gt;statusBar() , but with no success.<br>
I think what I should do is to add a method QgsScaleComboBox::update(QStringList)  in qgsscalecombobox.cpp which change the content of the list. But then, how can I access this method from qgsprojectproperties.cpp ?<br><br>
Thanks in advance<br><br>Michael<br>