RasterConfigWidget.h
Go to the documentation of this file.
1 /* Copyright (C) 2008 National Institute For Space Research (INPE) - Brazil.
2 
3  This file is part of the TerraLib - a Framework for building GIS enabled applications.
4 
5  TerraLib is free software: you can redistribute it and/or modify
6  it under the terms of the GNU Lesser General Public License as published by
7  the Free Software Foundation, either version 3 of the License,
8  or (at your option) any later version.
9 
10  TerraLib is distributed in the hope that it will be useful,
11  but WITHOUT ANY WARRANTY; without even the implied warranty of
12  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13  GNU Lesser General Public License for more details.
14 
15  You should have received a copy of the GNU Lesser General Public License
16  along with TerraLib. See COPYING. If not, write to
17  TerraLib Team at <terralib-team@terralib.org>.
18  */
19 
20 /*!
21  \file RasterConfigWidget.h
22 
23  \brief A frame for setting raster processing options.
24 */
25 
26 #ifndef __TERRALIB_QT_PLUGINS_RP_RASTERCONFIGWIDGET_H
27 #define __TERRALIB_QT_PLUGINS_RP_RASTERCONFIGWIDGET_H
28 
29 // TerraLib
30 #include "../../af/Config.h"
31 
32 // Qt
33 #include "../../af/settings/AbstractSettingWidget.h"
34 
35 // STL
36 #include <memory>
37 
38 // Forward declaration
39 namespace Ui
40 {
41  class RasterConfigWidgetForm;
42 }
43 
44 namespace te
45 {
46  namespace qt
47  {
48  namespace plugins
49  {
50  namespace rp
51  {
52  /*!
53  \class DisplayWidget
54 
55  \brief A frame for setting raster processing options.
56  */
58  {
59  Q_OBJECT
60 
61  public:
62 
63  RasterConfigWidget(QWidget* parent = 0);
64 
66 
67  void saveChanges();
68 
69  void resetState();
70 
71  void getHelpInformations(QString& ns, QString& helpFile);
72 
73  private:
74 
75  void initialize();
76 
77  void fillInterpolator();
78 
79  private slots:
80 
81  void onInterpolatorComboBoxChanged(int index);
82 
83  void onLevelChanged(int value);
84 
85  void onQuestionChecked(bool checked);
86 
87  void onSetMultiResolutionDefaultChecked(bool checked);
88 
89  private:
90 
91  std::unique_ptr<Ui::RasterConfigWidgetForm> m_ui;
92 
93  };
94  } // end namespace rp
95  } // end namespace plugins
96  } // end namespace qt
97 } // end namespace te
98 
99 #endif // __TERRALIB_QT_PLUGINS_RP_RASTERCONFIGWIDGET_H
#define slots
std::unique_ptr< Ui::RasterConfigWidgetForm > m_ui
A frame for setting Table options.
URI C++ Library.