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