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

Private Member Functions

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

Private Attributes

TableViewHeaderm_header
 The table header.
 
TableViewContentm_content
 The content of the header.
 
TableColumnListm_columns
 The columns of the table.
 
AbstractTableModelm_model
 The model of the table.
 
QString * m_settingsPath
 Path of where to read/write the settings.
 
QLabel * m_warningLabel
 Label of any warnings.
 

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 43 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 34 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 125 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 196 of file TableView.cpp.

References m_content.

Referenced by Isis::Directory::addCnetEditorView().

◆ displayWarning

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

Displays warnings for a table.

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

◆ getHorizontalHeader()

◆ getModel()

AbstractTableModel * Isis::TableView::getModel ( )

Returns the model.

Returns
AbstractTableModel The model

Definition at line 186 of file TableView.cpp.

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

◆ handleModelSelectionChanged [1/2]

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

◆ handleModelSelectionChanged [2/2]

void Isis::TableView::handleModelSelectionChanged ( QList< AbstractTreeItem * > newlySelectedItems)
slot

Definition at line 283 of file TableView.cpp.

◆ nullify()

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

◆ 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 172 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 93 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 92 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 91 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 94 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 95 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 96 of file TableView.h.

Referenced by displayWarning(), and TableView().


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