Isis 3 Developer Reference
Isis::MeasureTableModel Class Reference

Table model for control measures. More...

#include <MeasureTableModel.h>

Inheritance diagram for Isis::MeasureTableModel:
Inheritance graph
Collaboration diagram for Isis::MeasureTableModel:
Collaboration graph

Public Types

enum  Warning { None = 0, SortingDisabled, SortingTableSizeLimitReached }
 

Public Slots

void handleTreeSelectionChanged (QList< AbstractTreeItem * >)
 
virtual void applyFilter ()
 
virtual void sort ()
 
virtual void reverseOrder (TableColumn *)
 
virtual void updateSort ()
 
virtual void rebuildSort ()
 

Signals

void modelModified ()
 
void filterProgressChanged (int)
 
void rebuildProgressChanged (int)
 
void sortProgressChanged (int)
 
void filterProgressRangeChanged (int, int)
 
void rebuildProgressRangeChanged (int, int)
 
void sortProgressRangeChanged (int, int)
 
void filterCountsChanged (int visibleRows, int totalRows)
 
void treeSelectionChanged (QList< AbstractTreeItem *>)
 
void tableSelectionChanged (QList< AbstractTreeItem *>)
 
void userWarning (AbstractTableModel::Warning)
 

Public Member Functions

 MeasureTableModel (AbstractTreeModel *model)
 
virtual ~MeasureTableModel ()
 
virtual QList< AbstractTreeItem *> getItems (int, int)
 
virtual QList< AbstractTreeItem *> getItems (AbstractTreeItem *, AbstractTreeItem *)
 
virtual int getVisibleRowCount () const
 
virtual QList< AbstractTreeItem *> getSelectedItems ()
 
virtual QString getWarningMessage (AbstractTreeItem const *, TableColumn const *, QString valueToSave) const
 
virtual void setGlobalSelection (bool selected)
 
virtual int indexOfVisibleItem (AbstractTreeItem const *item) const
 
virtual bool isSorting () const
 
virtual bool isFiltering () const
 
virtual bool sortingIsEnabled () const
 
virtual void setSortingEnabled (bool)
 
virtual int sortLimit () const
 
virtual void setSortLimit (int)
 
virtual bool sortingOn () const
 
virtual TableColumnListgetColumns ()
 
virtual const AbstractTableDelegategetDelegate () const
 

Static Public Member Functions

static QString getMeasureWarningMessage (AbstractTreeItem const *, TableColumn const *, QString valueToSave)
 

Protected Member Functions

virtual TableColumnListcreateColumns ()
 
AbstractTreeModelgetDataModel ()
 
const AbstractTreeModelgetDataModel () const
 
virtual QList< AbstractTreeItem *> getSortedItems (int, int, AbstractTreeModel::InterestingItems)
 
virtual QList< AbstractTreeItem *> getSortedItems (AbstractTreeItem *, AbstractTreeItem *, AbstractTreeModel::InterestingItems)
 
void handleTreeSelectionChanged (QList< AbstractTreeItem * > newlySelectedItems, AbstractTreeItem::InternalPointerType)
 

Detailed Description

Table model for control measures.

This class represents a model that provides access to control measures in a table-like fashion. It acts as a proxy model to the underlying tree model by providing an interface to get items by index ranges, get selected items, etc.. Thus, users of the class can access all control measures in the underlying tree model without having to worry about the details of traversing the tree structure to find the items of interest. The class also has knowledge of what columns should be in the control measure table.

Author
????-??-?? Eric Hyer

Member Enumeration Documentation

◆ Warning

Enumerator
None 
SortingDisabled 
SortingTableSizeLimitReached 

Constructor & Destructor Documentation

◆ MeasureTableModel()

◆ ~MeasureTableModel()

Isis::MeasureTableModel::~MeasureTableModel ( )
virtual

Member Function Documentation

◆ applyFilter

void Isis::AbstractTableModel::applyFilter ( )
virtualslotinherited

◆ createColumns()

TableColumnList * Isis::MeasureTableModel::createColumns ( )
protectedvirtual

◆ filterCountsChanged

void Isis::AbstractTableModel::filterCountsChanged ( int  visibleRows,
int  totalRows 
)
signalinherited

◆ filterProgressChanged

void Isis::AbstractTableModel::filterProgressChanged ( int  )
signalinherited

◆ filterProgressRangeChanged

void Isis::AbstractTableModel::filterProgressRangeChanged ( int  ,
int   
)
signalinherited

◆ getColumns()

◆ getDataModel() [1/2]

◆ getDataModel() [2/2]

const AbstractTreeModel * Isis::AbstractTableModel::getDataModel ( ) const
protectedinherited

References ASSERT.

◆ getDelegate()

const AbstractTableDelegate * Isis::AbstractTableModel::getDelegate ( ) const
virtualinherited

◆ getItems() [1/2]

QList< AbstractTreeItem *> Isis::MeasureTableModel::getItems ( int  start,
int  end 
)
virtual

◆ getItems() [2/2]

QList< AbstractTreeItem *> Isis::MeasureTableModel::getItems ( AbstractTreeItem item1,
AbstractTreeItem item2 
)
virtual

◆ getMeasureWarningMessage()

◆ getSelectedItems()

◆ getSortedItems() [1/2]

◆ getSortedItems() [2/2]

◆ getVisibleRowCount()

int Isis::MeasureTableModel::getVisibleRowCount ( ) const
virtual

◆ getWarningMessage()

QString Isis::MeasureTableModel::getWarningMessage ( AbstractTreeItem const *  row,
TableColumn const *  column,
QString  valueToSave 
) const
virtual

◆ handleTreeSelectionChanged [1/2]

void Isis::MeasureTableModel::handleTreeSelectionChanged ( QList< AbstractTreeItem * >  newlySelectedItems)
slot

◆ handleTreeSelectionChanged() [2/2]

void Isis::AbstractTableModel::handleTreeSelectionChanged ( QList< AbstractTreeItem * >  newlySelectedItems,
AbstractTreeItem::InternalPointerType  pointerType 
)
protectedinherited

◆ indexOfVisibleItem()

int Isis::MeasureTableModel::indexOfVisibleItem ( AbstractTreeItem const *  item) const
virtual

◆ isFiltering()

bool Isis::AbstractTableModel::isFiltering ( ) const
virtualinherited

◆ isSorting()

bool Isis::AbstractTableModel::isSorting ( ) const
virtualinherited

◆ modelModified

void Isis::AbstractTableModel::modelModified ( )
signalinherited

◆ rebuildProgressChanged

void Isis::AbstractTableModel::rebuildProgressChanged ( int  )
signalinherited

◆ rebuildProgressRangeChanged

void Isis::AbstractTableModel::rebuildProgressRangeChanged ( int  ,
int   
)
signalinherited

◆ rebuildSort

◆ reverseOrder

void Isis::AbstractTableModel::reverseOrder ( TableColumn column)
virtualslotinherited

◆ setGlobalSelection()

void Isis::MeasureTableModel::setGlobalSelection ( bool  selected)
virtual

◆ setSortingEnabled()

void Isis::AbstractTableModel::setSortingEnabled ( bool  enabled)
virtualinherited

◆ setSortLimit()

void Isis::AbstractTableModel::setSortLimit ( int  limit)
virtualinherited

◆ sort

◆ sortingIsEnabled()

bool Isis::AbstractTableModel::sortingIsEnabled ( ) const
virtualinherited

◆ sortingOn()

◆ sortLimit()

◆ sortProgressChanged

void Isis::AbstractTableModel::sortProgressChanged ( int  )
signalinherited

◆ sortProgressRangeChanged

void Isis::AbstractTableModel::sortProgressRangeChanged ( int  ,
int   
)
signalinherited

◆ tableSelectionChanged

void Isis::AbstractTableModel::tableSelectionChanged ( QList< AbstractTreeItem *>  )
signalinherited

◆ treeSelectionChanged

void Isis::AbstractTableModel::treeSelectionChanged ( QList< AbstractTreeItem *>  )
signalinherited

◆ updateSort

void Isis::AbstractTableModel::updateSort ( )
virtualslotinherited

◆ userWarning

void Isis::AbstractTableModel::userWarning ( AbstractTableModel::Warning  )
signalinherited

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