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

#include <YQPkgPackageKitGroupsFilterView.h>

Inheritance diagram for YQPkgPackageKitGroupsFilterView:
Collaboration diagram for YQPkgPackageKitGroupsFilterView:

Public Slots

void filter ()
 
void filterIfVisible ()
 
void selectSomething ()
 

Signals

void filterStart ()
 
void filterMatch (ZyppSel selectable, ZyppPkg pkg)
 
void filterFinished ()
 

Public Member Functions

 YQPkgPackageKitGroupsFilterView (QWidget *parent)
 
virtual ~YQPkgPackageKitGroupsFilterView ()
 
YQPkgPackageKitGroupselection () const
 
bool check (ZyppSel selectable, ZyppPkg pkg)
 
YPkgGroupEnum selectedGroup () const
 

Protected Slots

void slotSelectionChanged (QTreeWidgetItem *newSelection)
 

Protected Member Functions

void fillGroups ()
 

Protected Attributes

YPkgGroupEnum _selectedGroup
 
std::map< YPkgGroupEnum,
YQPkgPackageKitGroup * > 
_groupsMap
 
std::map< std::string,
YPkgGroupEnum > 
_groupsCache
 

Detailed Description

Filter view for PackageKit groups. Uses the packages' RPM group tags and maps them to the corresponding PackageKit group.

Definition at line 108 of file YQPkgPackageKitGroupsFilterView.h.

Constructor & Destructor Documentation

YQPkgPackageKitGroupsFilterView::YQPkgPackageKitGroupsFilterView ( QWidget *  parent)

Constructor

Definition at line 192 of file YQPkgPackageKitGroupsFilterView.cc.

Here is the call graph for this function:

YQPkgPackageKitGroupsFilterView::~YQPkgPackageKitGroupsFilterView ( )
virtual

Destructor

Definition at line 208 of file YQPkgPackageKitGroupsFilterView.cc.

Member Function Documentation

bool YQPkgPackageKitGroupsFilterView::check ( ZyppSel  selectable,
ZyppPkg  pkg 
)

Check if 'pkg' matches the selected group. Returns true if there is a match, false otherwise.

Definition at line 345 of file YQPkgPackageKitGroupsFilterView.cc.

Here is the call graph for this function:

void YQPkgPackageKitGroupsFilterView::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 275 of file YQPkgPackageKitGroupsFilterView.cc.

Here is the call graph for this function:

void YQPkgPackageKitGroupsFilterView::filterFinished ( )
signal

Emitted when filtering is finished.

void YQPkgPackageKitGroupsFilterView::filterIfVisible ( )
slot

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

Definition at line 267 of file YQPkgPackageKitGroupsFilterView.cc.

Here is the call graph for this function:

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

Emitted during filtering for each pkg that matches the filter.

void YQPkgPackageKitGroupsFilterView::filterStart ( )
signal

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

YPkgGroupEnum YQPkgPackageKitGroupsFilterView::selectedGroup ( ) const
inline

Returns the (untranslated!) currently selected group enum

Definition at line 139 of file YQPkgPackageKitGroupsFilterView.h.

YQPkgPackageKitGroup * YQPkgPackageKitGroupsFilterView::selection ( ) const

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

Definition at line 403 of file YQPkgPackageKitGroupsFilterView.cc.

void YQPkgPackageKitGroupsFilterView::selectSomething ( )
slot

Select a list entry (if there is any). Usually this will be the first list entry, but don't rely on that - this might change without notice. Emits signal currentItemChanged().

Definition at line 256 of file YQPkgPackageKitGroupsFilterView.cc.


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