Author: aschnell
Date: Thu Apr 17 16:41:57 2008
New Revision: 46793
URL: http://svn.opensuse.org/viewcvs/yast?rev=46793&view=rev
Log:
- tables everywhere
Modified:
branches/tmp/aschnell/part-redesign/storage/src/include/ep-all.ycp
branches/tmp/aschnell/part-redesign/storage/src/include/ep-hd.ycp
branches/tmp/aschnell/part-redesign/storage/src/include/ep-lvm.ycp
Modified: branches/tmp/aschnell/part-redesign/storage/src/include/ep-all.ycp
URL: http://svn.opensuse.org/viewcvs/yast/branches/tmp/aschnell/part-redesign/storage/src/include/ep-all.ycp?rev=46793&r1=46792&r2=46793&view=diff
==============================================================================
--- branches/tmp/aschnell/part-redesign/storage/src/include/ep-all.ycp (original)
+++ branches/tmp/aschnell/part-redesign/storage/src/include/ep-all.ycp Thu Apr 17 16:41:57 2008
@@ -14,6 +14,9 @@
symbol predicate_all(map disk, map partition)
{
+ return `showandfollow;
+
+ /*
if (filter_ == `unused)
return predicate_unused(disk, partition);
@@ -39,12 +42,12 @@
{
return `show;
}
+ */
}
list<symbol> fields = StorageFields::Filter([ `device, `size, `format, `type,
- `mount_point, `mount_by, `start_cyl,
- `end_cyl, `used_by ]);
+ `mount_point, `mount_by, `used_by ]);
void CreateAllPanel(any user_data)
@@ -61,6 +64,8 @@
Greasemonkey::Transform(
`VBox(
`Left(`Heading( sformat(_("Available Storage on %1"), short_hostname))),
+
+ /*
`HBox(`HStretch(),
`ComboBoxSelected(`id(`filter), `opt(`notify), "Show",
[`item(`id(`all), "All"),
@@ -72,6 +77,8 @@
`item(`id(`nfs), "NFS"),
`item(`id(`unused), "Unused Devices")],
`id(filter_))),
+ */
+
`Table(`id(`table), `opt(`keepSorting),
header, table_list)
)));
Modified: branches/tmp/aschnell/part-redesign/storage/src/include/ep-hd.ycp
URL: http://svn.opensuse.org/viewcvs/yast/branches/tmp/aschnell/part-redesign/storage/src/include/ep-hd.ycp?rev=46793&r1=46792&r2=46793&view=diff
==============================================================================
--- 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 17 16:41:57 2008
@@ -13,50 +13,70 @@
include "partitioning/ep-hd-lib.ycp";
+ symbol predicate_hd(map disk, map partition)
+ {
+ if (partition == nil)
+ {
+ if (contains([`CT_DMRAID, `CT_DISK], disk["type"]:`CT_UNKNOWN))
+ return `showandfollow;
+ else
+ return `ignore;
+ }
+ else
+ {
+ return `show;
+ }
+ }
+
+
void CreateHdMainPanel(any user_data)
{
- term frames = `VStackFrames();
+ list<symbol> fields = StorageFields::Filter([ `device, `size, `format,
+ `type, `mount_point, `mount_by,
+ `start_cyl, `end_cyl, `used_by ]);
- frames = add(frames, `Frame(_("Detection"),
- `VBox(
- `HStretch(),
- `Left(`PushButton(`id(`rescan), _("Rescan Disks")))
- )
- ));
-
- term tmp = `VBox(
- `HStretch(),
- `Left(`PushButton(`id(`iscsi), _("Configure &iSCSI..."))),
- `Left(`PushButton(`id(`multipath), _("Configure &Multipath...")))
+ term header = StorageFields::TableHeader(fields);
+
+ map