19 QHBoxLayout* hlayout1 =
new QHBoxLayout();
20 QHBoxLayout* hlayout2 =
new QHBoxLayout();
21 QVBoxLayout* vlayout =
new QVBoxLayout();
23 _sendCommit =
new QPushButton(
"Commit");
24 _memoryID =
new QLineEdit(
"memory/coreSegment/providerSegment/entity");
25 _aronJSONInput =
new QTextEdit(
"");
28 font.setFamily(
"Courier");
29 font.setStyleHint(QFont::Monospace);
30 font.setFixedPitch(
true);
31 font.setPointSize(10);
32 _aronJSONInput->setFont(font);
34 const int tabStop = 4;
35 QFontMetrics metrics(font);
36 _aronJSONInput->setTabStopWidth(tabStop * metrics.width(
' '));
38 hlayout1->addWidget(_memoryID);
39 hlayout1->addWidget(_sendCommit);
41 hlayout2->addWidget(_aronJSONInput);
44 vlayout->setContentsMargins(margin, margin, margin, margin);
46 vlayout->addLayout(hlayout1);
47 vlayout->addLayout(hlayout2);
50 connect(_sendCommit, &QPushButton::pressed,
this, &
This::commit);
58 return _aronJSONInput->toPlainText().toStdString();
64 return _memoryID->text().toStdString();