Isis 3 Programmer Reference
|
#include <TableView.h>
Public Slots | |
void | displayWarning (AbstractTableModel::Warning) |
Displays warnings for a table. More... | |
void | handleModelSelectionChanged () |
Handles refreshing the content when the model selection is changed. More... | |
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. More... | |
virtual | ~TableView () |
Destructor. More... | |
QFont | getContentFont () const |
TableViewHeader * | getHorizontalHeader () |
Returns the horizontal header. More... | |
QStringList | getTitles () const |
void | setTitles (QStringList someTitle) |
void | setColumnVisible (QString, bool) |
Sets the specified column visible or invisible. More... | |
AbstractTableModel * | getModel () |
Returns the model. More... | |
void | readSettings () |
void | writeSettings () |
TableViewContent * | content () |
Returns the content of the table. More... | |
Private Member Functions | |
TableView (const TableView &) | |
TableView & | operator= (const TableView &other) |
void | nullify () |
Sets all member variables to NULL. More... | |
Private Attributes | |
TableViewHeader * | m_header |
The table header. More... | |
TableViewContent * | m_content |
The content of the header. More... | |
TableColumnList * | m_columns |
The columns of the table. More... | |
AbstractTableModel * | m_model |
The model of the table. More... | |
QString * | m_settingsPath |
Path of where to read/write the settings. More... | |
QLabel * | m_warningLabel |
Label of any warnings. More... | |
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 35 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 28 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 119 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 191 of file TableView.cpp.
References m_content.
Referenced by Isis::Directory::addCnetEditorView(), and Isis::Directory::newActiveControl().
|
slot |
Displays warnings for a table.
warning | The waarning that will be displayed |
Definition at line 249 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 156 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 181 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 275 of file TableView.cpp.
References m_content, and Isis::TableViewContent::refresh().
Referenced by TableView().
|
private |
Sets all member variables to NULL.
Definition at line 289 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 167 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 85 of file TableView.h.
Referenced by nullify(), setColumnVisible(), TableView(), and ~TableView().
|
private |
The content of the header.
Definition at line 84 of file TableView.h.
Referenced by content(), displayWarning(), getModel(), handleModelSelectionChanged(), nullify(), and TableView().
|
private |
The table header.
Definition at line 83 of file TableView.h.
Referenced by getHorizontalHeader(), nullify(), and TableView().
|
private |
The model of the table.
Definition at line 86 of file TableView.h.
Referenced by nullify(), TableView(), and ~TableView().
|
private |
Path of where to read/write the settings.
Definition at line 87 of file TableView.h.
Referenced by nullify(), TableView(), and ~TableView().
|
private |
Label of any warnings.
Definition at line 88 of file TableView.h.
Referenced by displayWarning(), and TableView().