41 #ifndef YQPkgSelList_h 42 #define YQPkgSelList_h 44 #include <YQPkgObjList.h> 69 YQPkgSelList( QWidget * parent,
bool autoFill =
true,
bool autoFilter =
true );
168 virtual int compare( QTreeWidgetItem * other,
170 bool ascending )
const;
174 int statusCol()
const {
return _pkgSelList->statusCol(); }
175 int summaryCol()
const {
return _pkgSelList->summaryCol(); }
192 ZyppSelection _zyppSelection;
196 #endif // ifndef YQPkgSelList_h Abstract base class to display a list of zypp::ResObjects.
void fillList()
Fill the selection list.
Display a list of zypp::Selection objects.
void addPkgSelItem(ZyppSel selectable, ZyppSelection selection)
Add a selection to the list.
void filterMatch(ZyppSel selectable, ZyppPkg pkg)
Emitted during filtering for each pkg that matches the filter.
virtual void applyChanges()
Propagate status changes in this list to other lists: Have the solver transact all selections...
void filterStart()
Emitted when the filtering starts.
virtual int compare(QTreeWidgetItem *other, int col, bool ascending) const
Comparison function used for sorting the list.
void filter()
Filter according to the view's rules and current selection.
YQPkgSelListItem * selection() const
Returns the currently selected item or 0 if there is none.
virtual ~YQPkgSelListItem()
Destructor.
void filterIfVisible()
Same as filter(), but only if this widget is currently visible.
virtual ~YQPkgSelList()
Destructor.
ZyppSel selectable() const
Returns the original selectable within the package manager backend.
void filterFinished()
Emitted when filtering is finished.
ZyppSelection zyppSelection() const
Returns the original object within the package manager backend.
YQPkgSelList(QWidget *parent, bool autoFill=true, bool autoFilter=true)
Constructor.
YQPkgSelListItem(YQPkgSelList *pkgSelList, ZyppSel selectable, ZyppSelection zyppSelection)
Constructor.