| 761 | AdvancedSettingsTab *SettingsDialog::get_advanced_dlg() { return &m_advanced_dlg; } |
| 762 | |
| 763 | SettingsDialog::SettingsDialog(HINSTANCE h_inst, HWND parent, NppInterface &npp, const Settings &settings, const SpellerContainer &speller_container) |
| 764 | : m_npp(npp), m_simple_dlg(*this, settings, m_npp), m_advanced_dlg(settings), m_settings(settings), m_speller_container(speller_container) { |
| 765 | Window::init(h_inst, parent); |
| 766 | m_settings.settings_changed.connect([this] { update_controls(); }); |
| 767 | m_speller_container.speller_status_changed.connect([this] { |
| 768 | m_simple_dlg.update_language_controls(m_settings, m_speller_container, m_selected_language_name); |
| 769 | m_simple_dlg.fill_lib_info(m_speller_container.get_aspell_status(), m_settings); |
| 770 | }); |
| 771 | } |
| 772 | |
| 773 | void SettingsDialog::destroy() { |
| 774 | m_simple_dlg.destroy(); |
nothing calls this directly
no test coverage detected