From: David B. <db...@ta...> - 2006-08-11 16:39:43
|
I have just committed another revision (revision 18 - "Tuxmath 0.9") to the svn repository. The major improvement is support for reading and writing settings to a human-readable, editable config file. All program features are now accessible without recompiling. The other main improvement I would like to have done before we call it "Version 1.0" is an overhaul of the options system, because most normal people will find it too geeky to have to manually edit a config file (but it is still a big step forward from making them edit the source and recompile!). -- David Bruce |
From: Holger L. <de...@la...> - 2006-08-11 17:05:44
|
Hi Bruce, On Friday 11 August 2006 18:39, you wrote: > I have just committed another revision (revision 18 - "Tuxmath 0.9") to the > svn repository. The major improvement is support for reading and writing > settings to a human-readable, editable config file. All program features > are now accessible without recompiling. Cool! I'll package it for debian next week, I guess.. tuxtype 0.8 entered testing/etch now, btw :) regards, Holger |
From: Yves C. <yv...@yc...> - 2006-08-14 20:28:24
|
David Bruce a =E9crit : > I have just committed another revision (revision 18 - "Tuxmath 0.9") to= the=20 > svn repository. The major improvement is support for reading and writi= ng=20 > settings to a human-readable, editable config file. All program featur= es are=20 > now accessible without recompiling. The other main improvement I would= like=20 > to have done before we call it "Version 1.0" is an overhaul of the opti= ons=20 > system, because most normal people will find it too geeky to have to ma= nually=20 > edit a config file (but it is still a big step forward from making them= edit=20 > the source and recompile!). > =20 Just tested and approved. That's excellent. Suggestion: The file is called .tuxmath ? I d'prefer .tuxmathrc or something indicating it's the resource file. I will add a launcher in gcompris for tuxmath, as i have done for tuxpaint. I will integrate all this beautifull customisation capabilities in gcompris config system. Thank's for this beautiful work. --=20 yves |
From: David B. <db...@ta...> - 2006-08-14 22:59:49
|
On Monday 14 August 2006 16:28, Yves Combe wrote: > Suggestion: > The file is called .tuxmath ? I d'prefer .tuxmathrc or something > indicating it's the resource file. Sure - this is sort of a first pass at having a config file. I have worked= a=20 little more on the code today so it creates a .tuxmath directory within=20 $HOME. The config file is now inside the .tuxmath directory and is simply= =20 called "options". This is just on my HD - not yet in svn. Also, I put the master config file (for installation-wide, admin-type=20 settings) in the data directory (/usr/local/share/tuxmath if installed=20 with "make install"), but I wonder if it really belongs under /etc. My=20 understanding is that programs installed under /usr/local should not=20 touch /etc. Any advice would be appreciated. > > I will add a launcher in gcompris for tuxmath, as i have done for > tuxpaint. I will integrate all this beautifull customisation > capabilities in gcompris config system. > > Thank's for this beautiful work. Thanks again. > Do you plan a tuxmath-config too ? (like =A0tuxpaint-config) I'm not familiar with tuxpaint-config, but I will look into it. I have bee= n=20 considering the possibility of a standalone config tool, perhaps a KDE or=20 Gnome gui app that will appeal to ordinary users. =2D-=20 David Bruce |
From: Bill K. <nb...@so...> - 2006-08-14 23:07:58
|
On Mon, Aug 14, 2006 at 06:59:42PM -0400, David Bruce wrote: >=20 > > Do you plan a tuxmath-config too ? (like =A0tuxpaint-config) >=20 > I'm not familiar with tuxpaint-config, but I will look into it. I have= been=20 > considering the possibility of a standalone config tool, perhaps a KDE = or=20 > Gnome gui app that will appeal to ordinary users. Here's a screenshot: http://newbreedsoftware.com/tuxpaint/screenshots/tuxpaint-config-sshot.= png It's an FLTK-based C++ app, so it runs on Linux/BSD/Unix (X-Window), Windows and Mac OS X. It's a bit ugly, since I don't know FLTK or C++ very well, and is pretty hard-coded specific to Tux Paint. A Qt-based or wxWidgets-based app would probably be nicer, but this one works. :) --=20 -bill! bi...@ne... http://www.newbreedsoftware.com/ |
From: Andrew Z. <an...@sp...> - 2006-08-14 23:09:57
|
David Bruce wrote: > On Monday 14 August 2006 16:28, Yves Combe wrote: > > Also, I put the master config file (for installation-wide, admin-type > settings) in the data directory (/usr/local/share/tuxmath if installed > with "make install"), but I wonder if it really belongs under /etc. My > understanding is that programs installed under /usr/local should not > touch /etc. Any advice would be appreciated. > See the following link about the variables prefix and sysconfdir: http://www.gnu.org/software/make/manual/html_node/Directory-Variables.html#Directory-Variables The prefix is either /usr (used with packages such as .deb or .rpm) or /usr/local (typically used when installing without a package), so the configuration directory is either /etc or /usr/local/etc. Andrew |
From: Yves C. <yv...@yc...> - 2006-08-15 12:02:20
|
David Bruce a =E9crit : > On Monday 14 August 2006 16:28, Yves Combe wrote: > > =20 >> Suggestion: >> The file is called .tuxmath ? I d'prefer .tuxmathrc or something >> indicating it's the resource file. >> =20 > > Sure - this is sort of a first pass at having a config file. I have wo= rked a=20 > little more on the code today so it creates a .tuxmath directory withi= n=20 > $HOME. The config file is now inside the .tuxmath directory and is sim= ply=20 > called "options". This is just on my HD - not yet in svn. > =20 To launch from gcompris, i'd appreciate a "--optionfile filename" option, to make a temp file from gcompris to pass the options. For tuxpaint we use the command line options to launch it from gcompris. --=20 yves |
From: David B. <db...@ta...> - 2006-08-15 22:41:45
|
Dear Yves, On Tuesday 15 August 2006 08:02, Yves Combe wrote: > To launch from gcompris, i'd appreciate a "--optionfile filename" > option, to make a temp file from gcompris to pass the options. I will certainly do that. Does it need to be able to find files in all locations (i.e. absolute pathnames)? I have thought about this somewhat today. My current inclination is as follows: 1. The program starts with the hard-coded defaults, overridden as needed by the admin-level config file. It will either then proceed using these settings, or optionally accept a specified file. 2. If the "--optionfile filename" arg is supplied, it will look for a matching filename. I have created a "missions" directory under the program's data dir that will contain a series of prepared "missions" (i.e. lessons). Tuxmath will definitely look here and probably some other places for "filename". The config file now has a place for the name of the next lesson file, supporting a sort of linked-list arrangement. 3. If "--optionfile filename" is not used, by default the game will look for the options file in the user's $HOME, basically keeping the same settings from the previous game unless the file has been edited. 4. The program saves the user's settings at exit, so if the student is working on a particular "mission", the program will return to it the next time. Does this all sound reasonable? I should be able to get something like this into svn fairly soon. -- David Bruce |