Isis 3 Developer Reference
MosaicGridToolConfigDialog.h
Go to the documentation of this file.
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
void onBaseLatSliderChanged()
Updates the corresponding line edit when the baseLatSlider changes.
Definition: MosaicGridToolConfigDialog.cpp:728
void applySettings()
Slot that calls applySettings with true to call readSettings also.
Definition: MosaicGridToolConfigDialog.cpp:536
void refreshWidgetStates()
Calls the private method refreshWidgetStates with true as the argument in order to have refreshWidget...
Definition: MosaicGridToolConfigDialog.cpp:598
void onMinLatExtentSliderChanged()
Updates the corresponding line edit when the minLatSlider changes.
Definition: MosaicGridToolConfigDialog.cpp:762
void readSettings()
Read the tool&#39;s current settings and set the widget states to match.
Definition: MosaicGridToolConfigDialog.cpp:544
void onMinLonExtentSliderChanged()
Updates the corresponding line edit when the minLonSlider changes.
Definition: MosaicGridToolConfigDialog.cpp:804
void onMaxLonExtentSliderChanged()
Updates the corresponding line edit when the maxLonSlider changes.
Definition: MosaicGridToolConfigDialog.cpp:817
MosaicGridToolConfigDialog(MosaicGridTool *tool, QWidget *parent)
Create a config dialog that configures the given MosaicGridTool.
Definition: MosaicGridToolConfigDialog.cpp:34
void onLatIncSliderChanged()
Updates the corresponding line edit when the latIncSlider changes.
Definition: MosaicGridToolConfigDialog.cpp:746
~MosaicGridToolConfigDialog()
Clean up allocated memory.
Definition: MosaicGridToolConfigDialog.cpp:394
void onLonIncSliderChanged()
Updates the corresponding line edit when the lonIncSlider changes.
Definition: MosaicGridToolConfigDialog.cpp:754
Configure user&#39;s settings for the grid tool.
Definition: MosaicGridToolConfigDialog.h:37
Namespace for ISIS/Bullet specific routines.
Definition: Apollo.h:31
void onMaxLatExtentSliderChanged()
Updates the corresponding line edit when the maxLatSlider changes.
Definition: MosaicGridToolConfigDialog.cpp:775
void onBaseLonSliderChanged()
Updates the corresponding line edit when the baseLonSlider changes.
Definition: MosaicGridToolConfigDialog.cpp:737
This controls the &#39;Grid&#39; abilities in the MosaicSceneWidget.
Definition: MosaicGridTool.h:53
void onExtentTypeChanged()
Updates the dialog when the lat or lon extent source is changed.
Definition: MosaicGridToolConfigDialog.cpp:790