41 #ifndef YQPkgPatternList_h 42 #define YQPkgPatternList_h 44 #include "YQPkgObjList.h" 71 YQPkgPatternList( QWidget * parent,
bool autoFill =
true,
bool autoFilter =
true );
101 ZyppPattern pattern );
115 QTreeWidgetItem * item,
117 const QPoint & pos );
134 int howmanyCol()
const {
return _howmanyCol; }
168 QMap<QString, YQPkgPatternCategoryItem*> _categories;
212 virtual bool operator< (
const QTreeWidgetItem & other )
const;
216 int statusCol()
const {
return _patternList->statusCol(); }
217 int summaryCol()
const {
return _patternList->summaryCol(); }
219 int totalPackages()
const {
return _total; }
220 int installedPackages()
const {
return _installed; }
223 void setTotalPackages(
int v) { _total = v; }
224 void setInstalledPackages(
int v) { _installed = v; }
250 ZyppPattern _zyppPattern;
266 const QString & category );
286 virtual bool operator< (
const QTreeWidgetItem & other )
const;
293 virtual void setExpanded(
bool open );
313 ZyppPattern _firstPattern;
317 #endif // ifndef YQPkgPatternList_h virtual void selectSomething()
Select the first selectable list entry that is not a pattern category.
void setTreeIcon(void)
Set a suitable tree open/close icon depending on this category's open/close status.
ZyppPattern firstPattern() const
Returns the first pattern.
void init()
Initialize things common to all constructors.
void filterFinished()
Emitted when filtering is finished.
Abstract base class to display a list of zypp::ResObjects.
virtual void applyChanges()
Propagate status changes in this list to other lists: Have the solver transact all patterns...
virtual ~YQPkgPatternCategoryItem()
Destructor.
YQPkgPatternCategoryItem * category(const QString &categoryName)
Returns the category item with the specified name.
void fillList()
Fill the pattern list.
YQPkgPatternListItem(YQPkgPatternList *patternList, ZyppSel selectable, ZyppPattern zyppPattern)
Constructor for root items.
virtual ~YQPkgPatternListItem()
Destructor.
void filterMatch(ZyppSel selectable, ZyppPkg pkg)
Emitted during filtering for each pkg that matches the filter.
virtual ~YQPkgPatternList()
Destructor.
void filterIfVisible()
Same as filter(), but only if this widget is currently visible.
void filter()
Filter according to the view's rules and current selection.
YQPkgPatternCategoryItem(YQPkgPatternList *patternList, const QString &category)
Constructor.
Display a list of zypp::Pattern objects.
void filterStart()
Emitted when the filtering starts.
YQPkgPatternList(QWidget *parent, bool autoFill=true, bool autoFilter=true)
Constructor.
virtual bool operator<(const QTreeWidgetItem &other) const
sorting function
ZyppPattern zyppPattern() const
Returns the original object within the package manager backend.
ZyppSel selectable() const
Returns the original selectable within the package manager backend.
virtual void cycleStatus()
Cycle the package status to the next valid value.
virtual bool operator<(const QTreeWidgetItem &other) const
sorting function
void addPattern(ZyppPattern pattern)
Add a pattern to this category.
virtual void pkgObjClicked(int button, QTreeWidgetItem *item, int col, const QPoint &pos)
Dispatcher slot for mouse click: cycle status depending on column.
void addPatternItem(ZyppSel selectable, ZyppPattern pattern)
Add a pattern to the list.
void resetToolTip()
resets the tooltip with the current available information
YQPkgPatternListItem * selection() const
Returns the currently selected item or 0 if there is none.