[kde-edu]: New games for kdeedu
Jason Harris
kstars at 30doradus.org
Wed Feb 1 17:17:57 CET 2006
Hi Carsten,
On Wednesday 01 February 2006 08:47, Carsten Niehaus wrote:
> a) Some magic Jason will tell me
> b) I provide one .ui-file per simulation and somehow manage to tell the
> simulation the settings (then again I have the problem the the main-app
> doesn't know which GUI-items belong to which gamesettings)
I think you can do a variant of b. Each Game will contain a widget member
which is its GUI configuration, and it can export this to the main widget.
So the main widget doesn't have to know anything about the contents of the
widget, it just inserts "game->uiWidget()" into the config window layout,
when the user asks to modify that game's settings.
Might that work? (Disclaimer: I haven't looked closely at the code, but I did
see that you have subclassed each simulation, and I think the above is
consistent with that approach)
Are the simulations going to remain pure Qt apps? If you ever adopt KDE, you
could use KConfigXT, and just rely on the name of each option to distinguish
which game it belongs to.
Jason
--
-------------------------------
KStars: KDE Desktop Planetarium
http://edu.kde.org/kstars
More information about the kde-edu
mailing list