libyui-qt-pkg
Loading...
Searching...
No Matches
YQPkgPatchList Class Reference

Display a list of zypp::Patch objects. More...

#include <YQPkgPatchList.h>

Inheritance diagram for YQPkgPatchList:
Collaboration diagram for YQPkgPatchList:

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(), 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 ()

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
YQPkgPatchListItemselection () 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 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

YQPkgPatchCategoryItemcategory (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 ()
bool shouldKeepFocus (QWidget *widget) const
void createActions ()
QAction * createAction (ZyppStatus status, const QString &key=QString(), bool enabled=false)
QAction * createAction (const QString &text, const QPixmap &icon=QPixmap(), const QPixmap &insensitiveIcon=QPixmap(), const QString &key=QString(), 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
int _excludedItemsCount
ExcludeRuleList _excludeRules
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 * actionSetListInstall
QAction * actionSetListDontInstall
QAction * actionSetListKeepInstalled
QAction * actionSetListDelete
QAction * actionSetListUpdate
QAction * actionSetListUpdateForce
QAction * actionSetListTaboo
QAction * actionSetListProtected
Protected Types inherited from YQPkgObjList
typedef list< ExcludeRule * > ExcludeRuleList
Protected Slots inherited from YQPkgObjList
virtual void currentItemChangedInternal (QTreeWidgetItem *item)
void slotCustomContextMenu (const QPoint &pos)

Detailed Description

Display a list of zypp::Patch objects.

Constructor & Destructor Documentation

◆ YQPkgPatchList()

YQPkgPatchList::YQPkgPatchList ( QWidget * parent)

Constructor

◆ ~YQPkgPatchList()

YQPkgPatchList::~YQPkgPatchList ( )
virtual

Destructor

Member Function Documentation

◆ addAllInListSubMenu()

QMenu * YQPkgPatchList::addAllInListSubMenu ( QMenu * menu)
virtual

Add a submenu "All in this list..." to 'menu'. Returns the newly created submenu.

Reimplemented from YQPkgObjList.

Reimplemented from YQPkgObjList.

◆ addPatchItem

void YQPkgPatchList::addPatchItem ( ZyppSel selectable,
ZyppPatch zyppPatch )
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).

◆ category()

YQPkgPatchCategoryItem * YQPkgPatchList::category ( YQPkgPatchCategory category)
protected

returns or creates a category item for a defined category

◆ categoryCol()

int YQPkgPatchList::categoryCol ( ) const
inline

Returns the column for the patch category

◆ createInstalledContextMenu()

void YQPkgPatchList::createInstalledContextMenu ( )
protectedvirtual

Create the context menu for installed items.

Reimplemented from YQPkgObjList.

Reimplemented from YQPkgObjList.

◆ createNotInstalledContextMenu()

void YQPkgPatchList::createNotInstalledContextMenu ( )
protectedvirtual

Create the context menu for items that are not installed.

Reimplemented from YQPkgObjList.

Reimplemented from YQPkgObjList.

◆ fillList

void YQPkgPatchList::fillList ( )
slot

Fill the patch list according to filterCriteria().

◆ filter

void YQPkgPatchList::filter ( )
slot

Filter according to the view's rules and current selection. Emits those signals: filterStart() filterMatch() for each pkg that matches the filter filterFinished()

◆ filterCriteria()

FilterCriteria YQPkgPatchList::filterCriteria ( ) const
inline

Returns the current filter criteria.

◆ filterFinished

void YQPkgPatchList::filterFinished ( )
signal

Emitted when filtering is finished.

◆ filterIfVisible

void YQPkgPatchList::filterIfVisible ( )
slot

Same as filter(), but only if this widget is currently visible.

◆ filterMatch [1/2]

void YQPkgPatchList::filterMatch ( const QString & name,
const QString & summary,
FSize size )
signal

Emitted during filtering for non-pkg items: pre-script, post-script, files

◆ filterMatch [2/2]

void YQPkgPatchList::filterMatch ( ZyppSel selectable,
ZyppPkg pkg )
signal

Emitted during filtering for each pkg that matches the filter.

◆ filterStart

void YQPkgPatchList::filterStart ( )
signal

Emitted when the filtering starts. Use this to clear package lists etc. prior to adding new entries.

◆ keyPressEvent()

void YQPkgPatchList::keyPressEvent ( QKeyEvent * ev)
protectedvirtual

Event handler for keyboard input. Only very special keys are processed here.

Reimplemented from YQPkgObjList / QWidget.

Reimplemented from YQPkgObjList.

◆ message

void YQPkgPatchList::message ( const QString & text)
virtualslot

Display a one-line message in the list. Reimplemented from YQPkgObjList.

◆ polish()

void YQPkgPatchList::polish ( )
virtual

Delayed initialization after the dialog is fully created.

Reimplemented from QWidget.

◆ selection()

YQPkgPatchListItem * YQPkgPatchList::selection ( ) const

Returns the currently selected item or 0 if there is none.

◆ setFilterCriteria()

void YQPkgPatchList::setFilterCriteria ( FilterCriteria filterCriteria)

Set the filter criteria for fillList().


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/YQPkgPatchList.h
  • /builddir/build/BUILD/libyui-4.6.2-build/libyui-4.6.2/libyui-qt-pkg/src/YQPkgPatchList.cc