Main Page | Class Hierarchy | Class List | File List | Class Members | File Members

YQPkgSearchFilterView Class Reference

Filter view for searching within packages. More...

#include <YQPkgSearchFilterView.h>

List of all members.

Public Slots

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

Signals

void filterStart ()
void filterMatch (PMPackagePtr pkg)
void filterFinished ()
void message (const QString &text)

Public Member Functions

 YQPkgSearchFilterView (QWidget *parent)
virtual ~YQPkgSearchFilterView ()
virtual QSize minimumSizeHint () const

Protected Member Functions

bool check (PMPackagePtr pkg, const QRegExp &regexp)
bool check (const string &attribute, const QRegExp &regexp)
bool check (const list< string > &strList, const QRegExp &regexp)
bool check (const PMSolvable::PkgRelList_type &relList, const QRegExp &regexp)
virtual void keyPressEvent (QKeyEvent *event)

Protected Attributes

QComboBox * _searchText
QPushButton * _searchButton
QCheckBox * _searchInName
QCheckBox * _searchInSummary
QCheckBox * _searchInDescription
QCheckBox * _searchInRequires
QCheckBox * _searchInProvides
QCheckBox * _caseSensitive
QRadioButton * _contains
QRadioButton * _beginsWith
QRadioButton * _exactMatch
QRadioButton * _useWildcards
QRadioButton * _useRegexp
int _matchCount


Detailed Description

Filter view for searching within packages.


Constructor & Destructor Documentation

YQPkgSearchFilterView::YQPkgSearchFilterView QWidget *  parent  ) 
 

Constructor

YQPkgSearchFilterView::~YQPkgSearchFilterView  )  [virtual]
 

Destructor


Member Function Documentation

bool YQPkgSearchFilterView::check const PMSolvable::PkgRelList_type relList,
const QRegExp &  regexp
[protected]
 

Check PkgRelList attribute ( PMSolvable::provides(), PMSolvable::requires(), ... )

bool YQPkgSearchFilterView::check const list< string > &  strList,
const QRegExp &  regexp
[protected]
 

Check multi-line attribute

bool YQPkgSearchFilterView::check const string &  attribute,
const QRegExp &  regexp
[protected]
 

Check if a single pkg attribute matches the search criteria.

bool YQPkgSearchFilterView::check PMPackagePtr  pkg,
const QRegExp &  regexp
[protected]
 

Check if pkg matches the search criteria.

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

void YQPkgSearchFilterView::filterFinished  )  [signal]
 

Emitted when filtering is finished.

void YQPkgSearchFilterView::filterIfVisible  )  [slot]
 

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

void YQPkgSearchFilterView::filterMatch PMPackagePtr  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  )  [protected, virtual]
 

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

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.

void YQPkgSearchFilterView::setFocus  )  [slot]
 

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


Member Data Documentation

QRadioButton* YQPkgSearchFilterView::_beginsWith [protected]
 

QCheckBox* YQPkgSearchFilterView::_caseSensitive [protected]
 

QRadioButton* YQPkgSearchFilterView::_contains [protected]
 

QRadioButton* YQPkgSearchFilterView::_exactMatch [protected]
 

int YQPkgSearchFilterView::_matchCount [protected]
 

QPushButton* YQPkgSearchFilterView::_searchButton [protected]
 

QCheckBox* YQPkgSearchFilterView::_searchInDescription [protected]
 

QCheckBox* YQPkgSearchFilterView::_searchInName [protected]
 

QCheckBox* YQPkgSearchFilterView::_searchInProvides [protected]
 

QCheckBox* YQPkgSearchFilterView::_searchInRequires [protected]
 

QCheckBox* YQPkgSearchFilterView::_searchInSummary [protected]
 

QComboBox* YQPkgSearchFilterView::_searchText [protected]
 

QRadioButton* YQPkgSearchFilterView::_useRegexp [protected]
 

QRadioButton* YQPkgSearchFilterView::_useWildcards [protected]
 


The documentation for this class was generated from the following files:
Generated on Fri Oct 14 19:03:48 2005 for yast2-qt by doxygen 1.3.6