libyui-qt-pkg  2.47.5
YQPkgSecondaryFilterView Class Reference

This is a base class for filter views containing a secondary filter. More...

#include <YQPkgSecondaryFilterView.h>

Inheritance diagram for YQPkgSecondaryFilterView:
Collaboration diagram for YQPkgSecondaryFilterView:

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 and the candidate package comes from the respective repository.
 
void filterNearMatch (ZyppSel selectable, ZyppPkg pkg)
 Emitted during filtering for each pkg that matches the filter and the candidate package does not come from the respective repository.
 
void filterFinished ()
 Emitted when filtering is finished.
 

Public Member Functions

 YQPkgSecondaryFilterView (QWidget *parent)
 Constructor Because of the circular dependencies you have to call the init() method later with the new subclassed object.
 
virtual ~YQPkgSecondaryFilterView ()
 Destructor.
 
void init (QWidget *primary_widget)
 Initialize the primary widget. More...
 

Protected Slots

void primaryFilterMatch (ZyppSel selectable, ZyppPkg pkg)
 Propagate a filter match from the primary filter and appy any selected secondary filter(s) to it.
 
void primaryFilterNearMatch (ZyppSel selectable, ZyppPkg pkg)
 Propagate a filter near match from the primary filter and appy any selected secondary filter(s) to it.
 

Protected Member Functions

QWidget * layoutSecondaryFilters (QWidget *parent, QWidget *primary_widget)
 Widget layout for the secondary filters.
 
bool secondaryFilterMatch (ZyppSel selectable, ZyppPkg pkg)
 Check if pkg matches the the currently selected secondary filter.
 
virtual void primaryFilter ()
 
virtual void primaryFilterIfVisible ()
 

Protected Attributes

QY2ComboTabWidget * _secondaryFilters
 
QWidget * _allPackages
 
QWidget * _unmaintainedPackages
 
YQPkgSearchFilterView_searchFilterView
 
YQPkgStatusFilterView_statusFilterView
 

Detailed Description

This is a base class for filter views containing a secondary filter.

Definition at line 36 of file YQPkgSecondaryFilterView.h.

Member Function Documentation

◆ filter

void YQPkgSecondaryFilterView::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 148 of file YQPkgSecondaryFilterView.cc.

◆ filterStart

void YQPkgSecondaryFilterView::filterStart ( )
signal

Emitted when the filtering starts.

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

◆ init()

void YQPkgSecondaryFilterView::init ( QWidget *  primary_widget)

Initialize the primary widget.

Parameters
primary_widgetthe primary widget to which the secondary views will be added. It should be a subclass of YQPkgSecondaryFilterView.

Definition at line 43 of file YQPkgSecondaryFilterView.cc.

Here is the call graph for this function:

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