Isis 3 Programmer Reference
MosaicGridToolConfigDialog.h
1 #ifndef MosaicGridToolConfigDialog_h
2 #define MosaicGridToolConfigDialog_h
3 
4 #include <QDialog>
5 #include <QPointer>
6 
7 class QCheckBox;
8 class QComboBox;
9 class QLabel;
10 class QLineEdit;
11 class QPushButton;
12 class QSlider;
13 
14 namespace Isis {
15  class MosaicGridTool;
16 
38  Q_OBJECT
39 
40  public:
42  QWidget *parent);
44 
45  public slots:
46  void applySettings();
47  void applySettings(bool shouldReadSettings);
48  void readSettings();
49  void refreshWidgetStates();
50 
53  void onLatIncSliderChanged();
54  void onLonIncSliderChanged();
55  void onExtentTypeChanged();
60 
61  private:
62  Q_DISABLE_COPY(MosaicGridToolConfigDialog);
63  void refreshWidgetStates(bool canAutoApply);
64 
65  MosaicGridTool *m_tool;
66 
67  QPointer<QCheckBox> m_showGridCheckBox;
68  QPointer<QCheckBox> m_autoGridCheckBox;
69 
70  QPointer<QLabel> m_baseLatLabel;
71  QPointer<QLineEdit> m_baseLatLineEdit;
72  QPointer<QSlider> m_baseLatSlider;
73  QPointer<QLabel> m_baseLatTypeLabel;
74 
75  QPointer<QLabel> m_baseLonLabel;
76  QPointer<QLineEdit> m_baseLonLineEdit;
77  QPointer<QSlider> m_baseLonSlider;
78  QPointer<QLabel> m_baseLonTypeLabel;
79 
80  QPointer<QLabel> m_latIncLabel;
81  QPointer<QLineEdit> m_latIncLineEdit;
82  QPointer<QSlider> m_latIncSlider;
83  QPointer<QLabel> m_latIncTypeLabel;
84 
85  QPointer<QLabel> m_lonIncLabel;
86  QPointer<QLineEdit> m_lonIncLineEdit;
87  QPointer<QSlider> m_lonIncSlider;
88  QPointer<QLabel> m_lonIncTypeLabel;
89 
90  QPointer<QLabel> m_latExtentLabel;
91  QPointer<QComboBox> m_latExtentCombo;
93  QPointer<QLabel> m_latExtentTypeLabel;
94 
95  QPointer<QLabel> m_minLatExtentLabel;
96  QPointer<QLineEdit> m_minLatExtentLineEdit;
97  QPointer<QSlider> m_minLatExtentSlider;
98  QPointer<QLabel> m_minLatExtentTypeLabel;
99 
100  QPointer<QLabel> m_maxLatExtentLabel;
101  QPointer<QLineEdit> m_maxLatExtentLineEdit;
102  QPointer<QSlider> m_maxLatExtentSlider;
103  QPointer<QLabel> m_maxLatExtentTypeLabel;
104 
105  QPointer<QLabel> m_lonExtentLabel;
106  QPointer<QComboBox> m_lonExtentCombo;
108  QPointer<QLabel> m_lonDomainLabel;
109 
110  QPointer<QLabel> m_minLonExtentLabel;
111  QPointer<QLineEdit> m_minLonExtentLineEdit;
112  QPointer<QSlider> m_minLonExtentSlider;
113  QPointer<QLabel> m_minLonExtentTypeLabel;
114 
115  QPointer<QLabel> m_maxLonExtentLabel;
116  QPointer<QLineEdit> m_maxLonExtentLineEdit;
117  QPointer<QSlider> m_maxLonExtentSlider;
118  QPointer<QLabel> m_maxLonExtentTypeLabel;
119 
120  QPointer<QLabel> m_densityLabel;
121  QPointer<QLineEdit> m_densityEdit;
122 
123  QPointer<QCheckBox> m_autoApplyCheckBox;
124  };
125 }
126 
127 #endif
Isis::MosaicGridToolConfigDialog::onMinLonExtentSliderChanged
void onMinLonExtentSliderChanged()
Updates the corresponding line edit when the minLonSlider changes.
Definition: MosaicGridToolConfigDialog.cpp:804
Isis::MosaicGridToolConfigDialog::onMaxLonExtentSliderChanged
void onMaxLonExtentSliderChanged()
Updates the corresponding line edit when the maxLonSlider changes.
Definition: MosaicGridToolConfigDialog.cpp:817
Isis::MosaicGridToolConfigDialog::m_baseLonTypeLabel
QPointer< QLabel > m_baseLonTypeLabel
Label for the baselon type (degrees/radians)
Definition: MosaicGridToolConfigDialog.h:78
QWidget
Isis::MosaicGridToolConfigDialog::m_densityEdit
QPointer< QLineEdit > m_densityEdit
Input for grid density.
Definition: MosaicGridToolConfigDialog.h:121
Isis::MosaicGridToolConfigDialog::m_baseLonLineEdit
QPointer< QLineEdit > m_baseLonLineEdit
Input for base longitude.
Definition: MosaicGridToolConfigDialog.h:76
Isis::MosaicGridToolConfigDialog::m_minLonExtentLineEdit
QPointer< QLineEdit > m_minLonExtentLineEdit
Input for the minimum longitude.
Definition: MosaicGridToolConfigDialog.h:111
Isis::MosaicGridToolConfigDialog::m_densityLabel
QPointer< QLabel > m_densityLabel
Label for the grid density.
Definition: MosaicGridToolConfigDialog.h:120
Isis::MosaicGridTool
This controls the 'Grid' abilities in the MosaicSceneWidget.
Definition: MosaicGridTool.h:53
Isis::MosaicGridToolConfigDialog::MosaicGridToolConfigDialog
MosaicGridToolConfigDialog(MosaicGridTool *tool, QWidget *parent)
Create a config dialog that configures the given MosaicGridTool.
Definition: MosaicGridToolConfigDialog.cpp:34
Isis::MosaicGridToolConfigDialog::m_minLatExtentLabel
QPointer< QLabel > m_minLatExtentLabel
Label for the minimum latitude.
Definition: MosaicGridToolConfigDialog.h:95
Isis::MosaicGridToolConfigDialog::onLatIncSliderChanged
void onLatIncSliderChanged()
Updates the corresponding line edit when the latIncSlider changes.
Definition: MosaicGridToolConfigDialog.cpp:746
Isis::MosaicGridToolConfigDialog
Configure user's settings for the grid tool.
Definition: MosaicGridToolConfigDialog.h:37
Isis::MosaicGridToolConfigDialog::m_maxLonExtentSlider
QPointer< QSlider > m_maxLonExtentSlider
Input for the maximum longitude.
Definition: MosaicGridToolConfigDialog.h:117
Isis::MosaicGridToolConfigDialog::m_maxLonExtentLabel
QPointer< QLabel > m_maxLonExtentLabel
Label for the maximum longitude.
Definition: MosaicGridToolConfigDialog.h:115
Isis::MosaicGridToolConfigDialog::m_latIncLineEdit
QPointer< QLineEdit > m_latIncLineEdit
Input for latitude increment.
Definition: MosaicGridToolConfigDialog.h:81
Isis::MosaicGridToolConfigDialog::m_latIncLabel
QPointer< QLabel > m_latIncLabel
Label for the latitude increment.
Definition: MosaicGridToolConfigDialog.h:80
Isis::MosaicGridToolConfigDialog::~MosaicGridToolConfigDialog
~MosaicGridToolConfigDialog()
Clean up allocated memory.
Definition: MosaicGridToolConfigDialog.cpp:394
Isis::MosaicGridToolConfigDialog::onLonIncSliderChanged
void onLonIncSliderChanged()
Updates the corresponding line edit when the lonIncSlider changes.
Definition: MosaicGridToolConfigDialog.cpp:754
Isis::MosaicGridToolConfigDialog::m_latIncSlider
QPointer< QSlider > m_latIncSlider
Input for latitude increment.
Definition: MosaicGridToolConfigDialog.h:82
Isis::MosaicGridToolConfigDialog::onBaseLonSliderChanged
void onBaseLonSliderChanged()
Updates the corresponding line edit when the baseLonSlider changes.
Definition: MosaicGridToolConfigDialog.cpp:737
Isis::MosaicGridToolConfigDialog::m_baseLatLineEdit
QPointer< QLineEdit > m_baseLatLineEdit
Input for base latitude.
Definition: MosaicGridToolConfigDialog.h:71
Isis::MosaicGridToolConfigDialog::onMaxLatExtentSliderChanged
void onMaxLatExtentSliderChanged()
Updates the corresponding line edit when the maxLatSlider changes.
Definition: MosaicGridToolConfigDialog.cpp:775
Isis::MosaicGridToolConfigDialog::m_minLatExtentSlider
QPointer< QSlider > m_minLatExtentSlider
Input for the minimum latitude.
Definition: MosaicGridToolConfigDialog.h:97
QComboBox
Isis::MosaicGridToolConfigDialog::m_minLatExtentLineEdit
QPointer< QLineEdit > m_minLatExtentLineEdit
Input for the minimum latitude.
Definition: MosaicGridToolConfigDialog.h:96
Isis::MosaicGridToolConfigDialog::m_showGridCheckBox
QPointer< QCheckBox > m_showGridCheckBox
The tool we're configuring.
Definition: MosaicGridToolConfigDialog.h:67
Isis::MosaicGridToolConfigDialog::m_minLonExtentSlider
QPointer< QSlider > m_minLonExtentSlider
Input for the minimumlongitude.
Definition: MosaicGridToolConfigDialog.h:112
Isis::MosaicGridToolConfigDialog::m_maxLonExtentLineEdit
QPointer< QLineEdit > m_maxLonExtentLineEdit
Input for the maximum longitude.
Definition: MosaicGridToolConfigDialog.h:116
Isis::MosaicGridToolConfigDialog::m_lonIncLineEdit
QPointer< QLineEdit > m_lonIncLineEdit
Input for longitude increment.
Definition: MosaicGridToolConfigDialog.h:86
Isis::MosaicGridToolConfigDialog::m_baseLatLabel
QPointer< QLabel > m_baseLatLabel
Label for the base latitude.
Definition: MosaicGridToolConfigDialog.h:70
Isis::MosaicGridToolConfigDialog::m_latExtentLabel
QPointer< QLabel > m_latExtentLabel
Label for the latitude range Selection for the latitude extent source (Map, Cube, Manual)
Definition: MosaicGridToolConfigDialog.h:90
Isis::MosaicGridToolConfigDialog::onExtentTypeChanged
void onExtentTypeChanged()
Updates the dialog when the lat or lon extent source is changed.
Definition: MosaicGridToolConfigDialog.cpp:790
Isis::MosaicGridToolConfigDialog::onBaseLatSliderChanged
void onBaseLatSliderChanged()
Updates the corresponding line edit when the baseLatSlider changes.
Definition: MosaicGridToolConfigDialog.cpp:728
Isis::MosaicGridToolConfigDialog::m_autoApplyCheckBox
QPointer< QCheckBox > m_autoApplyCheckBox
True to applySettings on state change.
Definition: MosaicGridToolConfigDialog.h:123
Isis::MosaicGridToolConfigDialog::m_baseLonLabel
QPointer< QLabel > m_baseLonLabel
Label for the base longitude.
Definition: MosaicGridToolConfigDialog.h:75
Isis::MosaicGridToolConfigDialog::applySettings
void applySettings()
Slot that calls applySettings with true to call readSettings also.
Definition: MosaicGridToolConfigDialog.cpp:536
Isis::MosaicGridToolConfigDialog::m_latIncTypeLabel
QPointer< QLabel > m_latIncTypeLabel
Label for the increment type (degrees/radians)
Definition: MosaicGridToolConfigDialog.h:83
Isis::MosaicGridToolConfigDialog::m_baseLonSlider
QPointer< QSlider > m_baseLonSlider
Input for base longitude.
Definition: MosaicGridToolConfigDialog.h:77
Isis::MosaicGridToolConfigDialog::m_maxLatExtentSlider
QPointer< QSlider > m_maxLatExtentSlider
Input for the maximum latitude.
Definition: MosaicGridToolConfigDialog.h:102
Isis::MosaicGridToolConfigDialog::m_baseLatTypeLabel
QPointer< QLabel > m_baseLatTypeLabel
Label for the baselat type (degrees/radians)
Definition: MosaicGridToolConfigDialog.h:73
Isis::MosaicGridToolConfigDialog::refreshWidgetStates
void refreshWidgetStates()
Calls the private method refreshWidgetStates with true as the argument in order to have refreshWidget...
Definition: MosaicGridToolConfigDialog.cpp:598
Isis::MosaicGridToolConfigDialog::m_lonIncLabel
QPointer< QLabel > m_lonIncLabel
Label for the longitude increment.
Definition: MosaicGridToolConfigDialog.h:85
Isis::MosaicGridToolConfigDialog::m_maxLatExtentLineEdit
QPointer< QLineEdit > m_maxLatExtentLineEdit
Input for the maximum latitude.
Definition: MosaicGridToolConfigDialog.h:101
Isis::MosaicGridToolConfigDialog::m_autoGridCheckBox
QPointer< QCheckBox > m_autoGridCheckBox
True if grid properties come form open cubes.
Definition: MosaicGridToolConfigDialog.h:68
Isis::MosaicGridToolConfigDialog::m_lonIncTypeLabel
QPointer< QLabel > m_lonIncTypeLabel
Label for the increment type (degrees/radians)
Definition: MosaicGridToolConfigDialog.h:88
Isis::MosaicGridToolConfigDialog::m_baseLatSlider
QPointer< QSlider > m_baseLatSlider
Input for base latitude.
Definition: MosaicGridToolConfigDialog.h:72
Isis::MosaicGridToolConfigDialog::readSettings
void readSettings()
Read the tool's current settings and set the widget states to match.
Definition: MosaicGridToolConfigDialog.cpp:544
Isis::MosaicGridToolConfigDialog::m_lonDomainLabel
QPointer< QLabel > m_lonDomainLabel
Label for the longitude domain.
Definition: MosaicGridToolConfigDialog.h:108
QDialog
Isis::MosaicGridToolConfigDialog::m_lonExtentLabel
QPointer< QLabel > m_lonExtentLabel
Label for the longitude range Selection for the longitude extent source (Map, Cube,...
Definition: MosaicGridToolConfigDialog.h:105
Isis::MosaicGridToolConfigDialog::m_maxLatExtentLabel
QPointer< QLabel > m_maxLatExtentLabel
Label for the maximum latitude.
Definition: MosaicGridToolConfigDialog.h:100
Isis::MosaicGridToolConfigDialog::m_lonIncSlider
QPointer< QSlider > m_lonIncSlider
Input for longitude increment.
Definition: MosaicGridToolConfigDialog.h:87
Isis::MosaicGridToolConfigDialog::onMinLatExtentSliderChanged
void onMinLatExtentSliderChanged()
Updates the corresponding line edit when the minLatSlider changes.
Definition: MosaicGridToolConfigDialog.cpp:762
Isis
This is free and unencumbered software released into the public domain.
Definition: Apollo.h:16
Isis::MosaicGridToolConfigDialog::m_minLonExtentLabel
QPointer< QLabel > m_minLonExtentLabel
Label for the minimum longitude.
Definition: MosaicGridToolConfigDialog.h:110