[yast-commit] r49395 - in /branches/tmp/aschnell/part-redesign/storage/src: include/ep-hd.ycp include/ep-lvm.ycp include/ep-raid.ycp modules/TabPanel.ycp
Author: aschnell Date: Thu Jul 24 15:19:03 2008 New Revision: 49395 URL: http://svn.opensuse.org/viewcvs/yast?rev=49395&view=rev Log: - removed DumbTab workaround Modified: 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-raid.ycp branches/tmp/aschnell/part-redesign/storage/src/modules/TabPanel.ycp 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=49395&r1=49394&r2=49395&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 Jul 24 15:19:03 2008 @@ -333,11 +333,11 @@ Greasemonkey::Transform( `VBox( `IconAndHeading(sformat(_("Hard Disk: %1"), device), hd_icon), - TabPanel::DumbTab(`id(`tab), [ - `item(`id(`overview), _("&Overview")), - `item(`id(`partitions), _("&Partitions")) - ], - `ReplacePoint(`id(`tab_panel), TabPanel::empty_panel) + `DumbTab(`id(`tab), [ + `item(`id(`overview), _("&Overview")), + `item(`id(`partitions), _("&Partitions")) + ], + `ReplacePoint(`id(`tab_panel), TabPanel::empty_panel) ) ) )); 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=49395&r1=49394&r2=49395&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 Thu Jul 24 15:19:03 2008 @@ -209,12 +209,12 @@ Greasemonkey::Transform( `VBox( `IconAndHeading(sformat(_("Volume Group: %1"), device), lvm_icon), - TabPanel::DumbTab(`id(`tab), [ - `item(`id(`overview), _("&Overview")), - `item(`id(`lvs), _("&Logical Volumes")), - `item(`id(`pvs), _("&Physical Volumes")) - ], - `ReplacePoint(`id(`tab_panel), TabPanel::empty_panel) + `DumbTab(`id(`tab), [ + `item(`id(`overview), _("&Overview")), + `item(`id(`lvs), _("&Logical Volumes")), + `item(`id(`pvs), _("&Physical Volumes")) + ], + `ReplacePoint(`id(`tab_panel), TabPanel::empty_panel) ) )) ); 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=49395&r1=49394&r2=49395&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 Thu Jul 24 15:19:03 2008 @@ -152,11 +152,11 @@ Greasemonkey::Transform( `VBox( `IconAndHeading(sformat(_("RAID: %1"), device), raid_icon), - TabPanel::DumbTab(`id(`tab), [ - `item(`id(`overview), _("&Overview")), - `item(`id(`devices), _("&Used Devices")) - ], - `ReplacePoint(`id(`tab_panel), TabPanel::empty_panel) + `DumbTab(`id(`tab), [ + `item(`id(`overview), _("&Overview")), + `item(`id(`devices), _("&Used Devices")) + ], + `ReplacePoint(`id(`tab_panel), TabPanel::empty_panel) ) ) ) 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=49395&r1=49394&r2=49395&view=diff ============================================================================== --- branches/tmp/aschnell/part-redesign/storage/src/modules/TabPanel.ycp (original) +++ branches/tmp/aschnell/part-redesign/storage/src/modules/TabPanel.ycp Thu Jul 24 15:19:03 2008 @@ -73,17 +73,9 @@ current_item = find(symbol s, history, { return contains(items, s); }); if (current_item != nil) - { - if (!UI::HasSpecialWidget(`DumbTab)) - UI::ChangeWidget(`tab, `Value, current_item); - else - UI::ChangeWidget(`tab, `CurrentItem, current_item); - } + UI::ChangeWidget(`tab, `CurrentItem, current_item); - if (!UI::HasSpecialWidget(`DumbTab)) - current_item = (symbol) UI::QueryWidget(`tab, `Value); - else - current_item = (symbol) UI::QueryWidget(`tab, `CurrentItem); + current_item = (symbol) UI::QueryWidget(`tab, `CurrentItem); CallCreate(); } @@ -95,11 +87,6 @@ global void Handle(symbol widget) { - if (!UI::HasSpecialWidget(`DumbTab)) { - if (widget == `tab) - widget = (symbol) UI::QueryWidget(`tab, `Value); - } - if (haskey(data, widget)) { if (widget != current_item) @@ -120,16 +107,4 @@ { CallDestroy(); } - - - global term DumbTab(term id, list<term> tabs, term contents) - { - if (!UI::HasSpecialWidget(`DumbTab)) - return `VBox(`Left(`ComboBox(id, `opt(`notify), "DumbTab Workaround", - maplist(term t, tabs, { - return `item(t[0]:nil, deletechars(t[1]:"", "&")); - }))), contents); - else - return `DumbTab(id, tabs, contents); - } } -- 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