Author: kmachalkova Date: Fri Mar 7 16:41:51 2008 New Revision: 45296 URL: http://svn.opensuse.org/viewcvs/yast?rev=45296&view=rev Log: obsoleted/moved 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=45296&r1=45295&r2=45296&view=diff ============================================================================== --- branches/tmp/bubli/ncurses-pkg/src/NCPackageSelector.cc (original) +++ branches/tmp/bubli/ncurses-pkg/src/NCPackageSelector.cc Fri Mar 7 16:41:51 2008 @@ -493,93 +493,6 @@ /////////////////////////////////////////////////////////////////// // -// setVisibleInfo -// -// currently displayed package information -// -void NCPackageSelector::setVisibleInfo( YMenuItem * info ) -{ - visibleInfo = info; -} - - -/////////////////////////////////////////////////////////////////// -// -// showSelPackages -// -// Fills the package table with the list of packages of the given selection -// -bool NCPackageSelector::showSelPackages( const string & label, const set<string> & wanted ) -{ - NCPkgTable * packageList = PackageList(); - - if ( !packageList ) - { - UIERR << "Widget is not a valid NCPkgTable widget" << endl; - return false; - } - - // clear the package table - packageList->itemsCleared (); - - set<string>::iterator not_found = wanted.end (); - - std::vector<ZyppSel> sorted; - sorted.reserve (wanted.size ()); - - // find the objects for the names - ZyppPoolIterator - b = zyppPkgBegin(), - e = zyppPkgEnd(), - it; - for ( it = b; it != e; ++it ) - { - string name = (*it)->name(); // omitted theObj - - if ( wanted.find (name) != not_found ) - { - ZyppPkg zyppPkg = tryCastToZyppPkg( (*it)->theObj() ); - if ( zyppPkg ) - { - sorted.push_back (*it); - } - } - } - - // sort it and insert it to the list - sort (sorted.begin (), sorted.end (), sortByName); - { - std::vector<ZyppSel>::iterator - b = sorted.begin (), - e = sorted.end (), - it; - for ( it = b; it != e; ++it ) - { - ZyppPkg zyppPkg = tryCastToZyppPkg( (*it)->theObj() ); - // already know that it is valid - packageList->createListEntry( zyppPkg, *it ); - } - } - - // show the package table - packageList->drawList(); - - //if ( ! label.empty() ) - //{ - // NCDBG << "Filter: " << label << endl; - - // // show the selected filter label - // if ( packageLabel ) - // { - // packageLabel->setLabel( label ); - // } - //} - - return true; -} - -/////////////////////////////////////////////////////////////////// -// // fillSearchList // // Fills the package table @@ -1426,7 +1339,6 @@ patternPopup->setSize( oldSize.Sze.W, oldSize.Sze.H ); patternPopup->Redraw(); patternPopup->showSelectionPopup(); - //setVisibleInfo ( pkginfoItem ); //show the package description of the current item pkgList->showInformation (); break; @@ -1438,7 +1350,6 @@ languagePopup->setSize( oldSize.Sze.W, oldSize.Sze.H ); languagePopup->Redraw(); languagePopup->showSelectionPopup(); - //setVisibleInfo ( pkginfoItem ); //show the package description of the current item pkgList->showInformation (); break; @@ -2418,7 +2329,6 @@ fillPatchList( "installable" ); // default: installable patches // set the visible info to long description - //setVisibleInfo ( longdescrItem ); // show the package description of the current item pkgList->showInformation (); @@ -2429,7 +2339,6 @@ { fillUpdateList(); // set the visible info to package description - //setVisibleInfo ( pkginfoItem ); // show the package description of the current item pkgList->showInformation (); break; @@ -2444,7 +2353,6 @@ // filterPopup->fillPackageList ( defaultGroup->value().translation(), defaultGroup ); patternPopup->showSelectionPopup(); // set the visible info to package description - //setVisibleInfo ( pkginfoItem ); pkgList->setVisibleInfo(NCPkgTable::I_Descr); // show the package description of the current item pkgList->showInformation (); 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=45296&r1=45295&r2=45296&view=diff ============================================================================== --- branches/tmp/bubli/ncurses-pkg/src/NCPackageSelector.h (original) +++ branches/tmp/bubli/ncurses-pkg/src/NCPackageSelector.h Fri Mar 7 16:41:51 2008 @@ -398,21 +398,7 @@ */ bool showPatchInformation ( ZyppObj pkgPtr, ZyppSel slbPtr ); - - /** - * Sets the member variable to the currently visible information - * @param info - */ - void setVisibleInfo( YMenuItem * info ); - - /** - * Fills the package table - * @param label The selected selection (the label) - * @param wanted which packages - * @return bool - */ - bool showSelPackages( const string & label, const set<string> & wanted ); - + /** * Updates the status in list of packages */ -- To unsubscribe, e-mail: yast-commit+unsubscribe@opensuse.org For additional commands, e-mail: yast-commit+help@opensuse.org