43 #define YUILogComponent "qt-pkg" 49 #include "YQPkgProductList.h" 60 yuiDebug() <<
"Creating product list" << endl;
64 headers << (
"" ); _statusCol = numCol++;
65 headers << _(
"Product" ); _nameCol = numCol++;
66 headers << _(
"Summary" ); _summaryCol = numCol++;
67 headers << _(
"Version" ); _versionCol = numCol++;
68 headers << _(
"Vendor" ); _vendorCol = numCol++;
70 setColumnCount( numCol );
71 setHeaderLabels(headers);
73 setAllColumnsShowFocus(
true );
76 setSortingEnabled(
true );
77 sortByColumn( nameCol(), Qt::AscendingOrder );
84 yuiDebug() <<
"Creating product list done" << endl;
98 yuiDebug() <<
"Filling product list" << endl;
100 for ( ZyppPoolIterator it = zyppProductsBegin();
101 it != zyppProductsEnd();
104 ZyppProduct zyppProduct = tryCastToZyppProduct( (*it)->theObj() );
112 yuiError() <<
"Found non-product selectable" << endl;
116 yuiDebug() <<
"product list filled" << endl;
117 resizeColumnToContents(_statusCol);
123 ZyppProduct zyppProduct )
127 yuiError() <<
"NULL ZyppSel!" << endl;
141 ZyppProduct zyppProduct )
143 , _productList( productList )
144 , _zyppProduct( zyppProduct )
146 if ( ! _zyppProduct )
147 _zyppProduct = tryCastToZyppProduct(
selectable->theObj() );
149 if ( ! _zyppProduct )
154 if ( vendorCol() > -1 )
176 #include "YQPkgProductList.moc" virtual void applyChanges()
Propagate status changes in this list to other lists: Have the solver transact all products...
Abstract base class to display a list of zypp::ResObjects.
void setText(int column, const string text)
Set a column text via STL string.
virtual ~YQPkgProductList()
Destructor.
virtual void clear()
Reimplemented from QY2ListView: Emit currentItemChanged() signal after clearing the list...
YQPkgProductListItem(YQPkgProductList *productList, ZyppSel selectable, ZyppProduct zyppProduct)
Constructor.
void fillList()
Fill the product list.
YQPkgProductList(QWidget *parent)
Constructor.
ZyppProduct zyppProduct() const
Returns the original zyppProduct object.
virtual ~YQPkgProductListItem()
Destructor.
ZyppSel selectable() const
Returns the original selectable within the package manager backend.
Display a list of zypp::Product objects.
void solveResolvableCollections()
Do a "small" solver run for all "resolvable collections", i.e., for selections, patterns, languages, patches.
void addProductItem(ZyppSel selectable, ZyppProduct zyppProduct)
Add a product to the list.
virtual void setStatusIcon()
Set a status icon according to the package's status.