From: | Patrick Roberts |
Date: | 20 Sep 2000 at 05:11:52 |
Subject: | AMIOPEN: Hotkey Config/Need suggestions |
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