[yast-commit] r46950 - in /branches/tmp/aschnell/part-redesign/storage/src: include/ep-all.ycp include/ep-hd.ycp include/ep-lvm.ycp include/ep-main.ycp include/ep-raid.ycp modules/TabPanel.ycp modules/TreePanel.ycp
Author: aschnell Date: Tue Apr 22 14:48:38 2008 New Revision: 46950 URL: http://svn.opensuse.org/viewcvs/yast?rev=46950&view=rev Log: - use symbol instead of any for widget 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 branches/tmp/aschnell/part-redesign/storage/src/include/ep-main.ycp branches/tmp/aschnell/part-redesign/storage/src/include/ep-raid.ycp branches/tmp/aschnell/part-redesign/storage/src/modules/TabPanel.ycp branches/tmp/aschnell/part-redesign/storage/src/modules/TreePanel.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=46950&r1=46949&r2=46950&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 Tue Apr 22 14:48:38 2008 @@ -87,7 +87,7 @@ } - void HandleAllPanel(any user_data, any widget) + void HandleAllPanel(any user_data, symbol widget) { /* if (widget == `filter) 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=46950&r1=46949&r2=46950&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 Tue Apr 22 14:48:38 2008 @@ -93,7 +93,7 @@ } - void HandleHdMainPanel(any user_data, any widget) + void HandleHdMainPanel(any user_data, symbol widget) { void CallConfig(string text, list<string> pkgs, string call) { @@ -181,7 +181,7 @@ } - void HandleHdDiskOverviewTab(any user_data, any widget) + void HandleHdDiskOverviewTab(any user_data, symbol widget) { string disk_device = (string) user_data; @@ -262,7 +262,7 @@ } - void HandleHdDiskPartitionsTab(any user_data, any widget) + void HandleHdDiskPartitionsTab(any user_data, symbol widget) { string disk_device = (string) user_data; string part_device = (string) UI::QueryWidget(`id(`table), `CurrentItem); @@ -320,7 +320,7 @@ } - void HandleHdDiskPanel(any user_data, any widget) + void HandleHdDiskPanel(any user_data, symbol widget) { TabPanel::Handle(widget); } @@ -353,7 +353,7 @@ } - void HandleHdPartitionPanel(any user_data, any widget) + void HandleHdPartitionPanel(any user_data, symbol widget) { string part_device = (string) user_data; Modified: branches/tmp/aschnell/part-redesign/storage/src/include/ep-lvm.ycp URL: http://svn.opensuse.org/viewcvs/yast/branches/tmp/aschnell/part-redesign/storage/src/include/ep-lvm.ycp?rev=46950&r1=46949&r2=46950&view=diff ============================================================================== --- branches/tmp/aschnell/part-redesign/storage/src/include/ep-lvm.ycp (original) +++ branches/tmp/aschnell/part-redesign/storage/src/include/ep-lvm.ycp Tue Apr 22 14:48:38 2008 @@ -56,7 +56,7 @@ } - void HandleLvmMainPanel(any user_data, any widget) + void HandleLvmMainPanel(any user_data, symbol widget) { if (widget == `create_vg) { @@ -96,12 +96,12 @@ } - void HandleLvmVgOverviewTab(any user_data, any widget) + void HandleLvmVgOverviewTab(any user_data, symbol widget) { string device = (string) user_data; string vgname = substring(device, 5); - switch ((symbol) widget) + switch (widget) { case `resize: { @@ -167,7 +167,7 @@ } - void HandleLvmVgLvsTab(any user_data, any widget) + void HandleLvmVgLvsTab(any user_data, symbol widget) { string vg_device = (string) user_data; string lv_device = (string) UI::QueryWidget(`id(`table), `CurrentItem); @@ -263,7 +263,7 @@ } - void HandleLvmVgPanel(any user_data, any widget) + void HandleLvmVgPanel(any user_data, symbol widget) { TabPanel::Handle(widget); } @@ -293,7 +293,7 @@ } - void HandleLvmLvPanel(any user_data, any widget) + void HandleLvmLvPanel(any user_data, symbol widget) { string device = (string) user_data; 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=46950&r1=46949&r2=46950&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 Tue Apr 22 14:48:38 2008 @@ -207,13 +207,11 @@ TreePanel::Init(data); - any widget = nil; + symbol widget = nil; repeat { - // causes flickering in ncurses (see bnc #371807) - // widget = Wizard::TimeoutUserInput(1000); - widget = Wizard::UserInput(); + widget = (symbol) Wizard::UserInput(); TreePanel::Handle(widget); Modified: branches/tmp/aschnell/part-redesign/storage/src/include/ep-raid.ycp URL: http://svn.opensuse.org/viewcvs/yast/branches/tmp/aschnell/part-redesign/storage/src/include/ep-raid.ycp?rev=46950&r1=46949&r2=46950&view=diff ============================================================================== --- branches/tmp/aschnell/part-redesign/storage/src/include/ep-raid.ycp (original) +++ branches/tmp/aschnell/part-redesign/storage/src/include/ep-raid.ycp Tue Apr 22 14:48:38 2008 @@ -32,7 +32,7 @@ } - void HandleRaidMainPanel(any user_data, any widget) + void HandleRaidMainPanel(any user_data, symbol widget) { if (widget == `create_raid) { @@ -64,7 +64,7 @@ } - void HandleRaidOverviewTab(any user_data, any widget) + void HandleRaidOverviewTab(any user_data, symbol widget) { string part_device = (string) user_data; @@ -142,7 +142,7 @@ } - void HandleRaidPanel(any user_data, any widget) + void HandleRaidPanel(any user_data, symbol widget) { TabPanel::Handle(widget); } Modified: branches/tmp/aschnell/part-redesign/storage/src/modules/TabPanel.ycp URL: http://svn.opensuse.org/viewcvs/yast/branches/tmp/aschnell/part-redesign/storage/src/modules/TabPanel.ycp?rev=46950&r1=46949&r2=46950&view=diff ============================================================================== --- branches/tmp/aschnell/part-redesign/storage/src/modules/TabPanel.ycp (original) +++ branches/tmp/aschnell/part-redesign/storage/src/modules/TabPanel.ycp Tue Apr 22 14:48:38 2008 @@ -23,7 +23,7 @@ void CallCreate() { - map tmp = (map) data[current_item]:nil; + map tmp = data[current_item]:nil; void(any) create_func = (void(any)) tmp[`create]:nil; if (create_func != nil) { @@ -32,10 +32,10 @@ } } - void CallHandle(any widget) + void CallHandle(symbol widget) { - map tmp = (map) data[current_item]:nil; - void(any, any) handle_func = (void(any, any)) tmp[`handle]:nil; + map tmp = data[current_item]:nil; + void(any, any) handle_func = (void(any, symbol)) tmp[`handle]:nil; if (handle_func != nil) { any user_data = tmp[`user_data]:nil; @@ -45,7 +45,7 @@ void CallDestroy() { - map tmp = (map) data[current_item]:nil; + map tmp = data[current_item]:nil; void(any) destroy_func = (void(any)) tmp[`destroy]:nil; if (destroy_func != nil) { @@ -88,11 +88,11 @@ CallCreate(); } - global void Handle(any widget) + global void Handle(symbol widget) { if (!UI::HasSpecialWidget(`DumbTab)) { if (widget == `tab) - widget = UI::QueryWidget(`tab, `Value); + widget = (symbol) UI::QueryWidget(`tab, `Value); } if (haskey(data, widget)) @@ -100,7 +100,7 @@ if (widget != current_item) { CallDestroy(); - current_item = (symbol) widget; + current_item = widget; AddToHistory(); CallCreate(); } Modified: branches/tmp/aschnell/part-redesign/storage/src/modules/TreePanel.ycp URL: http://svn.opensuse.org/viewcvs/yast/branches/tmp/aschnell/part-redesign/storage/src/modules/TreePanel.ycp?rev=46950&r1=46949&r2=46950&view=diff ============================================================================== --- branches/tmp/aschnell/part-redesign/storage/src/modules/TreePanel.ycp (original) +++ branches/tmp/aschnell/part-redesign/storage/src/modules/TreePanel.ycp Tue Apr 22 14:48:38 2008 @@ -21,7 +21,7 @@ void CallCreate() { - map tmp = (map) data[current_item]:nil; + map tmp = data[current_item]:nil; void(any) create_func = (void(any)) tmp[`create]:nil; if (create_func != nil) { @@ -30,10 +30,10 @@ } } - void CallHandle(any widget) + void CallHandle(symbol widget) { - map tmp = (map) data[current_item]:nil; - void(any, any) handle_func = (void(any, any)) tmp[`handle]:nil; + map tmp = data[current_item]:nil; + void(any, symbol) handle_func = (void(any, symbol)) tmp[`handle]:nil; if (handle_func != nil) { any user_data = tmp[`user_data]:nil; @@ -43,7 +43,7 @@ void CallDestroy() { - map tmp = (map) data[current_item]:nil; + map tmp = data[current_item]:nil; void(any) destroy_func = (void(any)) tmp[`destroy]:nil; if (destroy_func != nil) { @@ -100,7 +100,7 @@ * Handle user input by either switching the panel or delegating the input * to the selected panel. */ - global void Handle(any widget) + global void Handle(symbol widget) { if (widget == `tree) { -- To unsubscribe, e-mail: yast-commit+unsubscribe@opensuse.org For additional commands, e-mail: yast-commit+help@opensuse.org
participants (1)
-
aschnell@svn.opensuse.org