Author: aschnell
Date: Tue Jun 24 17:50:17 2008
New Revision: 48513
URL: http://svn.opensuse.org/viewcvs/yast?rev=48513&view=rev
Log:
- backup commit
Added:
branches/tmp/aschnell/part-redesign/storage/src/include/ep-dm-lib.ycp
Modified:
branches/tmp/aschnell/part-redesign/storage/src/include/ep-dm.ycp
Added: branches/tmp/aschnell/part-redesign/storage/src/include/ep-dm-lib.ycp
URL: http://svn.opensuse.org/viewcvs/yast/branches/tmp/aschnell/part-redesign/storage/src/include/ep-dm-lib.ycp?rev=48513&view=auto
==============================================================================
--- branches/tmp/aschnell/part-redesign/storage/src/include/ep-dm-lib.ycp (added)
+++ branches/tmp/aschnell/part-redesign/storage/src/include/ep-dm-lib.ycp Tue Jun 24 17:50:17 2008
@@ -0,0 +1,19 @@
+/**
+ * File: ep-dm-lib.ycp
+ * Package: yast2-storage
+ * Summary: Expert Partitioner
+ * Authors: Arvin Schnell
+ */
+{
+ textdomain "storage";
+
+
+ void EpEditDmDevice(string device)
+ {
+ if (true /* DlgEditDmVolume(device) */)
+ {
+ UpdateNavigationTree(nil);
+ TreePanel::Create();
+ }
+ }
+}
Modified: branches/tmp/aschnell/part-redesign/storage/src/include/ep-dm.ycp
URL: http://svn.opensuse.org/viewcvs/yast/branches/tmp/aschnell/part-redesign/storage/src/include/ep-dm.ycp?rev=48513&r1=48512&r2=48513&view=diff
==============================================================================
--- branches/tmp/aschnell/part-redesign/storage/src/include/ep-dm.ycp (original)
+++ branches/tmp/aschnell/part-redesign/storage/src/include/ep-dm.ycp Tue Jun 24 17:50:17 2008
@@ -8,6 +8,10 @@
textdomain "storage";
+ // include "partitioning/ep-dm-dialogs.ycp";
+ include "partitioning/ep-dm-lib.ycp";
+
+
void CreateDmMainPanel(any user_data)
{
symbol Predicate(map disk, map partition)
@@ -15,7 +19,8 @@
return StorageFields::PredicateDiskType(disk, partition, [`CT_DM]);
}
- list<symbol> fields = StorageSettings::FilterTable([ `device, `size, `fs_type, `mount_point ]);
+ list<symbol> fields = StorageSettings::FilterTable([ `device, `size, `format, `type, `mount_point,
+ `mount_by, `used_by ]);
map target_map = Storage::GetTargetMap();
@@ -39,7 +44,7 @@
void CreateDmPanel(any user_data)
{
- string part_device = (string) user_data;
+ string dm_device = (string) user_data;
map target_map = Storage::GetTargetMap();
@@ -50,9 +55,9 @@
UI::ReplaceWidget(`tree_panel,
Greasemonkey::Transform(
`VBox(
- `IconAndHeading(sformat(_("DM: %1"), part_device), dm_icon),
+ `IconAndHeading(sformat(_("DM Device: %1"), dm_device), dm_icon),
`HStretch(),
- StorageFields::Overview(fields, target_map, part_device),
+ StorageFields::Overview(fields, target_map, dm_device),
`HBox(
`PushButton(`id(`edit), _("Edit...")),
`HStretch()
@@ -65,11 +70,12 @@
void HandleDmPanel(any user_data, symbol widget)
{
- string part_device = (string) user_data;
+ string dm_device = (string) user_data;
switch (widget)
{
case `edit:
+ EpEditDmDevice(dm_device);
break;
}
}
--
To unsubscribe, e-mail: yast-commit+unsubscribe@opensuse.org
For additional commands, e-mail: yast-commit+help@opensuse.org