blob: 4b228f100c38da44d44a4e51a0e44c9038bd0cb2 (
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
|
#include "imagelist.h"
#include "menu.h"
#include "menu-item.h"
#include "setup.h"
// --- cMainMenuItem -----------------------------------------------------
cMainMenuItem::cMainMenuItem(eMainMenuItem itype, cImageList &ImageList, const char *file)
{
iType = itype;
File = file ? strdup(file) : NULL;
OSD = cMainMenu::CreateOSDName(iType, ImageList, File);
SetText(OSD, true);
if(iType == iCat)
SetSelectable(false);
}
cMainMenuItem::~ cMainMenuItem()
{
free(File);
free(OSD);
}
|