Isis 3 Programmer 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>
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... | |
CubePlotCurveConfigureDialog & | operator= (const CubePlotCurveConfigureDialog &other) |
Don't allow assignments of this class. More... | |
Private Attributes | |
QPointer< QComboBox > | m_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< QWidget > | m_parent |
The parent widget of the configuration dialog. More... | |
QPointer< CubePlotCurve > | m_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< QComboBox > | m_sizeCombo |
The selection/combo box for the cube plot curve's size/thickness. More... | |
QPointer< QComboBox > | m_styleCombo |
The selection/combo box for the cube plot curve's line style. More... | |
QPointer< QComboBox > | m_symbolCombo |
The selection/combo box for the cube plot curve's marker style. More... | |
This should be an inner class for CubePlotCurve, but Qt doesn't support having a QObject as an inner class.
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.
Isis::CubePlotCurveConfigureDialog::CubePlotCurveConfigureDialog | ( | CubePlotCurve * | curve, |
QWidget * | parent = NULL |
||
) |
This instantiates a configuration dialog associated with the given cube plot curve.
curve | The plot curve to be configured. |
parent | The 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.
|
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.
|
private |
Don't allow copying of this class.
other | The dialog to not be copied. |
|
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().
|
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().
|
private |
Don't allow assignments of this class.
other | The dialog we are not taking the properties of. |
|
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().
|
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().
|
private |
The selection/combo box for the cube plot curve.
Definition at line 70 of file CubePlotCurveConfigureDialog.h.
Referenced by CubePlotCurveConfigureDialog(), and readSettingsFromCurve().
|
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().
|
private |
The parent widget of the configuration dialog.
Definition at line 76 of file CubePlotCurveConfigureDialog.h.
Referenced by CubePlotCurveConfigureDialog().
|
private |
The current plot curve to configure.
Definition at line 78 of file CubePlotCurveConfigureDialog.h.
Referenced by applySettingsToCurve(), CubePlotCurveConfigureDialog(), readSettingsFromCurve(), and ~CubePlotCurveConfigureDialog().
|
private |
The list of plot curves to configure.
Definition at line 80 of file CubePlotCurveConfigureDialog.h.
Referenced by CubePlotCurveConfigureDialog(), and readSettingsFromCurve().
|
private |
The index of the selected curve in m_curvesCombo.
Definition at line 82 of file CubePlotCurveConfigureDialog.h.
Referenced by CubePlotCurveConfigureDialog(), and readSettingsFromCurve().
|
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().
|
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().
|
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().