libyui-qt-pkg
2.42.13
|
Filter view for searching within packages. More...
#include <YQPkgSearchFilterView.h>
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 ®exp) |
bool | check (const string &attribute, const QRegExp ®exp) |
bool | check (const zypp::Capabilities &capSet, const QRegExp ®exp) |
Filter view for searching within packages.
Definition at line 62 of file YQPkgSearchFilterView.h.
YQPkgSearchFilterView::YQPkgSearchFilterView | ( | QWidget * | parent | ) |
Constructor
Definition at line 70 of file YQPkgSearchFilterView.cc.
|
virtual |
Destructor
Definition at line 175 of file YQPkgSearchFilterView.cc.
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.
|
protected |
Check if pkg matches the search criteria.
Definition at line 380 of file YQPkgSearchFilterView.cc.
|
protected |
Check if a single pkg attribute matches the search criteria.
Definition at line 410 of file YQPkgSearchFilterView.cc.
|
protected |
Check capability like zypp::Resolvable::dep( zypp::Dep::PROVIDES ), zypp::Resolvable::dep( zypp::Dep::REQUIRES )
Definition at line 445 of file YQPkgSearchFilterView.cc.
|
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.
|
signal |
Emitted when filtering is finished.
|
slot |
Same as filter(), but only if this widget is currently visible.
Definition at line 218 of file YQPkgSearchFilterView.cc.
|
signal |
Emitted during filtering for each pkg that matches the filter.
|
signal |
Emitted when the filtering starts. Use this to clear package lists etc. prior to adding new entries.
|
protectedvirtual |
Key press event: Execute search upon 'Return' Reimplemented from QVBox / QWidget.
Definition at line 182 of file YQPkgSearchFilterView.cc.
|
signal |
Send a short message about unsuccessful searches.
|
virtual |
Returns the minimum size required for this widget. Inherited from QWidget.
Definition at line 211 of file YQPkgSearchFilterView.cc.
|
slot |
Set the keyboard focus into this view's input field.
Definition at line 204 of file YQPkgSearchFilterView.cc.