[yast-commit] r45117 - in /branches/tmp/aschnell/part-redesign/storage/src/include: ep-dialogs.ycp ep-lvm-dialogs.ycp ep-main.ycp lvm_pv_lib.ycp
Author: aschnell
Date: Fri Feb 29 11:05:27 2008
New Revision: 45117
URL: http://svn.opensuse.org/viewcvs/yast?rev=45117&view=rev
Log:
- tiny adjustments
Modified:
branches/tmp/aschnell/part-redesign/storage/src/include/ep-dialogs.ycp
branches/tmp/aschnell/part-redesign/storage/src/include/ep-lvm-dialogs.ycp
branches/tmp/aschnell/part-redesign/storage/src/include/ep-main.ycp
branches/tmp/aschnell/part-redesign/storage/src/include/lvm_pv_lib.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=45117&r1=45116&r2=45117&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 Fri Feb 29 11:05:27 2008
@@ -72,10 +72,10 @@
}
- // TODO: symbols here and resulting content should be identical to the once
+ // TODO: symbols here and resulting content should be identical to the once
// used in MakePartitionList
//
- // TODO: we could use RichText formatting capabilities (but table is only
+ // TODO: we could use RichText formatting capabilities (but table is only
// supported by qt)
term MakeInfo(map data, list<symbol> rows)
{
@@ -94,9 +94,17 @@
ret = ret + "Bus: " + data["bus"]:"" + "\n";
else if (row == `udev_path)
ret = ret + "Path: " + data["udev_path"]:"" + "\n";
- else if (row == `udev_id)
- ret = ret + "ID: " + mergestring(data["udev_id"]:[], " ") + "\n";
- else if (row == `mount_point)
+ else if (row == `udev_id) {
+ if (false) {
+ ret = ret + "ID: " + mergestring(data["udev_id"]:[], " ") + "\n";
+ } else {
+ integer i = 1;
+ foreach(string id, data["udev_id"]:[], {
+ ret = ret + "ID " + i + ": " + id + "\n";
+ i = i + 1;
+ });
+ }
+ } else if (row == `mount_point)
ret = ret + "Mount Point: " + data["mount"]:"" + "\n";
else if (row == `size)
ret = ret + "Size: " + ByteToHumanStringWithZero(data["size_k"]:0*1024) + "\n";
@@ -116,6 +124,8 @@
ret = ret + "File System: " + FileSystems::GetName(data["used_fs"]:`unknown, "unknown") + "\n";
else if (row == `uuid)
ret = ret + "UUID: " + data["uuid"]:"" + "\n";
+ else if (row == `label)
+ ret = ret + "Label: " + data["label"]:"" + "\n";
});
return `Left(`RichText(`opt(`plainText), ret));
Modified: branches/tmp/aschnell/part-redesign/storage/src/include/ep-lvm-dialogs.ycp
URL: http://svn.opensuse.org/viewcvs/yast/branches/tmp/aschnell/part-redesign/storage/src/include/ep-lvm-dialogs.ycp?rev=45117&r1=45116&r2=45117&view=diff
==============================================================================
--- branches/tmp/aschnell/part-redesign/storage/src/include/ep-lvm-dialogs.ycp (original)
+++ branches/tmp/aschnell/part-redesign/storage/src/include/ep-lvm-dialogs.ycp Fri Feb 29 11:05:27 2008
@@ -28,7 +28,10 @@
foreach(string t, ["/dev/hda1", "/dev/hda2", "/dev/hda3", "/dev/hda4", "/dev/hda5",
"/dev/hdb1", "/dev/hdb2", "/dev/hdb3", "/dev/hdb4", "/dev/hdb5",
"/dev/hdb6", "/dev/hdb7", "/dev/hdb8", "/dev/hdb9", "/dev/hdb10" ], {
- candidates_list = add(candidates_list, `item(`id(t), t));
+ if (substring(t, 5, 3) == "hda")
+ candidates_list = add(candidates_list, `item(`id(t), t + " 10.0 GB"));
+ else
+ candidates_list = add(candidates_list, `item(`id(t), t + " 100.0 GB"));
});
*/
Modified: branches/tmp/aschnell/part-redesign/storage/src/include/ep-main.ycp
URL: http://svn.opensuse.org/viewcvs/yast/branches/tmp/aschnell/part-redesign/storage/src/include/ep-main.ycp?rev=45117&r1=45116&r2=45117&view=diff
==============================================================================
--- branches/tmp/aschnell/part-redesign/storage/src/include/ep-main.ycp (original)
+++ branches/tmp/aschnell/part-redesign/storage/src/include/ep-main.ycp Fri Feb 29 11:05:27 2008
@@ -105,7 +105,7 @@
/**
* Sorted call of disk_cb for every disk.
*/
- void GoOverTargetMap(map
participants (1)
-
aschnell@svn.opensuse.org