GroupBox.cpp
Go to the documentation of this file.
1 #include "GroupBox.h"
2 
3 #include <QCheckBox>
4 #include <QHBoxLayout>
5 #include <QVBoxLayout>
6 
7 
9 {
10 
12  {
13  QVBoxLayout* layout = new QVBoxLayout();
14  this->setLayout(layout);
15 
17 
18  useTypeInfoCheckBox = new QCheckBox("Use Type Information", this);
19  useTypeInfoCheckBox->setChecked(true);
20 
21  QHBoxLayout* checkBoxLayout = new QHBoxLayout();
22  checkBoxLayout->setDirection(QBoxLayout::RightToLeft);
23  checkBoxLayout->addWidget(useTypeInfoCheckBox);
24 
25  layout->addWidget(view);
26  layout->addLayout(checkBoxLayout);
27 
28  this->setTitle("Instance View (select an entity instance on the left)");
29  const int margin = 3;
30  this->layout()->setContentsMargins(margin, margin, margin, margin);
31 
32 
33  connect(view, &InstanceView::updated, this, &This::viewUpdated);
34  connect(useTypeInfoCheckBox, &QCheckBox::toggled, view, &InstanceView::setUseTypeInfo);
35  }
36 
37  void GroupBox::setStatusLabel(QLabel* statusLabel)
38  {
39  view->setStatusLabel(statusLabel);
40  }
41 
42 }
armarx::armem::gui::instance::DataView::updated
void updated()
armarx::armem::gui::instance::DataView::setUseTypeInfo
void setUseTypeInfo(bool enable)
Definition: DataView.cpp:71
armarx::armem::gui::instance::GroupBox::setStatusLabel
void setStatusLabel(QLabel *statusLabel)
Definition: GroupBox.cpp:37
armarx::armem::gui::InstanceView
instance::InstanceView InstanceView
Definition: InstanceView.h:60
armarx::armem::gui::instance::GroupBox::useTypeInfoCheckBox
QCheckBox * useTypeInfoCheckBox
Definition: GroupBox.h:42
armarx::armem::gui::instance
Definition: AronDataView.cpp:2
armarx::armem::gui::instance::GroupBox::GroupBox
GroupBox()
Definition: GroupBox.cpp:11
armarx::armem::gui::instance::GroupBox::viewUpdated
void viewUpdated()
armarx::armem::gui::instance::GroupBox::view
InstanceView * view
Definition: GroupBox.h:41
GroupBox.h
armarx::armem::gui::instance::DataView::setStatusLabel
void setStatusLabel(QLabel *statusLabel)
Definition: DataView.cpp:65