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

#include <YQPkgSecondaryFilterView.h>

Inheritance diagram for YQPkgSecondaryFilterView:
Collaboration diagram for YQPkgSecondaryFilterView:

Public Slots

void filter ()
 
void filterIfVisible ()
 

Signals

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

Public Member Functions

 YQPkgSecondaryFilterView (QWidget *parent)
 
virtual ~YQPkgSecondaryFilterView ()
 
void init (QWidget *primary_widget)
 

Protected Slots

void primaryFilterMatch (ZyppSel selectable, ZyppPkg pkg)
 
void primaryFilterNearMatch (ZyppSel selectable, ZyppPkg pkg)
 

Protected Member Functions

QWidget * layoutSecondaryFilters (QWidget *parent, QWidget *primary_widget)
 
bool secondaryFilterMatch (ZyppSel selectable, ZyppPkg pkg)
 
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

Constructor & Destructor Documentation

◆ YQPkgSecondaryFilterView()

YQPkgSecondaryFilterView::YQPkgSecondaryFilterView ( QWidget *  parent)

Constructor Because of the circular dependencies you have to call the init() method later with the new subclassed object.

◆ ~YQPkgSecondaryFilterView()

YQPkgSecondaryFilterView::~YQPkgSecondaryFilterView ( )
virtual

Destructor

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

◆ filterFinished

void YQPkgSecondaryFilterView::filterFinished ( )
signal

Emitted when filtering is finished.

◆ filterIfVisible

void YQPkgSecondaryFilterView::filterIfVisible ( )
slot

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

◆ filterMatch

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

Emitted during filtering for each pkg that matches the filter and the candidate package comes from the respective repository

◆ filterNearMatch

void YQPkgSecondaryFilterView::filterNearMatch ( ZyppSel  selectable,
ZyppPkg  pkg 
)
signal

Emitted during filtering for each pkg that matches the filter and the candidate package does not come from the respective repository

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

◆ layoutSecondaryFilters()

QWidget * YQPkgSecondaryFilterView::layoutSecondaryFilters ( QWidget *  parent,
QWidget *  primary_widget 
)
protected

Widget layout for the secondary filters

◆ primaryFilterMatch

void YQPkgSecondaryFilterView::primaryFilterMatch ( ZyppSel  selectable,
ZyppPkg  pkg 
)
protectedslot

Propagate a filter match from the primary filter and appy any selected secondary filter(s) to it

◆ primaryFilterNearMatch

void YQPkgSecondaryFilterView::primaryFilterNearMatch ( ZyppSel  selectable,
ZyppPkg  pkg 
)
protectedslot

Propagate a filter near match from the primary filter and appy any selected secondary filter(s) to it

◆ secondaryFilterMatch()

bool YQPkgSecondaryFilterView::secondaryFilterMatch ( ZyppSel  selectable,
ZyppPkg  pkg 
)
protected

Check if pkg matches the the currently selected secondary filter


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