OpenAmiga (603/964)

From:Harold Grovesteen
Date:20 Sep 2000 at 11:57:47
Subject:Re: AMIOPEN: Hotkey Config/Need suggestions

This is looking a lot like Java properties files which is simply a
mechanism for providing key/value pairs to an application. Java has a
set of conventions using properties files for localization and
customization of the user inteface. It would be nice if such things
are standard regardless of the programming language used. Just a
wish...real life is usually not nice and simple.

Harold Grovesteen

Patrick Roberts wrote:
>
> I've added user hotkey configuration in E-Winease. There's two possibilities
> for the file format I can use with a trade-off. I'd like to get everyone's
> comments and/or suggestions. Here's the basic format
> for config lines (lines starting with # are ignored):
>
> key=function
>
> 1) Static position:
>
> The 'function' could be a description of any legnth, but they
> order that the settings appeared in the file would have to stay the
> same. This method has the advantage of being the fastest and
> taking the least amount of memory. A typical line might look like this:
>
> (ignore hex numbers... at some point you'll be able to use stuff like
> ALT+T or CTRL+C)
>
> 0x03=Create a new default foo
>
> This method would also allow the config file to be in any language
> regardless of the language of the program.
>
> 2) Static Label:
>
> The 'function' would be a descriptor supplied by the programmer. This
> descriptor would have to live in the program, and thus take up memory.
> As it takes more memory, the 'function' would most likely be as short as
> possible. This method would be slower and take up more RAM, but the
> config file lines could be in any order. An example might be:
>
> 0x03=NewDfoo
>
> The 'function' text could not be changed.
>
> Both formats can have comments that start with '#'. What do you guys think?
>
> Thanks,
> -Pat
> Subscribe/Unsubscribe: open-request@amiga.com
> Amiga FAQ: http://www.amiga.com/faq.html
Subscribe/Unsubscribe: open-request@amiga.com
Amiga FAQ: http://www.amiga.com/faq.html