26 #ifndef __TERRALIB_QT_WIDGETS_SE_INTERNAL_GROUPINGWIDGET_H
27 #define __TERRALIB_QT_WIDGETS_SE_INTERNAL_GROUPINGWIDGET_H
30 #include "../../../maptools/AbstractLayer.h"
31 #include "../Config.h"
37 #include <QTableWidgetItem>
41 namespace Ui {
class GroupingWidgetForm; }
46 namespace color {
class ColorBar; }
48 namespace da {
class DataSetType; }
61 class ColorCatalogWidget;
93 std::auto_ptr<te::map::Grouping> getGrouping();
101 void updateUi(
bool loadColorBar =
false);
103 void setDataSetType();
109 void getDataAsDouble(std::vector<double>& vec,
const std::string& attrName,
const int& dataType,
int& nullValues);
111 void getLinkedDataAsDouble(std::vector<double>& vec,
const std::string& attrName,
const int& dataType,
int& nullValues);
113 void getDataAsString(std::vector<std::string>& vec,
const std::string& attrName,
int& nullValues);
115 void getLinkedDataAsString(std::vector<std::string>& vec,
const std::string& attrName,
int& nullValues);
117 void createDoubleNullGroupingItem(
int count);
119 void createStringNullGroupingItem(
int count);
121 int getGeometryType();
123 void buildSymbolizer(std::string meanTitle =
"");
125 void listAttributes();
129 void onApplyPushButtonClicked();
131 void onTypeComboBoxActivated(
int idx);
133 void onAttrComboBoxActivated(
int idx);
135 void onColorBarChanged();
137 void onTableWidgetItemChanged(QTableWidgetItem* item);
139 void onTableWidgetItemDoubleClicked(QTableWidgetItem* item);
141 void onImportPushButtonClicked();
145 void applyPushButtonClicked();
150 std::auto_ptr<Ui::GroupingWidgetForm>
m_ui;
165 #endif // __TERRALIB_QT_WIDGETS_SE_INTERNAL_GROUPINGWIDGET_H
This class contains the parameters needed for grouping the values of a Property.
It models the concept of color bar.
boost::intrusive_ptr< AbstractLayer > AbstractLayerPtr