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 
47 {
49  return m_display;
50 }
51 
53 {
54  m_display = newDisplay;
56 }
std::unique_ptr< Ui::ChartStyleFrameWidgetForm > m_ui
The Widget form.
ChartStyleFrame(QWidget *parent=0)
Constructor.
void setStyle(te::qt::widgets::ChartStyle *newStyle)
It sets the ChartStyle being configured.
std::string m_label
The chart&#39;s Label.
Definition: ChartWidget.h:100
te::qt::widgets::ChartStyle * getStyle()
Returns a pointer to the ChartStyle being configured.
ChartStyleWidget * m_styleWidget
The widget used to configure the display&#39;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.
ChartDisplay * m_display
The display that will be configured by this widget.
A base widget for settings.
Definition: ChartWidget.h:50
te::qt::widgets::ChartStyle * getStyle()
Returns a pointer to the display&#39;s style.
A class to represent a chart display.
void setStyle(te::qt::widgets::ChartStyle *newStyle)
It sets the display&#39;s style.