Loading...
Searching...
No Matches
InterfaceController.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 TerraView - A GIS Application.
4
5 TerraView is free software: you can redistribute it and/or modify
6 it under the terms of the GNU 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 TerraView 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 General Public License for more details.
14
15 You should have received a copy of the GNU General Public License
16 along with TerraLib Code Editor. See COPYING. If not, write to
17 TerraLib Team at <terralib-team@dpi.inpe.br>.
18 */
19
20/*!
21 \file terralib/qt/widgets/InterfaceController.h
22
23 \brief A virtual class for non modal interfaces
24*/
25
26#ifndef __TERRALIB_QT_WIDGETS_INTERNAL_INTERFACECONTROLLER_H
27#define __TERRALIB_QT_WIDGETS_INTERNAL_INTERFACECONTROLLER_H
28
29// Terralib
30#include "../../maptools/AbstractLayer.h"
31#include "Config.h"
32
33namespace te
34{
35 namespace qt
36 {
37 namespace widgets
38 {
39 /*!
40 \class InterfaceController
41
42 \brief A virtual class for non modal interfaces
43
44 */
46 {
47 public:
48
49 /*!
50 \brief Constructor.
51
52 */
54
55 /*! \brief Destructor. */
57
58 public:
59
60 /*!
61 \brief This method is used to set current layer
62
63 */
65
66 /*!
67 \brief This method is used to add a new layer
68
69 */
70 virtual void layerAdded(te::map::AbstractLayerPtr layer) = 0;
71
72 /*!
73 \brief This method is used to remove a layer
74
75 */
76 virtual void layerRemoved(te::map::AbstractLayerPtr layer) = 0;
77
78 };
79
80 } // end namespace widgets
81 } // end namespace qt
82} // end namespace te
83
84#endif // __TERRALIB_QT_WIDGETS_INTERNAL_INTERFACECONTROLLER_H
85
A virtual class for non modal interfaces.
virtual void layerSelected(te::map::AbstractLayerPtr layer)=0
This method is used to set current layer.
virtual void layerRemoved(te::map::AbstractLayerPtr layer)=0
This method is used to remove a layer.
virtual void layerAdded(te::map::AbstractLayerPtr layer)=0
This method is used to add a new layer.
boost::intrusive_ptr< AbstractLayer > AbstractLayerPtr
TerraLib.
#define TEQTWIDGETSEXPORT
You can use this macro in order to export/import classes and functions from this module.
Definition: Config.h:63
Proxy configuration file for TerraView (see terraview_config.h).