[yast-devel] Unification of Fxx keys usage
Hi, as the new version of yast2-ncurses that finally contains status line support has been submitted to abuild today, I'd like to ask you, yast hackers and module maintainers, for a favour. This request would be much more useful as a chapter in yast style guide, but as we have no styleguide, I'm using this e-mail channel. It would be really useful if the function keys for particular actions were more or less constant and did not change from module to module. So please check your modules if at least the following Fxx keys are assigned to these actions (i.e. do not assign them to any other action) F1- Help F3 - Add F4 - Edit/Configure/Change F5 - Delete F8 - Back F9 - Abort/Cancel F10 - Next/Finish/Accept/OK Ncurses navigation help also mentions F2 - Info, F6 - Test, F7 -Expert/Advanced, but this would be imho pretty tight requirements, so try to stick to the ones listed above and use the remaining function keys as you wish. Some cases where these rules are currently broken: include/printer/dialogs-cups.ycp: F4 assigned to 'Delete' (use F5) clients/ldap_browser.ycp: F5 assigned to 'Reload' (use e.g. F6) include/bootloader/routines/dialogs_i386.ycp: F8 assigned to 'Cancel' (use F9) Thanks for keeping ncurses UI well-usable :) B. -- A: Because it messes up the order in which people normally read text. Q: Why is top-posting such a bad thing? A: Top-posting. Q: What is the most annoying thing in e-mail? -- To unsubscribe, e-mail: yast-devel+unsubscribe@opensuse.org For additional commands, e-mail: yast-devel+help@opensuse.org
On Mon, Jan 07, 2008 at 02:02:54PM +0100, Bubli wrote:
Hi,
as the new version of yast2-ncurses that finally contains status line support has been submitted to abuild today, I'd like to ask you, yast hackers and module maintainers, for a favour. This request would be much more useful as a chapter in yast style guide, but as we have no styleguide, I'm using this e-mail channel.
Well, the draft style guide that collapsed under its own weight did have a chapter exactly for this, and we based the F keys on it. The referenced link no longer works, but let me dig up an old copy of that chapter... http://mailman.suse.de/mlarch//SuSE/yast2-hacker/2002/yast2-hacker.2002.11/m...
Hi,
it is possible now to assign function keys to widgets in YCP code by adding `opt(`key_Fn). (see file:/develop/yast2/source/core/libyui/doc/widgets/YWidget-widget.html) At the moment F1 - F12 can be used for the `PushButton and the `MenuButton widget.
e.g.: `MenuButton(`id(`menu), `opt(`key_F3), _( "&Change..." ), ...)
All dialogs should provide function keys for the text mode (see http://w3.suse.de/~sigi/YSG/Control-of-ncurses.html).
If F1 is pressed, a common help text is shown which displays all available function keys. If F1 is pressed again the help text of the certain dialog is shown (if there is a widget with `opt(`key_F1)).
The feature is available with yast2-ncurses-2.7.3.
Gabi
-- Martin Vidner, YaST developer http://en.opensuse.org/User:Mvidner Kuracke oddeleni v restauraci je jako fekalni oddeleni v bazenu -- To unsubscribe, e-mail: yast-devel+unsubscribe@opensuse.org For additional commands, e-mail: yast-devel+help@opensuse.org
On Mon, Jan 07, 2008 at 02:33:45PM +0100, Martin Vidner wrote:
Well, the draft style guide that collapsed under its own weight did have a chapter exactly for this, and we based the F keys on it. The referenced link no longer works, but let me dig up an old copy of that chapter...
All dialogs should provide function keys for the text mode (see http://w3.suse.de/~sigi/YSG/Control-of-ncurses.html).
Attached. -- Martin Vidner, YaST developer http://en.opensuse.org/User:Mvidner Kuracke oddeleni v restauraci je jako fekalni oddeleni v bazenu
Hi, wow! Having unified hot keys for ncurses is really cool! Thanks a lot for implementing it! Enjoy, Martin -- Martin Schmidkunz User Experience Specialist martin.schmidkunz@novell.com +49 (0) 911 740 53-346 ----------------------------------------------------------------- SUSE LINUX Products GmbH, GF: Markus Rex, HRB 16746 (AG Nürnberg) ----------------------------------------------------------------- Novell, Inc. SUSE® Linux Enterprise 10 Your Linux is ready http://www.novell.com/linux -- To unsubscribe, e-mail: yast-devel+unsubscribe@opensuse.org For additional commands, e-mail: yast-devel+help@opensuse.org
participants (3)
-
Katarina Machalkova
-
Martin Schmidkunz
-
Martin Vidner