2004-02-15 03:20:00 +01:00
|
|
|
/*
|
2015-03-07 21:32:58 +01:00
|
|
|
* config.c: Frontend Status Monitor plugin for the Video Disk Recorder
|
2004-02-15 03:20:00 +01:00
|
|
|
*
|
|
|
|
* See the README file for copyright information and how to reach the author.
|
|
|
|
*
|
|
|
|
*/
|
|
|
|
|
2006-09-17 03:20:00 +02:00
|
|
|
#include <string.h>
|
2015-03-07 19:37:07 +01:00
|
|
|
|
2015-03-07 21:32:58 +01:00
|
|
|
#include "tools.h"
|
|
|
|
#include "config.h"
|
2004-02-15 03:20:00 +01:00
|
|
|
|
2015-03-07 17:22:02 +01:00
|
|
|
cFemonConfig FemonConfig;
|
2004-02-15 03:20:00 +01:00
|
|
|
|
2015-03-07 20:37:46 +01:00
|
|
|
cFemonConfig::cFemonConfig()
|
|
|
|
: traceModeM(eTraceModeNormal),
|
|
|
|
hideMenuM(0),
|
|
|
|
displayModeM(0),
|
|
|
|
skinM(0),
|
|
|
|
themeM(0),
|
|
|
|
positionM(1),
|
|
|
|
downscaleM(0),
|
2019-10-27 15:50:01 +01:00
|
|
|
signalUnitM(0),
|
2015-03-07 20:37:46 +01:00
|
|
|
redLimitM(33),
|
|
|
|
greenLimitM(66),
|
|
|
|
updateIntervalM(5),
|
|
|
|
analyzeStreamM(1),
|
|
|
|
calcIntervalM(20),
|
|
|
|
useSvdrpM(0),
|
|
|
|
svdrpPortM(6419)
|
2004-02-15 03:20:00 +01:00
|
|
|
{
|
2015-03-07 20:37:46 +01:00
|
|
|
SetSvdrpIp("0.0.0.0");
|
|
|
|
}
|
|
|
|
|
|
|
|
void cFemonConfig::SetSvdrpIp(const char *strP)
|
|
|
|
{
|
|
|
|
strn0cpy(svdrpIpM, strP, sizeof(svdrpIpM));
|
2004-02-15 03:20:00 +01:00
|
|
|
}
|
2005-02-24 03:20:00 +01:00
|
|
|
|
2015-03-07 17:22:02 +01:00
|
|
|
const cFemonTheme FemonTheme[eFemonThemeMaxNumber] =
|
2005-02-24 03:20:00 +01:00
|
|
|
{
|
|
|
|
{
|
|
|
|
// eFemonThemeClassic
|
2005-11-13 03:20:00 +01:00
|
|
|
4, // bpp
|
2005-02-24 03:20:00 +01:00
|
|
|
0x7F000000, // clrBackground
|
|
|
|
0xFFFCFCFC, // clrTitleBackground
|
|
|
|
0xFF000000, // clrTitleText
|
|
|
|
0xFFFCC024, // clrActiveText
|
|
|
|
0xFFFCFCFC, // clrInactiveText
|
|
|
|
0xFFFC1414, // clrRed
|
|
|
|
0xFFFCC024, // clrYellow
|
|
|
|
0xFF24FC24, // clrGreen
|
|
|
|
},
|
|
|
|
{
|
|
|
|
// eFemonThemeElchi
|
2005-11-13 03:20:00 +01:00
|
|
|
4, // bpp
|
2005-02-24 03:20:00 +01:00
|
|
|
0xC8000066, // clrBackground
|
|
|
|
0xC833AAEE, // clrTitleBackground
|
|
|
|
0xFF000000, // clrTitleText
|
|
|
|
0xFFCCBB22, // clrActiveText
|
|
|
|
0xFFFFFFFF, // clrInactiveText
|
|
|
|
0xFFFF0000, // clrRed
|
|
|
|
0xFFFFEE00, // clrYellow
|
|
|
|
0xFF33CC33, // clrGreen
|
|
|
|
},
|
2008-03-27 03:20:00 +01:00
|
|
|
{
|
|
|
|
// eFemonThemeSTTNG
|
|
|
|
4, // bpp
|
|
|
|
0x7F000000, // clrBackground
|
|
|
|
0xFFFCC024, // clrTitleBackground
|
|
|
|
0xFF000000, // clrTitleText
|
|
|
|
0xFF00FCFC, // clrActiveText
|
|
|
|
0xFFFCC024, // clrInactiveText
|
|
|
|
0xFFFC1414, // clrRed
|
|
|
|
0xFFFCC024, // clrYellow
|
|
|
|
0xFF24FC24, // clrGreen
|
|
|
|
},
|
2005-02-24 03:20:00 +01:00
|
|
|
{
|
|
|
|
// eFemonThemeDeepBlue
|
2005-11-13 03:20:00 +01:00
|
|
|
4, // bpp
|
2005-02-24 03:20:00 +01:00
|
|
|
0xC80C0C0C, // clrBackground
|
|
|
|
0xC832557A, // clrTitleBackground
|
|
|
|
0xFF000000, // clrTitleText
|
|
|
|
0xFFCE7B00, // clrActiveText
|
|
|
|
0xFF9A9A9A, // clrInactiveText
|
|
|
|
0xFF992900, // clrRed
|
|
|
|
0xFFCE7B00, // clrYellow
|
|
|
|
0xFF336600, // clrGreen
|
|
|
|
},
|
2005-04-01 03:20:00 +02:00
|
|
|
{
|
|
|
|
// eFemonThemeMoronimo
|
2005-11-13 03:20:00 +01:00
|
|
|
4, // bpp
|
2005-04-01 03:20:00 +02:00
|
|
|
0xDF294A6B, // clrBackground
|
|
|
|
0xDF3E5578, // clrTitleBackground
|
|
|
|
0xFF9BBAD7, // clrTitleText
|
|
|
|
0xFFCE7B00, // clrActiveText
|
|
|
|
0xFF9A9A9A, // clrInactiveText
|
|
|
|
0xFF992900, // clrRed
|
|
|
|
0xFFCE7B00, // clrYellow
|
|
|
|
0xFF336600, // clrGreen
|
|
|
|
},
|
2005-10-04 03:20:00 +02:00
|
|
|
{
|
|
|
|
// eFemonThemeEnigma
|
2005-11-13 03:20:00 +01:00
|
|
|
4, // bpp
|
2005-10-04 03:20:00 +02:00
|
|
|
0xB8DEE5FA, // clrBackground
|
|
|
|
0xB84158BC, // clrTitleBackground
|
|
|
|
0xFFFFFFFF, // clrTitleText
|
|
|
|
0xFF000000, // clrActiveText
|
|
|
|
0xFF000000, // clrInactiveText
|
|
|
|
0xB8C40000, // clrRed
|
|
|
|
0xB8C4C400, // clrYellow
|
|
|
|
0xB800C400, // clrGreen
|
|
|
|
},
|
|
|
|
{
|
|
|
|
// eFemonThemeEgalsTry
|
2006-01-25 03:20:00 +01:00
|
|
|
4, // bpp
|
2005-10-04 03:20:00 +02:00
|
|
|
0xCA2B1B9E, // clrBackground
|
|
|
|
0xDFBEBAC3, // clrTitleBackground
|
|
|
|
0xFF280249, // clrTitleText
|
|
|
|
0xFFD4D7DB, // clrActiveText
|
|
|
|
0xDFCFCFCF, // clrInactiveText
|
|
|
|
0xFFFF0000, // clrRed
|
|
|
|
0xFFFCC024, // clrYellow
|
|
|
|
0xFF20980B, // clrGreen
|
|
|
|
},
|
2005-11-13 03:20:00 +01:00
|
|
|
{
|
|
|
|
// eFemonThemeDuotone
|
|
|
|
2, // bpp
|
|
|
|
0x7F000000, // clrBackground
|
|
|
|
0xFFFCFCFC, // clrTitleBackground
|
2006-01-25 03:20:00 +01:00
|
|
|
0x7F000000, // clrTitleText
|
|
|
|
0xFFFCFCFC, // clrActiveText
|
2005-11-13 03:20:00 +01:00
|
|
|
0xFFFCFCFC, // clrInactiveText
|
|
|
|
0xFFFC1414, // clrRed
|
|
|
|
0xFFFCFCFC, // clrYellow
|
|
|
|
0xFFFCFCFC, // clrGreen
|
|
|
|
},
|
2006-02-06 03:20:00 +01:00
|
|
|
{
|
|
|
|
// eFemonThemeSilverGreen
|
|
|
|
4, // bpp
|
|
|
|
0xD9526470, // clrBackground
|
|
|
|
0xD9293841, // clrTitleBackground
|
|
|
|
0xFFB3BDCA, // clrTitleText
|
|
|
|
0xFFCE7B00, // clrActiveText
|
|
|
|
0xFFB3BDCA, // clrInactiveText
|
|
|
|
0xFF992900, // clrRed
|
|
|
|
0xFFCE7B00, // clrYellow
|
|
|
|
0xFF336600, // clrGreen
|
|
|
|
},
|
2012-03-30 19:48:25 +02:00
|
|
|
{
|
|
|
|
// eFemonThemePearlHD
|
|
|
|
4, // bpp
|
|
|
|
0x90000000, // clrBackground
|
|
|
|
0xCC000000, // clrTitleBackground
|
|
|
|
0xFFBEBEBE, // clrTitleText
|
|
|
|
0xFF4E78B1, // clrActiveText
|
|
|
|
0xFFBEBEBE, // clrInactiveText
|
|
|
|
0xAAFF0000, // clrRed
|
|
|
|
0xAAF8F800, // clrYellow
|
|
|
|
0x6000ff00, // clrGreen
|
|
|
|
},
|
2005-02-24 03:20:00 +01:00
|
|
|
};
|