AronTreeWidgetModal.h
Go to the documentation of this file.
1#pragma once
2
3#include <stack>
4
5#include <QDialog>
6#include <QTreeWidget>
7
9
12
14#include "../Data.h"
15
16namespace armarx
17{
18 class AronTreeWidgetModal : public QDialog
19 {
20 Q_OBJECT
21
22 public:
23 AronTreeWidgetModal(const std::string& label,
25 QTreeWidget* parent);
26
27 protected slots:
28
29 virtual void
31 {
32 item->aronType = init.aronType;
39 for (int i = 0; i < item->childCount(); ++i)
40 {
41 item->removeChild(item->child(i));
42 }
43 for (int i = 0; i < init.childCount(); ++i)
44 {
45 item->addChild(init.child(i)->clone());
46 }
47 }
48
49 virtual void
51 {
52 accept();
53 }
54
55 protected:
58
59 private:
60 std::string label;
61 QTreeWidget* parent;
62 };
63
64 using AronTreeWidgetModalControllerPtr = std::shared_ptr<AronTreeWidgetModal>;
65} // namespace armarx
AronTreeWidgetModal(const std::string &label, AronTreeWidgetItem *item, QTreeWidget *parent)
This file offers overloads of toIce() and fromIce() functions for STL container types.
std::shared_ptr< AronTreeWidgetModal > AronTreeWidgetModalControllerPtr