mirror of
https://github.com/OrcaSlicer/OrcaSlicer.git
synced 2026-05-17 02:22:17 +00:00
ConfigWizard: Basic structure / WIP
This commit is contained in:
@@ -44,6 +44,7 @@
|
||||
#include "TabIface.hpp"
|
||||
#include "AppConfig.hpp"
|
||||
#include "Utils.hpp"
|
||||
#include "ConfigWizard.hpp"
|
||||
#include "Preferences.hpp"
|
||||
#include "PresetBundle.hpp"
|
||||
|
||||
@@ -352,6 +353,20 @@ void add_debug_menu(wxMenuBar *menu, int event_language_change)
|
||||
//#endif
|
||||
}
|
||||
|
||||
void open_config_wizard()
|
||||
{
|
||||
if (g_wxMainFrame == nullptr) {
|
||||
throw std::runtime_error("Main frame not set");
|
||||
}
|
||||
|
||||
// auto *wizard = new ConfigWizard(static_cast<wxWindow*>(g_wxMainFrame)); // FIXME: lifetime
|
||||
|
||||
// wizard->run();
|
||||
ConfigWizard::run(g_wxMainFrame);
|
||||
|
||||
// show_info(g_wxMainFrame, "After wizard", "After wizard");
|
||||
}
|
||||
|
||||
void open_preferences_dialog(int event_preferences)
|
||||
{
|
||||
auto dlg = new PreferencesDialog(g_wxMainFrame, event_preferences);
|
||||
|
||||
Reference in New Issue
Block a user