diff options
Diffstat (limited to 'menu-item.c')
-rw-r--r-- | menu-item.c | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/menu-item.c b/menu-item.c new file mode 100644 index 0000000..edfd24a --- /dev/null +++ b/menu-item.c @@ -0,0 +1,29 @@ +#include "menu.h" +#include "menu-item.h" +#include "setup.h" +#include "imagelist.h" + +// --- cMainMenuItem ----------------------------------------------------- + +cMainMenuItem::cMainMenuItem(eMainMenuItem itype, char *file) +{ + DEBUG("Neues MainMenuItem: %i, %s", (int)itype, file); + + iType = itype; + File = file ? strdup(file) : NULL; + + OSD = cMainMenu::CreateOSDName(iType, File); + + SetText(OSD, true); + if(iType == iCat) + SetSelectable(false); + + DEBUG("OSDName: %s", OSD); +} + +cMainMenuItem::~ cMainMenuItem() +{ + free(File); + free(OSD); +} + |