Mailinglist Archive: yast-commit (953 mails)

< Previous Next >
[yast-commit] r49574 - /trunk/storage/storage/src/include/custom_part_dialogs.ycp
  • From: aschnell@xxxxxxxxxxxxxxxx
  • Date: Fri, 01 Aug 2008 12:46:54 -0000
  • Message-id: <20080801124654.BC235272CB@xxxxxxxxxxxxxxxx>
Author: aschnell
Date: Fri Aug 1 14:46:54 2008
New Revision: 49574

URL: http://svn.opensuse.org/viewcvs/yast?rev=49574&view=rev
Log:
- use `HelpText option

Modified:
trunk/storage/storage/src/include/custom_part_dialogs.ycp

Modified: trunk/storage/storage/src/include/custom_part_dialogs.ycp
URL:
http://svn.opensuse.org/viewcvs/yast/trunk/storage/storage/src/include/custom_part_dialogs.ycp?rev=49574&r1=49573&r2=49574&view=diff
==============================================================================
--- trunk/storage/storage/src/include/custom_part_dialogs.ycp (original)
+++ trunk/storage/storage/src/include/custom_part_dialogs.ycp Fri Aug 1
14:46:54 2008
@@ -364,32 +364,30 @@
helptext = helptext + add_help ;
});

- UI::OpenDialog( `opt(`decorated),
- `HBox(
- `HWeight(4, `RichText( helptext )),
- `HWeight(7,
- `VBox(
- `HSpacing(50),
- // heading text
- `Left(`Heading(_("File system options:"))),
- `VStretch(),
- `VSpacing(1),
- `HBox(
- `HStretch(),
- `HSpacing(1),
- contents,
- `HStretch(),
- `HSpacing(1)),
- `VSpacing(1),
- `VStretch(),
- `HBox(
- `Bottom(`PushButton(`id(`ok),
- `opt(`default),
- Label::OKButton())),
- `Bottom(
- `PushButton(`id(`cancel),
- Label::CancelButton())))
- ))));
+ UI::OpenDialog(`opt(`decorated),
+ `VBox(
+ `HSpacing(50),
+ // heading text
+ `Left(`Heading(_("File system options:"))),
+ `VStretch(),
+ `VSpacing(1),
+ `HBox(
+ `HStretch(),
+ `HSpacing(1),
+ contents,
+ `HStretch(),
+ `HSpacing(1)),
+ `VSpacing(1),
+ `VStretch(),
+ `HBox(
+ `Left(`PushButton(`id(`help),`opt(`helpButton),
Label::HelpButton())),
+ `Right(`HBox(`PushButton(`id(`ok), `opt(`default),
Label::OKButton()),
+ `PushButton(`id(`cancel),
Label::CancelButton())))
+ )
+ )
+ );
+
+ UI::ChangeWidget(`help, `HelpText, helptext);

foreach(any query_key, map<string, any> option_map, fs_options,
``{
@@ -620,32 +618,30 @@
old_state[opt_list[size(opt_list)-1,`query_key]:""] = arb_opt;
y2milestone( "FstabOptions old_state=%1", old_state );

- UI::OpenDialog( `opt(`decorated),
- `VBox (
- `HSpacing(50),
- // heading text
- `Left(`Heading(_("Fstab options:"))),
- `VStretch(),
- `VSpacing(1),
- `HBox(`HStretch(),
- `HSpacing(1),
- contents,
- `HStretch(),
- `HSpacing(1)),
- `VSpacing(1),
- `VStretch(),
- `HBox(
- `Left(`PushButton(`id(`help),`opt(`helpButton),
Label::HelpButton())),
- `Right(`HBox (
- `PushButton(`id(`ok),
- `opt(`default),
- Label::OKButton()),
- `PushButton(`id(`cancel),
- Label::CancelButton()))
- )
- )
- )
- );
+ UI::OpenDialog(`opt(`decorated),
+ `VBox(
+ `HSpacing(50),
+ // heading text
+ `Left(`Heading(_("Fstab options:"))),
+ `VStretch(),
+ `VSpacing(1),
+ `HBox(`HStretch(),
+ `HSpacing(1),
+ contents,
+ `HStretch(),
+ `HSpacing(1)),
+ `VSpacing(1),
+ `VStretch(),
+ `HBox(
+ `Left(`PushButton(`id(`help),`opt(`helpButton),
Label::HelpButton())),
+ `Right(`HBox(`PushButton(`id(`ok), `opt(`default),
Label::OKButton()),
+ `PushButton(`id(`cancel),
Label::CancelButton()))
+ )
+ )
+ )
+ );
+
+ UI::ChangeWidget(`help, `HelpText, helptext);

if( UI::WidgetExists( `id(`mt_group) ))
{
@@ -706,10 +702,6 @@
{
ret = UI::UserInput();
y2milestone( "FstabOptions ret %1", ret );
- if( ret == `help)
- {
- Popup::LongText(_("Fstab Options Help"), `RichText(helptext),
50,20);
- }
if( ret == "opt_noauto" )
{
if( UI::WidgetExists( `id("opt_user") ))

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

< Previous Next >
This Thread
  • No further messages