summaryrefslogtreecommitdiff
path: root/menu-item.c
blob: 5e7b7c9ca63cf0b24466d15a02ef1ab861406798 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30

#include "imagelist.h"
#include "menu.h"
#include "menu-item.h"
#include "setup.h"

// --- cMainMenuItem -----------------------------------------------------

cMainMenuItem::cMainMenuItem(eMainMenuItem itype, cImageList &ImageList, const char *file)
{
  dsyslog("Neues MainMenuItem: %i, %s", (int)itype, file);

  iType = itype;
  File = file ? strdup(file) : NULL;

  OSD = cMainMenu::CreateOSDName(iType, ImageList, File);

  SetText(OSD, true);
  if(iType == iCat)
    SetSelectable(false);

  dsyslog("OSDName: %s", OSD);
}

cMainMenuItem::~ cMainMenuItem()
{
  free(File);
  free(OSD);
}