All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
ChartStyleFrame.cpp
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/af/settings/ChartFrame.cpp
22 
23  \brief A frame used to adjust a Chart's visual style.
24 */
25 
26 #include "ChartDisplay.h"
27 #include "ChartStyleFrame.h"
28 #include "ChartStyleWidget.h"
29 #include "ui_ChartStyleFrameWidgetForm.h"
30 
32  : ChartWidget(parent),
33  m_ui(new Ui::ChartStyleFrameWidgetForm)
34 {
35  m_ui->setupUi(this);
36 
38  m_label = "Chart";
39 
40  QGridLayout* layout = new QGridLayout(m_ui->m_StyleFrame);
41  layout->addWidget(m_styleWidget);
42 }
43 
45 {
46 
47 }
48 
50 {
51  m_display->setStyle(m_styleWidget->getStyle());
52  return m_display;
53 }
54 
56 {
57  m_display = newDisplay;
58  m_styleWidget->setStyle(m_display->getStyle());
59 }
A widget used to customize the style parameters of a chart.
ChartStyleFrame(QWidget *parent=0)
Constructor.
std::auto_ptr< Ui::ChartStyleFrameWidgetForm > m_ui
The Widget form.
std::string m_label
The chart's Label.
Definition: ChartWidget.h:100
ChartStyleWidget * m_styleWidget
The widget used to configure the display's style.
A class to represent a chart display.
Definition: ChartDisplay.h:65
void setDisplay(te::qt::widgets::ChartDisplay *newDisplay)
It sets the ChartDisplay being configured.
te::qt::widgets::ChartDisplay * getDisplay()
Returns a pointer to the ChartDisplay being configured.
A base widget for settings.
Definition: ChartWidget.h:50
A class to represent a chart display.
void setStyle(te::qt::widgets::ChartStyle *newStyle)
It sets the display's style.