134{
135 if (
ui->MethodImplementationLanguage->text().isEmpty()
136 &&
ui->MethodImplementationLanguage->text().isEmpty()
137 &&
ui->MethodImplementationDescription->toPlainText().isEmpty() ) {
138
139 close();
140 return;
141 }
142
143 if (
ui->MethodImplementationLanguage->text().isEmpty() )
144 {
145 QMessageBox::warning (
146 0, "Schema editor",
147 QString ( "Please Provide a Language for the method implementation !" ) );
148 return;
149 }
150
151 if (
ui->MethodImplementationPrototype->text().isEmpty() )
152 {
153 QMessageBox::warning (
154 0, "Schema editor",
155 QString ( "Please Provide a prototype for the method implementation !" ) );
156 return;
157 }
158
159 std::string MethodLanguage =
ui->MethodImplementationLanguage->text().toStdString();
160 std::string MethodPrototype =
ui->MethodImplementationPrototype->text().toStdString();
161 std::string MethodDescription =
ui->MethodImplementationDescription->toPlainText()
162 .toStdString();
163
166 MethodLanguage,
167 MethodPrototype,
168 MethodDescription );
170 close();
171}
static KernelWrapper & GetInstance()
void PushAddMethodImplementationComand(dunedaq::oks::OksClass *Class, dunedaq::oks::OksMethod *Method, std::string Language, std::string Prototype, std::string Body)