Optika GUI Toolik Version of the Day
Public Member Functions | Private Slots | Private Member Functions | Private Attributes
Optika::SearchWidget Class Reference

#include <Optika_metawindow.hpp>

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

List of all members.

Public Member Functions

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

Private Slots

void search ()
void next ()
void previous ()

Private Member Functions

QModelIndexList removeHiddenItems (QModelIndexList &items)

Private Attributes

QPushButton * searchButton
QPushButton * closeButton
QPushButton * nextButton
QPushButton * previousButton
QLineEdit * searchTermsEdit
QLabel * matchesLabel
TreeModeltreeModel
TreeViewtreeView
QList< QModelIndex > currentSearchResults
QList< QModelIndex >
::const_iterator 
currentSearchIterator

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 46 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 47 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 76 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 99 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 107 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 115 of file Optika_metawindow.cpp.


Member Data Documentation

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

Widgets comprising a search widget

Definition at line 93 of file Optika_metawindow.hpp.

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

Definition at line 93 of file Optika_metawindow.hpp.

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

Definition at line 93 of file Optika_metawindow.hpp.

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

Definition at line 93 of file Optika_metawindow.hpp.

Definition at line 94 of file Optika_metawindow.hpp.

Definition at line 95 of file Optika_metawindow.hpp.

Definition at line 96 of file Optika_metawindow.hpp.

Definition at line 97 of file Optika_metawindow.hpp.

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

The results of the search last performed.

Definition at line 102 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 107 of file Optika_metawindow.hpp.


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