HighlightedInfo.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 #ifndef __TERRALIB_EXAMPLE_HIGHLIGHTEDINFO_H
21 #define __TERRALIB_EXAMPLE_HIGHLIGHTEDINFO_H
22 
23 //! Qt include files
24 #include <QWidget>
25 
26 //! STL include files
27 #include <set>
28 
29 //! Forward declarations
30 class QLineEdit;
31 class QAction;
32 
33 namespace te
34 {
35  namespace qt
36  {
37  namespace widgets
38  {
39  class TabularViewer;
40  }
41  }
42 }
43 
44 class HighlightedInfo : public QWidget
45 {
46  Q_OBJECT
47 
48 public:
49 
50  HighlightedInfo(te::qt::widgets::TabularViewer* v, QWidget* parent=0);
51 
52 protected slots:
53 
54  void addHighlight(QAction* action);
55 
56  void addQueriedClicked();
57 
58 signals:
59 
60  void queryItems(const std::set<std::string>&);
61 
62  void updateHighlight(const int&, const std::set<std::string>&);
63 
64 protected:
65 
66  QLineEdit* m_queried;
67  QLineEdit* m_starred;
68 };
69 
70 #endif //__TERRALIB_EXAMPLE_HIGHLIGHTEDINFO_H
#define slots
URI C++ Library.
Definition: Attributes.h:37
QLineEdit * m_queried
QLineEdit * m_starred