[Thuban-devel] Re: RfD: Support for layer specific resources
Martin Schulze
joey at infodrom.org
Tue Aug 24 14:53:21 CEST 2004
Bernhard Herzog wrote:
> Martin Schulze <joey at infodrom.org> writes:
>
> > layer_properties_dialogs should become a global variable, I guess?
>
> Yes.
>
> >> > And for Thuban.UI.classifier:
> >> >
> >> > add_properties_dialog(Layer, Classifier)
> >> > add_properties_dialog(RasterLayer, Classifier)
> >
> > I'm not sure how I am supposed to implement this since
> > classifier.py doesn't import mainwindow and I don't know if it
> > would be a good idea to do so.
>
> You could put that code into Thuban.UI.mainwindow which already depends
> on Thuban.UI.classifier because it currently refers to the dialogs in
> there directly. That would keep the module dependencies the same as
> now.
Err??? Are you really sure you want this code appear in mainwindow.py?
Similar code is required for other layers, too (e.g. currently WMS
layers). Should that code go into mainwindow as well? Both would
somehow pervert the idea of a modular design of Thuban.
Regards,
Joey
--
Beware of bugs in the above code; I have only proved it correct,
not tried it. -- Donald E. Knuth
More information about the Thuban-devel
mailing list
This site is hosted by Intevation GmbH (Datenschutzerklärung und Impressum | Privacy Policy and Imprint)