ConfigWizard: Basic structure / WIP

This commit is contained in:
Vojtech Kral 2018-03-13 12:39:57 +01:00
parent e37cbdfcfc
commit 3fcf194e39
23 changed files with 881 additions and 24 deletions

View file

@ -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);