libyui-qt-pkg
 
Loading...
Searching...
No Matches
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.

Constructor & Destructor Documentation

◆ YQPkgSearchFilterView()

YQPkgSearchFilterView::YQPkgSearchFilterView ( QWidget * parent)

Constructor

◆ ~YQPkgSearchFilterView()

YQPkgSearchFilterView::~YQPkgSearchFilterView ( )
virtual

Destructor

Member Function Documentation

◆ check() [1/4]

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

Check if a single pkg attribute matches the search criteria.

◆ check() [2/4]

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 )

◆ check() [3/4]

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

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

◆ check() [4/4]

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

Check if pkg matches the search criteria.

◆ filter

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

◆ filterFinished

void YQPkgSearchFilterView::filterFinished ( )
signal

Emitted when filtering is finished.

◆ filterIfVisible

void YQPkgSearchFilterView::filterIfVisible ( )
slot

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

◆ filterMatch

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

Emitted during filtering for each pkg that matches the filter.

◆ filterStart

void YQPkgSearchFilterView::filterStart ( )
signal

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

◆ keyPressEvent()

void YQPkgSearchFilterView::keyPressEvent ( QKeyEvent * event)
protectedvirtual

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

◆ message

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

Send a short message about unsuccessful searches.

◆ minimumSizeHint()

QSize YQPkgSearchFilterView::minimumSizeHint ( ) const
virtual

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

◆ setFocus

void YQPkgSearchFilterView::setFocus ( )
slot

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


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