InstanceGroupBoxView.cpp
Go to the documentation of this file.
2
3#include <QCheckBox>
4#include <QHBoxLayout>
5#include <QVBoxLayout>
6
8{
9
11 {
12 QVBoxLayout* layout = new QVBoxLayout();
13 this->setLayout(layout);
14
15 _view = new armem::gui::InstanceView();
16
17 _useTypeInfoCheckBox = new QCheckBox("Use Type Information", this);
18 _useTypeInfoCheckBox->setChecked(true);
19
20 QHBoxLayout* checkBoxLayout = new QHBoxLayout();
21 checkBoxLayout->setDirection(QBoxLayout::RightToLeft);
22 checkBoxLayout->addWidget(_useTypeInfoCheckBox);
23
24 layout->addWidget(_view);
25 layout->addLayout(checkBoxLayout);
26
27 this->setTitle("Instance View (select an entity instance on the left)");
28 const int margin = 3;
29 this->layout()->setContentsMargins(margin, margin, margin, margin);
30
31
32 connect(_useTypeInfoCheckBox, &QCheckBox::toggled, _view, &InstanceView::setUseTypeInfo);
33 }
34
37 {
38 return _view;
39 }
40
41} // namespace armarx::armem::gui::view
armem::gui::InstanceView * instanceView() const
instance::InstanceView InstanceView