USGS

Isis 3.0 Object Programmers' Reference

Home

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

Constructor & Destructor Documentation

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 applySettingsToCurve(), askUserForColor(), m_colorButton, m_curvesCombo, m_nameEdit, m_parent, m_plotCurve, m_plotCurvesList, m_selectedCurve, m_sizeCombo, m_styleCombo, m_symbolCombo, and readSettingsFromCurve().

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.

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

Don't allow copying of this class.

Parameters
otherThe dialog to not be copied.

Member Function Documentation

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

Referenced by CubePlotCurveConfigureDialog().

void Isis::CubePlotCurveConfigureDialog::askUserForColor ( )
privateslot

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

Definition at line 300 of file CubePlotCurveConfigureDialog.cpp.

References m_colorButton.

Referenced by CubePlotCurveConfigureDialog().

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.
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 216 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(), and CubePlotCurveConfigureDialog().

Member Data Documentation

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

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

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

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

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

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

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

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

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

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: