Optika  Development
 All Classes Files Functions Variables Typedefs Pages
List of all members
Optika::TreeView Class Reference

Class used to view TreeModels. More...

#include <Optika_treeview.hpp>

Inheritance diagram for Optika::TreeView:
Inheritance graph
[legend]
Collaboration diagram for Optika::TreeView:
Collaboration graph
[legend]

Public Types

Public types
typedef std::pair< QModelIndex,
QString > 
invalidIndex
 A pair representing an invalidIndex and why it's invalid.
 

Public Slots

Public Slots
void showRow (int row, const QModelIndex &parent)
 Used to change the visiblity of a row from hidden to shown. More...
 
void hideRow (int row, const QModelIndex &parent)
 Used to change the visiblity of a row from shown to hidden. More...
 
void handleBadValue (QModelIndex badValueIndex, QString message)
 Handles any badValue signals that might be emitted by the TreeModel. More...
 
void checkForOtherBadValues ()
 Checks to see if there are any other invalid indicies. If there are, it dequeues the next invalidIndex from the invalidIndicies queue and calls the handleBadValue function with it.
 

Public Member Functions

Constructors
 TreeView (TreeModel *treeModel, Delegate *delegate, QWidget *parent=0)
 Constructs a TreeView. More...
 

Detailed Description

Class used to view TreeModels.

Constructor & Destructor Documentation

Optika::TreeView::TreeView ( TreeModel treeModel,
Delegate delegate,
QWidget *  parent = 0 
)

Constructs a TreeView.

Parameters
treeModelThe Tree Model being used with the TreeView.
delegateThe delegate to be used with the TreeView.
parentThe parent widget.

References checkForOtherBadValues(), handleBadValue(), Optika::TreeModel::hasDependencies(), hideRow(), Optika::TreeModel::issueInitilizationSignals(), and showRow().

Member Function Documentation

void Optika::TreeView::handleBadValue ( QModelIndex  badValueIndex,
QString  message 
)
slot

Handles any badValue signals that might be emitted by the TreeModel.

Parameters
badValueIndexThe index of the item with the bad value.
Abrief message explaining what happened to cause the treeitem to have an invalid value.

Referenced by checkForOtherBadValues(), and TreeView().

void Optika::TreeView::hideRow ( int  row,
const QModelIndex &  parent 
)
slot

Used to change the visiblity of a row from shown to hidden.

Parameters
rowThe row to be shwon.
parentThe parent of the item to be hidden.

Referenced by TreeView().

void Optika::TreeView::showRow ( int  row,
const QModelIndex &  parent 
)
slot

Used to change the visiblity of a row from hidden to shown.

Parameters
rowThe row to be shwon.
parentThe parent of the item to be shown.

Referenced by TreeView().


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