TimeViewerEditAccumulateDialog.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
4  applications.
5 
6  TerraLib is free software: you can redistribute it and/or modify
7  it under the terms of the GNU Lesser General Public License as published by
8  the Free Software Foundation, either version 3 of the License,
9  or (at your option) any later version.
10 
11  TerraLib is distributed in the hope that it will be useful,
12  but WITHOUT ANY WARRANTY; without even the implied warranty of
13  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14  GNU Lesser General Public License for more details.
15 
16  You should have received a copy of the GNU Lesser General Public License
17  along with TerraLib. See COPYING. If not, write to
18  TerraLib Team at <terralib-team@terralib.org>.
19  */
20 
21 /*!
22  \file terralib/qt/plugins/timeviewer/TimeViewerEditAccumulateDialog.h
23 
24  \brief A dialog used to edit Accumulate Legend.
25 
26  \author Fabiana Zioti
27 */
28 
29 #ifndef __TERRALIB_QT_PLUGINS_TIMEVIEWER_TIMEVIEWEREDITACCUMULATEDIALOG_H__
30 #define __TERRALIB_QT_PLUGINS_TIMEVIEWER_TIMEVIEWEREDITACCUMULATEDIALOG_H__
31 
32 // TerraLib
33 #ifndef Q_MOC_RUN
34 #endif
35 
36 #include "../../../dataaccess/datasource/DataSourceInfo.h"
37 #include "../../../maptools/AbstractLayer.h"
38 #include "Config.h"
39 
40 // Qt
41 #include <QDialog>
42 
43 // STL
44 #include <QString>
45 
46 // Forward declaraion
47 namespace Ui
48 {
49  class TimeViewerEditAccumulateDialog;
50 }
51 
52 namespace te
53 {
54  namespace color
55  {
56  class ColorBar;
57  }
58 
59  namespace se
60  {
61  class Rule;
62  }
63 
64  namespace qt
65  {
66  namespace widgets
67  {
68  // Forward declarations
69  class ColorCatalogWidget;
70  }
71  namespace plugins
72  {
73  namespace tv
74  {
75  /*!
76  \class TimeViewerEditAccumulateDialog
77 
78  \brief A dialog used to edit legend.
79 
80  */
81  class TimeViewerEditAccumulateDialog : public QDialog
82  {
83  Q_OBJECT
84 
85  public:
86  /** @name Initializer Methods
87  * Methods related to instantiation and destruction.
88  */
89  //@{
90 
91  /*! \brief Constructs a basic fill dialog which is a child of parent,
92  * with widget flags set to f. */
93  TimeViewerEditAccumulateDialog(QWidget* parent = 0, Qt::WindowFlags f = 0);
94 
95  /*! \brief Destructor. */
97 
98  //@}
99 
100  void setColors(QString accumColor);
101 
102  QString getAccumColor();
103 
104  private:
105 
106  QString colorPick();
107 
108  protected slots:
109 
111 
113 
115 
116  signals:
117 
119 
120  private:
121 
122  std::unique_ptr<Ui::TimeViewerEditAccumulateDialog> m_ui; //!< Dialog form.
123  QString m_accumColor;
124  };
125  } // end namespace tv
126  } // end namespace plugins
127  } // end namespace qt
128 } // end namespace te
129 
130 #endif // __TERRALIB_QT_PLUGINS_TIMEVIEWER_EDITACCUMULATEDIALOG_H_
std::unique_ptr< Ui::TimeViewerEditAccumulateDialog > m_ui
Dialog form.
TimeViewerEditAccumulateDialog(QWidget *parent=0, Qt::WindowFlags f=0)
Constructs a basic fill dialog which is a child of parent, with widget flags set to f.
TerraLib.
#define slots
Proxy configuration file for TerraView (see terraview_config.h).