OTB  6.7.0
Orfeo Toolbox
mvdPreferencesDialog.h
Go to the documentation of this file.
1 /*
2  * Copyright (C) 2005-2019 Centre National d'Etudes Spatiales (CNES)
3  *
4  * This file is part of Orfeo Toolbox
5  *
6  * https://www.orfeo-toolbox.org/
7  *
8  * Licensed under the Apache License, Version 2.0 (the "License");
9  * you may not use this file except in compliance with the License.
10  * You may obtain a copy of the License at
11  *
12  * http://www.apache.org/licenses/LICENSE-2.0
13  *
14  * Unless required by applicable law or agreed to in writing, software
15  * distributed under the License is distributed on an "AS IS" BASIS,
16  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
17  * See the License for the specific language governing permissions and
18  * limitations under the License.
19  */
20 
21 #ifndef mvdPreferencesDialog_h
22 #define mvdPreferencesDialog_h
23 
24 //
25 // Configuration include.
27 #include "ConfigureMonteverdi.h"
28 
29 #include "OTBMonteverdiExport.h"
30 /*****************************************************************************/
31 /* INCLUDE SECTION */
32 
33 //
34 // Qt includes (sorted by alphabetic order)
36 #include <QtWidgets>
37 
38 //
39 // System includes (sorted by alphabetic order)
40 
41 //
42 // ITK includes (sorted by alphabetic order)
43 
44 //
45 // OTB includes (sorted by alphabetic order)
46 
47 //
48 // Monteverdi includes (sorted by alphabetic order)
49 
50 /*****************************************************************************/
51 /* PRE-DECLARATION SECTION */
52 
53 //
54 // External classes pre-declaration.
55 namespace
56 {
57 }
58 
59 namespace mvd
60 {
61 //
62 // Internal classes pre-declaration.
63 namespace Ui
64 {
65 class PreferencesDialog;
66 }
67 
68 
69 /*****************************************************************************/
70 /* CLASS DEFINITION SECTION */
71 
77 class OTBMonteverdi_EXPORT PreferencesDialog :
78  public QDialog
79 {
80 
81  /*-[ QOBJECT SECTION ]-----------------------------------------------------*/
82 
83  Q_OBJECT;
84 
85  /*-[ PUBLIC SECTION ]------------------------------------------------------*/
86 
87 //
88 // Public methods.
89 public:
90 
92  PreferencesDialog( QWidget* p =NULL, Qt::WindowFlags flags =0 );
93 
95  ~PreferencesDialog() override;
96 
97  /*-[ SIGNALS SECTION ]-----------------------------------------------------*/
98 
99 //
100 // SIGNALS.
101 signals:
102 
103  /*-[ PROTECTED SECTION ]---------------------------------------------------*/
104 
105 //
106 // Protected methods.
107 protected:
108 
109 //
110 // Protected attributes.
111 protected:
112 
113  /*-[ PRIVATE SECTION ]-----------------------------------------------------*/
114 
115 //
116 // Private methods.
117 private:
118 
119 //
120 // Private attributes.
121 private:
124  Ui::PreferencesDialog* m_UI;
125 
126  bool m_ResultsDirModified: 1;
127  bool m_GeoidFileModified: 1;
128  bool m_SrtmDirModified: 1;
129 
130  /*-[ PRIVATE SLOTS SECTION ]-----------------------------------------------*/
131 
132 //
133 // Slots.
134 private slots:
135 
140  void on_buttonBox_accepted();
141 
142 
143  void on_srtmCheckbox_toggled( bool );
144  void on_geoidCheckbox_toggled( bool );
145 
146  void on_srtmButton_clicked();
147  void on_geoidButton_clicked();
148 
149  void on_srtmLineEdit_textChanged( const QString & );
150  void on_geoidLineEdit_textChanged( const QString & );
151 
152  void on_resultDirButton_clicked();
153 };
154 
155 } // end namespace 'mvd'
156 
157 
158 /*****************************************************************************/
159 /* INLINE SECTION */
160 
161 namespace mvd
162 {
163 } // end namespace 'mvd'
164 
165 #endif // mvdAboutDialog_h
Ui::PreferencesDialog * m_UI