GeneralConfigWidget.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 GeneralConfigWidget.h
22 
23  \brief A frame for setting general options.
24 */
25 
26 #ifndef __TERRALIB_QT_AF_GENERALCONFIGWIDGET_H
27 #define __TERRALIB_QT_AF_GENERALCONFIGWIDGET_H
28 
29 // TerraLib
30 #include "../Config.h"
31 
32 // Qt
33 #include "AbstractSettingWidget.h"
34 
35 // STL
36 #include <memory>
37 
38 // Forward declaration
39 namespace Ui
40 {
41  class GeneralConfigWidgetForm;
42 }
43 
44 namespace te
45 {
46  namespace qt
47  {
48 // Forward declaration
49  namespace widgets
50  {
51  class ColorPickerToolButton;
52  }
53 
54  namespace af
55  {
56  /*!
57  \class DisplayWidget
58 
59  \brief A frame for setting general options.
60  */
62  {
63  Q_OBJECT
64 
65  public:
66 
67  GeneralConfigWidget(QWidget* parent = 0);
68 
70 
71  void saveChanges();
72 
73  void resetState();
74 
75  void getHelpInformations(QString& ns, QString& helpFile);
76 
77  private:
78 
79  void initialize();
80 
81  void setupSRSUi();
82 
83  private slots:
84 
85  void onDefaultSRSToolButtonPressed();
86 
87  void onSelectionColorChanged(const QColor& color);
88 
89  void onToolBarIconSizeValueChanged(int value);
90 
91  void onIconThemeCurrentIndexChanged(const QString& value);
92 
93  private:
94 
95  std::auto_ptr<Ui::GeneralConfigWidgetForm> m_ui;
99  };
100 
101  } // end namespace af
102  } // end namespace qt
103 } // end namespace te
104 
105 #endif // __TERRALIB_QT_AF_GENERALCONFIGWIDGET_H
An abstraction for setting widgets.
Custom tool button used to pick a color.
A frame for setting Table options.
URI C++ Library.
#define TEQTAFEXPORT
You can use this macro in order to export/import classes and functions from this module.
Definition: Config.h:71
te::qt::widgets::ColorPickerToolButton * m_colorPicker
std::auto_ptr< Ui::GeneralConfigWidgetForm > m_ui