Isis Developer Reference
Isis::AbstractTableModel Class Referenceabstract

Translates the tree model into a table model. More...

#include <AbstractTableModel.h>

Inheritance diagram for Isis::AbstractTableModel:
Inheritance graph
Collaboration diagram for Isis::AbstractTableModel:
Collaboration graph

Public Types

enum  Warning { None = 0 , SortingDisabled , SortingTableSizeLimitReached }
 

Public Slots

virtual void setGlobalSelection (bool selected)=0
 
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

 AbstractTableModel (AbstractTreeModel *, AbstractTableDelegate *)
 
virtual ~AbstractTableModel ()
 
virtual QList< AbstractTreeItem * > getItems (int, int)=0
 
virtual QList< AbstractTreeItem * > getItems (AbstractTreeItem *, AbstractTreeItem *)=0
 
virtual QList< AbstractTreeItem * > getSelectedItems ()=0
 
virtual int getVisibleRowCount () const =0
 
virtual QString getWarningMessage (AbstractTreeItem const *, TableColumn const *, QString valueToSave) const =0
 
virtual int indexOfVisibleItem (AbstractTreeItem const *item) const =0
 
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
 

Protected Member Functions

virtual TableColumnListcreateColumns ()=0
 
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

Translates the tree model into a table model.

This class acts as a proxy model for the abstract tree model by allowing the user to access data in a table-like fashion (by sorted row).

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

Member Enumeration Documentation

◆ Warning

Enumerator
None 
SortingDisabled 
SortingTableSizeLimitReached 

Constructor & Destructor Documentation

◆ AbstractTableModel()

◆ ~AbstractTableModel()

Isis::AbstractTableModel::~AbstractTableModel ( )
virtual

Member Function Documentation

◆ applyFilter

void Isis::AbstractTableModel::applyFilter ( )
virtualslot

◆ createColumns()

virtual TableColumnList * Isis::AbstractTableModel::createColumns ( )
protectedpure virtual

Implemented in Isis::MeasureTableModel, and Isis::PointTableModel.

Referenced by getColumns().

◆ filterCountsChanged

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

◆ filterProgressChanged

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

Referenced by AbstractTableModel().

◆ filterProgressRangeChanged

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

Referenced by AbstractTableModel().

◆ getColumns()

TableColumnList * Isis::AbstractTableModel::getColumns ( )
virtual

◆ getDataModel() [1/2]

◆ getDataModel() [2/2]

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

◆ getDelegate()

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

◆ getItems() [1/2]

virtual QList< AbstractTreeItem * > Isis::AbstractTableModel::getItems ( AbstractTreeItem * ,
AbstractTreeItem *  )
pure virtual

◆ getItems() [2/2]

virtual QList< AbstractTreeItem * > Isis::AbstractTableModel::getItems ( int ,
int  )
pure virtual

◆ getSelectedItems()

virtual QList< AbstractTreeItem * > Isis::AbstractTableModel::getSelectedItems ( )
pure virtual

◆ getSortedItems() [1/2]

◆ getSortedItems() [2/2]

◆ getVisibleRowCount()

virtual int Isis::AbstractTableModel::getVisibleRowCount ( ) const
pure virtual

◆ getWarningMessage()

virtual QString Isis::AbstractTableModel::getWarningMessage ( AbstractTreeItem const * ,
TableColumn const * ,
QString valueToSave ) const
pure virtual

◆ handleTreeSelectionChanged()

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

◆ indexOfVisibleItem()

virtual int Isis::AbstractTableModel::indexOfVisibleItem ( AbstractTreeItem const * item) const
pure virtual

◆ isFiltering()

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

◆ isSorting()

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

Referenced by sort().

◆ modelModified

void Isis::AbstractTableModel::modelModified ( )
signal

◆ rebuildProgressChanged

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

Referenced by AbstractTableModel().

◆ rebuildProgressRangeChanged

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

Referenced by AbstractTableModel().

◆ rebuildSort

void Isis::AbstractTableModel::rebuildSort ( )
virtualslot

◆ reverseOrder

void Isis::AbstractTableModel::reverseOrder ( TableColumn * column)
virtualslot

◆ setGlobalSelection

virtual void Isis::AbstractTableModel::setGlobalSelection ( bool selected)
pure virtualslot

◆ setSortingEnabled()

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

◆ setSortLimit()

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

◆ sort

◆ sortingIsEnabled()

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

◆ sortingOn()

bool Isis::AbstractTableModel::sortingOn ( ) const
virtual

◆ sortLimit()

◆ sortProgressChanged

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

◆ sortProgressRangeChanged

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

◆ tableSelectionChanged

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

Referenced by AbstractTableModel().

◆ treeSelectionChanged

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

◆ updateSort

void Isis::AbstractTableModel::updateSort ( )
virtualslot

◆ userWarning

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

Referenced by rebuildSort().


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