blob: 9023a9f05806ace34272e531dd2b67ee48113ab2 (
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
31
32
33
34
35
36
37
38
39
40
41
42
|
// -*- c++ -*-
#include "xml/display.h"
static const std::string DisplayNames[] =
{ "channelInfo", "channelSmall", "volume", "audioTracks", "message", "replayInfo",
"replaySmall", "menu" };
cxDisplay::cxDisplay(cxSkin *parent):
mSkin(parent),
mType((eType)__COUNT_DISPLAY__),
mNumWindows(0),
mRefreshDefault(NULL)
{
}
bool cxDisplay::ParseType(const std::string &Text)
{
for (int i = 0; i < (int)__COUNT_DISPLAY__; ++i) {
if (DisplayNames[i].length() > 0 && DisplayNames[i] == Text) {
mType = (eType)i;
return true;
}
}
return false;
}
const std::string &cxDisplay::GetType(eType Type)
{
return DisplayNames[Type];
}
cxDisplays::cxDisplays(void)
{
}
cxDisplays::~cxDisplays()
{
iterator it = begin();
while (it != end())
(delete (*it).second, ++it);
}
|