ParaView
Public Types | Public Slots | Public Member Functions | Protected Slots | Protected Member Functions
pqItemViewSearchWidget Class Reference

This is the search widget for QAbstractItemView type of widgets. More...

#include <pqItemViewSearchWidget.h>

List of all members.

Public Types

enum  ItemSearchType { Current, Next, Previous }

Public Slots

virtual void showSearchWidget ()

Public Member Functions

 pqItemViewSearchWidget (QWidget *parent=0)
virtual ~pqItemViewSearchWidget ()

Protected Slots

virtual void updateSearch (QString)
 Given the user entered text, update the GUI.
virtual void updateSearch ()
virtual void findNext ()
 Find the next/previous item.
virtual void findPrevious ()

Protected Member Functions

virtual void setBaseWidget (QWidget *baseWidget)
virtual bool eventFilter (QObject *obj, QEvent *event)
 Overridden to capture key presses.
virtual void keyPressEvent (QKeyEvent *e)
virtual bool searchModel (const QAbstractItemModel *M, const QModelIndex &Top, const QString &S, ItemSearchType searchType=Current) const
 Recursive to search all QModelIndices in the model.
void showEvent (QShowEvent *)
 Overwrite to focus the lineEdit box.
virtual bool matchString (const QAbstractItemModel *M, const QModelIndex &curIdx, const QString &searchString) const
 match the input string with the index's text

Detailed Description

This is the search widget for QAbstractItemView type of widgets.

When Ctrl-F is invoked on the view widget, this widget will show up at the top of the view widget, and it will search through the items as user typing in the text field, and highlight the view item containing the input text

Definition at line 45 of file pqItemViewSearchWidget.h.


Member Enumeration Documentation

Enumerator:
Current 
Next 
Previous 

Definition at line 54 of file pqItemViewSearchWidget.h.


Constructor & Destructor Documentation

pqItemViewSearchWidget::pqItemViewSearchWidget ( QWidget *  parent = 0)
virtual pqItemViewSearchWidget::~pqItemViewSearchWidget ( ) [virtual]

Member Function Documentation

virtual void pqItemViewSearchWidget::showSearchWidget ( ) [virtual, slot]
virtual void pqItemViewSearchWidget::updateSearch ( QString  ) [protected, virtual, slot]

Given the user entered text, update the GUI.

virtual void pqItemViewSearchWidget::updateSearch ( ) [protected, virtual, slot]
virtual void pqItemViewSearchWidget::findNext ( ) [protected, virtual, slot]

Find the next/previous item.

virtual void pqItemViewSearchWidget::findPrevious ( ) [protected, virtual, slot]
virtual void pqItemViewSearchWidget::setBaseWidget ( QWidget *  baseWidget) [protected, virtual]
virtual bool pqItemViewSearchWidget::eventFilter ( QObject *  obj,
QEvent *  event 
) [protected, virtual]

Overridden to capture key presses.

virtual void pqItemViewSearchWidget::keyPressEvent ( QKeyEvent *  e) [protected, virtual]
virtual bool pqItemViewSearchWidget::searchModel ( const QAbstractItemModel *  M,
const QModelIndex &  Top,
const QString &  S,
ItemSearchType  searchType = Current 
) const [protected, virtual]

Recursive to search all QModelIndices in the model.

void pqItemViewSearchWidget::showEvent ( QShowEvent *  ) [protected]

Overwrite to focus the lineEdit box.

virtual bool pqItemViewSearchWidget::matchString ( const QAbstractItemModel *  M,
const QModelIndex &  curIdx,
const QString &  searchString 
) const [protected, virtual]

match the input string with the index's text


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