Main Page | Class Hierarchy | Class List | Directories | File List | Class Members | File Members

YQPkgYouPatchList Class Reference

Display a list of PMYouPatch objects. More...

#include <YQPkgYouPatchList.h>

Inheritance diagram for YQPkgYouPatchList:

YQPkgObjList QY2ListView List of all members.

Public Types

enum  PatchCategory { InstallablePatches, InstallableAndInstalledPatches, AllPatches }

Public Slots

void filter ()
void filterIfVisible ()
void addYouPatchItem (PMYouPatchPtr sel)
void sendUpdatePackages ()
void fillList ()
void showRawPatchInfo ()
virtual void message (const QString &text)

Signals

void updatePackages ()
void filterStart ()
void filterMatch (PMPackagePtr pkg)
void filterMatch (const QString &name, const QString &summary, FSize size)
void filterFinished ()

Public Member Functions

 YQPkgYouPatchList (QWidget *parent)
virtual ~YQPkgYouPatchList ()
YQPkgYouPatchListItemselection () const
int kindCol () const
PatchCategory patchCategory () const
void setPatchCategory (PatchCategory newCt)
virtual QPopupMenu * addAllInListSubMenu (QPopupMenu *menu)

Public Attributes

QAction * actionShowRawPatchInfo

Protected Member Functions

virtual void createNotInstalledContextMenu ()
virtual void createInstalledContextMenu ()
virtual void keyPressEvent (QKeyEvent *ev)

Protected Attributes

int _kindCol
PatchCategory _patchCategory

Detailed Description

Display a list of PMYouPatch objects.


Member Enumeration Documentation

enum YQPkgYouPatchList::PatchCategory
 

Categories of patches to display in the list

Enumerator:
InstallablePatches 
InstallableAndInstalledPatches 
AllPatches 


Constructor & Destructor Documentation

YQPkgYouPatchList::YQPkgYouPatchList QWidget *  parent  ) 
 

Constructor

YQPkgYouPatchList::~YQPkgYouPatchList  )  [virtual]
 

Destructor


Member Function Documentation

QPopupMenu * YQPkgYouPatchList::addAllInListSubMenu QPopupMenu *  menu  )  [virtual]
 

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

Reimplemented from YQPkgObjList.

Reimplemented from YQPkgObjList.

void YQPkgYouPatchList::addYouPatchItem PMYouPatchPtr  sel  )  [slot]
 

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

void YQPkgYouPatchList::createInstalledContextMenu  )  [protected, virtual]
 

Create the context menu for installed items.

Reimplemented from YQPkgObjList.

Reimplemented from YQPkgObjList.

void YQPkgYouPatchList::createNotInstalledContextMenu  )  [protected, virtual]
 

Create the context menu for items that are not installed.

Reimplemented from YQPkgObjList.

Reimplemented from YQPkgObjList.

void YQPkgYouPatchList::fillList  )  [slot]
 

Fill the selection list.

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

void YQPkgYouPatchList::filterFinished  )  [signal]
 

Emitted when filtering is finished.

void YQPkgYouPatchList::filterIfVisible  )  [slot]
 

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

void YQPkgYouPatchList::filterMatch const QString &  name,
const QString &  summary,
FSize  size
[signal]
 

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

void YQPkgYouPatchList::filterMatch PMPackagePtr  pkg  )  [signal]
 

Emitted during filtering for each pkg that matches the filter.

void YQPkgYouPatchList::filterStart  )  [signal]
 

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

void YQPkgYouPatchList::keyPressEvent QKeyEvent *  ev  )  [protected, virtual]
 

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

Reimplemented from YQPkgObjList / QWidget.

Reimplemented from YQPkgObjList.

int YQPkgYouPatchList::kindCol  )  const [inline]
 

Returns the column for the patch kind

void YQPkgYouPatchList::message const QString &  text  )  [virtual, slot]
 

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

Reimplemented from YQPkgObjList.

PatchCategory YQPkgYouPatchList::patchCategory  )  const [inline]
 

Return the patch category that is displayed in the list.

YQPkgYouPatchListItem * YQPkgYouPatchList::selection  )  const
 

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

void YQPkgYouPatchList::sendUpdatePackages  )  [inline, slot]
 

Emit an updatePackages() signal.

void YQPkgYouPatchList::setPatchCategory PatchCategory  newCt  )  [inline]
 

Set the category of patches to be displayed in the list. This does NOT trigger redisplaying the list - use fillList() for that.

void YQPkgYouPatchList::showRawPatchInfo  )  [slot]
 

Show the raw patch info for the currently selected patch in a popup dialog.

void YQPkgYouPatchList::updatePackages  )  [signal]
 

Emitted when it's time to update displayed package information, e.g., package states.


Member Data Documentation

int YQPkgYouPatchList::_kindCol [protected]
 

PatchCategory YQPkgYouPatchList::_patchCategory [protected]
 

QAction* YQPkgYouPatchList::actionShowRawPatchInfo
 

Action that shows the raw patch info for the currently selected patch in a popup dialog.


The documentation for this class was generated from the following files:
Generated on Wed Sep 14 10:59:03 2005 for yast2-qt by  doxygen 1.4.4