Isis 3 Programmer Reference
Isis::CubePlotCurveConfigureDialog Class Reference

This should be an inner class for CubePlotCurve, but Qt doesn't support having a QObject as an inner class. More...

#include <CubePlotCurveConfigureDialog.h>

Inheritance diagram for Isis::CubePlotCurveConfigureDialog:
Inheritance graph
Collaboration diagram for Isis::CubePlotCurveConfigureDialog:
Collaboration graph

Public Slots

void applySettingsToCurve ()
 This takes the configuration settings and applies them to the plot curve.
 
void readSettingsFromCurve ()
 This takes the current data inside of the plot curve and populates this configuration dialog's widgets with the appropriate data/settings.
 
void updateComboIndex (int selected)
 
void updateCurvesList ()
 

Public Member Functions

 CubePlotCurveConfigureDialog (CubePlotCurve *curve, QWidget *parent=NULL)
 This instantiates a configuration dialog associated with the given cube plot curve.
 
virtual ~CubePlotCurveConfigureDialog ()
 This destroys the configuration dialog, which happens when the user closes it or clicks ok or cancel.
 

Private Slots

void askUserForColor ()
 This prompts the user to select a new color for the curve/curve markers.
 

Private Member Functions

 CubePlotCurveConfigureDialog (const CubePlotCurveConfigureDialog &other)
 Don't allow copying of this class.
 
CubePlotCurveConfigureDialogoperator= (const CubePlotCurveConfigureDialog &other)
 Don't allow assignments of this class.
 

Private Attributes

QPointer< QComboBoxm_curvesCombo
 The selection/combo box for the cube plot curve.
 
QPointer< QLineEdit > m_nameEdit
 The line edit containing the cube plot curve's name.
 
QPointer< QPushButton > m_colorButton
 The button for changing the cube plot curve's color.
 
QPointer< QWidgetm_parent
 The parent widget of the configuration dialog.
 
QPointer< CubePlotCurvem_plotCurve
 The current plot curve to configure.
 
QList< CubePlotCurve * > m_plotCurvesList
 The list of plot curves to configure.
 
int m_selectedCurve
 The index of the selected curve in m_curvesCombo.
 
QPointer< QComboBoxm_sizeCombo
 The selection/combo box for the cube plot curve's size/thickness.
 
QPointer< QComboBoxm_styleCombo
 The selection/combo box for the cube plot curve's line style.
 
QPointer< QComboBoxm_symbolCombo
 The selection/combo box for the cube plot curve's marker style.
 

Detailed Description

This should be an inner class for CubePlotCurve, but Qt doesn't support having a QObject as an inner class.

Author
2012-01-18 Steven Lambright
History

2012-01-20 Steven Lambright and Jai Rideout - Completed documentation.

2014-07-25 Ian Humphrey - Added configure tool menu item. This allows user to right-click a curve (as previously) or select configure tool menu item to configure a plot curve's color, symbol, line style, etc. Fixes #2089.

Definition at line 41 of file CubePlotCurveConfigureDialog.h.

Constructor & Destructor Documentation

◆ CubePlotCurveConfigureDialog() [1/2]

Isis::CubePlotCurveConfigureDialog::CubePlotCurveConfigureDialog ( CubePlotCurve * curve,
QWidget * parent = NULL )

This instantiates a configuration dialog associated with the given cube plot curve.

Parameters
curveThe plot curve to be configured.
parentThe parent widget/widget who owns this dialog.

Definition at line 35 of file CubePlotCurveConfigureDialog.cpp.

References applySettingsToCurve(), askUserForColor(), m_colorButton, m_curvesCombo, m_nameEdit, m_parent, m_plotCurve, m_plotCurvesList, m_selectedCurve, m_sizeCombo, m_styleCombo, m_symbolCombo, and readSettingsFromCurve().

◆ ~CubePlotCurveConfigureDialog()

Isis::CubePlotCurveConfigureDialog::~CubePlotCurveConfigureDialog ( )
virtual

This destroys the configuration dialog, which happens when the user closes it or clicks ok or cancel.

Definition at line 173 of file CubePlotCurveConfigureDialog.cpp.

References m_colorButton, and m_plotCurve.

◆ CubePlotCurveConfigureDialog() [2/2]

Isis::CubePlotCurveConfigureDialog::CubePlotCurveConfigureDialog ( const CubePlotCurveConfigureDialog & other)
private

Don't allow copying of this class.

Parameters
otherThe dialog to not be copied.

Member Function Documentation

◆ applySettingsToCurve

void Isis::CubePlotCurveConfigureDialog::applySettingsToCurve ( )
slot

This takes the configuration settings and applies them to the plot curve.

This happens when the user clicks 'apply' or 'ok.' Any settings that fail to be applied correctly will be reverted in the GUI.

Definition at line 184 of file CubePlotCurveConfigureDialog.cpp.

References m_colorButton, m_nameEdit, m_plotCurve, m_sizeCombo, m_styleCombo, m_symbolCombo, readSettingsFromCurve(), and Isis::toInt().

Referenced by CubePlotCurveConfigureDialog().

◆ askUserForColor

void Isis::CubePlotCurveConfigureDialog::askUserForColor ( )
privateslot

