| 12 | DialogAgentData::~DialogAgentData() = default; |
| 13 | |
| 14 | void DialogAgentData::createUI() |
| 15 | { |
| 16 | this->setWindowTitle("Set Agent Data"); |
| 17 | this->setProperty("Main", "base"); |
| 18 | this->setMinimumWidth(450); |
| 19 | |
| 20 | groupNetwork = new QGroupBox("Network", this); |
| 21 | layoutNetwork = new QGridLayout(groupNetwork); |
| 22 | |
| 23 | labelInternalIP = new QLabel("Internal IP:", this); |
| 24 | inputInternalIP = new QLineEdit(this); |
| 25 | labelExternalIP = new QLabel("External IP:", this); |
| 26 | inputExternalIP = new QLineEdit(this); |
| 27 | |
| 28 | layoutNetwork->addWidget(labelInternalIP, 0, 0); |
| 29 | layoutNetwork->addWidget(inputInternalIP, 0, 1); |
| 30 | layoutNetwork->addWidget(labelExternalIP, 0, 2); |
| 31 | layoutNetwork->addWidget(inputExternalIP, 0, 3); |
| 32 | |
| 33 | groupCoding = new QGroupBox("Coding", this); |
| 34 | layoutCoding = new QGridLayout(groupCoding); |
| 35 | |
| 36 | labelACP = new QLabel("ACP:", this); |
| 37 | inputACP = new QSpinBox(this); |
| 38 | inputACP->setRange(0, 65535); |
| 39 | |
| 40 | labelOemCP = new QLabel("OEM CP:", this); |
| 41 | inputOemCP = new QSpinBox(this); |
| 42 | inputOemCP->setRange(0, 65535); |
| 43 | |
| 44 | layoutCoding->addWidget(labelACP, 0, 0); |
| 45 | layoutCoding->addWidget(inputACP, 0, 1); |
| 46 | layoutCoding->addWidget(labelOemCP, 0, 2); |
| 47 | layoutCoding->addWidget(inputOemCP, 0, 3); |
| 48 | |
| 49 | groupProcess = new QGroupBox("Process", this); |
| 50 | layoutProcess = new QGridLayout(groupProcess); |
| 51 | |
| 52 | labelProcess = new QLabel("Process:", this); |
| 53 | inputProcess = new QLineEdit(this); |
| 54 | |
| 55 | inputArch = new QComboBox(this); |
| 56 | inputArch->addItems({"x86", "x64"}); |
| 57 | |
| 58 | inputElevated = new QCheckBox("Elevated", this); |
| 59 | |
| 60 | labelPid = new QLabel("PID:", this); |
| 61 | inputPid = new QLineEdit(this); |
| 62 | labelTid = new QLabel("TID:", this); |
| 63 | inputTid = new QLineEdit(this); |
| 64 | |
| 65 | layoutProcess->addWidget(labelProcess, 0, 0); |
| 66 | layoutProcess->addWidget(inputProcess, 0, 1); |
| 67 | layoutProcess->addWidget(inputArch, 0, 2); |
| 68 | layoutProcess->addWidget(inputElevated, 0, 3); |
| 69 | layoutProcess->addWidget(labelPid, 1, 0); |
| 70 | layoutProcess->addWidget(inputPid, 1, 1); |
| 71 | layoutProcess->addWidget(labelTid, 1, 2); |
no test coverage detected