Author: aschnell Date: Tue Jun 17 14:07:42 2008 New Revision: 48352 URL: http://svn.opensuse.org/viewcvs/yast?rev=48352&view=rev Log: - some size handling Modified: branches/tmp/aschnell/part-redesign/storage/src/include/ep-dialogs.ycp Modified: branches/tmp/aschnell/part-redesign/storage/src/include/ep-dialogs.ycp URL: http://svn.opensuse.org/viewcvs/yast/branches/tmp/aschnell/part-redesign/storage/src/include/ep-dialogs.ycp?rev=48352&r1=48351&r2=48352&view=diff ============================================================================== --- branches/tmp/aschnell/part-redesign/storage/src/include/ep-dialogs.ycp (original) +++ branches/tmp/aschnell/part-redesign/storage/src/include/ep-dialogs.ycp Tue Jun 17 14:07:42 2008 @@ -38,7 +38,7 @@ sformat(_("Maximum Size (%1)"), tmp)), `LeftRadioButtonWithAttachment(`id(`manual_size), `opt(`notify), _("Manual Size"), `VBox(`id(`manual_size_attachment), - `MinWidth(15, `InputField(`id(`size), `opt(`shrinkable), _("Size"))), + `MinWidth(15, `InputField(`id(`size_input), `opt(`shrinkable), _("Size"))), cyl ) ) @@ -93,6 +93,10 @@ case `manual_size: // TODO + string s = (string) UI::QueryWidget(`id(`size_input), `Value); + integer i = Storage::KmgtStrToByte(s); + integer num_cyl = tointeger(float::ceil(tofloat(i) / tofloat(data["cyl_size"]:1024))); + data["region"] = [ slot[0]:0, num_cyl ]; break; } -- To unsubscribe, e-mail: yast-commit+unsubscribe@opensuse.org For additional commands, e-mail: yast-commit+help@opensuse.org