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;
102 const std::vector<se::Rule*>& getRules()
const;
104 void saveLegend(
const std::string& path);
108 void getDataAsString(std::vector<std::string>& vec,
const std::string& attrName,
int& nullValues);
110 void buildSymbolizer(std::string meanTitle =
"");
112 void listAtrributes();
114 int getGeometryType();
116 void updateUi(
bool loadColorBar =
false);
124 void onApplyPushButtonClicked();
126 void onColorBarChanged();
128 void onCancelPushButtonClicked();
130 void onOkPushButtonClicked();
132 void onLoadPushButtonClicked();
134 void onSavePushButtonClicked();
136 void onSelectAllPushButtonClicked();
138 void onUnselectAllPushButtonClicked();
142 void applyPushButtonClicked();
144 void okPushButtonClicked();
148 std::unique_ptr<Ui::TimeViewerEditLegendDialog>
m_ui;
165 #endif //__TERRALIB_QT_PLUGINS_TIMEVIEWER_TIMEVIEWEREEDITLEGEND_H__ te::qt::widgets::ColorCatalogWidget * m_colorBar
Widget used to pick a color.
te::color::ColorBar * m_cb
Terralib color bar objetc.
A dialog used to edit legend.
It models the concept of color bar.
std::unique_ptr< Ui::TimeViewerEditLegendDialog > m_ui
Dialog form.
te::map::AbstractLayerPtr m_layer
TerraLib layer auto ptr.
std::vector< te::se::Rule * > m_legend
Rule items.
boost::intrusive_ptr< AbstractLayer > AbstractLayerPtr