Author: kmachalkova Date: Wed Apr 16 17:20:56 2008 New Revision: 46751 URL: http://svn.opensuse.org/viewcvs/yast?rev=46751&view=rev Log: Moving help into pop-up Modified: branches/tmp/aschnell/part-redesign/storage/src/include/custom_part_dialogs.ycp Modified: branches/tmp/aschnell/part-redesign/storage/src/include/custom_part_dialogs.ycp URL: http://svn.opensuse.org/viewcvs/yast/branches/tmp/aschnell/part-redesign/sto... ============================================================================== --- branches/tmp/aschnell/part-redesign/storage/src/include/custom_part_dialogs.ycp (original) +++ branches/tmp/aschnell/part-redesign/storage/src/include/custom_part_dialogs.ycp Wed Apr 16 17:20:56 2008 @@ -29,6 +29,7 @@ import "Mode"; import "Arch"; import "Label"; + import "Popup"; ////////////////////////////////////////////////////////////////////////////// // Dialog Password for Crypted FS @@ -619,33 +620,32 @@ y2milestone( "FstabOptions old_state=%1", old_state ); UI::OpenDialog( `opt(`decorated), - `HBox( - `HWeight(4, `RichText( helptext )), - `HWeight(7, - `VBox( - `HSpacing(50), - // heading text - `Left(`Heading(_("Fstab 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())) - ) - ) - ) - ) + `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())) + ) + ) + ) ); + if( UI::WidgetExists( `id(`mt_group) )) { list no_mountby_type = [ `loop ]; @@ -705,6 +705,10 @@ { 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@opensuse.org For additional commands, e-mail: yast-commit+help@opensuse.org