20 QHBoxLayout* hlayout1 =
new QHBoxLayout();
21 QHBoxLayout* hlayout2 =
new QHBoxLayout();
22 QVBoxLayout* vlayout =
new QVBoxLayout();
24 _sendCommit =
new QPushButton(
"Commit");
25 _memoryID =
new QLineEdit(
"memory/coreSegment/providerSegment/entity");
26 _aronJSONInput =
new QTextEdit(
"");
29 font.setFamily(
"Courier");
30 font.setStyleHint(QFont::Monospace);
31 font.setFixedPitch(
true);
32 font.setPointSize(10);
33 _aronJSONInput->setFont(font);
35 const int tabStop = 4;
36 QFontMetrics metrics(font);
37 _aronJSONInput->setTabStopWidth(tabStop * metrics.width(
' '));
39 hlayout1->addWidget(_memoryID);
40 hlayout1->addWidget(_sendCommit);
42 hlayout2->addWidget(_aronJSONInput);
45 vlayout->setContentsMargins(margin, margin, margin, margin);
47 vlayout->addLayout(hlayout1);
48 vlayout->addLayout(hlayout2);
51 connect(_sendCommit, &QPushButton::pressed,
this, &
This::commit);
58 return _aronJSONInput->toPlainText().toStdString();
63 return _memoryID->text().toStdString();