[GRASS-dev] wxGUI: new packages layout

Markus Metz markus.metz.giswork at googlemail.com
Thu Nov 24 10:01:37 EST 2011


Martin Landa wrote:
> Hi,
>
> 2011/11/10 Michael Barton <michael.barton at asu.edu>:
>> I think this is a good idea. The only thing is that the proposed directory structure seems a bit over-complicated. To actually make a change, fix a bug, or add a new feature, it is necessary to alter code in several different modules because of the complex links across different python modules. From the point of view of navigating this to access different modules, perhaps the number of subdirectories could be reduced somewhat to make this easier.
>
> I have started wxGUI code reorganization [1] in r49347. It introduced
> several new GUI packages
>
> core:
>    `core` for core non-GUI classes (gcmd, debug, etc.)
>    `gui_core` for core GUI classes (goutput, prompt, menuform, etc)
>
> main wxGUI components:
>    `lmgr` for Layer Manager
>    `mapdisp` for Map Display
>
> other components:
>    `vdigit` for Vector Digitizer
>    `gcp` for Georectifier
>    `nviz` for 3D view (wxNviz)
>    `gmodeler` for Graphical Modeler
>    `psmap` for Cartographic Composer

Maybe this new layout serves as good motivation to change these other
components to separate sub-processes instead of import'ing them...

Markus M
>
> Please feel free to comment the new layout. It took almost one day to
> reorganize classes to the new modules/packages. I am expecting some
> bugs (mainly wrongly imported modules), I hope that code will be
> stabilized within few days. Please note, that `make distclean` is
> required.
>
> Happy testing;-) Martin
>
> [1] http://trac.osgeo.org/grass/wiki/wxGUIDevelopment#ChangingGUImodulesdirectorylayout
>
> --
> Martin Landa <landa.martin gmail.com> * http://geo.fsv.cvut.cz/~landa
> _______________________________________________
> grass-dev mailing list
> grass-dev at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/grass-dev
>


More information about the grass-dev mailing list