libyui-qt-pkg  2.42.5
 All Classes Functions Variables Enumerations
YQPkgSearchFilterView Class Reference

Filter view for searching within packages. More...

#include <YQPkgSearchFilterView.h>

Inheritance diagram for YQPkgSearchFilterView:
Collaboration diagram for YQPkgSearchFilterView:

Public Slots

void filter ()
 
void filterIfVisible ()
 
void setFocus ()
 

Signals

void filterStart ()
 
void filterMatch (ZyppSel selectable, ZyppPkg pkg)
 
void filterFinished ()
 
void message (const QString &text)
 

Public Member Functions

 YQPkgSearchFilterView (QWidget *parent)
 
virtual ~YQPkgSearchFilterView ()
 
virtual QSize minimumSizeHint () const
 
bool check (ZyppSel selectable, ZyppObj zyppObj)
 

Protected Types

enum  SearchMode {
  Contains = 0, BeginsWith, ExactMatch, UseWildcards,
  UseRegExp
}
 

Protected Member Functions

virtual void keyPressEvent (QKeyEvent *event)
 
bool check (ZyppSel selectable, ZyppObj zyppObj, const QRegExp &regexp)
 
bool check (const string &attribute, const QRegExp &regexp)
 
bool check (const zypp::Capabilities &capSet, const QRegExp &regexp)
 

Protected Attributes

QComboBox * _searchText
 
QPushButton * _searchButton
 
QCheckBox * _searchInName
 
QCheckBox * _searchInKeywords
 
QCheckBox * _searchInSummary
 
QCheckBox * _searchInDescription
 
QCheckBox * _searchInRequires
 
QCheckBox * _searchInProvides
 
QCheckBox * _searchInFileList
 
QComboBox * _searchMode
 
QCheckBox * _caseSensitive
 
int _matchCount
 

Detailed Description

Filter view for searching within packages.

Definition at line 62 of file YQPkgSearchFilterView.h.

Constructor & Destructor Documentation

YQPkgSearchFilterView::YQPkgSearchFilterView ( QWidget *  parent)

Constructor

Definition at line 70 of file YQPkgSearchFilterView.cc.

Here is the call graph for this function:

YQPkgSearchFilterView::~YQPkgSearchFilterView ( )
virtual

Destructor

Definition at line 175 of file YQPkgSearchFilterView.cc.

Member Function Documentation

bool YQPkgSearchFilterView::check ( ZyppSel  selectable,
ZyppObj  zyppObj 
)

Check one ResObject against the currently selected values. Returns true if the package matches, false if not.

Definition at line 369 of file YQPkgSearchFilterView.cc.

bool YQPkgSearchFilterView::check ( ZyppSel  selectable,
ZyppObj  zyppObj,
const QRegExp &  regexp 
)
protected

Check if pkg matches the search criteria.

Definition at line 380 of file YQPkgSearchFilterView.cc.

Here is the call graph for this function:

bool YQPkgSearchFilterView::check ( const string &  attribute,
const QRegExp &  regexp 
)
protected

Check if a single pkg attribute matches the search criteria.

Definition at line 410 of file YQPkgSearchFilterView.cc.

bool YQPkgSearchFilterView::check ( const zypp::Capabilities &  capSet,
const QRegExp &  regexp 
)
protected

Check capability like zypp::Resolvable::dep( zypp::Dep::PROVIDES ), zypp::Resolvable::dep( zypp::Dep::REQUIRES )

Definition at line 445 of file YQPkgSearchFilterView.cc.

Here is the call graph for this function:

void YQPkgSearchFilterView::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 226 of file YQPkgSearchFilterView.cc.

Here is the call graph for this function:

void YQPkgSearchFilterView::filterFinished ( )
signal

Emitted when filtering is finished.

void YQPkgSearchFilterView::filterIfVisible ( )
slot

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

Definition at line 218 of file YQPkgSearchFilterView.cc.

Here is the call graph for this function:

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

Emitted during filtering for each pkg that matches the filter.

void YQPkgSearchFilterView::filterStart ( )
signal

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

void YQPkgSearchFilterView::keyPressEvent ( QKeyEvent *  event)
protectedvirtual

Key press event: Execute search upon 'Return' Reimplemented from QVBox / QWidget.

Definition at line 182 of file YQPkgSearchFilterView.cc.

void YQPkgSearchFilterView::message ( const QString &  text)
signal

Send a short message about unsuccessful searches.

QSize YQPkgSearchFilterView::minimumSizeHint ( ) const
virtual

Returns the minimum size required for this widget. Inherited from QWidget.

Definition at line 211 of file YQPkgSearchFilterView.cc.

void YQPkgSearchFilterView::setFocus ( )
slot

Set the keyboard focus into this view's input field.

Definition at line 204 of file YQPkgSearchFilterView.cc.


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