Isis Developer Reference
|
Translates the tree model into a table model. More...
#include <AbstractTableModel.h>
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 TableColumnList * | getColumns () |
virtual const AbstractTableDelegate * | getDelegate () const |
Protected Member Functions | |
virtual TableColumnList * | createColumns ()=0 |
AbstractTreeModel * | getDataModel () |
const AbstractTreeModel * | getDataModel () const |
virtual QList< AbstractTreeItem * > | getSortedItems (int, int, AbstractTreeModel::InterestingItems) |
virtual QList< AbstractTreeItem * > | getSortedItems (AbstractTreeItem *, AbstractTreeItem *, AbstractTreeModel::InterestingItems) |
void | handleTreeSelectionChanged (QList< AbstractTreeItem * > newlySelectedItems, AbstractTreeItem::InternalPointerType) |
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).
Isis::AbstractTableModel::AbstractTableModel | ( | AbstractTreeModel * | model, |
AbstractTableDelegate * | someDelegate ) |
|
virtual |
References Isis::TableColumnList::size().
|
virtualslot |
References Isis::AbstractTreeModel::applyFilter(), and getDataModel().
|
protectedpure virtual |
Implemented in Isis::MeasureTableModel, and Isis::PointTableModel.
Referenced by getColumns().
|
signal |
|
signal |
Referenced by AbstractTableModel().
|
signal |
Referenced by AbstractTableModel().
|
virtual |
References createColumns(), and sort().
Referenced by Isis::TableViewHeader::setModel(), Isis::TableView::TableView(), and Isis::TableViewContent::TableViewContent().
|
protected |
Referenced by applyFilter(), Isis::MeasureTableModel::getSelectedItems(), Isis::PointTableModel::getSelectedItems(), getSortedItems(), getSortedItems(), Isis::MeasureTableModel::getVisibleRowCount(), Isis::PointTableModel::getVisibleRowCount(), Isis::MeasureTableModel::indexOfVisibleItem(), Isis::PointTableModel::indexOfVisibleItem(), Isis::MeasureTableModel::setGlobalSelection(), and Isis::PointTableModel::setGlobalSelection().
|
protected |
|
virtual |
|
pure virtual |
Implemented in Isis::MeasureTableModel, and Isis::PointTableModel.
|
pure virtual |
Implemented in Isis::MeasureTableModel, and Isis::PointTableModel.
Referenced by Isis::TableViewContent::keyPressEvent(), and rebuildSort().
|
pure virtual |
Implemented in Isis::MeasureTableModel, and Isis::PointTableModel.
Referenced by Isis::TableViewContent::mousePressEvent(), and Isis::TableViewContent::refresh().
|
protectedvirtual |
|
protectedvirtual |
|
pure virtual |
Implemented in Isis::MeasureTableModel, and Isis::PointTableModel.
Referenced by Isis::TableView::displayWarning(), Isis::TableViewContent::keyPressEvent(), Isis::TableViewContent::refresh(), and sortingOn().
|
pure virtual |
Implemented in Isis::MeasureTableModel, and Isis::PointTableModel.
|
protected |
|
pure virtual |
Implemented in Isis::MeasureTableModel, and Isis::PointTableModel.
Referenced by Isis::TableViewContent::keyPressEvent(), and Isis::TableViewContent::scrollTo().
|
virtual |
References Isis::AbstractTreeModel::isFiltering().
Referenced by getSortedItems(), and Isis::TableViewContent::refresh().
|
virtual |
Referenced by sort().
|
signal |
Referenced by AbstractTableModel(), rebuildSort(), and sort().
|
signal |
Referenced by AbstractTableModel().
|
signal |
Referenced by AbstractTableModel().
|
virtualslot |
References getItems(), modelModified(), None, sort(), SortingDisabled, sortingOn(), SortingTableSizeLimitReached, and userWarning().
Referenced by AbstractTableModel(), setSortingEnabled(), and setSortLimit().
|
virtualslot |
|
pure virtualslot |
Implemented in Isis::MeasureTableModel, and Isis::PointTableModel.
Referenced by Isis::TableViewContent::keyPressEvent(), and Isis::TableViewContent::mousePressEvent().
|
virtual |
References rebuildSort().
Referenced by Isis::CnetEditorWidget::setMeasureTableSortingEnabled(), and Isis::CnetEditorWidget::setPointTableSortingEnabled().
|
virtual |
References rebuildSort().
Referenced by Isis::CnetEditorWidget::setMeasureTableSortLimit(), and Isis::CnetEditorWidget::setPointTableSortLimit().
|
virtualslot |
References Isis::TableColumnList::getSortingOrder(), Isis::AbstractTreeModel::isFiltering(), Isis::AbstractTreeModel::isRebuilding(), isSorting(), modelModified(), and sortingOn().
Referenced by getColumns(), and rebuildSort().
|
virtual |
|
virtual |
References getVisibleRowCount(), sortingIsEnabled(), and sortLimit().
Referenced by getSortedItems(), getSortedItems(), Isis::TableViewHeader::mouseReleaseEvent(), rebuildSort(), and sort().
|
virtual |
|
signal |
|
signal |
|
signal |
Referenced by AbstractTableModel().
|
signal |
|
virtualslot |
|
signal |
Referenced by rebuildSort().