Isis 3 Programmer Reference
|
Configure user's settings for the nomenclature tool. More...
#include <NomenclatureToolConfigDialog.h>
Public Slots | |
void | applySettings () |
Apply the user's current settings to the tool. More... | |
void | readSettings () |
Read the tool's current settings and set the widget states to match. More... | |
Public Member Functions | |
NomenclatureToolConfigDialog (FeatureNomenclatureTool *tool, QWidget *parent) | |
Create a config dialog that configures the given FeatureNomenclatureTool. More... | |
~NomenclatureToolConfigDialog () | |
Clean up allocated memory. More... | |
Private Slots | |
void | askUserForColor () |
Prompt the user for a new font color. More... | |
Private Attributes | |
FeatureNomenclatureTool * | m_tool |
The tool we're configuring. More... | |
QPointer< QCheckBox > | m_defaultOnCheckBox |
Turn on the nomenclature tool when the application starts. More... | |
QPointer< QComboBox > | m_showVectorsCombo |
Show feature extents. More... | |
QPointer< QCheckBox > | m_showApprovedCheckBox |
Filter out unapproved features. More... | |
QPointer< QComboBox > | m_fontSizeCombo |
Font size of the labels. More... | |
QPointer< QPushButton > | m_fontColorButton |
Color to use when rendering the nomenclature. More... | |
QPointer< QProgressDialog > | m_updatingNomenclatureProgressDialog |
Visible when tool is updating the valid features. More... | |
Configure user's settings for the nomenclature tool.
This dialog enables the user to configure the given nomenclature tool.
Definition at line 28 of file NomenclatureToolConfigDialog.h.
Isis::NomenclatureToolConfigDialog::NomenclatureToolConfigDialog | ( | FeatureNomenclatureTool * | tool, |
QWidget * | parent | ||
) |
Create a config dialog that configures the given FeatureNomenclatureTool.
tool | The tool to read settings from and write settings to. |
parent | The qt-parent relationship parent. |
Definition at line 21 of file NomenclatureToolConfigDialog.cpp.
References applySettings(), Isis::FeatureNomenclatureTool::Arrows4, Isis::FeatureNomenclatureTool::Arrows8, askUserForColor(), Isis::FeatureNomenclatureTool::Box, m_defaultOnCheckBox, m_fontColorButton, m_fontSizeCombo, m_showApprovedCheckBox, m_showVectorsCombo, m_tool, Isis::FeatureNomenclatureTool::None, and readSettings().
Isis::NomenclatureToolConfigDialog::~NomenclatureToolConfigDialog | ( | ) |
Clean up allocated memory.
Definition at line 119 of file NomenclatureToolConfigDialog.cpp.
|
slot |
Apply the user's current settings to the tool.
Definition at line 127 of file NomenclatureToolConfigDialog.cpp.
References m_defaultOnCheckBox, m_fontColorButton, m_fontSizeCombo, m_showApprovedCheckBox, m_showVectorsCombo, m_tool, readSettings(), Isis::FeatureNomenclatureTool::setDefaultEnabled(), Isis::FeatureNomenclatureTool::setFontColor(), Isis::FeatureNomenclatureTool::setFontSize(), Isis::FeatureNomenclatureTool::setShowApprovedOnly(), Isis::FeatureNomenclatureTool::setVectorType(), and Isis::toInt().
Referenced by NomenclatureToolConfigDialog().
|
privateslot |
Prompt the user for a new font color.
Definition at line 168 of file NomenclatureToolConfigDialog.cpp.
References m_fontColorButton.
Referenced by NomenclatureToolConfigDialog().
|
slot |
Read the tool's current settings and set the widget states to match.
Definition at line 148 of file NomenclatureToolConfigDialog.cpp.
References Isis::FeatureNomenclatureTool::defaultEnabled(), Isis::FeatureNomenclatureTool::fontColor(), Isis::FeatureNomenclatureTool::fontSize(), m_defaultOnCheckBox, m_fontColorButton, m_fontSizeCombo, m_showApprovedCheckBox, m_showVectorsCombo, m_tool, Isis::FeatureNomenclatureTool::showApprovedOnly(), and Isis::FeatureNomenclatureTool::vectorType().
Referenced by applySettings(), and NomenclatureToolConfigDialog().
|
private |
Turn on the nomenclature tool when the application starts.
Definition at line 48 of file NomenclatureToolConfigDialog.h.
Referenced by applySettings(), NomenclatureToolConfigDialog(), and readSettings().
|
private |
Color to use when rendering the nomenclature.
Definition at line 56 of file NomenclatureToolConfigDialog.h.
Referenced by applySettings(), askUserForColor(), NomenclatureToolConfigDialog(), and readSettings().
|
private |
Font size of the labels.
Definition at line 54 of file NomenclatureToolConfigDialog.h.
Referenced by applySettings(), NomenclatureToolConfigDialog(), and readSettings().
|
private |
Filter out unapproved features.
Definition at line 52 of file NomenclatureToolConfigDialog.h.
Referenced by applySettings(), NomenclatureToolConfigDialog(), and readSettings().
|
private |
Show feature extents.
Definition at line 50 of file NomenclatureToolConfigDialog.h.
Referenced by applySettings(), NomenclatureToolConfigDialog(), and readSettings().
|
private |
The tool we're configuring.
Definition at line 45 of file NomenclatureToolConfigDialog.h.
Referenced by applySettings(), NomenclatureToolConfigDialog(), and readSettings().
|
private |
Visible when tool is updating the valid features.
Definition at line 58 of file NomenclatureToolConfigDialog.h.