This prompts the user to select a new color for the curve/curve markers.

Definition at line 308 of file CubePlotCurveConfigureDialog.cpp.

References m_colorButton.

Referenced by CubePlotCurveConfigureDialog().

◆ operator=()

CubePlotCurveConfigureDialog & Isis::CubePlotCurveConfigureDialog::operator= ( const CubePlotCurveConfigureDialog & other)
private

Don't allow assignments of this class.

Parameters
otherThe dialog we are not taking the properties of.
Returns
Nothing.

◆ readSettingsFromCurve

void Isis::CubePlotCurveConfigureDialog::readSettingsFromCurve ( )
slot

This takes the current data inside of the plot curve and populates this configuration dialog's widgets with the appropriate data/settings.

Definition at line 224 of file CubePlotCurveConfigureDialog.cpp.

References m_colorButton, m_curvesCombo, m_nameEdit, m_plotCurve, m_plotCurvesList, m_selectedCurve, m_sizeCombo, m_styleCombo, m_symbolCombo, and Isis::IException::Programmer.

Referenced by applySettingsToCurve(), and CubePlotCurveConfigureDialog().

◆ updateComboIndex

void Isis::CubePlotCurveConfigureDialog::updateComboIndex ( int selected)
slot

Definition at line 281 of file CubePlotCurveConfigureDialog.cpp.

◆ updateCurvesList

void Isis::CubePlotCurveConfigureDialog::updateCurvesList ( )
slot

Definition at line 287 of file CubePlotCurveConfigureDialog.cpp.

Member Data Documentation

◆ m_colorButton

QPointer<QPushButton> Isis::CubePlotCurveConfigureDialog::m_colorButton
private

The button for changing the cube plot curve's color.

Definition at line 82 of file CubePlotCurveConfigureDialog.h.

Referenced by applySettingsToCurve(), askUserForColor(), CubePlotCurveConfigureDialog(), readSettingsFromCurve(), and ~CubePlotCurveConfigureDialog().

◆ m_curvesCombo

QPointer<QComboBox> Isis::CubePlotCurveConfigureDialog::m_curvesCombo
private

The selection/combo box for the cube plot curve.

Definition at line 78 of file CubePlotCurveConfigureDialog.h.

Referenced by CubePlotCurveConfigureDialog(), and readSettingsFromCurve().

◆ m_nameEdit

QPointer<QLineEdit> Isis::CubePlotCurveConfigureDialog::m_nameEdit
private

The line edit containing the cube plot curve's name.

Definition at line 80 of file CubePlotCurveConfigureDialog.h.

Referenced by applySettingsToCurve(), CubePlotCurveConfigureDialog(), and readSettingsFromCurve().

◆ m_parent

QPointer<QWidget> Isis::CubePlotCurveConfigureDialog::m_parent
private

The parent widget of the configuration dialog.

Definition at line 84 of file CubePlotCurveConfigureDialog.h.

Referenced by CubePlotCurveConfigureDialog().

◆ m_plotCurve

QPointer<CubePlotCurve> Isis::CubePlotCurveConfigureDialog::m_plotCurve
private

The current plot curve to configure.

Definition at line 86 of file CubePlotCurveConfigureDialog.h.

Referenced by applySettingsToCurve(), CubePlotCurveConfigureDialog(), readSettingsFromCurve(), and ~CubePlotCurveConfigureDialog().

◆ m_plotCurvesList

QList<CubePlotCurve *> Isis::CubePlotCurveConfigureDialog::m_plotCurvesList
private

The list of plot curves to configure.

Definition at line 88 of file CubePlotCurveConfigureDialog.h.

Referenced by CubePlotCurveConfigureDialog(), and readSettingsFromCurve().

◆ m_selectedCurve

int Isis::CubePlotCurveConfigureDialog::m_selectedCurve
private

The index of the selected curve in m_curvesCombo.

Definition at line 90 of file CubePlotCurveConfigureDialog.h.

Referenced by CubePlotCurveConfigureDialog(), and readSettingsFromCurve().

◆ m_sizeCombo

QPointer<QComboBox> Isis::CubePlotCurveConfigureDialog::m_sizeCombo
private

The selection/combo box for the cube plot curve's size/thickness.

Definition at line 92 of file CubePlotCurveConfigureDialog.h.

Referenced by applySettingsToCurve(), CubePlotCurveConfigureDialog(), and readSettingsFromCurve().

◆ m_styleCombo

QPointer<QComboBox> Isis::CubePlotCurveConfigureDialog::m_styleCombo
private

The selection/combo box for the cube plot curve's line style.

Definition at line 94 of file CubePlotCurveConfigureDialog.h.

Referenced by applySettingsToCurve(), CubePlotCurveConfigureDialog(), and readSettingsFromCurve().

◆ m_symbolCombo

QPointer<QComboBox> Isis::CubePlotCurveConfigureDialog::m_symbolCombo
private

The selection/combo box for the cube plot curve's marker style.

Definition at line 96 of file CubePlotCurveConfigureDialog.h.

Referenced by applySettingsToCurve(), CubePlotCurveConfigureDialog(), and readSettingsFromCurve().


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