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

RPM group tags filter view: Display the RPM group tags tree and emit signals if any group tag is selected so a package list can be filled or updated. More...

#include <YQPkgRpmGroupTagsFilterView.h>

Inheritance diagram for YQPkgRpmGroupTagsFilterView:
Collaboration diagram for YQPkgRpmGroupTagsFilterView:

Public Slots

void filter ()
 
void filterIfVisible ()
 
void selectSomething ()
 
static YRpmGroupsTree * rpmGroupsTree ()
 

Signals

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

Public Member Functions

 YQPkgRpmGroupTagsFilterView (QWidget *parent)
 
virtual ~YQPkgRpmGroupTagsFilterView ()
 
YQPkgRpmGroupTagselection () const
 
bool check (ZyppSel selectable, ZyppPkg pkg)
 
const string & selectedRpmGroup () const
 

Protected Slots

void slotSelectionChanged (QTreeWidgetItem *newSelection)
 

Protected Member Functions

void cloneTree (YStringTreeItem *parentRpmGroup, YQPkgRpmGroupTag *parentClone=0)
 

Static Protected Member Functions

static void fillRpmGroupsTree ()
 

Protected Attributes

string _selectedRpmGroup
 

Static Protected Attributes

static YRpmGroupsTree * _rpmGroupsTree = 0
 

Detailed Description

RPM group tags filter view: Display the RPM group tags tree and emit signals if any group tag is selected so a package list can be filled or updated.

Definition at line 59 of file YQPkgRpmGroupTagsFilterView.h.

Constructor & Destructor Documentation

YQPkgRpmGroupTagsFilterView::YQPkgRpmGroupTagsFilterView ( QWidget *  parent)

Constructor

Definition at line 56 of file YQPkgRpmGroupTagsFilterView.cc.

Here is the call graph for this function:

YQPkgRpmGroupTagsFilterView::~YQPkgRpmGroupTagsFilterView ( )
virtual

Destructor

Definition at line 72 of file YQPkgRpmGroupTagsFilterView.cc.

Member Function Documentation

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

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

Definition at line 214 of file YQPkgRpmGroupTagsFilterView.cc.

Here is the call graph for this function:

void YQPkgRpmGroupTagsFilterView::cloneTree ( YStringTreeItem *  parentRpmGroup,
YQPkgRpmGroupTag parentClone = 0 
)
protected

Recursively clone the RPM group tag tree for the QListView widget: Make a deep copy of the tree starting at 'parentRpmGroup' and 'parentClone'.

Definition at line 111 of file YQPkgRpmGroupTagsFilterView.cc.

void YQPkgRpmGroupTagsFilterView::fillRpmGroupsTree ( )
staticprotected

Fill the internal RPM groups tree with RPM groups of all packages currently in the pool

Definition at line 92 of file YQPkgRpmGroupTagsFilterView.cc.

Here is the call graph for this function:

void YQPkgRpmGroupTagsFilterView::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 153 of file YQPkgRpmGroupTagsFilterView.cc.

Here is the call graph for this function:

void YQPkgRpmGroupTagsFilterView::filterFinished ( )
signal

Emitted when filtering is finished.

void YQPkgRpmGroupTagsFilterView::filterIfVisible ( )
slot

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

Definition at line 145 of file YQPkgRpmGroupTagsFilterView.cc.

Here is the call graph for this function:

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

Emitted during filtering for each pkg that matches the filter.

void YQPkgRpmGroupTagsFilterView::filterStart ( )
signal

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

YRpmGroupsTree * YQPkgRpmGroupTagsFilterView::rpmGroupsTree ( )
staticslot

Returns the internal RPM groups tree and fills it if it doesn't exist yet.

Definition at line 78 of file YQPkgRpmGroupTagsFilterView.cc.

Here is the call graph for this function:

const string& YQPkgRpmGroupTagsFilterView::selectedRpmGroup ( ) const
inline

Returns the (untranslated!) currently selected RPM group as string. Special case: "*" is returned if "zzz_All" is selected.

Definition at line 91 of file YQPkgRpmGroupTagsFilterView.h.

YQPkgRpmGroupTag * YQPkgRpmGroupTagsFilterView::selection ( ) const

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

Definition at line 241 of file YQPkgRpmGroupTagsFilterView.cc.

void YQPkgRpmGroupTagsFilterView::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 134 of file YQPkgRpmGroupTagsFilterView.cc.

void YQPkgRpmGroupTagsFilterView::slotSelectionChanged ( QTreeWidgetItem *  newSelection)
protectedslot

Update _selectedRpmGroup and filter data

Definition at line 193 of file YQPkgRpmGroupTagsFilterView.cc.

Here is the call graph for this function:


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