Isis 3 Programmer Reference
Isis::TableView Class Reference

#include <TableView.h>

Inheritance diagram for Isis::TableView:
Inheritance graph
Collaboration diagram for Isis::TableView:
Collaboration graph

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
 
TableViewHeadergetHorizontalHeader ()
 Returns the horizontal header. More...
 
QStringList getTitles () const
 
void setTitles (QStringList someTitle)
 
void setColumnVisible (QString, bool)
 Sets the specified column visible or invisible. More...
 
AbstractTableModelgetModel ()
 Returns the model. More...
 
void readSettings ()
 
void writeSettings ()
 
TableViewContentcontent ()
 Returns the content of the table. More...
 

Private Member Functions

 TableView (const TableView &)
 
TableViewoperator= (const TableView &other)
 
void nullify ()
 Sets all member variables to NULL. More...
 

Private Attributes

TableViewHeaderm_header
 The table header. More...
 
TableViewContentm_content
 The content of the header. More...
 
TableColumnListm_columns
 The columns of the table. More...
 
AbstractTableModelm_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...
 

Detailed Description

Author
????-??-?? Unknown
History:

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.

Constructor & Destructor Documentation

◆ TableView()

Isis::TableView::TableView ( AbstractTableModel someModel,
QString  pathForSettings,
QString  objName 
)

Constructor.

Parameters
someModelThe abstract table model to view
pathForSettingsThe path to read/write settings to
objNameThe 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().

◆ ~TableView()

Isis::TableView::~TableView ( )
virtual

Destructor.

Definition at line 119 of file TableView.cpp.

References m_columns, m_model, and m_settingsPath.

Member Function Documentation

◆ content()

TableViewContent * Isis::TableView::content ( )

Returns the content of the table.

Returns
TableViewContent 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().

◆ displayWarning

void Isis::TableView::displayWarning ( AbstractTableModel::Warning  warning)
slot

Displays warnings for a table.

Parameters
warningThe 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().

◆ getHorizontalHeader()

◆ getModel()

AbstractTableModel * Isis::TableView::getModel ( )

Returns the model.

Returns
AbstractTableModel The model

Definition at line 181 of file TableView.cpp.

References Isis::TableViewContent::getModel(), and m_content.

◆ handleModelSelectionChanged

void Isis::TableView::handleModelSelectionChanged ( )
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().

◆ nullify()

void Isis::TableView::nullify ( )
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().

◆ setColumnVisible()

void Isis::TableView::setColumnVisible ( QString  column,
bool  visible 
)

Sets the specified column visible or invisible.

Parameters
columnThe column to change the visibility of
visibleThe visibility setting

Definition at line 167 of file TableView.cpp.

References m_columns.

Referenced by Isis::CnetEditorWidget::measureColToggled(), and Isis::CnetEditorWidget::pointColToggled().

Member Data Documentation

◆ m_columns

TableColumnList* Isis::TableView::m_columns
private

The columns of the table.

Definition at line 85 of file TableView.h.

Referenced by nullify(), setColumnVisible(), TableView(), and ~TableView().

◆ m_content

TableViewContent* Isis::TableView::m_content
private

The content of the header.

Definition at line 84 of file TableView.h.

Referenced by content(), displayWarning(), getModel(), handleModelSelectionChanged(), nullify(), and TableView().

◆ m_header

TableViewHeader* Isis::TableView::m_header
private

The table header.

Definition at line 83 of file TableView.h.

Referenced by getHorizontalHeader(), nullify(), and TableView().

◆ m_model

AbstractTableModel* Isis::TableView::m_model
private

The model of the table.

Definition at line 86 of file TableView.h.

Referenced by nullify(), TableView(), and ~TableView().

◆ m_settingsPath

QString* Isis::TableView::m_settingsPath
private

Path of where to read/write the settings.

Definition at line 87 of file TableView.h.

Referenced by nullify(), TableView(), and ~TableView().

◆ m_warningLabel

QLabel* Isis::TableView::m_warningLabel
private

Label of any warnings.

Definition at line 88 of file TableView.h.

Referenced by displayWarning(), and TableView().


The documentation for this class was generated from the following files: