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