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;
183 ZyppPattern zyppPattern );
191 ZyppPattern zyppPattern );
207 virtual void cycleStatus();
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; }
244 virtual void applyChanges();
250 ZyppPattern _zyppPattern;
281 void addPattern( ZyppPattern pattern );
286 virtual bool operator< (
const QTreeWidgetItem & other )
const;
293 virtual void setExpanded(
bool open );
307 void setTreeIcon(
void );
313 ZyppPattern _firstPattern;
317 #endif // ifndef YQPkgPatternList_h virtual void selectSomething()
Select the first selectable list entry that is not a pattern category.
void filterFinished()
Emitted when filtering is finished.
ZyppPattern firstPattern() const
Returns the first pattern.
Abstract base class to display a list of zypp::ResObjects.
YQPkgPatternCategoryItem * category(const QString &categoryName)
Returns the category item with the specified name.
void fillList()
Fill the pattern list.
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.
Display a list of zypp::Pattern objects.
void filterStart()
Emitted when the filtering starts.
YQPkgPatternListItem * selection() const
Returns the currently selected item or 0 if there is none.
YQPkgPatternList(QWidget *parent, bool autoFill=true, bool autoFilter=true)
Constructor.
ZyppPattern zyppPattern() const
Returns the original object within the package manager backend.
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.