libyui-qt-pkg  2.42.13
 All Classes Functions Variables Enumerations
YQPkgPatternList Class Reference

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

#include <YQPkgPatternList.h>

Inheritance diagram for YQPkgPatternList:
Collaboration diagram for YQPkgPatternList:

Public Slots

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 ()
 
- 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 filterFinished ()
 
- Signals inherited from YQPkgObjList
void currentItemChanged (ZyppSel selectable)
 
void statusChanged ()
 
void updatePackages ()
 

Public Member Functions

 YQPkgPatternList (QWidget *parent, bool autoFill=true, bool autoFilter=true)
 
virtual ~YQPkgPatternList ()
 
YQPkgPatternListItemselection () const
 
int howmanyCol () const
 
- 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 QMenu * addAllInListSubMenu (QMenu *menu)
 
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

YQPkgPatternCategoryItemcategory (const QString &categoryName)
 
- Protected Member Functions inherited from YQPkgObjList
 YQPkgObjList (QWidget *parent)
 
virtual ~YQPkgObjList ()
 
virtual void keyPressEvent (QKeyEvent *ev)
 
virtual QMenu * installedContextMenu ()
 
virtual QMenu * notInstalledContextMenu ()
 
virtual void createNotInstalledContextMenu ()
 
virtual void createInstalledContextMenu ()
 
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

QMap< QString,
YQPkgPatternCategoryItem * > 
_categories
 
int _howmanyCol
 
- 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)
 

Detailed Description

Display a list of zypp::Pattern objects.

Definition at line 55 of file YQPkgPatternList.h.

Constructor & Destructor Documentation

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.

Definition at line 153 of file YQPkgPatternList.cc.

Here is the call graph for this function:

YQPkgPatternList::~YQPkgPatternList ( )
virtual

Destructor

Definition at line 232 of file YQPkgPatternList.cc.

Member Function Documentation

void YQPkgPatternList::addPatternItem ( ZyppSel  selectable,
ZyppPattern  pattern 
)
slot

Add a pattern to the list. Connect a filter's filterMatch() signal to this slot. Remember to connect filterStart() to clear() (inherited from QListView).

Definition at line 346 of file YQPkgPatternList.cc.

Here is the call graph for this function:

YQPkgPatternCategoryItem * YQPkgPatternList::category ( const QString &  categoryName)
protected

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.

Definition at line 276 of file YQPkgPatternList.cc.

void YQPkgPatternList::fillList ( )
slot

Fill the pattern list.

Definition at line 239 of file YQPkgPatternList.cc.

Here is the call graph for this function:

void YQPkgPatternList::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()

Definition at line 306 of file YQPkgPatternList.cc.

Here is the call graph for this function:

void YQPkgPatternList::filterFinished ( )
signal

Emitted when filtering is finished.

void YQPkgPatternList::filterIfVisible ( )
slot

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

Definition at line 298 of file YQPkgPatternList.cc.

Here is the call graph for this function:

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

Emitted during filtering for each pkg that matches the filter.

void YQPkgPatternList::filterStart ( )
signal

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

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.

Definition at line 388 of file YQPkgPatternList.cc.

Here is the call graph for this function:

YQPkgPatternListItem * YQPkgPatternList::selection ( ) const

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

Definition at line 376 of file YQPkgPatternList.cc.

void YQPkgPatternList::selectSomething ( )
virtualslot

Select the first selectable list entry that is not a pattern category.

Reimplemented from QY2ListView.

Definition at line 415 of file YQPkgPatternList.cc.


The documentation for this class was generated from the following files: