A widget used to build a grouping. More...
#include <ChartLayerWidget.h>
Public Slots | |
void | onAddToolButtonClicked () |
Function used when the user clicked over the add tool button. More... | |
void | onItemClicked (int row, int column) |
Function used when the user clicked over the table (color column). More... | |
void | onRemoveToolButtonClicked () |
Function used when the user clicked over the remove tool button. More... | |
void | updateUi () |
Updates the widget form based on internal fill element. More... | |
Public Member Functions | |
bool | buildChart () |
Creates the te::map::Chart object using the interface parameters. More... | |
void | setChart (te::map::Chart *chart) |
Update the interface with the chart properties. More... | |
void | setLayer (te::map::AbstractLayerPtr layer) |
Set a layer. More... | |
Initializer Methods | |
Methods related to instantiation and destruction. | |
ChartLayerWidget (QWidget *parent=0, Qt::WindowFlags f=0) | |
Constructs a basic fill widget which is a child of parent, with widget flags set to f. More... | |
~ChartLayerWidget () | |
Destructor. More... | |
Protected Member Functions | |
void | initialize () |
Internal method to initialize the widget (e.g.: color, combos, icons, etc.) More... | |
void | listAttributes () |
List the layer attributes (from layer schema) More... | |
Private Attributes | |
std::map< std::string, QColor > | m_chartMap |
Chart Map. More... | |
ColorPickerToolButton * | m_colorPicker |
The color picker used to customise the color of several chart parameters. More... | |
te::map::AbstractLayerPtr | m_layer |
TerraLib layer auto ptr. More... | |
std::auto_ptr < Ui::ChartLayerWidgetForm > | m_ui |
Widget form. More... | |
te::qt::widgets::ChartLayerWidget::ChartLayerWidget | ( | QWidget * | parent = 0 , |
Qt::WindowFlags | f = 0 |
||
) |
Constructs a basic fill widget which is a child of parent, with widget flags set to f.
Definition at line 45 of file ChartLayerWidget.cpp.
References initialize(), m_colorPicker, m_ui, onAddToolButtonClicked(), onItemClicked(), onRemoveToolButtonClicked(), and updateUi().
te::qt::widgets::ChartLayerWidget::~ChartLayerWidget | ( | ) |
Destructor.
Definition at line 70 of file ChartLayerWidget.cpp.
bool te::qt::widgets::ChartLayerWidget::buildChart | ( | ) |
Creates the te::map::Chart object using the interface parameters.
Definition at line 82 of file ChartLayerWidget.cpp.
References te::map::Bar, te::qt::widgets::Convert2TerraLib(), te::map::Chart::getProperties(), te::map::Chart::getType(), te::map::Chart::setAvoidConflicts(), te::map::Chart::setContourColor(), te::map::Chart::setContourWidth(), te::map::Chart::setHeight(), and te::map::Chart::setMaxValue().
|
protected |
Internal method to initialize the widget (e.g.: color, combos, icons, etc.)
Definition at line 180 of file ChartLayerWidget.cpp.
References te::map::Bar, and te::map::Pie.
Referenced by ChartLayerWidget().
|
protected |
List the layer attributes (from layer schema)
Definition at line 272 of file ChartLayerWidget.cpp.
References te::dt::DOUBLE_TYPE, te::dt::FLOAT_TYPE, te::dt::Property::getName(), te::dt::Property::getType(), te::dt::INT16_TYPE, te::dt::INT32_TYPE, te::dt::INT64_TYPE, and te::dt::NUMERIC_TYPE.
|
slot |
Function used when the user clicked over the add tool button.
Definition at line 219 of file ChartLayerWidget.cpp.
Referenced by ChartLayerWidget().
|
slot |
Function used when the user clicked over the table (color column).
Definition at line 253 of file ChartLayerWidget.cpp.
Referenced by ChartLayerWidget().
|
slot |
Function used when the user clicked over the remove tool button.
Definition at line 238 of file ChartLayerWidget.cpp.
Referenced by ChartLayerWidget().
void te::qt::widgets::ChartLayerWidget::setChart | ( | te::map::Chart * | chart | ) |
Update the interface with the chart properties.
Definition at line 148 of file ChartLayerWidget.cpp.
References te::qt::widgets::Convert2Qt(), te::map::Chart::getAvoidConflicts(), te::map::Chart::getColor(), te::map::Chart::getContourColor(), te::map::Chart::getContourWidth(), te::map::Chart::getHeight(), te::map::Chart::getProperties(), and te::map::Chart::getType().
void te::qt::widgets::ChartLayerWidget::setLayer | ( | te::map::AbstractLayerPtr | layer | ) |
Set a layer.
Definition at line 75 of file ChartLayerWidget.cpp.
|
slot |
Updates the widget form based on internal fill element.
Definition at line 193 of file ChartLayerWidget.cpp.
References te::qt::widgets::CreatePixmapIcon().
Referenced by ChartLayerWidget().
|
private |
Chart Map.
Definition at line 141 of file ChartLayerWidget.h.
|
private |
The color picker used to customise the color of several chart parameters.
Definition at line 139 of file ChartLayerWidget.h.
Referenced by ChartLayerWidget().
|
private |
TerraLib layer auto ptr.
Definition at line 140 of file ChartLayerWidget.h.
|
private |