Hi everyone, I would not go along the singleton road. I think a better idea would be to have a Panel/Dialog Factory, that is able to create Panels and Dialogs, keep track of them and enforce - if necessary - a single instance.
Regards. PaoloB On Sat, Mar 16, 2013 at 8:07 AM, Michael Vehrs <michael.bursc...@gmx.de> wrote: > There have been several complaints about the ability to open some panels > or dialogs several times. In some cases, it makes sense, I think. In > others, not so much. In the distant past, FreeCol had only a single > instance of most panels, all of which were created when the game > started, as far as I remember. We abandoned this approach in order to > gain the ability to switch languages in-game, if I recall correctly. > This, however, could also be handled by mandating some method to > recalculate all localized strings. Should we return to the singleton > panel design, or should we keep track of open panels and prevent opening > several instances at any one time? > > Regards > > Michael > > > ------------------------------------------------------------------------------ > Everyone hates slow websites. So do we. > Make your web apps faster with AppDynamics > Download AppDynamics Lite for free today: > http://p.sf.net/sfu/appdyn_d2d_mar > _______________________________________________ > Freecol-developers mailing list > Freecol-developers@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/freecol-developers ------------------------------------------------------------------------------ Everyone hates slow websites. So do we. Make your web apps faster with AppDynamics Download AppDynamics Lite for free today: http://p.sf.net/sfu/appdyn_d2d_mar _______________________________________________ Freecol-developers mailing list Freecol-developers@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/freecol-developers