libyui-qt-pkg  2.47.5
YQPkgClassFilterView Class Reference

Filter view for package classes (categories) like suggested, recommended, orphaned etc. More...

#include <YQPkgClassFilterView.h>

Inheritance diagram for YQPkgClassFilterView:
Collaboration diagram for YQPkgClassFilterView:

Public Slots

void filter ()
 Filter according to the view's rules and current selection. More...
 
void filterIfVisible ()
 Same as filter(), but only if this widget is currently visible.
 

Signals

void filterStart ()
 Emitted when the filtering starts. More...
 
void filterMatch (ZyppSel selectable, ZyppPkg pkg)
 Emitted during filtering for each pkg that matches the filter.
 
void filterFinished ()
 Emitted when filtering is finished.
 

Public Member Functions

 YQPkgClassFilterView (QWidget *parent)
 Constructor.
 
virtual ~YQPkgClassFilterView ()
 Destructor.
 
bool check (ZyppSel selectable, ZyppPkg pkg)
 Check if 'pkg' matches the selected package class and send a filterMatch signal if it does. More...
 
bool checkMatch (ZyppSel selectable, ZyppPkg pkg)
 Check if 'pkg' matches the selected package class. More...
 
YQPkgClass selectedPkgClass () const
 Returns the currently selected YQPkgClass.
 
void showPkgClass (YQPkgClass pkgClass)
 Show the specified package class, i.e. More...
 

Protected Slots

void slotSelectionChanged (QTreeWidgetItem *newSelection)
 

Protected Member Functions

void fillPkgClasses ()
 

Detailed Description

Filter view for package classes (categories) like suggested, recommended, orphaned etc.

packages. See enum YPkgClass.

Definition at line 70 of file YQPkgClassFilterView.h.

Member Function Documentation

◆ check()

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

Check if 'pkg' matches the selected package class and send a filterMatch signal if it does.

Returns 'true' if there is a match, 'false' otherwise.

Definition at line 225 of file YQPkgClassFilterView.cc.

Here is the call graph for this function:

◆ checkMatch()

bool YQPkgClassFilterView::checkMatch ( ZyppSel  selectable,
ZyppPkg  pkg 
)

Check if 'pkg' matches the selected package class.

Returns 'true' if there is a match, 'false' otherwise.

Definition at line 237 of file YQPkgClassFilterView.cc.

Here is the call graph for this function:

◆ filter

void YQPkgClassFilterView::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 143 of file YQPkgClassFilterView.cc.

Here is the call graph for this function:

◆ filterStart

void YQPkgClassFilterView::filterStart ( )
signal

Emitted when the filtering starts.

Use this to clear package lists etc. prior to adding new entries.

◆ showPkgClass()

void YQPkgClassFilterView::showPkgClass ( YQPkgClass  pkgClass)

Show the specified package class, i.e.

select that filter.

Definition at line 279 of file YQPkgClassFilterView.cc.


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