48 using param_type =
typename Property_T::param_type;
54 const auto& prop = (m_process.*Property_T::get)();
55 for(
auto& [name, addr, lang] : param_type::specification)
57 addTab(name, prop.*addr, lang);
60 con(m_process, Property_T::notify,
this, [
this]() {
61 const auto& prop = (m_process.*Property_T::get)();
63 for(
auto& [name, addr, lang] : param_type::specification)
65 setText(i, prop.*addr);
70 con(m_process, &Process_T::errorMessage,
this,
71 &ProcessMultiScriptEditDialog::setError);
73 &QWidget::deleteLater);
76 void on_accepted()
override
79 if(this->text() != (m_process.*Property_T::get)())
83 if(m_process.validate(this->text()))
87 m_process, this->text(), m_context});
93 const Process_T& m_process;
94 void closeEvent(QCloseEvent* event)
override
96 const_cast<QWidget*&
>(m_process.externalUI) =
nullptr;
97 m_process.externalUIVisible(
false);
Definition DocumentContext.hpp:18