rendered paste bodyIndex: util_menu.xml
===================================================================
--- util_menu.xml (revision 15728)
+++ util_menu.xml (working copy)
@@ -80,8 +80,7 @@
<button>
<type>MYTHAPPEARANCE</type>
<text>Screen Setup Wizards</text>
- <action>PLUGIN mythappearance</action>
- <depends>mythappearance</depends>
+ <action>SETTINGS APPEARWIZARD</action>
</button>
<button>
<type>SETUP_MENU</type>
Index: main.cpp
===================================================================
--- main.cpp (revision 15728)
+++ main.cpp (working copy)
@@ -51,9 +51,12 @@
#include "lcddevice.h"
#include "langsettings.h"
-#include "libmythui/myththemedmenu.h"
-#include "libmythui/myththemebase.h"
+#include "myththemedmenu.h"
+#include "myththemebase.h"
#include "mediarenderer.h"
+#include "mythscreenstack.h"
+#include "mythmainwindow.h"
+#include "mythappearance.h"
#define NO_EXIT 0
#define QUIT 1
@@ -62,11 +65,31 @@
static MythThemedMenu *menu;
static MythThemeBase *themeBase;
+static MythScreenStack *mainStack;
+
XBox *xbox = NULL;
QString logfile = "";
MediaRenderer *g_pUPnp = NULL;
+void startAppearWiz(void)
+ {
+ gContext->addCurrentLocation("mythappearance");
+
+ VERBOSE(VB_IMPORTANT, "Hello!");
+
+ MythScreenStack *mainStack = GetMythMainWindow()->GetMainStack();
+
+ MythAppearance *mythappearance = new MythAppearance(mainStack, "mythappearance");
+
+ if (mythappearance->Create())
+ mainStack->AddScreen(mythappearance);
+
+ gContext->removeCurrentLocation();
+
+ }
+
+
void startGuide(void)
{
uint chanid = 0;
@@ -368,6 +391,12 @@
GetMythMainWindow()->JumpTo("Reload Theme");
}
}
+
+ else if (sel == "settings appearwizard")
+ {
+ startAppearWiz();
+ }
+
else if (sel == "settings recording")
{
ProfileGroupEditor editor;
@@ -1460,6 +1489,6 @@
delete g_pUPnp;
return FRONTEND_EXIT_OK;
+
}
-
/* vim: set expandtab tabstop=4 shiftwidth=4: */
Index: mythfrontend.pro
===================================================================
--- mythfrontend.pro (revision 15728)
+++ mythfrontend.pro (working copy)
@@ -27,12 +27,14 @@
HEADERS += manualschedule.h programrecpriority.h channelrecpriority.h
HEADERS += statusbox.h networkcontrol.h custompriority.h
HEADERS += mediarenderer.h
+HEADERS += mythappearance.h
SOURCES += main.cpp manualbox.cpp playbackbox.cpp viewscheduled.cpp
SOURCES += globalsettings.cpp manualschedule.cpp programrecpriority.cpp
SOURCES += channelrecpriority.cpp statusbox.cpp networkcontrol.cpp
SOURCES += mediarenderer.cpp
SOURCES += custompriority.cpp
+SOURCES += mythappearance.cpp
macx {
mac_bundle {