Isis Developer Reference
|
#include <TableView.h>
Public Slots | |
void | displayWarning (AbstractTableModel::Warning) |
Displays warnings for a table. | |
void | handleModelSelectionChanged () |
Handles refreshing the content when the model selection is changed. | |
void | handleModelSelectionChanged (QList< AbstractTreeItem * >) |
Signals | |
void | activated () |
void | rebuildModels (QList< AbstractTreeItem * >) |
void | selectionChanged () |
void | modelDataChanged () |
void | tableSelectionChanged (QList< AbstractTreeItem * >) |
void | filterCountsChanged (int visibleRows, int totalRows) |
void | editControlPoint (ControlPoint *, QString) |
Public Member Functions | |
TableView (AbstractTableModel *someModel, QString pathForSettigs, QString objName) | |
Constructor. | |
virtual | ~TableView () |
Destructor. | |
QFont | getContentFont () const |
TableViewHeader * | getHorizontalHeader () |
Returns the horizontal header. | |
QStringList | getTitles () const |
void | setTitles (QStringList someTitle) |
void | setColumnVisible (QString, bool) |
Sets the specified column visible or invisible. | |
AbstractTableModel * | getModel () |
Returns the model. | |
void | readSettings () |
void | writeSettings () |
TableViewContent * | content () |
Returns the content of the table. | |
Isis::TableView::TableView | ( | AbstractTableModel * | someModel, |
QString | pathForSettings, | ||
QString | objName ) |
Constructor.
someModel | The abstract table model to view |
pathForSettings | The path to read/write settings to |
objName | The name of the object |
References displayWarning(), editControlPoint(), filterCountsChanged(), Isis::AbstractTableModel::getColumns(), Isis::TableColumn::getTitle(), handleModelSelectionChanged(), modelDataChanged(), Isis::TableColumnList::prepend(), rebuildModels(), selectionChanged(), Isis::TableColumnList::setSortingOrder(), Isis::TableColumnList::size(), and tableSelectionChanged().
|
virtual |
Destructor.
References Isis::TableColumnList::getSortingOrderAsStrings(), Isis::TableColumn::getTitle(), and Isis::TableColumnList::size().
|
signal |
TableViewContent * Isis::TableView::content | ( | ) |
Returns the content of the table.
Referenced by Isis::Directory::addCnetEditorView().
|
slot |
Displays warnings for a table.
warning | The waarning that will be displayed |
References Isis::TableViewContent::getModel(), Isis::AbstractTableModel::getVisibleRowCount(), Isis::AbstractTableModel::None, Isis::AbstractTableModel::SortingDisabled, Isis::AbstractTableModel::SortingTableSizeLimitReached, and Isis::AbstractTableModel::sortLimit().
Referenced by TableView().
|
signal |
Referenced by TableView().
|
signal |
Referenced by TableView().
QFont Isis::TableView::getContentFont | ( | ) | const |
TableViewHeader * Isis::TableView::getHorizontalHeader | ( | ) |
Returns the horizontal header.
Referenced by Isis::CnetEditorWidget::readSettings(), and Isis::CnetEditorWidget::writeSettings().
AbstractTableModel * Isis::TableView::getModel | ( | ) |
Returns the model.
References Isis::TableViewContent::getModel().
QStringList Isis::TableView::getTitles | ( | ) | const |
|
slot |
Handles refreshing the content when the model selection is changed.
References Isis::TableViewContent::refresh().
Referenced by TableView().
|
slot |
References Isis::TableViewContent::refresh(), and Isis::TableViewContent::scrollTo().
|
signal |
Referenced by TableView().
void Isis::TableView::readSettings | ( | ) |
|
signal |
Referenced by TableView().
|
signal |
Referenced by TableView().
void Isis::TableView::setColumnVisible | ( | QString | column, |
bool | visible ) |
Sets the specified column visible or invisible.
column | The column to change the visibility of |
visible | The visibility setting |
References Isis::TableColumn::setVisible(), and Isis::TableColumnList::size().
void Isis::TableView::setTitles | ( | QStringList | someTitle | ) |
|
signal |
Referenced by TableView().
void Isis::TableView::writeSettings | ( | ) |