| 151 | } |
| 152 | |
| 153 | ui::Dialog* dialog() { |
| 154 | auto dialog = handle<ui::Widget, ui::Dialog>(); |
| 155 | if (!dialog) |
| 156 | throw script::ObjectDestroyedException{}; |
| 157 | return dialog; |
| 158 | } |
| 159 | |
| 160 | ScriptObject* get(const std::string& id) { |
| 161 | auto it = m_widgets.find(id); |