Loading...
Searching...
No Matches
SelectedChannelWidget.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 terralib/qt/widgets/se/SelectedChannelWidget.h
22
23 \brief A widget used to build SelectedChannel element.
24*/
25
26#ifndef __TERRALIB_QT_WIDGETS_SE_INTERNAL_SELECTEDCHANNELWIDGET_H
27#define __TERRALIB_QT_WIDGETS_SE_INTERNAL_SELECTEDCHANNELWIDGET_H
28
29// TerraLib
30#include "../Config.h"
31
32// Qt
33#include <QWidget>
34
35// STL
36#include <memory>
37#include <string>
38#include <vector>
39
40// Forward declaraion
41namespace Ui { class SelectedChannelWidgetForm; }
42
43namespace te
44{
45// Forward declarations
46 namespace se
47 {
48 class SelectedChannel;
49 }
50
51 namespace qt
52 {
53 namespace widgets
54 {
55// Forward declarations
56 class ContrastEnhancementWidget;
57
58
59 /*!
60 \class SelectedChannelWidget
61
62 \brief A dialog used to build a SelectedChannelWidget element.
63 */
65 {
66 Q_OBJECT
67
68 public:
69
70 /** @name Initializer Methods
71 * Methods related to instantiation and destruction.
72 */
73 //@{
74
75 /*! \brief Constructs a SelectedChannelWidget dialog which is a child of parent, with widget flags set to f. */
76 SelectedChannelWidget(QWidget* parent = 0, Qt::WindowFlags f = 0);
77
78 /*! \brief Destructor. */
80
81 //@}
82
83 public:
84
86
88
89 void setChannelNames(const QStringList& list);
90
91 protected:
92
93 /*! \brief Internal method to initialize the widget (e.g.: color, combos, icons, etc.) */
94 void initialize();
95
96 /*! \brief Updates the widget form based on internal fill element. */
97 void updateUi();
98
99 protected slots:
100
101 void onChannelNameChanged(QString value);
102
104
105
106 signals:
107
109
110
111 private:
112
113 std::unique_ptr<Ui::SelectedChannelWidgetForm> m_ui; //!< Dialog form.
115
116 te::se::SelectedChannel* m_se; //!< SE Selected Channel element.
117 };
118
119 } // end namespace widgets
120 } // end namespace qt
121} // end namespace te
122
123#endif // __TERRALIB_QT_WIDGETS_SE_INTERNAL_SELECTEDCHANNELWIDGET_H
A dialog used to build a ContrastEnhancementWidget element.
A dialog used to build a SelectedChannelWidget element.
te::se::SelectedChannel * getSelectedChannel() const
void setSelectedChannel(te::se::SelectedChannel *sc)
void onChannelNameChanged(QString value)
SelectedChannelWidget(QWidget *parent=0, Qt::WindowFlags f=0)
Constructs a SelectedChannelWidget dialog which is a child of parent, with widget flags set to f.
std::unique_ptr< Ui::SelectedChannelWidgetForm > m_ui
Dialog form.
void initialize()
Internal method to initialize the widget (e.g.: color, combos, icons, etc.)
void updateUi()
Updates the widget form based on internal fill element.
te::qt::widgets::ContrastEnhancementWidget * m_contrastWidget
Constrast Widget form.
void setChannelNames(const QStringList &list)
te::se::SelectedChannel * m_se
SE Selected Channel element.
A selected channel to be display.
TerraLib.
#define slots
#define TEQTWIDGETSEXPORT
You can use this macro in order to export/import classes and functions from this module.
Definition: Config.h:63