/* * text2skin.c: A plugin for the Video Disk Recorder * * See the README file for copyright information and how to reach the author. * * $Id: text2skin.c,v 1.7 2005/05/30 10:09:50 lordjaxom Exp $ */ #include "text2skin.h" #include "setup.h" #include "menu.h" #include "i18n.h" #include "loader.h" #include "status.h" #include "xml/object.h" const char *cText2SkinPlugin::VERSION = "1.1-cvs"; const char *cText2SkinPlugin::SKINVERSION = "1.0"; const char *cText2SkinPlugin::DESCRIPTION = "Loader for text-based skins"; cText2SkinPlugin::cText2SkinPlugin(void) { } cText2SkinPlugin::~cText2SkinPlugin() { } #if VDRVERSNUM >= 10330 bool cText2SkinPlugin::Service(const char *Id, void *Data) { if (strcmp(Id,"Text2Skin-TTF") == 0) { if (Data == NULL) return true; cxObject::UseTTF = *(int*)Data; return true; } return false; } #endif bool cText2SkinPlugin::Start(void) { RegisterI18n(Phrases); Text2SkinStatus.SetLanguage(Setup.OSDLanguage); cText2SkinLoader::Start(); return true; } cMenuSetupPage *cText2SkinPlugin::SetupMenu(void) { return new cText2SkinSetupPage; } bool cText2SkinPlugin::SetupParse(const char *Name, const char *Value) { return Text2SkinSetup.SetupParse(Name, Value); } VDRPLUGINCREATOR(cText2SkinPlugin); // Don't touch this!