Hi,
I've not much time atm, but in short:
It would be desirable in the future to get rid of the use of JDialog for all modals with maybe subframes with modal settings, because JDK since years do not support opening such independent windows while having the game run inside a fullscreen frame at same time.
This caused glitches like dialogs behind the game frame that could not be interacted with and strange blinking and strange focus settings, which made us switch to windowed mode by default, but there it is still not perfect.
This was too big of a project though with unknown outcome, because it was not clear if something like a subframe even could be made modal correctly or that is unsupported (reading the docs did not give any clues back then).
_______________________________________________ Freecol-developers mailing list Freecol-developers@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/freecol-developers
This should wait until after a release was made though, as it would severely destabilize the codebase.
Greetings,
wintertime
Gesendet: Dienstag, 07. Dezember 2021 um 09:01 Uhr
Von: "Stefan Fellner via Freecol-developers" <freecol-developers@lists.sourceforge.net>
An: "Freecol Developers" <freecol-developers@lists.sourceforge.net>
Betreff: Re: [Freecol-developers] TradeRouteInputPanel
Von: "Stefan Fellner via Freecol-developers" <freecol-developers@lists.sourceforge.net>
An: "Freecol Developers" <freecol-developers@lists.sourceforge.net>
Betreff: Re: [Freecol-developers] TradeRouteInputPanel
Hi to all,
I am currently working on the TradeRouteInputPanel (Mike told me there was some issues there).
Unclear. Generally I prefer to have as few modal panels as possible, butI can not think of a good reason not to have the TRIP non-modal withrespect to its parent TRP.
I used the already in-place mechanism of opening the panels only once per class in the Widgets (canvas#getExistingFreeColPanel(<PanelClass>)).
Regards to "modality" - I added a marker for the MenuBar / Actions to not be enabled in case of some non-modal input panel is open at the time (Reason: If you are in the non-modal TRIP panel and enter the name of the TradeRoute, all mnemonic keys could immediatly open another panel).
Usually FreeCol currently mostly uses FreeColDialog instances for modal dialogs, however I figured it might not be disered/necessary to change the TRIP to a really modal dialog. (Please tell me if you'd prefer that).
Consider yourself free to come up with a better design if you wish,however I would initially just try to make the current design work. Weare guided by the appearance of Col1, but do not stick closely to it (asdistinct from game functionality where Col1-compatibility is veryimportant). I do not have a template or description or any sort ofpreferred look and feel--- I try hard to keep out of those areas!
I don't really wanted to change the design, but only adding another GoodsTypePanel, because I couldn't see how the TradeRoutes could define there goods to be loaded vs. unloaded. (only one drop target GoodsTypePanel to put the cargo's onto was present).
Icon-wise to be able to display the goods loaded in a TradeStop vs. unloaded - I am open for suggestions - I could make one too - I was thinking of some compound Icon like the given cargo icon plus some kind of arrow-icon overlaying it signaling loading / unloading. I have to browse through the available icons - maybe something like that is already available. If not I will try to make suggestions; however I am not a graphics guy :P ;) - so if there is someone capable here - please contact me :)
(Unless you like my suggestion then :D).
Ahm, and another quick question if anyone may know:
If i need to I would like to override the DefaultTransferHandler - is there any reason why this class was made final?
BR,
Stefan!
Dec 7, 2021, 07:45 by mp...@computer.org:
On Sun, 5 Dec 2021 14:26:09 +0100 (CET)Stefan Fellner <stefan.fell...@tutanota.com> wrote:First off, is there a BR ticket about it?No. I forget exactly what way it was broken, but IIRC dragging goodstypes was displaying incorrectly.Is it wanted to have multiple TradeRoutePanel / TradeRouteInputPanels open at the same time?I do not think that is necessary.Also then following the TradeRoutePanel - shoud the InputPanel be modal (at least to the TradeRoutePanel)?Unclear. Generally I prefer to have as few modal panels as possible, butI can not think of a good reason not to have the TRIP non-modal withrespect to its parent TRP.Am I free to design how this panel should work, or should I stick to original col1, or do you have a template or description?Consider yourself free to come up with a better design if you wish,however I would initially just try to make the current design work. Weare guided by the appearance of Col1, but do not stick closely to it (asdistinct from game functionality where Col1-compatibility is veryimportant). I do not have a template or description or any sort ofpreferred look and feel--- I try hard to keep out of those areas!Sorry for the slow reply, I see you have been busy. Will catch upproperly soon. Note though, I generally prefer to discuss these questionson freecol-developers.Cheers,Mike Pope
_______________________________________________ Freecol-developers mailing list Freecol-developers@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/freecol-developers