|
libyui-qt-pkg
2.43.0
|
Display a list of zypp::Patch objects. More...
#include <YQPkgPatchList.h>


Public Types | |
| enum | FilterCriteria { RelevantPatches, RelevantAndInstalledPatches, AllPatches } |
Public Slots | |
| void | filter () |
| void | filterIfVisible () |
| void | addPatchItem (ZyppSel selectable, ZyppPatch zyppPatch) |
| void | fillList () |
| virtual void | message (const QString &text) |
Public Slots inherited from YQPkgObjList | |
| void | addPkgObjItem (ZyppSel selectable, ZyppObj zyppObj=0) |
| void | addPassiveItem (const QString &name, const QString &summary=QString::null, 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 | setCurrentInstall () |
| void | setCurrentDontInstall () |
| void | setCurrentKeepInstalled () |
| void | setCurrentDelete () |
| void | setCurrentUpdate () |
| void | setCurrentUpdateForce () |
| void | setCurrentTaboo () |
| void | setCurrentProtected () |
| void | showCurrentSolverInfo () |
| void | setListInstall () |
| void | setListDontInstall () |
| void | setListKeepInstalled () |
| void | setListDelete () |
| void | setListUpdate () |
| void | setListUpdateForce () |
| void | setListTaboo () |
| void | setListProtected () |
Signals | |
| void | filterStart () |
| void | filterMatch (ZyppSel selectable, ZyppPkg pkg) |
| void | filterMatch (const QString &name, const QString &summary, FSize size) |
| void | filterFinished () |
Signals inherited from YQPkgObjList | |
| void | currentItemChanged (ZyppSel selectable) |
| void | statusChanged () |
| void | updatePackages () |
Public Member Functions | |
| YQPkgPatchList (QWidget *parent) | |
| virtual | ~YQPkgPatchList () |
| void | setFilterCriteria (FilterCriteria filterCriteria) |
| FilterCriteria | filterCriteria () const |
| YQPkgPatchListItem * | selection () const |
| int | categoryCol () const |
| virtual QMenu * | addAllInListSubMenu (QMenu *menu) |
| virtual void | polish () |
Public Member Functions inherited from YQPkgObjList | |
| QTreeWidgetItem * | itemFromIndex (const QModelIndex &index) const |
| int | iconCol () const |
| int | statusCol () const |
| int | nameCol () const |
| int | summaryCol () const |
| int | sizeCol () const |
| int | versionCol () const |
| int | instVersionCol () const |
| int | brokenIconCol () const |
| int | satisfiedIconCol () const |
| bool | editable () const |
| void | setEditable (bool editable=true) |
| void | setCurrentStatus (ZyppStatus newStatus, bool selectNextItem=false, bool ifNewerOnly=false) |
| void | showSolverInfo () |
| void | setAllItemStatus (ZyppStatus newStatus, bool force=false) |
| virtual QPixmap | statusIcon (ZyppStatus status, bool enabled=true, bool bySelection=false) |
| virtual QString | statusText (ZyppStatus status) const |
| void | addExcludeRule (YQPkgObjList::ExcludeRule *rule) |
| void | applyExcludeRules () |
| void | applyExcludeRules (QTreeWidgetItem *) |
| void | exclude (YQPkgObjListItem *item, bool exclude) |
Protected Member Functions | |
| YQPkgPatchCategoryItem * | category (YQPkgPatchCategory category) |
| virtual void | createNotInstalledContextMenu () |
| virtual void | createInstalledContextMenu () |
| virtual void | keyPressEvent (QKeyEvent *ev) |
Protected Member Functions inherited from YQPkgObjList | |
| YQPkgObjList (QWidget *parent) | |
| virtual | ~YQPkgObjList () |
| virtual QMenu * | installedContextMenu () |
| virtual QMenu * | notInstalledContextMenu () |
| void | createActions () |
| QAction * | createAction (ZyppStatus status, const QString &key=QString::null, bool enabled=false) |
| QAction * | createAction (const QString &text, const QPixmap &icon=QPixmap(), const QPixmap &insensitiveIcon=QPixmap(), const QString &key=QString::null, bool enabled=false) |
Protected Attributes | |
| int | _categoryCol |
| YQPkgSelMapper | _selMapper |
| FilterCriteria | _filterCriteria |
|
QMap< YQPkgPatchCategory, YQPkgPatchCategoryItem * > | _categories |
Protected Attributes inherited from YQPkgObjList | |
| int | _iconCol |
| int | _statusCol |
| int | _nameCol |
| int | _summaryCol |
| int | _sizeCol |
| int | _versionCol |
| int | _instVersionCol |
| int | _brokenIconCol |
| int | _satisfiedIconCol |
| bool | _editable |
| bool | _debug |
| ExcludeRuleList | _excludeRules |
| ExcludedItems * | _excludedItems |
| QMenu * | _installedContextMenu |
| QMenu * | _notInstalledContextMenu |
Additional Inherited Members | |
Public Attributes inherited from YQPkgObjList | |
| QAction * | actionSetCurrentInstall |
| QAction * | actionSetCurrentDontInstall |
| QAction * | actionSetCurrentKeepInstalled |
| QAction * | actionSetCurrentDelete |
| QAction * | actionSetCurrentUpdate |
| QAction * | actionSetCurrentUpdateForce |
| QAction * | actionSetCurrentTaboo |
| QAction * | actionSetCurrentProtected |
| QAction * | actionShowCurrentSolverInfo |
| QAction * | actionSetListInstall |
| QAction * | actionSetListDontInstall |
| QAction * | actionSetListKeepInstalled |
| QAction * | actionSetListDelete |
| QAction * | actionSetListUpdate |
| QAction * | actionSetListUpdateForce |
| QAction * | actionSetListTaboo |
| QAction * | actionSetListProtected |
| YQZyppSolverDialogPluginStub | _plugin |
Protected Types inherited from YQPkgObjList | |
| typedef list< ExcludeRule * > | ExcludeRuleList |
Protected Slots inherited from YQPkgObjList | |
| virtual void | currentItemChangedInternal (QTreeWidgetItem *item) |
| void | slotCustomContextMenu (const QPoint &pos) |
Display a list of zypp::Patch objects.
Definition at line 74 of file YQPkgPatchList.h.
| YQPkgPatchList::YQPkgPatchList | ( | QWidget * | parent | ) |
Constructor
Definition at line 103 of file YQPkgPatchList.cc.

|
virtual |
Destructor
Definition at line 154 of file YQPkgPatchList.cc.
|
virtual |
Add a submenu "All in this list..." to 'menu'. Returns the newly created submenu.
Reimplemented from YQPkgObjList.
Reimplemented from YQPkgObjList.
Definition at line 419 of file YQPkgPatchList.cc.
|
slot |
Add a patch to the list. Connect a filter's filterMatch() signal to this slot. Remember to connect filterStart() to clear() (inherited from QListView).
Definition at line 342 of file YQPkgPatchList.cc.

|
protected |
returns or creates a category item for a defined category
Definition at line 172 of file YQPkgPatchList.cc.
|
inline |
Returns the column for the patch category
Definition at line 155 of file YQPkgPatchList.h.
|
protectedvirtual |
Create the context menu for installed items.
Reimplemented from YQPkgObjList.
Reimplemented from YQPkgObjList.
Definition at line 399 of file YQPkgPatchList.cc.

|
protectedvirtual |
Create the context menu for items that are not installed.
Reimplemented from YQPkgObjList.
Reimplemented from YQPkgObjList.
Definition at line 385 of file YQPkgPatchList.cc.

|
slot |
Fill the patch list according to filterCriteria().
Definition at line 195 of file YQPkgPatchList.cc.

|
slot |
Filter according to the view's rules and current selection. Emits those signals: filterStart() filterMatch() for each pkg that matches the filter filterFinished()
Definition at line 304 of file YQPkgPatchList.cc.

|
inline |
Returns the current filter criteria.
Definition at line 145 of file YQPkgPatchList.h.
|
signal |
Emitted when filtering is finished.
|
slot |
Same as filter(), but only if this widget is currently visible.
Definition at line 296 of file YQPkgPatchList.cc.

|
signal |
Emitted during filtering for each pkg that matches the filter.
|
signal |
Emitted during filtering for non-pkg items: pre-script, post-script, files
|
signal |
Emitted when the filtering starts. Use this to clear package lists etc. prior to adding new entries.
|
protectedvirtual |
Event handler for keyboard input. Only very special keys are processed here.
Reimplemented from YQPkgObjList / QWidget.
Reimplemented from YQPkgObjList.
Definition at line 445 of file YQPkgPatchList.cc.

|
virtualslot |
Display a one-line message in the list. Reimplemented from YQPkgObjList.
Definition at line 286 of file YQPkgPatchList.cc.
|
virtual |
Delayed initialization after the dialog is fully created.
Reimplemented from QWidget.
Definition at line 161 of file YQPkgPatchList.cc.
| YQPkgPatchListItem * YQPkgPatchList::selection | ( | ) | const |
Returns the currently selected item or 0 if there is none.
Definition at line 372 of file YQPkgPatchList.cc.
| void YQPkgPatchList::setFilterCriteria | ( | FilterCriteria | filterCriteria | ) |
Set the filter criteria for fillList().
Definition at line 189 of file YQPkgPatchList.cc.
