libyui-qt-pkg
Loading...
Searching...
No Matches
YQPkgClassFilterView Class Reference

#include <YQPkgClassFilterView.h>

Inheritance diagram for YQPkgClassFilterView:
Collaboration diagram for YQPkgClassFilterView:

Public Slots

void filter ()
 
void filterIfVisible ()
 

Signals

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

Public Member Functions

 YQPkgClassFilterView (QWidget *parent)
 
virtual ~YQPkgClassFilterView ()
 
bool check (ZyppSel selectable, ZyppPkg pkg)
 
bool checkMatch (ZyppSel selectable, ZyppPkg pkg)
 
YQPkgClass selectedPkgClass () const
 
void showPkgClass (YQPkgClass pkgClass)
 

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.

Constructor & Destructor Documentation

◆ YQPkgClassFilterView()

YQPkgClassFilterView::YQPkgClassFilterView ( QWidget * parent)

Constructor

◆ ~YQPkgClassFilterView()

YQPkgClassFilterView::~YQPkgClassFilterView ( )
virtual

Destructor

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.

◆ 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.

◆ 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()

◆ filterFinished

void YQPkgClassFilterView::filterFinished ( )
signal

Emitted when filtering is finished.

◆ filterIfVisible

void YQPkgClassFilterView::filterIfVisible ( )
slot

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

◆ filterMatch

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

Emitted during filtering for each pkg that matches the filter.

◆ filterStart

void YQPkgClassFilterView::filterStart ( )
signal

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

◆ selectedPkgClass()

YQPkgClass YQPkgClassFilterView::selectedPkgClass ( ) const

Returns the currently selected YQPkgClass

◆ showPkgClass()

void YQPkgClassFilterView::showPkgClass ( YQPkgClass pkgClass)

Show the specified package class, i.e. select that filter.


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