MCPcopy Create free account
hub / github.com/Illation/ETEngine / OnActionPreferences

Method OnActionPreferences

Engine/source/EtEditor/EditorApp.cpp:261–279  ·  view source on GitHub ↗

--------------------------------- EditorApp::OnActionPreferences On clicking the preferences button in the menu we show the SettingsDialog

Source from the content-addressed store, hash-verified

259// On clicking the preferences button in the menu we show the SettingsDialog
260//
261void EditorApp::OnActionPreferences()
262{
263 try
264 {
265 SettingsDialog* prefsDialog = SettingsDialog::create(*get_active_window());
266 prefsDialog->present();
267
268 // Delete the dialog when it is hidden.
269 prefsDialog->signal_hide().connect(sigc::bind<Gtk::Window*>(sigc::mem_fun(*this, &EditorApp::OnHideWindow), prefsDialog));
270 }
271 catch (const Glib::Error& ex)
272 {
273 LOG("EditorApp::OnActionPreferences > " + std::string(ex.what()), core::LogLevel::Error);
274 }
275 catch (const std::exception& ex)
276 {
277 LOG("EditorApp::OnActionPreferences > " + std::string(ex.what()), core::LogLevel::Error);
278 }
279}
280
281//---------------------------------
282// EditorApp::OnActionPreferences

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected