Isis 3 Programmer 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. | |
Private Member Functions | |
TableView (const TableView &) | |
TableView & | operator= (const TableView &other) |
void | nullify () |
Sets all member variables to NULL. | |
Private Attributes | |
TableViewHeader * | m_header |
The table header. | |
TableViewContent * | m_content |
The content of the header. | |
TableColumnList * | m_columns |
The columns of the table. | |
AbstractTableModel * | m_model |
The model of the table. | |
QString * | m_settingsPath |
Path of where to read/write the settings. | |
QLabel * | m_warningLabel |
Label of any warnings. | |
2012-09-28 Kimberly Oyama - Changed member variables to be prefixed with "m_".
2017-05-18 Tracie Sucharski - Added a signal to indicate the control point chosen from either the point table or the measure table. If the point was chosen from the measure table, the serial number of the measure is also passed. This was added for IPCE, for the interaction with other views.
2017-07-25 Summer Stapleton - Removed the CnetViz namespace. Fixes #5054.
2017-08-08 Makayla Shepherd - Fixed a seg fault in ipce that occurs when attempting to edit a control point when there is not an active control network. Fixes #5048.
Definition at line 43 of file TableView.h.
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 |
Definition at line 34 of file TableView.cpp.
References displayWarning(), handleModelSelectionChanged(), m_columns, m_content, m_header, m_model, m_settingsPath, m_warningLabel, and nullify().
|
virtual |
Destructor.
Definition at line 125 of file TableView.cpp.
References m_columns, m_model, and m_settingsPath.
TableViewContent * Isis::TableView::content | ( | ) |
Returns the content of the table.
Definition at line 196 of file TableView.cpp.
References m_content.
Referenced by Isis::Directory::addCnetEditorView().
|
slot |
Displays warnings for a table.
warning | The waarning that will be displayed |
Definition at line 252 of file TableView.cpp.
References Isis::TableViewContent::getModel(), m_content, and m_warningLabel.
Referenced by TableView().
TableViewHeader * Isis::TableView::getHorizontalHeader | ( | ) |
Returns the horizontal header.
Definition at line 161 of file TableView.cpp.
References m_header.
Referenced by Isis::CnetEditorWidget::createMeasureTableView(), Isis::CnetEditorWidget::createPointTableView(), Isis::CnetEditorWidget::measureColToggled(), Isis::CnetEditorWidget::pointColToggled(), Isis::CnetEditorWidget::readSettings(), and Isis::CnetEditorWidget::writeSettings().
AbstractTableModel * Isis::TableView::getModel | ( | ) |
Returns the model.
Definition at line 186 of file TableView.cpp.
References Isis::TableViewContent::getModel(), and m_content.
|
slot |
Handles refreshing the content when the model selection is changed.
Definition at line 278 of file TableView.cpp.
References m_content, and Isis::TableViewContent::refresh().
Referenced by TableView().
|
slot |
Definition at line 283 of file TableView.cpp.
|
private |
Sets all member variables to NULL.
Definition at line 292 of file TableView.cpp.
References m_columns, m_content, m_header, m_model, and m_settingsPath.
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 |
Definition at line 172 of file TableView.cpp.
References m_columns.
Referenced by Isis::CnetEditorWidget::measureColToggled(), and Isis::CnetEditorWidget::pointColToggled().
|
private |
The columns of the table.
Definition at line 93 of file TableView.h.
Referenced by nullify(), setColumnVisible(), TableView(), and ~TableView().
|
private |
The content of the header.
Definition at line 92 of file TableView.h.
Referenced by content(), displayWarning(), getModel(), handleModelSelectionChanged(), nullify(), and TableView().
|
private |
The table header.
Definition at line 91 of file TableView.h.
Referenced by getHorizontalHeader(), nullify(), and TableView().
|
private |
The model of the table.
Definition at line 94 of file TableView.h.
Referenced by nullify(), TableView(), and ~TableView().
|
private |
Path of where to read/write the settings.
Definition at line 95 of file TableView.h.
Referenced by nullify(), TableView(), and ~TableView().
|
private |
Label of any warnings.
Definition at line 96 of file TableView.h.
Referenced by displayWarning(), and TableView().