Author: aschnell
Date: Thu Mar 6 15:20:17 2008
New Revision: 45270
URL: http://svn.opensuse.org/viewcvs/yast?rev=45270&view=rev
Log:
- backup commit
Modified:
branches/tmp/aschnell/part-redesign/storage/src/include/ep-all.ycp
branches/tmp/aschnell/part-redesign/storage/src/include/ep-main.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=45270&r1=45269&r2=45270&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 Mar 6 15:20:17 2008
@@ -9,7 +9,7 @@
textdomain "storage";
- any filter_ = `all;
+ symbol filter_ = `all;
symbol predicate_unused(map disk, map part)
@@ -73,8 +73,8 @@
{
term header = StorageFields::TableHeader(fields);
- map tg = Storage::GetTargetMap();
- list table_list = StorageFields::TableContent(fields, tg, predicate_all);
+ map target_map = Storage::GetTargetMap();
+ list table_list = StorageFields::TableContent(fields, target_map, predicate_all);
UI::ReplaceWidget(`tree_panel,
`VBox(
@@ -91,30 +91,25 @@
`item(`id(`unused), "Unused Devices")],
`id(filter_)))),
`Table(`id(`table), `opt(`keepSorting),
- header, table_list
- )
+ header, table_list)
));
- Wizard::RestoreHelp("Help about view with all devices");
- }
+ Wizard::RestoreHelp("Help about view with all devices");
+ }
void HandleAllPanel(any user_data, any widget)
{
if (widget == `filter)
{
- filter_ = UI::QueryWidget(`filter, `Value);
-
- map tg = Storage::GetTargetMap();
- list table_list = StorageFields::TableContent(fields, tg, predicate_all);
-
- UI::ChangeWidget(`table, `Items, table_list);
+ symbol old_filter = filter_;
+ filter_ = (symbol) UI::QueryWidget(`filter, `Value);
+ if (old_filter != filter_)
+ {
+ map target_map = Storage::GetTargetMap();
+ list table_list = StorageFields::TableContent(fields, target_map, predicate_all);
+ UI::ChangeWidget(`table, `Items, table_list);
+ }
}
}
-
-
- void SaveAllPanel(any user_data)
- {
- filter_ = UI::QueryWidget(`filter, `Value);
- }
}
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=45270&r1=45269&r2=45270&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 Thu Mar 6 15:20:17 2008
@@ -55,7 +55,9 @@
list<term> MakeNavigationTree()
{
- data = $[ `all : $[ `create : CreateAllPanel, `handle : HandleAllPanel, `save : SaveAllPanel ],
+ // TODO: somehow use AlwaysHideDisk and AlwaysHidePartition
+
+ data = $[ `all : $[ `create : CreateAllPanel, `handle : HandleAllPanel ],
`hd : $[ `create : CreateHdMainPanel, `handle : HandleHdMainPanel ],
`lvm : $[ `create : CreateLvmMainPanel, `handle : HandleLvmMainPanel ],
`md : $[ `create : CreateRaidMainPanel, `handle : HandleRaidMainPanel ],
@@ -91,7 +93,7 @@
}
- void disk_cb(map targets, map disk)
+ void callback(map target_map, map disk)
{
string device = disk["device"]:"";
symbol type = disk["type"]:`CT_UNKNOWN;
@@ -120,7 +122,7 @@
map tg = Storage::GetTargetMap();
- StorageFields::IterateTargetMap(tg, disk_cb);
+ StorageFields::IterateTargetMap(tg, callback);
list<term> tree = [ `item(`id(`all), "pandora", [
`item(`id(`hd), "Hard Disks", subtree[`hd]:[]),
--
To unsubscribe, e-mail: yast-commit+unsubscribe@opensuse.org
For additional commands, e-mail: yast-commit+help@opensuse.org