27 #ifndef __TERRALIB_QT_PLUGINS_TIMEVIEWER_TIMEVIEWEREEDITLEGEND_H__
28 #define __TERRALIB_QT_PLUGINS_TIMEVIEWER_TIMEVIEWEREEDITLEGEND_H__
34 #include "../../../dataaccess/datasource/DataSourceInfo.h"
35 #include "../../../maptools/AbstractLayer.h"
40 #include <QTableWidgetItem>
48 class TimeViewerEditLegendDialog;
68 class ColorCatalogWidget;
108 void getDataAsString(std::vector<std::string>& vec,
const std::string& attrName,
int& nullValues);
148 std::unique_ptr<Ui::TimeViewerEditLegendDialog>
m_ui;
It models the concept of color bar.
A dialog used to edit legend.
te::map::AbstractLayerPtr m_layer
TerraLib layer auto ptr.
void setLayers(te::map::AbstractLayerPtr layer)
void onApplyPushButtonClicked()
void okPushButtonClicked()
te::qt::widgets::ColorCatalogWidget * m_colorBar
Widget used to pick a color.
void onOkPushButtonClicked()
te::color::ColorBar * m_cb
Terralib color bar objetc.
void onUnselectAllPushButtonClicked()
std::unique_ptr< Ui::TimeViewerEditLegendDialog > m_ui
Dialog form.
void onCancelPushButtonClicked()
void onLoadPushButtonClicked()
void buildSymbolizer(std::string meanTitle="")
~TimeViewerEditLegendDialog()
Destructor.
const std::vector< se::Rule * > & getRules() const
void onSelectAllPushButtonClicked()
void onSavePushButtonClicked()
void applyPushButtonClicked()
void getDataAsString(std::vector< std::string > &vec, const std::string &attrName, int &nullValues)
void updateUi(bool loadColorBar=false)
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.
void saveLegend(const std::string &path)
std::vector< te::se::Rule * > m_legend
Rule items.
TECOLOREXPORT te::color::ColorSchemeCatalog * loadColorBar(const std::string &jsonfile, const std::string &catalogName)
This file contains utility functions for color bar.
boost::intrusive_ptr< AbstractLayer > AbstractLayerPtr
Proxy configuration file for TerraView (see terraview_config.h).