26 #ifndef __TERRALIB_QT_WIDGETS_UTILS_INTERNAL_DOUBLELISTWIDGET_H 27 #define __TERRALIB_QT_WIDGETS_UTILS_INTERNAL_DOUBLELISTWIDGET_H 30 #include "../Config.h" 38 class QListWidgetItem;
40 namespace Ui {
class DoubleListWidgetForm; }
63 Ui::DoubleListWidgetForm* getForm()
const;
65 void addItems(QList<QListWidgetItem*> list);
67 void addItems(std::vector<int> ids);
69 void removeItems(QList<QListWidgetItem*> list);
71 void removeItems(std::vector<int> ids);
73 void setLeftLabel(
const QString& value);
75 void setRightLabel(
const QString& value);
77 void setInputValues(std::vector<std::string> values);
79 void setInputDataValues(std::vector<std::string> values, std::vector<int> ids);
81 void setOutputValues(std::vector<std::string> values);
83 void setOutputDataValues(std::vector<std::string> values, std::vector<int> ids);
85 void setFixedOutputValues(std::vector<std::string> values, std::string iconName);
87 std::vector<std::string> getOutputValues();
89 std::vector<int> getOutputDataValues();
91 void clearInputValues();
93 void clearOutputValues();
95 void setVisibledOrderButtons(
bool state);
99 QListWidgetItem* getItemFromId(
const int &
id);
103 void onAddToolButtonPressed();
105 void onAddAllToolButtonPressed();
107 void onRemoveToolButtonPressed();
109 void onRemoveAllToolButtonPressed();
111 void onLeftListItemSelectionChanged();
113 void onRightListItemSelectionChanged();
115 void onUpToolButtonPressed();
117 void onDownToolButtonPressed();
123 void itemAdded(std::vector<int> ids);
125 void itemRemoved(std::vector<int> ids);
129 std::unique_ptr<Ui::DoubleListWidgetForm>
m_ui;
136 #endif // __TERRALIB_QT_WIDGETS_UTILS_INTERNAL_DOUBLELISTWIDGET_H