Main Page
Modules
Namespaces
Classes
Files
File List
File Members
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
31
te::qt::widgets::ChartStyleFrame::ChartStyleFrame
(
QWidget
* parent)
32
:
ChartWidget
(parent),
33
m_ui(new
Ui
::ChartStyleFrameWidgetForm)
34
{
35
m_ui
->setupUi(
this
);
36
37
m_styleWidget
=
new
te::qt::widgets::ChartStyleWidget
();
38
m_label
=
"Chart"
;
39
40
QGridLayout* layout =
new
QGridLayout(
m_ui
->m_StyleFrame);
41
layout->addWidget(
m_styleWidget
);
42
}
43
44
te::qt::widgets::ChartStyleFrame::~ChartStyleFrame
() =
default
;
45
46
te::qt::widgets::ChartDisplay
*
te::qt::widgets::ChartStyleFrame::getDisplay
()
47
{
48
m_display
->
setStyle
(
m_styleWidget
->
getStyle
());
49
return
m_display
;
50
}
51
52
void
te::qt::widgets::ChartStyleFrame::setDisplay
(
te::qt::widgets::ChartDisplay
* newDisplay)
53
{
54
m_display
= newDisplay;
55
m_styleWidget
->
setStyle
(
m_display
->
getStyle
());
56
}
te::qt::widgets::ChartStyleFrame::m_ui
std::unique_ptr< Ui::ChartStyleFrameWidgetForm > m_ui
The Widget form.
Definition:
ChartStyleFrame.h:89
ChartStyleWidget.h
te::qt::widgets::ChartStyleFrame::~ChartStyleFrame
~ChartStyleFrame()
Destructor.
QWidget
Ui
Definition:
attic/src/qt/plugins/datasource/wcs/WCSConnectorDialog.h:41
te::qt::widgets::ChartStyleFrame::ChartStyleFrame
ChartStyleFrame(QWidget *parent=0)
Constructor.
Definition:
ChartStyleFrame.cpp:31
te::qt::widgets::ChartStyleWidget::setStyle
void setStyle(te::qt::widgets::ChartStyle *newStyle)
It sets the ChartStyle being configured.
Definition:
ChartStyleWidget.cpp:119
te::qt::widgets::ChartWidget::m_label
std::string m_label
The chart's Label.
Definition:
ChartWidget.h:100
te::qt::widgets::ChartStyleWidget::getStyle
te::qt::widgets::ChartStyle * getStyle()
Returns a pointer to the ChartStyle being configured.
Definition:
ChartStyleWidget.cpp:114
te::qt::widgets::ChartStyleFrame::m_styleWidget
ChartStyleWidget * m_styleWidget
The widget used to configure the display's style.
Definition:
ChartStyleFrame.h:91
te::qt::widgets::ChartDisplay
A class to represent a chart display.
Definition:
ChartDisplay.h:65
te::qt::widgets::ChartStyleFrame::setDisplay
void setDisplay(te::qt::widgets::ChartDisplay *newDisplay)
It sets the ChartDisplay being configured.
Definition:
ChartStyleFrame.cpp:52
ChartStyleFrame.h
te::qt::widgets::ChartStyleFrame::getDisplay
te::qt::widgets::ChartDisplay * getDisplay()
Returns a pointer to the ChartDisplay being configured.
Definition:
ChartStyleFrame.cpp:46
te::qt::widgets::ChartStyleFrame::m_display
ChartDisplay * m_display
The display that will be configured by this widget.
Definition:
ChartStyleFrame.h:90
te::qt::widgets::ChartStyleWidget
Definition:
ChartStyleWidget.h:56
te::qt::widgets::ChartWidget
A base widget for settings.
Definition:
ChartWidget.h:50
te::qt::widgets::ChartDisplay::getStyle
te::qt::widgets::ChartStyle * getStyle()
Returns a pointer to the display's style.
Definition:
ChartDisplay.cpp:125
ChartDisplay.h
A class to represent a chart display.
te::qt::widgets::ChartDisplay::setStyle
void setStyle(te::qt::widgets::ChartStyle *newStyle)
It sets the display's style.
Definition:
ChartDisplay.cpp:130
terralib5_src
src
terralib
qt
widgets
charts
ChartStyleFrame.cpp
Generated on Wed Jun 6 2018 12:16:06 for TerraLib by
1.8.11