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. More...
 
void readSettingsFromCurve ()
 This takes the current data inside of the plot curve and populates this configuration dialog's widgets with the appropriate data/settings. More...
 
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. More...
 
virtual ~CubePlotCurveConfigureDialog ()
 This destroys the configuration dialog, which happens when the user closes it or clicks ok or cancel. More...
 

Private Slots

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

Private Member Functions

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

Private Attributes

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

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 33 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 25 of file CubePlotCurveConfigureDialog.cpp.

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

◆ ~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 163 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 174 of file CubePlotCurveConfigureDialog.cpp.

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

◆ askUserForColor

void Isis::CubePlotCurveConfigureDialog::askUserForColor ( )
privateslot

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

Definition at line 298 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 214 of file CubePlotCurveConfigureDialog.cpp.

References _FILEINFO_, 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().

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 74 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 70 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 72 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 76 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 78 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 80 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 82 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 84 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 86 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 88 of file CubePlotCurveConfigureDialog.h.

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


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