32 #ifndef DATATOOLS_CONFIGURATION_UI_PARAMETER_ITEM_DELEGATE_H 33 #define DATATOOLS_CONFIGURATION_UI_PARAMETER_ITEM_DELEGATE_H 38 #include <QItemDelegate> 39 #include <QStyledItemDelegate> 40 #include <QPushButton> 41 #include <QFileDialog> 42 #include <QInputDialog> 47 class QAbstractItemModel;
55 namespace configuration {
58 class parameter_model;
60 class variant_repository;
73 const QString & button_text_ =
"Set value",
74 QWidget * parent_ = 0 );
103 const QModelIndex * _index_ =
nullptr;
104 QInputDialog * _real_dialog_ =
nullptr;
107 std::string _unit_label_;
108 std::string _unit_symbol_;
123 const QString & button_text_ =
"Choose file path",
124 QWidget * parent_ = 0 );
150 QFileDialog::AcceptMode _accept_mode_;
151 const QModelIndex * _index_ =
nullptr;
152 QFileDialog * _path_dialog_ =
nullptr;
187 const QStyleOptionViewItem & option_,
188 const QModelIndex & index_)
const;
192 const QModelIndex & index_)
const;
196 const QModelIndex & index_)
const;
200 QAbstractItemModel * model_,
201 const QModelIndex & index_)
const;
205 const QStyleOptionViewItem & option_,
206 const QModelIndex & index_)
const;
223 QWidget * _create_boolean_editor(QWidget * parent_,
224 const QStyleOptionViewItem & option_,
225 const QModelIndex & index_,
228 QWidget * _create_integer_editor(QWidget * parent_,
229 const QStyleOptionViewItem & option_,
230 const QModelIndex & index_,
233 QWidget * _create_real_editor(QWidget * parent_,
234 const QStyleOptionViewItem & option_,
235 const QModelIndex & index_,
238 QWidget * _create_string_editor(QWidget * parent_,
239 const QStyleOptionViewItem & option_,
240 const QModelIndex & index_,
243 bool _set_boolean_editor_data(QWidget * editor_,
244 const QModelIndex & index_,
247 bool _set_integer_editor_data(QWidget * editor_,
248 const QModelIndex & index_,
251 bool _set_real_editor_data(QWidget * editor_,
252 const QModelIndex & index_,
255 bool _set_string_editor_data(QWidget * editor_,
256 const QModelIndex & index_,
274 #endif // DATATOOLS_CONFIGURATION_UI_PARAMETER_ITEM_DELEGATE_H
Utilities for logging information.