TabularViewerEx.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_TABULARVIEWEREX_H
21 #define __TERRALIB_EXAMPLE_TABULARVIEWEREX_H
22 
23 //!Qt include files
24 #include <QMainWindow>
25 
26 namespace te
27 {
28  namespace da
29  {
30  //! Forward declarations
31  class DataSource;
32  }
33 
34  namespace qt
35  {
36  namespace widgets
37  {
38  //! Forward declarations
39  class TabularViewer;
40  class FileChooser;
41  }
42  }
43 }
44 class SelectPKey;
45 class QTabWidget;
46 
48 {
49  Q_OBJECT
50 
51 public:
52  TabularViewerEx(QWidget* parent=0);
53 
54  ~TabularViewerEx();
55 
56 protected slots:
57 
58  void updateViewer();
59 
60  void pkeysChanged(const std::vector<size_t>& ids);
61 
62  void setThemeName(const QString& tName);
63 
64  void changeThemeName();
65 
66 protected:
68  te::qt::widgets::TabularViewer* m_viewer;
70 
72 
73  QTabWidget* m_tab;
74 };
75 
76 #endif //__TERRALIB_EXAMPLE_TABULARVIEWEREX_H
#define slots
te::da::DataSource * m_dsrc
te::qt::widgets::FileChooser * m_fchooser
SelectPKey * m_pkey_sel
An abstract class for data providers like a DBMS, Web Services or a regular file. ...
Defines a component for choose a file.
Definition: FileChooser.h:60
URI C++ Library.
Definition: Attributes.h:37
void DataSource()
QTabWidget * m_tab
te::qt::widgets::TabularViewer * m_viewer