Optika GUI Toolik  Version of the Day
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
List of all members
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>

Inherits QDialog.

Constructors

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

Private Slots

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

Private Functions

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

Private Members

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

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

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

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

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.

QLineEdit* Optika::SearchWidget::searchTermsEdit
private

Definition at line 134 of file Optika_metawindow.hpp.

QLabel* Optika::SearchWidget::matchesLabel
private

Definition at line 135 of file Optika_metawindow.hpp.

TreeModel* Optika::SearchWidget::treeModel
private

Definition at line 136 of file Optika_metawindow.hpp.

TreeView* Optika::SearchWidget::treeView
private

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: