Display a list of zypp::Pattern objects.
More...
#include <YQPkgPatternList.h>
|
void | filter () |
|
void | filterIfVisible () |
|
void | addPatternItem (ZyppSel selectable, ZyppPattern pattern) |
|
void | fillList () |
|
virtual void | pkgObjClicked (int button, QTreeWidgetItem *item, int col, const QPoint &pos) |
|
virtual void | selectSomething () |
|
void | addPkgObjItem (ZyppSel selectable, ZyppObj zyppObj=0) |
|
void | addPassiveItem (const QString &name, const QString &summary=QString(), FSize size=-1) |
|
virtual void | pkgObjClicked (int button, QTreeWidgetItem *item, int col, const QPoint &pos) |
|
virtual void | clear () |
|
virtual void | updateActions (YQPkgObjListItem *item=0) |
|
void | sendUpdatePackages () |
|
void | selectNextItem () |
|
void | sendStatusChanged () |
|
virtual void | message (const QString &text) |
|
void | logExcludeStatistics () |
|
void | maybeSetFocus () |
|
void | setCurrentInstall () |
|
void | setCurrentDontInstall () |
|
void | setCurrentKeepInstalled () |
|
void | setCurrentDelete () |
|
void | setCurrentUpdate () |
|
void | setCurrentUpdateForce () |
|
void | setCurrentTaboo () |
|
void | setCurrentProtected () |
|
void | setListInstall () |
|
void | setListDontInstall () |
|
void | setListKeepInstalled () |
|
void | setListDelete () |
|
void | setListUpdate () |
|
void | setListUpdateForce () |
|
void | setListTaboo () |
|
void | setListProtected () |
|
|
QMap< QString, YQPkgPatternCategoryItem * > | _categories |
|
int | _orderCol |
|
bool | _showInvisiblePatterns |
|
int | _iconCol |
|
int | _statusCol |
|
int | _nameCol |
|
int | _summaryCol |
|
int | _sizeCol |
|
int | _versionCol |
|
int | _instVersionCol |
|
int | _brokenIconCol |
|
int | _satisfiedIconCol |
|
bool | _editable |
|
bool | _debug |
|
int | _excludedItemsCount |
|
ExcludeRuleList | _excludeRules |
|
QMenu * | _installedContextMenu |
|
QMenu * | _notInstalledContextMenu |
|
|
QAction * | actionSetCurrentInstall |
|
QAction * | actionSetCurrentDontInstall |
|
QAction * | actionSetCurrentKeepInstalled |
|
QAction * | actionSetCurrentDelete |
|
QAction * | actionSetCurrentUpdate |
|
QAction * | actionSetCurrentUpdateForce |
|
QAction * | actionSetCurrentTaboo |
|
QAction * | actionSetCurrentProtected |
|
QAction * | actionSetListInstall |
|
QAction * | actionSetListDontInstall |
|
QAction * | actionSetListKeepInstalled |
|
QAction * | actionSetListDelete |
|
QAction * | actionSetListUpdate |
|
QAction * | actionSetListUpdateForce |
|
QAction * | actionSetListTaboo |
|
QAction * | actionSetListProtected |
|
typedef list< ExcludeRule * > | ExcludeRuleList |
|
virtual void | currentItemChangedInternal (QTreeWidgetItem *item) |
|
void | slotCustomContextMenu (const QPoint &pos) |
|
Display a list of zypp::Pattern objects.
◆ YQPkgPatternList()
YQPkgPatternList::YQPkgPatternList |
( |
QWidget * | parent, |
|
|
bool | autoFill = true, |
|
|
bool | autoFilter = true ) |
Constructor.
Set 'autoFill' to 'false' if you don't want the list to be filled in the constructor. In that case, use fillList() (e.g., when connections are set up).
Set 'autoFilter' to 'false' if there is no need to do (expensive) filtering because the 'filterMatch' signal is not connected anyway.
◆ ~YQPkgPatternList()
YQPkgPatternList::~YQPkgPatternList |
( |
| ) |
|
|
virtual |
◆ addPatternItem
void YQPkgPatternList::addPatternItem |
( |
ZyppSel | selectable, |
|
|
ZyppPattern | pattern ) |
|
slot |
◆ category()
Returns the category item with the specified name. Creates such a category if it doesn't exist yet and categoryName is not empty. Returns 0 if categoryName is empty.
◆ fillList
void YQPkgPatternList::fillList |
( |
| ) |
|
|
slot |
◆ filter
void YQPkgPatternList::filter |
( |
| ) |
|
|
slot |
◆ filterFinished
void YQPkgPatternList::filterFinished |
( |
| ) |
|
|
signal |
Emitted when filtering is finished.
◆ filterIfVisible
void YQPkgPatternList::filterIfVisible |
( |
| ) |
|
|
slot |
Same as filter(), but only if this widget is currently visible.
◆ filterMatch
void YQPkgPatternList::filterMatch |
( |
ZyppSel | selectable, |
|
|
ZyppPkg | pkg ) |
|
signal |
Emitted during filtering for each pkg that matches the filter.
◆ filterStart
void YQPkgPatternList::filterStart |
( |
| ) |
|
|
signal |
Emitted when the filtering starts. Use this to clear package lists etc. prior to adding new entries.
◆ orderCol()
int YQPkgPatternList::orderCol |
( |
| ) |
const |
|
inline |
Column number for the pattern order or -1 if disabled
◆ pkgObjClicked
void YQPkgPatternList::pkgObjClicked |
( |
int | button, |
|
|
QTreeWidgetItem * | item, |
|
|
int | col, |
|
|
const QPoint & | pos ) |
|
virtualslot |
Dispatcher slot for mouse click: cycle status depending on column. For pattern category items, emulate tree open / close behaviour.
Reimplemented from YQPkgObjList.
◆ selection()
Returns the currently selected item or 0 if there is none.
◆ selectSomething
void YQPkgPatternList::selectSomething |
( |
| ) |
|
|
virtualslot |
Select the first selectable list entry that is not a pattern category.
Reimplemented from QY2ListView.
◆ showInvisiblePatterns()
bool YQPkgPatternList::showInvisiblePatterns |
( |
| ) |
const |
|
inline |
Flag: Show invisible patterns, too? (set environment variable Y2_SHOW_INVISIBLE_PATTERNS)
◆ showOrderCol()
bool YQPkgPatternList::showOrderCol |
( |
| ) |
const |
|
inline |
Flag: Should the order column be shown? (set environment variable Y2_SHOW_PATTERNS_ORDER)
The documentation for this class was generated from the following files:
- /builddir/build/BUILD/libyui-4.6.2-build/libyui-4.6.2/libyui-qt-pkg/src/YQPkgPatternList.h
- /builddir/build/BUILD/libyui-4.6.2-build/libyui-4.6.2/libyui-qt-pkg/src/YQPkgPatternList.cc