ChartStyleFrame.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/charts/ChartFrame.h
22 
23  \brief A frame used to adjust a Chart's visual style.
24 */
25 
26 #ifndef __TERRALIB_QT_WIDGETS_INTERNAL_CHARTFRAME_H
27 #define __TERRALIB_QT_WIDGETS_INTERNAL_CHARTFRAME_H
28 
29 // TerraLib
30 #include "../Config.h"
31 #include "ChartWidget.h"
32 
33 #include <memory>
34 
35 namespace Ui { class ChartStyleFrameWidgetForm; }
36 
37 namespace te
38 {
39  namespace qt
40  {
41  namespace widgets
42  {
43  //Forward declarations
44  class ChartDisplay;
45  class ChartStyleWidget;
46  /*!
47  \class ChartFrame
48 
49  \brief A frame for setting display options.
50  */
52  {
53  Q_OBJECT
54 
55  public:
56 
57  /*!
58  \brief Constructor
59 
60  It constructs a chart display with the given title.
61 
62  \param parent this widget's parent
63  */
64  ChartStyleFrame(QWidget* parent = 0);
65 
66  /*!
67  \brief Destructor.
68  */
69  ~ChartStyleFrame();
70 
71  /*!
72  \brief Returns a pointer to the ChartDisplay being configured
73 
74  \return A ChartDisplay type pointer to the display being configured
75  \note The caller will take ownership of the returned pointer.
76  */
77  te::qt::widgets::ChartDisplay* getDisplay();
78 
79  /*!
80  \brief It sets the ChartDisplay being configured
81 
82  \param newDisplay The new ChartDisplay.
83  \note It will not take ownership of the given pointer
84  */
85  void setDisplay(te::qt::widgets::ChartDisplay* newDisplay);
86 
87  private:
88 
89  std::auto_ptr<Ui::ChartStyleFrameWidgetForm> m_ui; //!< The Widget form.
90  ChartDisplay* m_display; //!< The display that will be configured by this widget.
91  ChartStyleWidget* m_styleWidget; //!< The widget used to configure the display's style
92  };
93 
94  } // end namespace widgets
95  } // end namespace qt
96 } // end namespace te
97 
98 #endif // __TERRALIB_QT_WIDGETS_INTERNAL_CHARTFRAME_H
99 
std::auto_ptr< Ui::ChartStyleFrameWidgetForm > m_ui
The Widget form.
URI C++ Library.
ChartStyleWidget * m_styleWidget
The widget used to configure the display's style.
A class to represent a chart display.
Definition: ChartDisplay.h:65
A base widget to be used on the chart settings.
ChartDisplay * m_display
The display that will be configured by this widget.
#define TEQTWIDGETSEXPORT
You can use this macro in order to export/import classes and functions from this module.
Definition: Config.h:63
A base widget for settings.
Definition: ChartWidget.h:50