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

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

#include <YQPkgProductList.h>

Inheritance diagram for YQPkgProductList:
Collaboration diagram for YQPkgProductList:

Public Slots

void addProductItem (ZyppSel selectable, ZyppProduct zyppProduct)
 
void fillList ()
 
- 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 ()
 

Public Member Functions

 YQPkgProductList (QWidget *parent)
 
virtual ~YQPkgProductList ()
 
YQPkgProductListItemselection () const
 
int vendorCol () 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 Attributes

int _vendorCol
 
- 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

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

Detailed Description

Display a list of zypp::Product objects.

Definition at line 55 of file YQPkgProductList.h.

Constructor & Destructor Documentation

YQPkgProductList::YQPkgProductList ( QWidget *  parent)

Constructor

Definition at line 56 of file YQPkgProductList.cc.

Here is the call graph for this function:

YQPkgProductList::~YQPkgProductList ( )
virtual

Destructor

Definition at line 88 of file YQPkgProductList.cc.

Member Function Documentation

void YQPkgProductList::addProductItem ( ZyppSel  selectable,
ZyppProduct  zyppProduct 
)
slot

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

Definition at line 122 of file YQPkgProductList.cc.

void YQPkgProductList::fillList ( )
slot

Fill the product list.

Definition at line 95 of file YQPkgProductList.cc.

Here is the call graph for this function:

YQPkgProductListItem* YQPkgProductList::selection ( ) const

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

int YQPkgProductList::vendorCol ( ) const
inline

Returns the column for the product's vendor.

Definition at line 98 of file YQPkgProductList.h.


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