te::qt::plugins::tv::TimeViewerEditLegendDialog Class Reference

A dialog used to edit legend. More...

#include <TimeViewerEditLegendDialog.h>

Inheritance diagram for te::qt::plugins::tv::TimeViewerEditLegendDialog:
QDialog

Signals

void applyPushButtonClicked ()
 
void okPushButtonClicked ()
 

Public Member Functions

const std::vector< se::Rule * > & getRules () const
 
void saveLegend (const std::string &path)
 
void setLayers (te::map::AbstractLayerPtr layer)
 
Initializer Methods

Methods related to instantiation and destruction.

 TimeViewerEditLegendDialog (QWidget *parent=0, Qt::WindowFlags f=0)
 Constructs a basic fill dialog which is a child of parent, with widget flags set to f. More...
 
 ~TimeViewerEditLegendDialog ()
 Destructor. More...
 

Protected Slots

void onApplyPushButtonClicked ()
 
void onCancelPushButtonClicked ()
 
void onColorBarChanged ()
 
void onLoadPushButtonClicked ()
 
void onOkPushButtonClicked ()
 
void onSavePushButtonClicked ()
 
void onSelectAllPushButtonClicked ()
 
void onUnselectAllPushButtonClicked ()
 

Protected Member Functions

void initialize ()
 

Private Member Functions

void buildSymbolizer (std::string meanTitle="")
 
void getDataAsString (std::vector< std::string > &vec, const std::string &attrName, int &nullValues)
 
int getGeometryType ()
 
void listAtrributes ()
 
void updateUi (bool loadColorBar=false)
 

Private Attributes

te::color::ColorBarm_cb
 Terralib color bar objetc. More...
 
te::qt::widgets::ColorCatalogWidgetm_colorBar
 Widget used to pick a color. More...
 
te::map::AbstractLayerPtr m_layer
 TerraLib layer auto ptr. More...
 
std::vector< te::se::Rule * > m_legend
 Rule items. More...
 
bool m_manual
 
std::unique_ptr< Ui::TimeViewerEditLegendDialog > m_ui
 Dialog form. More...
 

Detailed Description

A dialog used to edit legend.

Definition at line 81 of file TimeViewerEditLegendDialog.h.

Constructor & Destructor Documentation

te::qt::plugins::tv::TimeViewerEditLegendDialog::TimeViewerEditLegendDialog ( QWidget parent = 0,
Qt::WindowFlags  f = 0 
)
te::qt::plugins::tv::TimeViewerEditLegendDialog::~TimeViewerEditLegendDialog ( )
default

Destructor.

Referenced by TimeViewerEditLegendDialog().

Member Function Documentation

void te::qt::plugins::tv::TimeViewerEditLegendDialog::applyPushButtonClicked ( )
signal
void te::qt::plugins::tv::TimeViewerEditLegendDialog::getDataAsString ( std::vector< std::string > &  vec,
const std::string &  attrName,
int nullValues 
)
private

Definition at line 139 of file TimeViewerEditLegendDialog.cpp.

References ds, and m_layer.

Referenced by onApplyPushButtonClicked().

int te::qt::plugins::tv::TimeViewerEditLegendDialog::getGeometryType ( )
private

Definition at line 291 of file TimeViewerEditLegendDialog.cpp.

References te::map::GetGeomType(), and m_layer.

Referenced by buildSymbolizer().

const std::vector< te::se::Rule * > & te::qt::plugins::tv::TimeViewerEditLegendDialog::getRules ( ) const

Definition at line 440 of file TimeViewerEditLegendDialog.cpp.

References m_legend.

void te::qt::plugins::tv::TimeViewerEditLegendDialog::listAtrributes ( )
private
void te::qt::plugins::tv::TimeViewerEditLegendDialog::okPushButtonClicked ( )
signal

Referenced by onOkPushButtonClicked().

