Mailinglist Archive: yast-commit (819 mails)

< Previous Next >
[yast-commit] r55015 - in /trunk/autoinstallation: doc/CreateProfileDetails.xml package/autoyast2.changes src/dialogs/ask.ycp
  • From: ug@xxxxxxxxxxxxxxxx
  • Date: Mon, 26 Jan 2009 13:42:00 -0000
  • Message-id: <E1LRRiy-00010U-Gm@xxxxxxxxxxxxxxxx>
Author: ug
Date: Mon Jan 26 14:42:00 2009
New Revision: 55015

URL: http://svn.opensuse.org/viewcvs/yast?rev=55015&view=rev
Log:
label on back/ok button is ask-dialogs can be specified

Modified:
trunk/autoinstallation/doc/CreateProfileDetails.xml
trunk/autoinstallation/package/autoyast2.changes
trunk/autoinstallation/src/dialogs/ask.ycp

Modified: trunk/autoinstallation/doc/CreateProfileDetails.xml
URL:
http://svn.opensuse.org/viewcvs/yast/trunk/autoinstallation/doc/CreateProfileDetails.xml?rev=55015&r1=55014&r2=55015&view=diff
==============================================================================
--- trunk/autoinstallation/doc/CreateProfileDetails.xml (original)
+++ trunk/autoinstallation/doc/CreateProfileDetails.xml Mon Jan 26 14:42:00 2009
@@ -3230,6 +3230,18 @@

<para><screen>&lt;script&gt;...&lt;/script&gt;</screen></para></entry>
<entry>optional (default is no script)</entry>
</row>
+ <row>
+ <entry>ok_label (available in openSUSE 11.2 (not
SLES11)</entry>
+ <entry>You can change the Label on the "Ok" button. The last
element that specifies the label for a dialog wins.
+
<para><screen>&lt;ok_label&gt;Finish&lt;/ok_label&gt;</screen></para></entry>
+ <entry>optional</entry>
+ </row>
+ <row>
+ <entry>back_label (available in openSUSE 11.2 (not
SLES11)</entry>
+ <entry>You can change the Label on the "Back" button. The last
element that specifies the label for a dialog wins.
+
<para><screen>&lt;back_label&gt;Finish&lt;/back_label&gt;</screen></para></entry>
+ <entry>optional</entry>
+ </row>
</tbody>
</tgroup>


Modified: trunk/autoinstallation/package/autoyast2.changes
URL:
http://svn.opensuse.org/viewcvs/yast/trunk/autoinstallation/package/autoyast2.changes?rev=55015&r1=55014&r2=55015&view=diff
==============================================================================
--- trunk/autoinstallation/package/autoyast2.changes (original)
+++ trunk/autoinstallation/package/autoyast2.changes Mon Jan 26 14:42:00 2009
@@ -1,4 +1,9 @@
-------------------------------------------------------------------
+Mon Jan 26 14:41:16 CET 2009 - ug@xxxxxxx
+
+- label on back/ok button is ask-dialogs can be specified
+
+-------------------------------------------------------------------
Mon Jan 26 13:55:53 CET 2009 - ug@xxxxxxx

- ask-dialogs can have a new type called "static_text"

Modified: trunk/autoinstallation/src/dialogs/ask.ycp
URL:
http://svn.opensuse.org/viewcvs/yast/trunk/autoinstallation/src/dialogs/ask.ycp?rev=55015&r1=55014&r2=55015&view=diff
==============================================================================
--- trunk/autoinstallation/src/dialogs/ask.ycp (original)
+++ trunk/autoinstallation/src/dialogs/ask.ycp Mon Jan 26 14:42:00 2009
@@ -67,6 +67,8 @@
y2milestone("jumpToDialog %1",jumpToDialog);
string helptext = "";
string title = "";
+ string back_label = Label::BackButton();
+ string ok_label = Label::OKButton();
term dialog_term = `VBox();
term help_term = `Empty();
term title_term = `Empty();
@@ -82,6 +84,8 @@
list< map<string,any> > s = ask["selection"]:[];
helptext = helptext + ask["help"]:"";
title = ask["title"]:"";
+ back_label = ask["back_label"]:back_label;
+ ok_label = ask["ok_label"]:ok_label;
mod = true;

term dlg = `Dummy();
@@ -150,7 +154,7 @@
help_term = `HWeight(30, `RichText( helptext ));
if( title != "" )
title_term = `Heading( title );
- term backButton = `PushButton(`id(`back), Label::BackButton() );
+ term backButton = `PushButton(`id(`back), back_label );
UI::OpenDialog(
`opt(`decorated ),
`HBox(
@@ -168,7 +172,7 @@
`HBox(
`HStretch(),
backButton,
- `PushButton(`id(`ok), Label::OKButton() )
+ `PushButton(`id(`ok), ok_label )
)
)
),

--
To unsubscribe, e-mail: yast-commit+unsubscribe@xxxxxxxxxxxx
For additional commands, e-mail: yast-commit+help@xxxxxxxxxxxx

< Previous Next >
This Thread
  • No further messages