Author: lslezak Date: Tue Aug 12 12:03:39 2008 New Revision: 49973 URL: http://svn.opensuse.org/viewcvs/yast?rev=49973&view=rev Log: - select the current dialog in the tree navigation widget when the dialog is changed - help text for the overview dialog - save changes in the overview dialog Modified: trunk/security/src/dialogs.ycp trunk/security/src/helps.ycp trunk/security/src/users.ycp Modified: trunk/security/src/dialogs.ycp URL: http://svn.opensuse.org/viewcvs/yast/trunk/security/src/dialogs.ycp?rev=49973&r1=49972&r2=49973&view=diff ============================================================================== --- trunk/security/src/dialogs.ycp (original) +++ trunk/security/src/dialogs.ycp Tue Aug 12 12:03:39 2008 @@ -117,8 +117,8 @@ define any OverviewDialog() { - /* Boot dialog caption */ - string caption = _("Security Settings"); + /* Overview dialog caption */ + string caption = _("Security Overview"); string help = HELPS["overview"]:""; term contents = `RichText(`id(`rtext), OverviewText()); @@ -129,6 +129,9 @@ Wizard::HideBackButton(); Wizard::SetAbortButton( `abort, Label::CancelButton() ); + // select the dialog in the tree navigation + Wizard::SelectTreeItem("overview"); + any ret = nil; while(true) { ret = UI::UserInput(); @@ -155,6 +158,8 @@ { y2milestone("New value for %1: %2", ret, new_value); Security::Settings[(string)ret] = new_value; + // the config has been changed + Security::SetModified(); UI::ChangeWidget(`id(`rtext), `Value, OverviewText()); } @@ -217,6 +222,9 @@ Wizard::HideBackButton(); Wizard::SetAbortButton( `abort, Label::CancelButton() ); + // select the dialog in the tree navigation + Wizard::SelectTreeItem("boot"); + any ret = nil; while(true) { ret = UI::UserInput(); @@ -275,6 +283,9 @@ Wizard::HideBackButton(); Wizard::SetAbortButton( `abort, Label::CancelButton() ); + // select the dialog in the tree navigation + Wizard::SelectTreeItem("misc"); + any ret = nil; while(true) { ret = UI::UserInput(); @@ -354,6 +365,9 @@ Wizard::HideBackButton(); Wizard::SetAbortButton( `abort, Label::CancelButton() ); + // select the dialog in the tree navigation + Wizard::SelectTreeItem("password"); + any ret = nil; while(true) { ret = UI::UserInput(); @@ -440,6 +454,9 @@ Wizard::HideBackButton(); Wizard::SetAbortButton( `abort, Label::CancelButton() ); + // select the dialog in the tree navigation + Wizard::SelectTreeItem("login"); + any ret = nil; while(true) { ret = UI::UserInput(); Modified: trunk/security/src/helps.ycp URL: http://svn.opensuse.org/viewcvs/yast/trunk/security/src/helps.ycp?rev=49973&r1=49972&r2=49973&view=diff ============================================================================== --- trunk/security/src/helps.ycp (original) +++ trunk/security/src/helps.ycp Tue Aug 12 12:03:39 2008 @@ -228,6 +228,15 @@ will have some control over the system even if it crashes (for example, during kernel debugging). For details, see /usr/src/linux/Documentation/sysrq.txt</p>"), + + // help text: security overview dialog 1/ + "overview" : _("<P><B>Security Overview</B><BR>This is overview of the most important security settings.</P>") + // help text: security overview dialog 1/ + + _("<P>To change the current value click the link associated to the option.</P>") + // help text: security overview dialog 1/ + // check mark = â + + _("<P>Check mark in the <B>Security Status</B> column means that the current value of the option is secure.</P>") + ]; /* EOF */ Modified: trunk/security/src/users.ycp URL: http://svn.opensuse.org/viewcvs/yast/trunk/security/src/users.ycp?rev=49973&r1=49972&r2=49973&view=diff ============================================================================== --- trunk/security/src/users.ycp (original) +++ trunk/security/src/users.ycp Tue Aug 12 12:03:39 2008 @@ -54,6 +54,9 @@ Wizard::HideBackButton(); Wizard::SetAbortButton( `abort, Label::CancelButton() ); + // select the dialog in the tree navigation + Wizard::SelectTreeItem("users"); + any ret = nil; while(true) { ret = UI::UserInput(); -- To unsubscribe, e-mail: yast-commit+unsubscribe@opensuse.org For additional commands, e-mail: yast-commit+help@opensuse.org