![]() |
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... | |
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 36 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 127 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 199 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 257 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 164 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 189 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 283 of file TableView.cpp.
References m_content, and Isis::TableViewContent::refresh().
Referenced by TableView().
|
private |
Sets all member variables to NULL.
Definition at line 297 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 175 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().