| 2157 | |
| 2158 | |
| 2159 | bool UIEditorPanel::Write_JSON(const wxString& name) |
| 2160 | { |
| 2161 | bool ok = true; |
| 2162 | m_ipd.Form().Copy(m_exForm); |
| 2163 | m_ipd.Form().SetName(name); |
| 2164 | // note: ipd.Variables() already up-to-date |
| 2165 | m_ipd.CbScript() = m_callbackScript->GetText(); |
| 2166 | m_ipd.EqnScript() = m_equationScript->GetText(); |
| 2167 | wxString ui_path = SamApp::GetRuntimePath() + "/ui/" + name; |
| 2168 | std::string ff(ui_path + ".json"); |
| 2169 | ok = m_ipd.Write_JSON(ff, ui_path); |
| 2170 | return ok; |
| 2171 | } |
| 2172 | |
| 2173 | |
| 2174 | bool UIEditorPanel::Load( const wxString &name ) |
no test coverage detected