void te::qt::plugins::tv::TimeViewerEditLegendDialog::onApplyPushButtonClicked ( )
protectedslot
void te::qt::plugins::tv::TimeViewerEditLegendDialog::onCancelPushButtonClicked ( )
protectedslot

Definition at line 428 of file TimeViewerEditLegendDialog.cpp.

Referenced by TimeViewerEditLegendDialog().

void te::qt::plugins::tv::TimeViewerEditLegendDialog::onColorBarChanged ( )
protectedslot

Definition at line 418 of file TimeViewerEditLegendDialog.cpp.

References buildSymbolizer(), m_layer, and updateUi().

Referenced by TimeViewerEditLegendDialog(), and updateUi().

void te::qt::plugins::tv::TimeViewerEditLegendDialog::onLoadPushButtonClicked ( )
protectedslot

Definition at line 518 of file TimeViewerEditLegendDialog.cpp.

References m_ui, and p.

Referenced by TimeViewerEditLegendDialog().

void te::qt::plugins::tv::TimeViewerEditLegendDialog::onOkPushButtonClicked ( )
protectedslot

Definition at line 433 of file TimeViewerEditLegendDialog.cpp.

References okPushButtonClicked().

Referenced by TimeViewerEditLegendDialog().

void te::qt::plugins::tv::TimeViewerEditLegendDialog::onSavePushButtonClicked ( )
protectedslot

Definition at line 445 of file TimeViewerEditLegendDialog.cpp.

References saveLegend().

Referenced by TimeViewerEditLegendDialog().

void te::qt::plugins::tv::TimeViewerEditLegendDialog::onSelectAllPushButtonClicked ( )
protectedslot

Definition at line 496 of file TimeViewerEditLegendDialog.cpp.

References m_ui.

Referenced by TimeViewerEditLegendDialog().

void te::qt::plugins::tv::TimeViewerEditLegendDialog::onUnselectAllPushButtonClicked ( )
protectedslot

Definition at line 507 of file TimeViewerEditLegendDialog.cpp.

References m_ui.

Referenced by TimeViewerEditLegendDialog().

void te::qt::plugins::tv::TimeViewerEditLegendDialog::saveLegend ( const std::string &  path)

Definition at line 452 of file TimeViewerEditLegendDialog.cpp.

References b, and m_ui.

Referenced by onSavePushButtonClicked().

void te::qt::plugins::tv::TimeViewerEditLegendDialog::setLayers ( te::map::AbstractLayerPtr  layer)

Definition at line 100 of file TimeViewerEditLegendDialog.cpp.

References listAtrributes(), m_layer, and m_ui.

Member Data Documentation

te::color::ColorBar* te::qt::plugins::tv::TimeViewerEditLegendDialog::m_cb
private

Terralib color bar objetc.

Definition at line 154 of file TimeViewerEditLegendDialog.h.

Referenced by buildSymbolizer().

te::qt::widgets::ColorCatalogWidget* te::qt::plugins::tv::TimeViewerEditLegendDialog::m_colorBar
private

Widget used to pick a color.

Definition at line 156 of file TimeViewerEditLegendDialog.h.

Referenced by buildSymbolizer(), initialize(), TimeViewerEditLegendDialog(), and updateUi().

te::map::AbstractLayerPtr te::qt::plugins::tv::TimeViewerEditLegendDialog::m_layer
private
std::vector<te::se::Rule*> te::qt::plugins::tv::TimeViewerEditLegendDialog::m_legend
private

Rule items.

Definition at line 152 of file TimeViewerEditLegendDialog.h.

Referenced by buildSymbolizer(), getRules(), onApplyPushButtonClicked(), and updateUi().

bool te::qt::plugins::tv::TimeViewerEditLegendDialog::m_manual
private

Definition at line 158 of file TimeViewerEditLegendDialog.h.

Referenced by initialize(), and onApplyPushButtonClicked().

std::unique_ptr<Ui::TimeViewerEditLegendDialog> te::qt::plugins::tv::TimeViewerEditLegendDialog::m_ui
private

The documentation for this class was generated from the following files: