Author: aschnell Date: Thu Apr 10 15:08:35 2008 New Revision: 46348 URL: http://svn.opensuse.org/viewcvs/yast?rev=46348&view=rev Log: - added dasdfmt button Modified: branches/tmp/aschnell/part-redesign/storage/src/include/ep-hd.ycp Modified: branches/tmp/aschnell/part-redesign/storage/src/include/ep-hd.ycp URL: http://svn.opensuse.org/viewcvs/yast/branches/tmp/aschnell/part-redesign/sto... ============================================================================== --- branches/tmp/aschnell/part-redesign/storage/src/include/ep-hd.ycp (original) +++ branches/tmp/aschnell/part-redesign/storage/src/include/ep-hd.ycp Thu Apr 10 15:08:35 2008 @@ -16,18 +16,18 @@ void CreateHdMainPanel(any user_data) { term tmp = `VBox( - `HStretch(), + `HStretch(), `Left(`PushButton(`id(`iscsi), _("Configure &iSCSI..."))), `Left(`PushButton(`id(`multipath), _("Configure &Multipath..."))) ); - + if (Arch::s390()) { tmp = add(tmp, `PushButton(`id(`dasd), _("Configure DASD..."))); tmp = add(tmp, `PushButton(`id(`zfcp), _("Configure zFCP..."))); tmp = add(tmp, `PushButton(`id(`xpram), _("Configure XPRAM..."))); } - + UI::ReplaceWidget(`tree_panel, Greasemonkey::Transform( `VBox( @@ -59,7 +59,7 @@ void CallConfig(string text, list<string> pkgs, string call) { boolean doit = true; - + if (!Storage::EqualBackupStates("expert-partitioner", "", true)) { doit = Popup::YesNo(text); @@ -185,6 +185,22 @@ map<string, map> tg = Storage::GetTargetMap(); list table_list = StorageFields::TableContents(fields, tg, predicate); + + list<term> expert_cmds = [ + `item(`id(`delete_parttable), + // menu entry text + "Delete Partition &Table and Disk Label") + ]; + + if (Arch::s390()) + { + expert_cmds = add(expert_cmds, + `item(`id(`dasdfmt), + // menu entry text + _("Execute dasd&fmt on the DASD Device")) + ); + } + UI::ReplaceWidget(`tab_panel, `VBox( `Table(`id(`table), `opt(`keepSorting), @@ -196,10 +212,7 @@ `PushButton(`id(`resize), "Resize..."), `PushButton(`id(`delete), "Delete..."), `HStretch(), - `MenuButton("Expert...", - [ - `item( `id (`delete_parttable), "Delete Partition &Table and Disk Label") - ]) + `MenuButton("Expert...", expert_cmds) ) )); } -- To unsubscribe, e-mail: yast-commit+unsubscribe@opensuse.org For additional commands, e-mail: yast-commit+help@opensuse.org