static void startAppearWiz(void) { MythScreenStack *mainStack = GetMythMainWindow()->GetMainStack(); ScreenWizard *screenwizard = new ScreenWizard(mainStack, "screenwizard"); if (screenwizard->Create()) mainStack->AddScreen(screenwizard); else delete screenwizard; }
/* static bool resetTheme(QString themedir, const QString badtheme) { QString themename = DEFAULT_UI_THEME; if (badtheme == DEFAULT_UI_THEME) themename = FALLBACK_UI_THEME; LOG(VB_GENERAL, LOG_ERR, QString("Overriding broken theme '%1' with '%2'") .arg(badtheme).arg(themename)); gCoreContext->OverrideSettingForSession("Theme", themename); themedir = GetMythUI()->FindThemeDir(themename); MythTranslation::reload(); GetMythUI()->LoadQtConfig(); #if CONFIG_DARWIN GetMythMainWindow()->Init(QT_PAINTER); #else GetMythMainWindow()->Init(); #endif GetMythMainWindow()->ReinitDone(); return RunMenu(themedir, themename); } */ static void startAppearWiz(int _x, int _y, int _w, int _h) { MythScreenStack *mainStack = GetMythMainWindow()->GetMainStack(); ScreenWizard *screenwizard = new ScreenWizard(mainStack, "screenwizard"); screenwizard->SetInitialSettings(_x, _y, _w, _h); if (screenwizard->Create()) mainStack->AddScreen(screenwizard); else delete screenwizard; }