Re: [kln2-devel] tune + amo
Brought to you by:
wiecko
From: Marek W. <Mar...@fu...> - 2004-08-07 01:34:29
|
On Sat, 7 Aug 2004, Carlo wrote: > Vintage Dreams has >100 instruments and is 307.3 KB :) Ah, that's why it sounds so lousy. ;) Just kidding. Do it! :) > Yup, as you requested some mails ago, I was thinking about rewriting it. Really? That would be wonderful. > What about a text file config?? like the apache's one, not xml, > something like: > > SECTION > OPTION value > OPTION2 value > ENDSECTION Great. But why not xml? I saw preferences-0.2.tar.gz at http://www.trolltech.com/freesoftware/index.html?Action=ShowCat&category=Classes . I didn't have time (and won't in predictable future - sorry), but first gilmpse was encouraging. But a rough text file seems as good. > I know, this requires a parser. Yeah. The advantages of the preferences-0.2 is that it is almost ready to use... And seems quite flexible. > I know this seems not to make sense since the user doesn't need to > change anything in this file, so I'm ansking everybody for their > opinion. OK. Here is mine: anything would be better than what we have now. :( If you have time and would like to do it: great! :) Whether txt or xml - anything is better. The only requirements are: * data should be stored in portable way (text/xml, not binary!); * the phaser should not crash if a preference is not set; it should let the caller know it should drop to a default value; * it should handle different kinds of data in a unified way. It would be great if it would: * enable deleting obolate entries (to keep the file small) * enable grouping the enteries (thus xml seems natural) * handle non-standard fonts for non-numeric settings (note, that there may be local characters even in computer paths!) But the last points are not obligatory and may be added in future. The first version may be very rough - just something that works more or less. BTW: I changed structure of some code in CVS and turnd saving/loading totally off until the code is sorted out. Regards, ~Marek -- \/ /|\ Marek Wieckowski ##### | | | = . . = \|/ Institute of Theoretical Physics U | Warsaw University / ~ \___ | <| | | > . < | http://www.fuw.edu.pl/~wiecko <<___>> | http://klearnnotes2.sourceforge.net |