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
QPointer< QLineEdit > m_maxLonExtentLineEdit
Input for the maximum longitude.
QPointer< QLabel > m_baseLonLabel
Label for the base longitude.
QPointer< QLineEdit > m_lonIncLineEdit
Input for longitude increment.
QPointer< QLabel > m_latIncTypeLabel
Label for the increment type (degrees/radians)
QPointer< QSlider > m_baseLonSlider
Input for base longitude.
void onBaseLatSliderChanged()
Updates the corresponding line edit when the baseLatSlider changes.
QPointer< QSlider > m_maxLatExtentSlider
Input for the maximum latitude.
QPointer< QLabel > m_baseLatTypeLabel
Label for the baselat type (degrees/radians)
void applySettings()
Slot that calls applySettings with true to call readSettings also.
void refreshWidgetStates()
Calls the private method refreshWidgetStates with true as the argument in order to have refreshWidget...
QPointer< QLineEdit > m_maxLatExtentLineEdit
Input for the maximum latitude.
QPointer< QLabel > m_lonIncLabel
Label for the longitude increment.
QPointer< QSlider > m_baseLatSlider
Input for base latitude.
QPointer< QCheckBox > m_autoGridCheckBox
True if grid properties come form open cubes.
QPointer< QLabel > m_lonIncTypeLabel
Label for the increment type (degrees/radians)
QPointer< QLabel > m_lonExtentLabel
Label for the longitude range Selection for the longitude extent source (Map, Cube, Manual)
void onMinLatExtentSliderChanged()
Updates the corresponding line edit when the minLatSlider changes.
void readSettings()
Read the tool&#39;s current settings and set the widget states to match.
QPointer< QLabel > m_lonDomainLabel
Label for the longitude domain.
void onMinLonExtentSliderChanged()
Updates the corresponding line edit when the minLonSlider changes.
QPointer< QLabel > m_maxLatExtentLabel
Label for the maximum latitude.
void onMaxLonExtentSliderChanged()
Updates the corresponding line edit when the maxLonSlider changes.
QPointer< QSlider > m_lonIncSlider
Input for longitude increment.
QPointer< QLabel > m_minLonExtentLabel
Label for the minimum longitude.
QPointer< QLineEdit > m_densityEdit
Input for grid density.
QPointer< QLineEdit > m_minLonExtentLineEdit
Input for the minimum longitude.
QPointer< QLabel > m_densityLabel
Label for the grid density.
QPointer< QLabel > m_baseLonTypeLabel
Label for the baselon type (degrees/radians)
QPointer< QLabel > m_maxLonExtentLabel
Label for the maximum longitude.
QPointer< QLineEdit > m_baseLonLineEdit
Input for base longitude.
QPointer< QLineEdit > m_latIncLineEdit
Input for latitude increment.
QPointer< QLabel > m_latIncLabel
Label for the latitude increment.
MosaicGridToolConfigDialog(MosaicGridTool *tool, QWidget *parent)
Create a config dialog that configures the given MosaicGridTool.
QPointer< QLabel > m_minLatExtentLabel
Label for the minimum latitude.
void onLatIncSliderChanged()
Updates the corresponding line edit when the latIncSlider changes.
QPointer< QSlider > m_maxLonExtentSlider
Input for the maximum longitude.
~MosaicGridToolConfigDialog()
Clean up allocated memory.
void onLonIncSliderChanged()
Updates the corresponding line edit when the lonIncSlider changes.
Configure user&#39;s settings for the grid tool.
QPointer< QSlider > m_latIncSlider
Input for latitude increment.
Namespace for ISIS/Bullet specific routines.
Definition: Apollo.h:31
void onMaxLatExtentSliderChanged()
Updates the corresponding line edit when the maxLatSlider changes.
QPointer< QSlider > m_minLatExtentSlider
Input for the minimum latitude.
void onBaseLonSliderChanged()
Updates the corresponding line edit when the baseLonSlider changes.
QPointer< QCheckBox > m_showGridCheckBox
The tool we&#39;re configuring.
This controls the &#39;Grid&#39; abilities in the MosaicSceneWidget.
QPointer< QSlider > m_minLonExtentSlider
Input for the minimumlongitude.
QPointer< QLineEdit > m_baseLatLineEdit
Input for base latitude.
QPointer< QLabel > m_baseLatLabel
Label for the base latitude.
QPointer< QLabel > m_latExtentLabel
Label for the latitude range Selection for the latitude extent source (Map, Cube, Manual) ...
QPointer< QLineEdit > m_minLatExtentLineEdit
Input for the minimum latitude.
void onExtentTypeChanged()
Updates the dialog when the lat or lon extent source is changed.
QPointer< QCheckBox > m_autoApplyCheckBox
True to applySettings on state change.