AronTreeWidgetTextInputModalController.cpp
Go to the documentation of this file.
2
3namespace armarx
4{
6 const std::string& label,
8 QTreeWidget* parent) :
9 AronTreeWidgetModal(label, item, parent)
10 {
11 widget.setupUi(this);
12
13 // set header
14 widget.groupBoxInput->setTitle(QString::fromStdString(label));
15 reset();
16
17 // connect signals
18 connect(widget.pushButtonReset,
19 &QPushButton::clicked,
20 this,
21 &AronTreeWidgetTextInputModalController::reset);
22 connect(widget.pushButtonSubmit,
23 &QPushButton::clicked,
24 this,
25 &AronTreeWidgetTextInputModalController::submit);
26 }
27
28 void
29 AronTreeWidgetTextInputModalController::submit()
30 {
32 widget.textEditInput->toPlainText());
33
35 }
36
37 void
38 AronTreeWidgetTextInputModalController::reset()
39 {
41
42 // reset to initial value
43 widget.textEditInput->setPlainText(
45 }
46} // namespace armarx
AronTreeWidgetModal(const std::string &label, AronTreeWidgetItem *item, QTreeWidget *parent)
AronTreeWidgetTextInputModalController(const std::string &label, AronTreeWidgetItem *item, QTreeWidget *parent)
This file offers overloads of toIce() and fromIce() functions for STL container types.