Optika GUI Toolik Version of the Day
Optika::SearchWidget Class Reference

A small widget that searchs through a parameter list for a particular name of either a parameter or another parameter list. More...

#include <Optika_metawindow.hpp>

Inheritance diagram for Optika::SearchWidget:
Inheritance graph
[legend]

List of all members.

Constructors

 SearchWidget (TreeModel *treeModel, TreeView *treeView, QWidget *parent=0)
 Constructs a SearchWidget.

Private Slots

void search ()
 Searches the for a parameter or parameter list containing the string enterd in the search terms box.
void next ()
 Highlights the next result in the list of results that are set by the search function.
void previous ()
 Highlights the previous result in the list of results that are set by the search function.

Private Functions

QModelIndexList removeHiddenItems (QModelIndexList &items)
 Removes any indicies in a QModelIndexList that correspond to a hidden item.

Private Members

QPushButton * searchButton
 Widgets comprising a search widget.
QPushButton * closeButton
QPushButton * nextButton
QPushButton * previousButton
QLineEdit * searchTermsEdit
QLabel * matchesLabel
TreeModeltreeModel
TreeViewtreeView
QList< QModelIndex > currentSearchResults
 The results of the search last performed.
QList< QModelIndex >
::const_iterator 
currentSearchIterator
 An iterator over the results of the last search performed.

Detailed Description

A small widget that searchs through a parameter list for a particular name of either a parameter or another parameter list.

Definition at line 65 of file Optika_metawindow.hpp.


Constructor & Destructor Documentation

Optika::SearchWidget::SearchWidget ( TreeModel treeModel,
TreeView treeView,
QWidget *  parent = 0 
)

Constructs a SearchWidget.

Parameters:
treeModelThe TreeModel being searched.
treeViewThe TreeView being used to display the model.
parentThe parent widget.

Definition at line 61 of file Optika_metawindow.cpp.


Member Function Documentation

void Optika::SearchWidget::search ( ) [private, slot]

Searches the for a parameter or parameter list containing the string enterd in the search terms box.

Definition at line 90 of file Optika_metawindow.cpp.

void Optika::SearchWidget::next ( ) [private, slot]

Highlights the next result in the list of results that are set by the search function.

Definition at line 113 of file Optika_metawindow.cpp.

void Optika::SearchWidget::previous ( ) [private, slot]

Highlights the previous result in the list of results that are set by the search function.

Definition at line 121 of file Optika_metawindow.cpp.

QModelIndexList Optika::SearchWidget::removeHiddenItems ( QModelIndexList &  items) [private]

Removes any indicies in a QModelIndexList that correspond to a hidden item.

Parameters:
itemsA list of indicies from which all hidden items will be removed
Returns:
A QModelIndexList identical to the one specified in the items parameter except that all indicies corresponding to hidden items have been removed.

Definition at line 129 of file Optika_metawindow.cpp.


Member Data Documentation

QPushButton* Optika::SearchWidget::searchButton [private]

Widgets comprising a search widget.

Definition at line 133 of file Optika_metawindow.hpp.

QPushButton * Optika::SearchWidget::closeButton [private]

Definition at line 133 of file Optika_metawindow.hpp.

QPushButton * Optika::SearchWidget::nextButton [private]

Definition at line 133 of file Optika_metawindow.hpp.

QPushButton * Optika::SearchWidget::previousButton [private]

Definition at line 133 of file Optika_metawindow.hpp.

Definition at line 134 of file Optika_metawindow.hpp.

Definition at line 135 of file Optika_metawindow.hpp.

Definition at line 136 of file Optika_metawindow.hpp.

Definition at line 137 of file Optika_metawindow.hpp.

QList<QModelIndex> Optika::SearchWidget::currentSearchResults [private]

The results of the search last performed.

Definition at line 142 of file Optika_metawindow.hpp.

QList<QModelIndex>::const_iterator Optika::SearchWidget::currentSearchIterator [private]

An iterator over the results of the last search performed.

Definition at line 147 of file Optika_metawindow.hpp.


The documentation for this class was generated from the following files:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Friends Defines