Author: aschnell Date: Wed Oct 22 15:35:33 2008 New Revision: 52434 URL: http://svn.opensuse.org/viewcvs/yast?rev=52434&view=rev Log: - added UI elements for bnc #431583 Modified: trunk/storage/storage/src/include/ep-hd-dialogs.ycp Modified: trunk/storage/storage/src/include/ep-hd-dialogs.ycp URL: http://svn.opensuse.org/viewcvs/yast/trunk/storage/storage/src/include/ep-hd-dialogs.ycp?rev=52434&r1=52433&r2=52434&view=diff ============================================================================== --- trunk/storage/storage/src/include/ep-hd-dialogs.ycp (original) +++ trunk/storage/storage/src/include/ep-hd-dialogs.ycp Wed Oct 22 15:35:33 2008 @@ -117,11 +117,20 @@ // radio button text `LeftRadioButtonWithAttachment(`id(`manual_size), `opt(`notify), _("Custom Size"), `VBox(`id(`manual_size_attachment), - `MinWidth(15, `InputField(`id(`size_input), `opt(`shrinkable), _("Size (e.g. 9.0 MB or 9.0 GB)"))) - ) - ) + `MinWidth(15, `InputField(`id(`size_input), `opt(`shrinkable), + _("Size (e.g. 9.0 MB or 9.0 GB)"))) + )), + // radio button text + `LeftRadioButtonWithAttachment(`id(`manual_region), `opt(`notify), _("Custom Region"), + `VBox(`id(`manual_region_attachment), + `MinWidth(10, `IntField(`id(`start_cyl), `opt(`shrinkable), + _("Start Cylinder"), 0, 1000 /* TODO */, 42)), + `MinWidth(10, `IntField(`id(`end_cyl), `opt(`shrinkable), + _("End Cylinder"), 0, 1000 /* TODO */, 42)) + )) + ) ) - ))); + )); MiniWorkflow::SetContents(Greasemonkey::Transform(contents), MiniWorkflowStepPartitionSizeHelptext()); MiniWorkflow::SetLastStep(data["type"]:`unknown == `extended); @@ -129,6 +138,7 @@ UI::ChangeWidget(`id(`size), `Value, what); UI::ChangeWidget(`id(`manual_size_attachment), `Enabled, what == `manual_size); UI::ChangeWidget(`id(`size_input), `Value, Storage::KByteToHumanString(size_k)); + UI::ChangeWidget(`id(`manual_region_attachment), `Enabled, what == `manual_region); symbol widget = nil; @@ -139,11 +149,18 @@ switch (widget) { case `max_size: - UI::ChangeWidget(`id(`manual_size_attachment), `Enabled, false); + UI::ChangeWidget(`id(`manual_size_attachment), `Enabled, false); + UI::ChangeWidget(`id(`manual_region_attachment), `Enabled, false); break; case `manual_size: UI::ChangeWidget(`id(`manual_size_attachment), `Enabled, true); + UI::ChangeWidget(`id(`manual_region_attachment), `Enabled, false); + break; + + case `manual_region: + UI::ChangeWidget(`id(`manual_size_attachment), `Enabled, false); + UI::ChangeWidget(`id(`manual_region_attachment), `Enabled, true); break; case `next: -- To unsubscribe, e-mail: yast-commit+unsubscribe@opensuse.org For additional commands, e-mail: yast-commit+help@opensuse.org