Author: kmachalkova Date: Tue Jan 29 18:28:27 2008 New Revision: 43981 URL: http://svn.opensuse.org/viewcvs/yast?rev=43981&view=rev Log: Added some function key bindings Modified: trunk/sudo/src/dialog-cmnd.ycp trunk/sudo/src/dialog-host.ycp trunk/sudo/src/dialog-runas.ycp trunk/sudo/src/dialog-spec.ycp trunk/sudo/src/dialogs.ycp Modified: trunk/sudo/src/dialog-cmnd.ycp URL: http://svn.opensuse.org/viewcvs/yast/trunk/sudo/src/dialog-cmnd.ycp?rev=43981&r1=43980&r2=43981&view=diff ============================================================================== --- trunk/sudo/src/dialog-cmnd.ycp (original) +++ trunk/sudo/src/dialog-cmnd.ycp Tue Jan 29 18:28:27 2008 @@ -41,9 +41,9 @@ ), [] ), `HBox( - `PushButton ( `id ( "add_command" ), " " + Label::AddButton() + " "), - `PushButton ( `id ( "edit_command" ), " " + Label::EditButton() + " "), - `PushButton ( `id ( "remove_command" ), " " + Label::RemoveButton() + " ") + `PushButton ( `id ( "add_command" ), `opt(`key_F3), " " + Label::AddButton() + " "), + `PushButton ( `id ( "edit_command" ), `opt(`key_F4), " " + Label::EditButton() + " "), + `PushButton ( `id ( "remove_command" ), `opt(`key_F5), " " + Label::RemoveButton() + " ") ) ); Modified: trunk/sudo/src/dialog-host.ycp URL: http://svn.opensuse.org/viewcvs/yast/trunk/sudo/src/dialog-host.ycp?rev=43981&r1=43980&r2=43981&view=diff ============================================================================== --- trunk/sudo/src/dialog-host.ycp (original) +++ trunk/sudo/src/dialog-host.ycp Tue Jan 29 18:28:27 2008 @@ -41,9 +41,9 @@ `Left(`Label(_("Hostnames or Networks in the Alias"))), `Table(`id("host_alias_members"),`header("Host Names/Networks"),[]), `HBox( - `PushButton ( `id ( "add_host" ), " " + Label::AddButton() + " "), - `PushButton ( `id ( "edit_host" ), " " + Label::EditButton() + " "), - `PushButton ( `id ( "remove_host" ), " " + Label::RemoveButton() + " ") + `PushButton ( `id ( "add_host" ), `opt(`key_F3), " " + Label::AddButton() + " "), + `PushButton ( `id ( "edit_host" ), `opt(`key_F4), " " + Label::EditButton() + " "), + `PushButton ( `id ( "remove_host" ), `opt(`key_F5), " " + Label::RemoveButton() + " ") ) ); Modified: trunk/sudo/src/dialog-runas.ycp URL: http://svn.opensuse.org/viewcvs/yast/trunk/sudo/src/dialog-runas.ycp?rev=43981&r1=43980&r2=43981&view=diff ============================================================================== --- trunk/sudo/src/dialog-runas.ycp (original) +++ trunk/sudo/src/dialog-runas.ycp Tue Jan 29 18:28:27 2008 @@ -56,8 +56,8 @@ `HSquash( `VBox ( `VSpacing(1.1), - `PushButton ( `id ( "add_member" ), `opt ( `hstretch ), " " + Label::AddButton() + " "), - `PushButton ( `id ( "remove_member" ), `opt ( `hstretch ), " " + Label::RemoveButton() + " "), + `PushButton ( `id ( "add_member" ), `opt ( `hstretch, `key_F3), " " + Label::AddButton() + " "), + `PushButton ( `id ( "remove_member" ), `opt ( `hstretch , `key_F5), " " + Label::RemoveButton() + " "), `Empty(`opt(`vstretch)) ) ) Modified: trunk/sudo/src/dialog-spec.ycp URL: http://svn.opensuse.org/viewcvs/yast/trunk/sudo/src/dialog-spec.ycp?rev=43981&r1=43980&r2=43981&view=diff ============================================================================== --- trunk/sudo/src/dialog-spec.ycp (original) +++ trunk/sudo/src/dialog-spec.ycp Tue Jan 29 18:28:27 2008 @@ -56,9 +56,9 @@ ), `Table(`id("commands"),`header(_("Command"), _("Parameters")),[]), `HBox( - `PushButton ( `id ( "command_add" ), " " + Label::AddButton() + " "), - `PushButton ( `id ( "command_edit" ), " " + Label::EditButton() + " "), - `PushButton ( `id ( "command_remove" ), " " + Label::RemoveButton() + " ") + `PushButton ( `id ( "command_add" ), `opt(`key_F3), " " + Label::AddButton() + " "), + `PushButton ( `id ( "command_edit" ), `opt(`key_F4), " " + Label::EditButton() + " "), + `PushButton ( `id ( "command_remove" ), `opt(`key_F5), " " + Label::RemoveButton() + " ") ) ); Modified: trunk/sudo/src/dialogs.ycp URL: http://svn.opensuse.org/viewcvs/yast/trunk/sudo/src/dialogs.ycp?rev=43981&r1=43980&r2=43981&view=diff ============================================================================== --- trunk/sudo/src/dialogs.ycp (original) +++ trunk/sudo/src/dialogs.ycp Tue Jan 29 18:28:27 2008 @@ -316,9 +316,9 @@ ), [] ), `HBox ( - `PushButton(`id("add_spec")," " + Label::AddButton() + " "), - `PushButton(`id("edit_spec")," " + Label::EditButton() + " "), - `PushButton(`id("delete_spec")," " + Label::DeleteButton() + " ") + `PushButton(`id("add_spec"), `opt(`key_F3), " " + Label::AddButton() + " "), + `PushButton(`id("edit_spec"), `opt(`key_F4), " " + Label::EditButton() + " "), + `PushButton(`id("delete_spec"),`opt(`key_F5), " " + Label::DeleteButton() + " ") ) ), "caption" : sudo_caption + ": " + _("Rules for sudo"), @@ -335,9 +335,9 @@ ), [] ), `HBox ( - `PushButton(`id("add_user_alias")," " + Label::AddButton() + " "), - `PushButton(`id("edit_user_alias")," " + Label::EditButton() + " "), - `PushButton(`id("delete_user_alias")," " + Label::DeleteButton() + " ") + `PushButton(`id("add_user_alias"), `opt(`key_F3), " " + Label::AddButton() + " "), + `PushButton(`id("edit_user_alias"), `opt(`key_F4), " " + Label::EditButton() + " "), + `PushButton(`id("delete_user_alias"), `opt(`key_F5), " " + Label::DeleteButton() + " ") ) ), @@ -355,9 +355,9 @@ ), [] ), `HBox ( - `PushButton(`id("add_runas_alias")," " + Label::AddButton() + " "), - `PushButton(`id("edit_runas_alias")," " + Label::EditButton() + " "), - `PushButton(`id("delete_runas_alias")," " + Label::DeleteButton() + " ") + `PushButton(`id("add_runas_alias"), `opt(`key_F3), " " + Label::AddButton() + " "), + `PushButton(`id("edit_runas_alias"), `opt(`key_F4), " " + Label::EditButton() + " "), + `PushButton(`id("delete_runas_alias"), `opt(`key_F5), " " + Label::DeleteButton() + " ") ) ), @@ -375,9 +375,9 @@ ), [] ), `HBox ( - `PushButton(`id("add_host_alias")," " + Label::AddButton() + " "), - `PushButton(`id("edit_host_alias")," " + Label::EditButton() + " "), - `PushButton(`id("delete_host_alias")," " + Label::DeleteButton() + " ") + `PushButton(`id("add_host_alias"), `opt(`key_F3), " " + Label::AddButton() + " "), + `PushButton(`id("edit_host_alias"), `opt(`key_F4), " " + Label::EditButton() + " "), + `PushButton(`id("delete_host_alias"), `opt(`key_F5), " " + Label::DeleteButton() + " ") ) ), @@ -395,9 +395,9 @@ ), [] ), `HBox ( - `PushButton(`id("add_command_alias")," " + Label::AddButton() + " "), - `PushButton(`id("edit_command_alias")," " + Label::EditButton() + " "), - `PushButton(`id("delete_command_alias")," " + Label::DeleteButton() + " ") + `PushButton(`id("add_command_alias"), `opt(`key_F3), " " + Label::AddButton() + " "), + `PushButton(`id("edit_command_alias"), `opt(`key_F4), " " + Label::EditButton() + " "), + `PushButton(`id("delete_command_alias"), `opt(`key_F5), " " + Label::DeleteButton() + " ") ) ), @@ -411,12 +411,13 @@ list <string> tree_dialogs = ["user_specs", "user_aliases", "runas_aliases", "host_aliases", "cmnd_aliases"]; + return DialogTree::ShowAndRun ($[ "ids_order" : tree_dialogs, "initial_screen" : initial_screen, "screens" : tabs, "widget_descr" : widgets_handling, - "back_button" : "", + "back_button" : Label::BackButton(), "abort_button" : Label::AbortButton(), "next_button" : Label::FinishButton(), "functions" : functions, -- To unsubscribe, e-mail: yast-commit+unsubscribe@opensuse.org For additional commands, e-mail: yast-commit+help@opensuse.org