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

Method create

Engine/source/EtEditor/Util/SettingsDialog.cpp:34–47  ·  view source on GitHub ↗

static --------------------------------- SettingsDialog::create Create a settings dialog from the generated source in prefs.ui

Source from the content-addressed store, hash-verified

32// Create a settings dialog from the generated source in prefs.ui
33//
34SettingsDialog* SettingsDialog::create(Gtk::Window& parent)
35{
36 // Load the Builder file and instantiate its widgets.
37 Glib::RefPtr<Gtk::Builder> refBuilder = Gtk::Builder::create_from_resource("/com/leah-lindner/editor/ui/prefs.ui");
38
39 SettingsDialog* dialog = nullptr;
40 refBuilder->get_widget_derived("prefs_dialog", dialog);
41 if (!dialog)
42 {
43 throw std::runtime_error("No 'prefs_dialog' object in prefs.ui");
44 }
45
46 return dialog;
47}
48
49
50} // namespace edit

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected