When I first started working on qgis I wondered why all that code was there and not in the ui file. <div><br></div><div>+1 for moving it all to the ui file.  Would make things a lot nicer and cleaner to edit.<br><br><div class="gmail_quote">

On Mon, Mar 7, 2011 at 8:41 PM, Martin Dobias <span dir="ltr">&lt;<a href="http://wonder.sk">wonder.sk</a>@<a href="http://gmail.com">gmail.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">

Hi devs<br>
<br>
recently I wondered why we still have the whole QGIS app gui<br>
construction (actions, menus, toolbars) in the QgisApp class. I<br>
remember that in the early Qt4 days this was necessary since there was<br>
no support in Qt Designer to create menus/toolbars. But nowadays it is<br>
perfectly possible, so for me it makes sense to move that part of code<br>
to a .ui file and use the usual setupUi() call for the main window.<br>
That could save up to 1000 lines of code in the QgisApp class!<br>
<br>
Any objections?<br>
<br>
Martin<br>
_______________________________________________<br>
Qgis-developer mailing list<br>
<a href="mailto:Qgis-developer@lists.osgeo.org">Qgis-developer@lists.osgeo.org</a><br>
<a href="http://lists.osgeo.org/mailman/listinfo/qgis-developer" target="_blank">http://lists.osgeo.org/mailman/listinfo/qgis-developer</a><br>
</blockquote></div><br></div>