Author: kmachalkova Date: Fri Mar 7 16:47:04 2008 New Revision: 45297 URL: http://svn.opensuse.org/viewcvs/yast?rev=45297&view=rev Log: obsolete Modified: branches/tmp/bubli/ncurses-pkg/src/NCPackageSelector.cc branches/tmp/bubli/ncurses-pkg/src/NCPackageSelector.h Modified: branches/tmp/bubli/ncurses-pkg/src/NCPackageSelector.cc URL: http://svn.opensuse.org/viewcvs/yast/branches/tmp/bubli/ncurses-pkg/src/NCPackageSelector.cc?rev=45297&r1=45296&r2=45297&view=diff ============================================================================== --- branches/tmp/bubli/ncurses-pkg/src/NCPackageSelector.cc (original) +++ branches/tmp/bubli/ncurses-pkg/src/NCPackageSelector.cc Fri Mar 7 16:47:04 2008 @@ -243,96 +243,6 @@ diskspacePopup = new NCPkgPopupDiskspace( wpos( (NCurses::lines() - 15)/2, NCurses::cols()/6 ), testMode ); } -void NCPackageSelector::createFilterMenu() -{ - bool selections; - bool patterns; - - // create the pattern popup - if ( ! zyppPool().emptyzypp::Pattern() ) - { - - patterns = true; - } - else - { - patterns = false; - } - // create the selections popup - if ( ! zyppPool().emptyzypp::Selection() ) - { - - selections = true; - } - else - { - selections = false; - } - - if ( selections && !patterns ) - { - // ReplaceWidget and show menu entry Selections instead of Patterns - char menu[4000]; - snprintf ( menu, sizeof(menu) - 1, - "`MenuButton( `opt(`key_F4), \"%s\", " - "[`item( `id(\"groups\"), \"%s\" ), `item( `id(\"selections\"), \"%s\" ), " - " `item( `id(\"search\"), \"%s\" ), `item( `id(\"installed\"), \"%s\" ), " - " `item( `id(\"whatif\"), \"%s\" ), `item( `id(\"updatelist\"), \"%s\" ) ] ) ", - NCPkgNames::MenuFilter().c_str(), - NCPkgNames::MenuEntryRPMGroups().c_str(), - NCPkgNames::MenuEntrySelections().c_str(), - NCPkgNames::MenuEntrySearch().c_str(), - NCPkgNames::MenuEntryInstPkg().c_str() , - NCPkgNames::MenuEntryInstSummary().c_str(), - NCPkgNames::MenuEntryUpdateList().c_str() - ); - - Parser parser( menu ); - YCodePtr parsed_code = parser.parse (); - YCPValue layout = YCPNull (); - if (parsed_code != NULL) - layout = parsed_code->evaluate(); - if ( !layout.isNull() ) - { -#warning FIXME: Dependency on YCP UI! - // Also don't forget to remove the #include YCP_UI above - YCP_UI::ReplaceWidget( YCPSymbol("replacefilter"), layout->asTerm() ); - } - - } - else if ( patterns && selections ) - { - // ReplaceWidget and show menu entries Patterns AND Selections - char menu[4000]; - snprintf ( menu, sizeof(menu) - 1, - "`MenuButton(`opt(`key_F4), \"%s\", " - "[`item( `id(\"groups\"), \"%s\" ), `item( `id(\"patterns\"), \"%s\" ), " - " `item( `id(\"selections\"), \"%s\" ), " - " `item( `id(\"search\"), \"%s\" ), `item( `id(\"installed\"), \"%s\" ), " - " `item( `id(\"whatif\"), \"%s\" ), `item( `id(\"updatelist\"), \"%s\" ) ] ) ", - NCPkgNames::MenuFilter().c_str(), - NCPkgNames::MenuEntryRPMGroups().c_str(), - NCPkgNames::MenuEntryPatterns().c_str(), - NCPkgNames::MenuEntrySelections().c_str(), - NCPkgNames::MenuEntrySearch().c_str(), - NCPkgNames::MenuEntryInstPkg().c_str() , - NCPkgNames::MenuEntryInstSummary().c_str(), - NCPkgNames::MenuEntryUpdateList().c_str() - ); - - Parser parser( menu ); - YCodePtr parsed_code = parser.parse (); - YCPValue layout = YCPNull (); - if (parsed_code != NULL) - layout = parsed_code->evaluate(); - if ( !layout.isNull() ) - { -#warning FIXME: Dependency on YCP UI! - // Also don't forget to remove the #include YCP_UI above - YCP_UI::ReplaceWidget( YCPSymbol("replacefilter"), layout->asTerm() ); - } - } -} /////////////////////////////////////////////////////////////////// // Modified: branches/tmp/bubli/ncurses-pkg/src/NCPackageSelector.h URL: http://svn.opensuse.org/viewcvs/yast/branches/tmp/bubli/ncurses-pkg/src/NCPackageSelector.h?rev=45297&r1=45296&r2=45297&view=diff ============================================================================== --- branches/tmp/bubli/ncurses-pkg/src/NCPackageSelector.h (original) +++ branches/tmp/bubli/ncurses-pkg/src/NCPackageSelector.h Fri Mar 7 16:47:04 2008 @@ -460,8 +460,6 @@ * @return bool */ bool showLicenseAgreement( ZyppSel & slbPtr , string licenseText ); - - void createFilterMenu(); /** * Get list of packages already selected for automatic changes -- To unsubscribe, e-mail: yast-commit+unsubscribe@opensuse.org For additional commands, e-mail: yast-commit+help@opensuse.org