Author: kmachalkova
Date: Wed Mar 5 15:54:24 2008
New Revision: 45219
URL: http://svn.opensuse.org/viewcvs/yast?rev=45219&view=rev
Log:
Replacing pkg info text with versions table and
vice versa finally works. Cow-a-bungaaaaaa!
Modified:
branches/tmp/bubli/ncurses-pkg/src/NCPackageSelector.cc
branches/tmp/bubli/ncurses-pkg/src/NCPackageSelector.h
branches/tmp/bubli/ncurses-pkg/src/NCPkgMenuView.cc
branches/tmp/bubli/ncurses-pkg/src/NCPkgMenuView.h
branches/tmp/bubli/ncurses-pkg/src/NCPkgPackageDetails.cc
branches/tmp/bubli/ncurses-pkg/src/NCPkgPackageDetails.h
branches/tmp/bubli/ncurses-pkg/src/NCPkgTable.cc
branches/tmp/bubli/ncurses-pkg/src/NCPkgTable.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=45219&r1=45218&r2=45219&view=diff
==============================================================================
--- branches/tmp/bubli/ncurses-pkg/src/NCPackageSelector.cc (original)
+++ branches/tmp/bubli/ncurses-pkg/src/NCPackageSelector.cc Wed Mar 5 15:54:24 2008
@@ -122,11 +122,7 @@
, updatelistItem( 0 )
, actionMenu( 0 )
, infoMenu( 0 )
- , pkginfoItem( 0 )
- , longdescrItem( 0 )
, versionsItem( 0 )
- , filesItem( 0 )
- , relationsItem( 0 )
, patchdescrItem( 0 )
, patchpkgsItem( 0 )
, pkgversionsItem( 0 )
@@ -694,12 +690,12 @@
if ( checkProvides )
{
zypp::CapSet value = pkg->dep (zypp::Dep::PROVIDES);
- provides = createRelLine( value );
+ //provides = createRelLine( value );
}
if ( checkRequires )
{
zypp::CapSet value = pkg->dep (zypp::Dep::REQUIRES);
- requires = createRelLine( value );
+ //requires = createRelLine( value );
}
if ( ( checkName && match( pkg->name(), expr, ignoreCase )) ||
( checkSummary && match( pkg->summary(), expr, ignoreCase) ) ||
@@ -1323,9 +1319,6 @@
return true;
}
-
-
-
///////////////////////////////////////////////////////////////////
//
// InformationHandler
@@ -1334,11 +1327,11 @@
// replaces the currently active package information widget
// ( e.g. by the list of available packages ).
//
-bool NCPackageSelector::InformationHandler( const NCursesEvent& event )
+void NCPackageSelector::replaceInfoText( bool b )
{
NCPkgTable * packageList = PackageList();
- if ( !packageList
+ /*if ( !packageList
|| !event.selection
|| !replacePoint )
{
@@ -1346,30 +1339,18 @@
return false;
}
- YMenuItem * info = event.selection;
+ YMenuItem * info = event.selection;*/
- NCMIL << "Show info: " << info->label() << endl;
+ //NCMIL << "Show info: " << info->label() << endl;
- if ( visibleInfo == info )
- {
- // information selection has not changed
- return true;
- }
+ //if ( pkgList->VisibleInfo() == NCPkgTable::I_Descr )
+ //{
+ // // information selection has not changed
+ // return true;
+ //}
// set visibleInfo
- visibleInfo = info;
-
- if ( infoText )
- {
- // RichText widget remains in place
- if ( ( visibleInfo == longdescrItem ) ||
- ( visibleInfo == filesItem ) ||
- ( visibleInfo == pkginfoItem ) )
- {
- packageList->showInformation( );
- return true;
- }
- }
+ //pkgList->setVisibleInfo(NCPkgTable::I_Versions);
// delete current child of the ReplacePoint
YWidget * replaceChild = replacePoint->firstChild();
@@ -1378,16 +1359,17 @@
if ( replaceChild )
{
oldSize = dynamic_cast(replaceChild)->wGetSize();
+ NCINT << "Je to uplne na picu" << endl;
delete replaceChild;
// reset all info widgets
infoText = 0;
versionsList = 0;
- patchPkgs = 0;
- patchPkgsVersions = 0;
+ //patchPkgs = 0;
+ //patchPkgsVersions = 0;
}
- if ( visibleInfo == versionsItem )
+ if ( b )
{
// show a package table with all available package versions
YTableHeader * tableHeader = new YTableHeader();
@@ -1397,8 +1379,6 @@
if ( versionsList )
{
- versionsList->setSize( oldSize.Sze.W, oldSize.Sze.H );
- versionsList->Redraw();
// set the connection to the NCPackageSelector !!!!
versionsList->setPackager( this );
@@ -1406,11 +1386,15 @@
NCPkgStatusStrategy * strategy = new AvailableStatStrategy();
versionsList->setTableType( NCPkgTable::T_Availables, strategy );
versionsList->fillHeader( );
+ versionsList->setSize( oldSize.Sze.W, oldSize.Sze.H );
+ versionsList->fillAvailableList( packageList->getSelPointer( packageList->getCurrentItem() ) );
+ versionsList->Redraw();
- fillAvailableList( versionsList, packageList->getSelPointer( packageList->getCurrentItem() ) );
+ NCINT << "fakt" << endl;
}
}
// patches
+ #if 0
else if ( visibleInfo == patchpkgsItem )
{
// show a package table with packages belonging to a patch
@@ -1453,26 +1437,25 @@
fillPatchPackages( patchPkgsVersions, packageList->getDataPointer( packageList->getCurrentItem() ), true );
}
}
- #if 0
+ #endif
else
{
// show the rich text widget
- infoText = new NCRichText( replacePoint, " ");
+ infoText = new NCPkgPackageDetails( replacePoint, " ", this);
if ( infoText )
{
infoText->setSize( oldSize.Sze.W, oldSize.Sze.H );
infoText->Redraw();
-
- packageList->showInformation( );
+ NCINT << "zirafa" << endl;
+// packageList->showInformation( );
}
}
- #endif
- packageList->setKeyboardFocus();
+ //packageList->setKeyboardFocus();
- UIMIL << "Change package info to: " << visibleInfo->label() << endl;
- return true;
+ //NCMIL << "Change package info to: " << visibleInfo->label() << endl;
+ //return true;
}
///////////////////////////////////////////////////////////////////
@@ -2093,174 +2076,14 @@
return false;
}
- if ( visibleInfo == longdescrItem )
- {
- // ask the package manager for the description of this package
- zypp::Text value = pkgPtr->description();
- string descr = createDescrText( value );
- NCDBG << "Description: " << descr << endl;
-
- // show the description
- if ( infoText )
- {
- infoText->setValue( descr );
- }
- }
- else if ( visibleInfo == filesItem )
- {
- string text = NCPkgNames::ListOfFiles();
- // the file list is available only for installed packages
- ZyppPkg package = tryCastToZyppPkg (slbPtr->installedObj());
-
- if ( package )
- {
- // get the file list from the package manager/show the list
- list<string> fileList = package->filenames();
- text += createText( fileList, false ) ;
- }
-
- // get the widget id
- if ( infoText )
- {
- infoText->setValue( text );
- }
- }
- else if ( visibleInfo == pkginfoItem )
- {
- string instVersion = "";
- string version = "";
- string text = "";
-
- text += slbPtr->name();
- text += " - ";
-
- text += pkgPtr->summary();
- text += "<br>";
-
- if ( slbPtr->hasBothObjects () )
- {
- ZyppObj io = slbPtr->installedObj ();
- instVersion = io->edition().version();
- instVersion += "-";
- instVersion += io->edition().release();
- ZyppObj co = slbPtr->candidateObj ();
- version = co->edition().version();
- version += "-";
- version += co->edition().release();
- }
- else
- {
- version = pkgPtr->edition().version();
- version += "-";
- version += pkgPtr->edition().release();
- }
-
- text += NCPkgNames::Version();
- text += version;
- if ( instVersion != "" )
- {
- text += " ";
- text += NCPkgNames::InstVersion();
- text += instVersion;
- }
- text += " ";
-
- // show the size
- text += NCPkgNames::Size();
- text += pkgPtr->size().asString();
- text += " ";
-
- ZyppPkg package = tryCastToZyppPkg (pkgPtr);
- if ( package )
- {
- // add the media nr
- text += NCPkgNames::MediaNo();
- char num[5];
- int medianr = package->mediaNr ();
- sprintf( num, "%d", medianr );
- text += num;
- text += "<br>";
-
- // the license
- text += NCPkgNames::License();
- text += package->license();
- text += " ";
- text += "<br>";
-
- // the rpm group
- text += NCPkgNames::RpmGroup();
- text += package->group ();
- text += "<br>";
- }
-
- // show Provides:
- text += NCPkgNames::Provides();
- zypp::CapSet provides = package->dep (zypp::Dep::PROVIDES);
- text += createRelLine(provides);
- text += "<br>";
-
- // show the authors
- if ( package )
- {
- text += NCPkgNames::Authors();
- list<string> authors = package->authors(); // zypp::Package
- text += createText( authors, true );
- }
-
- // show the description
- if ( infoText )
- {
- infoText->setValue( text );
- }
- }
- else if ( visibleInfo == versionsItem )
+ if ( visibleInfo == versionsItem )
{
if ( versionsList )
{
fillAvailableList( versionsList, slbPtr );
}
}
- else if ( visibleInfo == relationsItem )
- {
- string text = "";
- text += slbPtr->name();
- text += " - ";
-
- text += pkgPtr->summary(); // the summary
- text += "<br>";
-
- // show the relations, all of them except provides which is above
- zypp::Dep deptypes[] = {
- zypp::Dep::PREREQUIRES,
- zypp::Dep::REQUIRES,
- zypp::Dep::CONFLICTS,
- zypp::Dep::OBSOLETES,
- zypp::Dep::RECOMMENDS,
- zypp::Dep::SUGGESTS,
- zypp::Dep::FRESHENS,
- zypp::Dep::ENHANCES,
- zypp::Dep::SUPPLEMENTS,
- };
- for (size_t i = 0; i < sizeof (deptypes)/sizeof(deptypes[0]); ++i)
- {
- zypp::Dep deptype = deptypes[i];
- zypp::CapSet relations = pkgPtr->dep (deptype);
- string relline = createRelLine (relations);
- if (!relline.empty ())
- {
- // FIXME: translate
- text += "<b>" + deptype.asString () + ": </b>"
- + relline + "<br>";
- }
- }
-
- // show the package relations
- if ( infoText )
- {
- infoText->setValue( text );
- }
- }
-
+
NCDBG << "Showing package information: " << visibleInfo << endl;
return true;
@@ -2363,65 +2186,6 @@
///////////////////////////////////////////////////////////////////
//
-// createProvides
-//
-string NCPackageSelector::createRelLine( const zypp::CapSet & info )
-{
- string text = "";
- zypp::CapSet::const_iterator
- b = info.begin (),
- e = info.end (),
- it;
- unsigned int i, n = info.size();
-
- for ( it = b, i = 0; it != e; ++it, ++i )
- {
- text = text + (*it).asString();
- if ( i < n - 1 )
- {
- text = text + ", ";
- }
- }
-
- return text;
-}
-
-
-///////////////////////////////////////////////////////////////////
-//
-// createText
-//
-string NCPackageSelector::createText( list<string> info, bool oneline )
-{
- list<string>::iterator it;
- string text = "";
- unsigned int i;
-
- for ( i = 0, it = info.begin(); it != info.end() && i < 1000; ++it, i++ )
- {
- text += (*it);
- if ( i < info.size()-1 )
- {
- if ( oneline && i < 999 )
- {
- text += ", ";
- }
- else
- {
- text += "<br>";
- }
- }
- if ( i == 999 )
- {
- text += "...";
- }
- }
-
- return text;
-}
-
-///////////////////////////////////////////////////////////////////
-//
// showDiskSpace()
//
void NCPackageSelector::showDiskSpace()
@@ -2669,7 +2433,7 @@
fillPatchList( "installable" ); // default: installable patches
// set the visible info to long description
- setVisibleInfo ( longdescrItem );
+ //setVisibleInfo ( longdescrItem );
// show the package description of the current item
pkgList->showInformation ();
@@ -2680,7 +2444,7 @@
{
fillUpdateList();
// set the visible info to package description
- setVisibleInfo ( pkginfoItem );
+ //setVisibleInfo ( pkginfoItem );
// show the package description of the current item
pkgList->showInformation ();
break;
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=45219&r1=45218&r2=45219&view=diff
==============================================================================
--- branches/tmp/bubli/ncurses-pkg/src/NCPackageSelector.h (original)
+++ branches/tmp/bubli/ncurses-pkg/src/NCPackageSelector.h Wed Mar 5 15:54:24 2008
@@ -138,11 +138,7 @@
// information menu and items
NCMenuButton * infoMenu;
- YMenuItem * pkginfoItem;
- YMenuItem * longdescrItem;
YMenuItem * versionsItem;
- YMenuItem * filesItem;
- YMenuItem * relationsItem;
// information menu and items YOU
YMenuItem * patchdescrItem;
@@ -178,8 +174,6 @@
YMenuItem * visibleInfo; // current visible package info (description, file list, ...)
- // internal helper functions (format list of string)
- string createRelLine( const zypp::CapSet & info );
// internal use (copies tree items got from YPkgRpmGroupTagsFilterView)
void cloneTree( YStringTreeItem * parentOrig, YTreeItem * parentClone );
@@ -236,13 +230,19 @@
NCPkgPopupDeps *DepsPopup() { return depsPopup; }
NCPkgPopupDiskspace *diskSpacePopup() { return diskspacePopup; }
YLabel *PackageLabel() { return packageLabel; }
+
NCPkgPackageDetails *InfoText() { return infoText; }
+ void setInfoText ( NCPkgPackageDetails *itext ) { infoText = itext ;}
+
+ NCPkgTable *VersionsList() { return versionsList; }
+ void setVersionsList ( NCPkgTable *table ) { versionsList = table; }
+ YReplacePoint *ReplacePoint() { return replacePoint; }
bool checkNow( bool *ok ) { return depsPopup->showDependencies( NCPkgPopupDeps::S_Solve, ok ); }
bool verifySystem( bool *ok ) { return depsPopup->showDependencies( NCPkgPopupDeps::S_Verify, ok ); }
- /**
+ /**
* Fills the package table with YOU patches matching the filter
* @param filter
* @return bool
@@ -332,7 +332,7 @@
* @param event The Ncurses event
* @return bool
*/
- bool InformationHandler ( const NCursesEvent& event );
+ void replaceInfoText ( bool b );
/**
* Handler function for "OK button pressed"
@@ -437,13 +437,6 @@
bool autoChecking() { return autoCheck; }
/**
- * Creates a text from a list of strings
- * @param oneline true: create one line, items seperated by comma; false: every string is a line
- * @return string The text
- */
- string createText( list<string> info, bool oneline );
-
- /**
* Creates a text from a list of strings which may contain HTML tags
* @param t used to be list, now a single string. but what does it contain?
* @return string The text
Modified: branches/tmp/bubli/ncurses-pkg/src/NCPkgMenuView.cc
URL: http://svn.opensuse.org/viewcvs/yast/branches/tmp/bubli/ncurses-pkg/src/NCPkgMenuView.cc?rev=45219&r1=45218&r2=45219&view=diff
==============================================================================
--- branches/tmp/bubli/ncurses-pkg/src/NCPkgMenuView.cc (original)
+++ branches/tmp/bubli/ncurses-pkg/src/NCPkgMenuView.cc Wed Mar 5 15:54:24 2008
@@ -55,6 +55,7 @@
addItems( items );
}
+
bool NCPkgMenuView::handleEvent ( const NCursesEvent & event)
{
if ( !event.selection)
@@ -72,27 +73,41 @@
return false;
}
- if (event.selection == description)
- {
- pkg->InfoText()->longDescription( pkgPtr );
- pkgList->setVisibleInfo (NCPkgTable::I_Descr);
- }
- else if (event.selection == technical )
- {
- pkg->InfoText()->technicalData( pkgPtr, slbPtr );
- pkgList->setVisibleInfo (NCPkgTable::I_Technical);
- }
- else if (event.selection == files )
+ if (event.selection == versions)
{
- pkg->InfoText()->fileList( slbPtr );
- pkgList->setVisibleInfo (NCPkgTable::I_Files);
+ if ( !pkg->VersionsList() )
+ //replaceInfoText ( NCPkgTable::I_Versions);
+ pkg->replaceInfoText( true );
+ pkgList->setVisibleInfo (NCPkgTable::I_Versions);
+ pkg->VersionsList()->fillAvailableList( slbPtr );
}
- else if (event.selection == deps )
+ else
{
- pkg->InfoText()->dependencyList( pkgPtr, slbPtr );
- pkgList->setVisibleInfo (NCPkgTable::I_Deps);
+ if ( !pkg->InfoText() )
+ pkg->replaceInfoText( false );
+ //replaceInfoText();
+ if (event.selection == description)
+ {
+ if( pkg->ReplacePoint()->firstChild() == pkg->InfoText() )
+ NCINT << "snehulak" << endl;
+ pkg->InfoText()->longDescription( pkgPtr );
+ pkgList->setVisibleInfo (NCPkgTable::I_Descr);
+ }
+ else if (event.selection == technical )
+ {
+ pkg->InfoText()->technicalData( pkgPtr, slbPtr );
+ pkgList->setVisibleInfo (NCPkgTable::I_Technical);
+ }
+ else if (event.selection == files )
+ {
+ pkg->InfoText()->fileList( slbPtr );
+ pkgList->setVisibleInfo (NCPkgTable::I_Files);
+ }
+ else if (event.selection == deps )
+ {
+ pkg->InfoText()->dependencyList( pkgPtr, slbPtr );
+ pkgList->setVisibleInfo (NCPkgTable::I_Deps);
+ }
}
- else
- NCINT << "zatim nic" << endl;
return true;
}
Modified: branches/tmp/bubli/ncurses-pkg/src/NCPkgMenuView.h
URL: http://svn.opensuse.org/viewcvs/yast/branches/tmp/bubli/ncurses-pkg/src/NCPkgMenuView.h?rev=45219&r1=45218&r2=45219&view=diff
==============================================================================
--- branches/tmp/bubli/ncurses-pkg/src/NCPkgMenuView.h (original)
+++ branches/tmp/bubli/ncurses-pkg/src/NCPkgMenuView.h Wed Mar 5 15:54:24 2008
@@ -20,6 +20,8 @@
#include <string>
+#include
+#include
#include "NCurses.h"
#include "NCi18n.h"
#include "NCMenuButton.h"
Modified: branches/tmp/bubli/ncurses-pkg/src/NCPkgPackageDetails.cc
URL: http://svn.opensuse.org/viewcvs/yast/branches/tmp/bubli/ncurses-pkg/src/NCPkgPackageDetails.cc?rev=45219&r1=45218&r2=45219&view=diff
==============================================================================
--- branches/tmp/bubli/ncurses-pkg/src/NCPkgPackageDetails.cc (original)
+++ branches/tmp/bubli/ncurses-pkg/src/NCPkgPackageDetails.cc Wed Mar 5 15:54:24 2008
@@ -210,7 +210,6 @@
};
for (size_t i = 0; i < sizeof (deptypes)/sizeof(deptypes[0]); ++i)
{
- NCINT << "porn.bat" << endl;
zypp::Dep deptype = deptypes[i];
zypp::CapSet relations = pkgPtr->dep (deptype);
string relline = createRelLine (relations);
@@ -225,23 +224,4 @@
setValue (text);
}
-void NCPkgPackageDetails::update( ZyppObj pkgPtr, ZyppSel slbPtr, NCPkgTable::NCPkgTableInfoType mode )
-{
- switch (mode)
- {
- case NCPkgTable::I_Descr:
- longDescription( pkgPtr );
- break;
- case NCPkgTable::I_Technical:
- technicalData( pkgPtr, slbPtr );
- break;
- case NCPkgTable::I_Files:
- fileList( slbPtr );
- break;
- case NCPkgTable::I_Deps:
- dependencyList( pkgPtr, slbPtr );
- break;
- default:
- break;
- }
-}
+
Modified: branches/tmp/bubli/ncurses-pkg/src/NCPkgPackageDetails.h
URL: http://svn.opensuse.org/viewcvs/yast/branches/tmp/bubli/ncurses-pkg/src/NCPkgPackageDetails.h?rev=45219&r1=45218&r2=45219&view=diff
==============================================================================
--- branches/tmp/bubli/ncurses-pkg/src/NCPkgPackageDetails.h (original)
+++ branches/tmp/bubli/ncurses-pkg/src/NCPkgPackageDetails.h Wed Mar 5 15:54:24 2008
@@ -46,7 +46,5 @@
void dependencyList( ZyppObj objPtr, ZyppSel slbPtr );
- void update( ZyppObj pkgPtr, ZyppSel slbPtr, NCPkgTable::NCPkgTableInfoType mode );
-
};
#endif
Modified: branches/tmp/bubli/ncurses-pkg/src/NCPkgTable.cc
URL: http://svn.opensuse.org/viewcvs/yast/branches/tmp/bubli/ncurses-pkg/src/NCPkgTable.cc?rev=45219&r1=45218&r2=45219&view=diff
==============================================================================
--- branches/tmp/bubli/ncurses-pkg/src/NCPkgTable.cc (original)
+++ branches/tmp/bubli/ncurses-pkg/src/NCPkgTable.cc Wed Mar 5 15:54:24 2008
@@ -697,23 +697,23 @@
// createPatchEntry
//
//
-bool NCPkgTable::createPatchEntry ( ZyppPatch patchPtr, ZyppSel selectable )
+bool NCPkgTable::createPatchEntry ( ZyppPatch patchPtr, ZyppSel slb )
{
vector<string> pkgLine;
pkgLine.reserve(5);
- if ( !patchPtr || !selectable )
+ if ( !patchPtr || !slb )
{
NCERR << "No valid patch available" << endl;
return false;
}
- pkgLine.push_back( selectable->name() ); // show the patch name
+ pkgLine.push_back( slb->name() ); // show the patch name
if ( !patchPtr->summary().empty() )
pkgLine.push_back( patchPtr->summary() ); // short description
else
- pkgLine.push_back( selectable->name() ); // name
+ pkgLine.push_back( slb->name() ); // name
pkgLine.push_back( patchPtr->category() ); // patch kind
pkgLine.push_back( patchPtr->edition().asString() ); // patch version
@@ -722,10 +722,10 @@
// pkgLine.push_back( size.asString( 8 ) );
- addLine( selectable->status(), // get the status
+ addLine( slb->status(), // get the status
pkgLine,
patchPtr,
- selectable ); // the corresponding pointer
+ slb ); // the corresponding pointer
return true;
}
@@ -749,8 +749,8 @@
case T_Update:
// show the required package info
//packager->showPackageInformation( objPtr, slbPtr );
- packager->InfoText()->update( objPtr, slbPtr, VisibleInfo() );
- packager->PackageLabel()->setLabel( slbPtr->name() );
+ updateInfo( objPtr, slbPtr, VisibleInfo() );
+ //packager->PackageLabel()->setLabel( slbPtr->name() );
break;
case T_Patches:
// show the patch info
@@ -1036,3 +1036,75 @@
return true;
}
+
+bool NCPkgTable::fillAvailableList ( ZyppSel slb )
+{
+ bool addInstalled = true;
+ if ( !slb )
+ {
+ NCERR << "Package pointer not valid" << endl;
+ return false;
+ }
+
+ // clear the package table
+ itemsCleared ();
+
+ NCDBG << "Number of available packages: " << slb->availableObjs() << endl;
+
+ // show all availables
+ zypp::ui::Selectable::available_iterator
+ b = slb->availableBegin (),
+ e = slb->availableEnd (),
+ it;
+ for (it = b; it != e; ++it)
+ {
+
+ if ( slb->installedObj() &&
+ slb->installedObj()->edition() == (*it)->edition() &&
+ slb->installedObj()->arch() == (*it)->arch() )
+ // FIXME: In future releases, also the vendor will make a difference
+ {
+ addInstalled = false;
+ }
+ createListEntry( tryCastToZyppPkg (*it), slb );
+ }
+ if ( slb->hasInstalledObj() && addInstalled )
+ {
+ createListEntry( tryCastToZyppPkg (slb->installedObj()), slb );
+ }
+
+ // show the package list
+ drawList();
+
+ if ( getNumLines() > 0 )
+ {
+ setCurrentItem( 0 );
+ }
+ NCINT << "jezibaba" << endl;
+ return true;
+
+}
+
+void NCPkgTable::updateInfo( ZyppObj pkgPtr, ZyppSel slbPtr, NCPkgTableInfoType mode )
+{
+ switch (mode)
+ {
+ case I_Descr:
+ packager->InfoText()->longDescription( pkgPtr );
+ break;
+ case I_Technical:
+ packager->InfoText()->technicalData( pkgPtr, slbPtr );
+ break;
+ case I_Files:
+ packager->InfoText()->fileList( slbPtr );
+ break;
+ case I_Deps:
+ packager->InfoText()->dependencyList( pkgPtr, slbPtr );
+ break;
+ case I_Versions:
+ packager->VersionsList()->fillAvailableList( slbPtr );
+ break;
+ default:
+ break;
+ }
+}
Modified: branches/tmp/bubli/ncurses-pkg/src/NCPkgTable.h
URL: http://svn.opensuse.org/viewcvs/yast/branches/tmp/bubli/ncurses-pkg/src/NCPkgTable.h?rev=45219&r1=45218&r2=45219&view=diff
==============================================================================
--- branches/tmp/bubli/ncurses-pkg/src/NCPkgTable.h (original)
+++ branches/tmp/bubli/ncurses-pkg/src/NCPkgTable.h Wed Mar 5 15:54:24 2008
@@ -323,6 +323,10 @@
void setVisibleInfo( NCPkgTableInfoType info) { visibleInfo = info; }
NCPkgTableInfoType VisibleInfo() { return visibleInfo ; }
+
+ bool fillAvailableList ( ZyppSel slb );
+
+ void updateInfo( ZyppObj pkgPtr, ZyppSel slbPtr, NCPkgTableInfoType mode );
};
--
To unsubscribe, e-mail: yast-commit+unsubscribe@opensuse.org
For additional commands, e-mail: yast-commit+help@opensuse.org