Isis 3 Programmer Reference
Isis::CnetEditorSortConfigDialog Class Reference

Configure user's sorting settings for the cneteditor widget. More...

#include <CnetEditorSortConfigDialog.h>

Inheritance diagram for Isis::CnetEditorSortConfigDialog:
Inheritance graph
Collaboration diagram for Isis::CnetEditorSortConfigDialog:
Collaboration graph

Public Slots

void applySettings ()
 Apply the user's current settings to the cneteditor widget.
 
void readSettings ()
 Read the cneteditor widget's current settings and set the widget states to match.
 

Public Member Functions

 CnetEditorSortConfigDialog (CnetEditorWidget *cnetWidget)
 Create a config dialog that configures the given FeatureCnetEditorSort.
 
 ~CnetEditorSortConfigDialog ()
 Clean up allocated memory.
 

Private Slots

void refreshWidgetStates ()
 Enable or disable inputs based on what the user has selected for options so far.
 

Private Attributes

QPointer< CnetEditorWidgetm_cnetWidget
 The cneteditor widget we're configuring.
 
QPointer< QCheckBox > m_pointSortingCheckBox
 Enable sorting on the point table.
 
QPointer< QSpinBoxm_pointTableLimitSpinBox
 When less than this number, sorting is enabled on the point table.
 
QPointer< QLabel > m_pointTableWarningsLabel
 Say (very clearly) if sorting is disabled and why.
 
QPointer< QCheckBox > m_measureSortingCheckBox
 Enable sorting on the measure table.
 
QPointer< QSpinBoxm_measureTableLimitSpinBox
 When less than this number, sorting is enabled on the measure table.
 
QPointer< QLabel > m_measureTableWarningsLabel
 Say (very clearly) if sorting is disabled and why.
 

Detailed Description

Configure user's sorting settings for the cneteditor widget.

This dialog enables the user to configure the sorting options in the cneteditor widget.

Author
2012-04-02 Steven Lambright and Jai Rideout
History

2012-09-28 Kimberly Oyama - Changed member variables to be prefixed with "m_".

2018-06-12 Kaitlyn Lee - Set the window title to "Table Sorting" with setWindowTitle().

Definition at line 37 of file CnetEditorSortConfigDialog.h.

Constructor & Destructor Documentation

◆ CnetEditorSortConfigDialog()

Isis::CnetEditorSortConfigDialog::CnetEditorSortConfigDialog ( CnetEditorWidget * cnetWidget)

Create a config dialog that configures the given FeatureCnetEditorSort.

Parameters
toolThe tool to read settings from and write settings to.
parentThe qt-parent relationship parent.

Definition at line 30 of file CnetEditorSortConfigDialog.cpp.

References applySettings(), m_cnetWidget, m_measureSortingCheckBox, m_measureTableLimitSpinBox, m_measureTableWarningsLabel, m_pointSortingCheckBox, m_pointTableLimitSpinBox, m_pointTableWarningsLabel, readSettings(), and refreshWidgetStates().

◆ ~CnetEditorSortConfigDialog()

Isis::CnetEditorSortConfigDialog::~CnetEditorSortConfigDialog ( )

Clean up allocated memory.

Definition at line 132 of file CnetEditorSortConfigDialog.cpp.

Member Function Documentation

◆ applySettings

void Isis::CnetEditorSortConfigDialog::applySettings ( )
slot

Apply the user's current settings to the cneteditor widget.

Definition at line 139 of file CnetEditorSortConfigDialog.cpp.

References m_cnetWidget, m_measureSortingCheckBox, m_measureTableLimitSpinBox, m_pointSortingCheckBox, m_pointTableLimitSpinBox, and readSettings().

Referenced by CnetEditorSortConfigDialog().

◆ readSettings

void Isis::CnetEditorSortConfigDialog::readSettings ( )
slot

Read the cneteditor widget's current settings and set the widget states to match.

Definition at line 158 of file CnetEditorSortConfigDialog.cpp.

References m_cnetWidget, m_measureSortingCheckBox, m_measureTableLimitSpinBox, m_measureTableWarningsLabel, m_pointSortingCheckBox, m_pointTableLimitSpinBox, and m_pointTableWarningsLabel.

Referenced by applySettings(), and CnetEditorSortConfigDialog().

◆ refreshWidgetStates

void Isis::CnetEditorSortConfigDialog::refreshWidgetStates ( )
privateslot

Enable or disable inputs based on what the user has selected for options so far.

Definition at line 207 of file CnetEditorSortConfigDialog.cpp.

References m_measureSortingCheckBox, m_measureTableLimitSpinBox, m_pointSortingCheckBox, and m_pointTableLimitSpinBox.

Referenced by CnetEditorSortConfigDialog().

Member Data Documentation

◆ m_cnetWidget

QPointer<CnetEditorWidget> Isis::CnetEditorSortConfigDialog::m_cnetWidget
private

The cneteditor widget we're configuring.

Definition at line 53 of file CnetEditorSortConfigDialog.h.

Referenced by applySettings(), CnetEditorSortConfigDialog(), and readSettings().

◆ m_measureSortingCheckBox

QPointer<QCheckBox> Isis::CnetEditorSortConfigDialog::m_measureSortingCheckBox
private

Enable sorting on the measure table.

Definition at line 65 of file CnetEditorSortConfigDialog.h.

Referenced by applySettings(), CnetEditorSortConfigDialog(), readSettings(), and refreshWidgetStates().

◆ m_measureTableLimitSpinBox

QPointer<QSpinBox> Isis::CnetEditorSortConfigDialog::m_measureTableLimitSpinBox
private

When less than this number, sorting is enabled on the measure table.

Definition at line 68 of file CnetEditorSortConfigDialog.h.

Referenced by applySettings(), CnetEditorSortConfigDialog(), readSettings(), and refreshWidgetStates().

◆ m_measureTableWarningsLabel

QPointer<QLabel> Isis::CnetEditorSortConfigDialog::m_measureTableWarningsLabel
private

Say (very clearly) if sorting is disabled and why.

Definition at line 71 of file CnetEditorSortConfigDialog.h.

Referenced by CnetEditorSortConfigDialog(), and readSettings().

◆ m_pointSortingCheckBox

QPointer<QCheckBox> Isis::CnetEditorSortConfigDialog::m_pointSortingCheckBox
private

Enable sorting on the point table.

Definition at line 56 of file CnetEditorSortConfigDialog.h.

Referenced by applySettings(), CnetEditorSortConfigDialog(), readSettings(), and refreshWidgetStates().

◆ m_pointTableLimitSpinBox

QPointer<QSpinBox> Isis::CnetEditorSortConfigDialog::m_pointTableLimitSpinBox
private

When less than this number, sorting is enabled on the point table.

Definition at line 59 of file CnetEditorSortConfigDialog.h.

Referenced by applySettings(), CnetEditorSortConfigDialog(), readSettings(), and refreshWidgetStates().

◆ m_pointTableWarningsLabel

QPointer<QLabel> Isis::CnetEditorSortConfigDialog::m_pointTableWarningsLabel
private

Say (very clearly) if sorting is disabled and why.

Definition at line 62 of file CnetEditorSortConfigDialog.h.

Referenced by CnetEditorSortConfigDialog(), and readSettings().


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