vdr  2.2.0
Classes | Macros | Functions | Variables
skinlcars.c File Reference
#include "skinlcars.h"
#include "font.h"
#include "menu.h"
#include "osd.h"
#include "positioner.h"
#include "themes.h"
#include "videodir.h"
#include "symbols/arrowdown.xpm"
#include "symbols/arrowup.xpm"
#include "symbols/audio.xpm"
#include "symbols/audioleft.xpm"
#include "symbols/audioright.xpm"
#include "symbols/audiostereo.xpm"
#include "symbols/dolbydigital.xpm"
#include "symbols/encrypted.xpm"
#include "symbols/ffwd.xpm"
#include "symbols/ffwd1.xpm"
#include "symbols/ffwd2.xpm"
#include "symbols/ffwd3.xpm"
#include "symbols/frew.xpm"
#include "symbols/frew1.xpm"
#include "symbols/frew2.xpm"
#include "symbols/frew3.xpm"
#include "symbols/mute.xpm"
#include "symbols/pause.xpm"
#include "symbols/play.xpm"
#include "symbols/radio.xpm"
#include "symbols/recording.xpm"
#include "symbols/sfwd.xpm"
#include "symbols/sfwd1.xpm"
#include "symbols/sfwd2.xpm"
#include "symbols/sfwd3.xpm"
#include "symbols/srew.xpm"
#include "symbols/srew1.xpm"
#include "symbols/srew2.xpm"
#include "symbols/srew3.xpm"
#include "symbols/teletext.xpm"
#include "symbols/volume.xpm"

Go to the source code of this file.

Classes

class  cSkinLCARSDisplayChannel
 
class  cSkinLCARSDisplayMenu
 
class  cSkinLCARSDisplayReplay
 
class  cSkinLCARSDisplayVolume
 
class  cSkinLCARSDisplayTracks
 
class  cSkinLCARSDisplayMessage
 

Macros

#define Gap   (Setup.FontOsdSize / 5 & ~1)
 
#define TextFrame   (Setup.FontOsdSize / TEXT_ALIGN_BORDER)
 
#define TextSpacing   (2 * TextFrame)
 
#define SymbolSpacing   TextSpacing
 
#define ShowSeenExtent   (Setup.FontOsdSize / 5)
 
#define DISKUSAGEALERTLIMIT   95
 
#define SIGNALDISPLAYDELTA   2
 
#define CLR_BACKGROUND   0x99000000
 
#define CLR_MAIN_FRAME   0xFFFF9966
 
#define CLR_CHANNEL_FRAME   0xFF8A9EC9
 
#define CLR_REPLAY_FRAME   0xFFCC6666
 
#define CLR_DATE   0xFF99CCFF
 
#define CLR_MENU_ITEMS   0xFF9999FF
 
#define CLR_TIMER   0xFF99CCFF
 
#define CLR_DEVICE   0xFFF1B1AF
 
#define CLR_CHANNEL_NAME   0xFF99CCFF
 
#define CLR_EVENT_TITLE   0xFF99CCFF
 
#define CLR_EVENT_TIME   0xFFFFCC66
 
#define CLR_EVENT_SHORTTEXT   0xFFFFCC66
 
#define CLR_TEXT   0xFF99CCFF
 
#define CLR_TRACK   0xFFFFCC66
 
#define CLR_SEEN   0xFFCC99CC
 
#define CLR_ALERT   0xFFFF0000
 
#define CLR_EXPOSED   0xFF990000
 
#define CLR_WHITE   0xFFFFFFFF
 
#define CLR_RED   0xFFCC6666
 
#define CLR_GREEN   0xFFA0FF99
 
#define CLR_YELLOW   0xFFF1DF60
 
#define CLR_BLUE   0xFF9A99FF
 
#define CLR_BLACK   0xFF000000
 

Functions

 THEME_CLR (Theme, clrBackground, CLR_BACKGROUND)
 
 THEME_CLR (Theme, clrDateFg, CLR_BLACK)
 
 THEME_CLR (Theme, clrDateBg, CLR_DATE)
 
 THEME_CLR (Theme, clrTimerFg, CLR_BLACK)
 
 THEME_CLR (Theme, clrTimerBg, CLR_TIMER)
 
 THEME_CLR (Theme, clrDeviceFg, CLR_BLACK)
 
 THEME_CLR (Theme, clrDeviceBg, CLR_DEVICE)
 
 THEME_CLR (Theme, clrSignalValue, CLR_GREEN)
 
 THEME_CLR (Theme, clrSignalRest, CLR_RED)
 
 THEME_CLR (Theme, clrSeen, CLR_SEEN)
 
 THEME_CLR (Theme, clrTrackName, CLR_TRACK)
 
 THEME_CLR (Theme, clrAlertFg, CLR_WHITE)
 
 THEME_CLR (Theme, clrAlertBg, CLR_ALERT)
 
 THEME_CLR (Theme, clrChannelName, CLR_CHANNEL_NAME)
 
 THEME_CLR (Theme, clrEventTitle, CLR_EVENT_TITLE)
 
 THEME_CLR (Theme, clrEventTime, CLR_EVENT_TIME)
 
 THEME_CLR (Theme, clrEventShortText, CLR_EVENT_SHORTTEXT)
 
 THEME_CLR (Theme, clrEventDescription, CLR_TEXT)
 
 THEME_CLR (Theme, clrButtonRedFg, CLR_BLACK)
 
 THEME_CLR (Theme, clrButtonRedBg, CLR_RED)
 
 THEME_CLR (Theme, clrButtonGreenFg, CLR_BLACK)
 
 THEME_CLR (Theme, clrButtonGreenBg, CLR_GREEN)
 
 THEME_CLR (Theme, clrButtonYellowFg, CLR_BLACK)
 
 THEME_CLR (Theme, clrButtonYellowBg, CLR_YELLOW)
 
 THEME_CLR (Theme, clrButtonBlueFg, CLR_BLACK)
 
 THEME_CLR (Theme, clrButtonBlueBg, CLR_BLUE)
 
 THEME_CLR (Theme, clrMessageStatusFg, CLR_BLACK)
 
 THEME_CLR (Theme, clrMessageStatusBg, CLR_BLUE)
 
 THEME_CLR (Theme, clrMessageInfoFg, CLR_BLACK)
 
 THEME_CLR (Theme, clrMessageInfoBg, CLR_GREEN)
 
 THEME_CLR (Theme, clrMessageWarningFg, CLR_BLACK)
 
 THEME_CLR (Theme, clrMessageWarningBg, CLR_YELLOW)
 
 THEME_CLR (Theme, clrMessageErrorFg, CLR_BLACK)
 
 THEME_CLR (Theme, clrMessageErrorBg, CLR_RED)
 
 THEME_CLR (Theme, clrVolumeFrame, CLR_MAIN_FRAME)
 
 THEME_CLR (Theme, clrVolumeSymbol, CLR_BLACK)
 
 THEME_CLR (Theme, clrVolumeBarUpper, RgbShade(CLR_MAIN_FRAME,-0.2))
 
 THEME_CLR (Theme, clrVolumeBarLower, CLR_GREEN)
 
 THEME_CLR (Theme, clrChannelFrameFg, CLR_BLACK)
 
 THEME_CLR (Theme, clrChannelFrameBg, CLR_CHANNEL_FRAME)
 
 THEME_CLR (Theme, clrChannelSymbolOn, CLR_BLACK)
 
 THEME_CLR (Theme, clrChannelSymbolOff, RgbShade(CLR_CHANNEL_FRAME,-0.2))
 
 THEME_CLR (Theme, clrChannelSymbolRecFg, CLR_WHITE)
 
 THEME_CLR (Theme, clrChannelSymbolRecBg, CLR_RED)
 
 THEME_CLR (Theme, clrMenuFrameFg, CLR_BLACK)
 
 THEME_CLR (Theme, clrMenuFrameBg, CLR_MAIN_FRAME)
 
 THEME_CLR (Theme, clrMenuTitle, CLR_MAIN_FRAME)
 
 THEME_CLR (Theme, clrMenuMainBracket, CLR_MENU_ITEMS)
 
 THEME_CLR (Theme, clrMenuTimerRecording, CLR_DEVICE)
 
 THEME_CLR (Theme, clrMenuDeviceRecording, CLR_TIMER)
 
 THEME_CLR (Theme, clrMenuItemCurrentFg, CLR_MAIN_FRAME)
 
 THEME_CLR (Theme, clrMenuItemCurrentBg, RgbShade(CLR_MENU_ITEMS,-0.5))
 
 THEME_CLR (Theme, clrMenuItemSelectable, CLR_MENU_ITEMS)
 
 THEME_CLR (Theme, clrMenuItemNonSelectable, CLR_TEXT)
 
 THEME_CLR (Theme, clrMenuScrollbarTotal, RgbShade(CLR_MAIN_FRAME, 0.2))
 
 THEME_CLR (Theme, clrMenuScrollbarShown, CLR_SEEN)
 
 THEME_CLR (Theme, clrMenuScrollbarArrow, CLR_BLACK)
 
 THEME_CLR (Theme, clrMenuText, CLR_TEXT)
 
 THEME_CLR (Theme, clrReplayFrameFg, CLR_BLACK)
 
 THEME_CLR (Theme, clrReplayFrameBg, CLR_REPLAY_FRAME)
 
 THEME_CLR (Theme, clrReplayPosition, CLR_SEEN)
 
 THEME_CLR (Theme, clrReplayJumpFg, CLR_BLACK)
 
 THEME_CLR (Theme, clrReplayJumpBg, CLR_SEEN)
 
 THEME_CLR (Theme, clrReplayProgressSeen, CLR_SEEN)
 
 THEME_CLR (Theme, clrReplayProgressRest, RgbShade(CLR_WHITE,-0.2))
 
 THEME_CLR (Theme, clrReplayProgressSelected, CLR_EXPOSED)
 
 THEME_CLR (Theme, clrReplayProgressMark, CLR_BLACK)
 
 THEME_CLR (Theme, clrReplayProgressCurrent, CLR_EXPOSED)
 
 THEME_CLR (Theme, clrTrackFrameFg, CLR_BLACK)
 
 THEME_CLR (Theme, clrTrackFrameBg, CLR_TRACK)
 
 THEME_CLR (Theme, clrTrackItemFg, CLR_BLACK)
 
 THEME_CLR (Theme, clrTrackItemBg, RgbShade(CLR_TRACK, 0.5))
 
 THEME_CLR (Theme, clrTrackItemCurrentFg, CLR_BLACK)
 
 THEME_CLR (Theme, clrTrackItemCurrentBg, CLR_TRACK)
 
static cOsdCreateOsd (int Left, int Top, int x0, int y0, int x1, int y1)
 
static cFontCreateTinyFont (int LineHeight)
 
static bool DrawDeviceData (cOsd *Osd, const cDevice *Device, int x0, int y0, int x1, int y1, int &xs, const cFont *TinyFont, cString &LastDeviceType, cCamSlot *&LastCamSlot, bool Initial)
 
static void DrawDeviceSignal (cOsd *Osd, const cDevice *Device, int x0, int y0, int x1, int y1, int &LastSignalStrength, int &LastSignalQuality, bool Initial)
 
static void DrawDevicePosition (cOsd *Osd, const cPositioner *Positioner, int x0, int y0, int x1, int y1, int &LastCurrent)
 

Variables

static cTheme Theme
 
static bool TwoColors = false
 
static const char *const * ReplaySymbols [2][2][5]
 

Macro Definition Documentation

#define CLR_ALERT   0xFFFF0000

Definition at line 94 of file skinlcars.c.

#define CLR_BACKGROUND   0x99000000

Definition at line 79 of file skinlcars.c.

#define CLR_BLACK   0xFF000000

Definition at line 101 of file skinlcars.c.

#define CLR_BLUE   0xFF9A99FF

Definition at line 100 of file skinlcars.c.

#define CLR_CHANNEL_FRAME   0xFF8A9EC9

Definition at line 81 of file skinlcars.c.

#define CLR_CHANNEL_NAME   0xFF99CCFF

Definition at line 87 of file skinlcars.c.

#define CLR_DATE   0xFF99CCFF

Definition at line 83 of file skinlcars.c.

#define CLR_DEVICE   0xFFF1B1AF

Definition at line 86 of file skinlcars.c.

#define CLR_EVENT_SHORTTEXT   0xFFFFCC66

Definition at line 90 of file skinlcars.c.

#define CLR_EVENT_TIME   0xFFFFCC66

Definition at line 89 of file skinlcars.c.

#define CLR_EVENT_TITLE   0xFF99CCFF

Definition at line 88 of file skinlcars.c.

#define CLR_EXPOSED   0xFF990000

Definition at line 95 of file skinlcars.c.

#define CLR_GREEN   0xFFA0FF99

Definition at line 98 of file skinlcars.c.

#define CLR_MAIN_FRAME   0xFFFF9966

Definition at line 80 of file skinlcars.c.

#define CLR_MENU_ITEMS   0xFF9999FF

Definition at line 84 of file skinlcars.c.

#define CLR_RED   0xFFCC6666

Definition at line 97 of file skinlcars.c.

#define CLR_REPLAY_FRAME   0xFFCC6666

Definition at line 82 of file skinlcars.c.

#define CLR_SEEN   0xFFCC99CC

Definition at line 93 of file skinlcars.c.

#define CLR_TEXT   0xFF99CCFF

Definition at line 91 of file skinlcars.c.

#define CLR_TIMER   0xFF99CCFF

Definition at line 85 of file skinlcars.c.

#define CLR_TRACK   0xFFFFCC66

Definition at line 92 of file skinlcars.c.

#define CLR_WHITE   0xFFFFFFFF

Definition at line 96 of file skinlcars.c.

#define CLR_YELLOW   0xFFF1DF60

Definition at line 99 of file skinlcars.c.

#define DISKUSAGEALERTLIMIT   95

Definition at line 72 of file skinlcars.c.

Referenced by cSkinLCARSDisplayMenu::DrawDisk().

#define Gap   (Setup.FontOsdSize / 5 & ~1)
#define ShowSeenExtent   (Setup.FontOsdSize / 5)
#define SIGNALDISPLAYDELTA   2

Definition at line 73 of file skinlcars.c.

Referenced by cSkinLCARSDisplayMenu::DrawSignals().

#define SymbolSpacing   TextSpacing

Definition at line 69 of file skinlcars.c.

Referenced by cSkinLCARSDisplayChannel::SetChannel().

#define TextFrame   (Setup.FontOsdSize / TEXT_ALIGN_BORDER)
#define TextSpacing   (2 * TextFrame)

Function Documentation

static cOsd* CreateOsd ( int  Left,
int  Top,
int  x0,
int  y0,
int  x1,
int  y1 
)
static
static cFont* CreateTinyFont ( int  LineHeight)
static
static bool DrawDeviceData ( cOsd Osd,
const cDevice Device,
int  x0,
int  y0,
int  x1,
int  y1,
int &  xs,
const cFont TinyFont,
cString LastDeviceType,
cCamSlot *&  LastCamSlot,
bool  Initial 
)
static
static void DrawDevicePosition ( cOsd Osd,
const cPositioner Positioner,
int  x0,
int  y0,
int  x1,
int  y1,
int &  LastCurrent 
)
static
static void DrawDeviceSignal ( cOsd Osd,
const cDevice Device,
int  x0,
int  y0,
int  x1,
int  y1,
int &  LastSignalStrength,
int &  LastSignalQuality,
bool  Initial 
)
static
THEME_CLR ( Theme  ,
clrBackground  ,
CLR_BACKGROUND   
)
THEME_CLR ( Theme  ,
clrDateFg  ,
CLR_BLACK   
)
THEME_CLR ( Theme  ,
clrDateBg  ,
CLR_DATE   
)
THEME_CLR ( Theme  ,
clrTimerFg  ,
CLR_BLACK   
)
THEME_CLR ( Theme  ,
clrTimerBg  ,
CLR_TIMER   
)
THEME_CLR ( Theme  ,
clrDeviceFg  ,
CLR_BLACK   
)
THEME_CLR ( Theme  ,
clrDeviceBg  ,
CLR_DEVICE   
)
THEME_CLR ( Theme  ,
clrSignalValue  ,
CLR_GREEN   
)
THEME_CLR ( Theme  ,
clrSignalRest  ,
CLR_RED   
)
THEME_CLR ( Theme  ,
clrSeen  ,
CLR_SEEN   
)
THEME_CLR ( Theme  ,
clrTrackName  ,
CLR_TRACK   
)
THEME_CLR ( Theme  ,
clrAlertFg  ,
CLR_WHITE   
)
THEME_CLR ( Theme  ,
clrAlertBg  ,
CLR_ALERT   
)
THEME_CLR ( Theme  ,
clrChannelName  ,
CLR_CHANNEL_NAME   
)
THEME_CLR ( Theme  ,
clrEventTitle  ,
CLR_EVENT_TITLE   
)
THEME_CLR ( Theme  ,
clrEventTime  ,
CLR_EVENT_TIME   
)
THEME_CLR ( Theme  ,
clrEventShortText  ,
CLR_EVENT_SHORTTEXT   
)
THEME_CLR ( Theme  ,
clrEventDescription  ,
CLR_TEXT   
)
THEME_CLR ( Theme  ,
clrButtonRedFg  ,
CLR_BLACK   
)
THEME_CLR ( Theme  ,
clrButtonRedBg  ,
CLR_RED   
)
THEME_CLR ( Theme  ,
clrButtonGreenFg  ,
CLR_BLACK   
)
THEME_CLR ( Theme  ,
clrButtonGreenBg  ,
CLR_GREEN   
)
THEME_CLR ( Theme  ,
clrButtonYellowFg  ,
CLR_BLACK   
)
THEME_CLR ( Theme  ,
clrButtonYellowBg  ,
CLR_YELLOW   
)
THEME_CLR ( Theme  ,
clrButtonBlueFg  ,
CLR_BLACK   
)
THEME_CLR ( Theme  ,
clrButtonBlueBg  ,
CLR_BLUE   
)
THEME_CLR ( Theme  ,
clrMessageStatusFg  ,
CLR_BLACK   
)
THEME_CLR ( Theme  ,
clrMessageStatusBg  ,
CLR_BLUE   
)
THEME_CLR ( Theme  ,
clrMessageInfoFg  ,
CLR_BLACK   
)
THEME_CLR ( Theme  ,
clrMessageInfoBg  ,
CLR_GREEN   
)
THEME_CLR ( Theme  ,
clrMessageWarningFg  ,
CLR_BLACK   
)
THEME_CLR ( Theme  ,
clrMessageWarningBg  ,
CLR_YELLOW   
)
THEME_CLR ( Theme  ,
clrMessageErrorFg  ,
CLR_BLACK   
)
THEME_CLR ( Theme  ,
clrMessageErrorBg  ,
CLR_RED   
)
THEME_CLR ( Theme  ,
clrVolumeFrame  ,
CLR_MAIN_FRAME   
)
THEME_CLR ( Theme  ,
clrVolumeSymbol  ,
CLR_BLACK   
)
THEME_CLR ( Theme  ,
clrVolumeBarUpper  ,
RgbShade(CLR_MAIN_FRAME,-0.2)   
)
THEME_CLR ( Theme  ,
clrVolumeBarLower  ,
CLR_GREEN   
)
THEME_CLR ( Theme  ,
clrChannelFrameFg  ,
CLR_BLACK   
)
THEME_CLR ( Theme  ,
clrChannelFrameBg  ,
CLR_CHANNEL_FRAME   
)
THEME_CLR ( Theme  ,
clrChannelSymbolOn  ,
CLR_BLACK   
)
THEME_CLR ( Theme  ,
clrChannelSymbolOff  ,
RgbShade(CLR_CHANNEL_FRAME,-0.2)   
)
THEME_CLR ( Theme  ,
clrChannelSymbolRecFg  ,
CLR_WHITE   
)
THEME_CLR ( Theme  ,
clrChannelSymbolRecBg  ,
CLR_RED   
)
THEME_CLR ( Theme  ,
clrMenuFrameFg  ,
CLR_BLACK   
)
THEME_CLR ( Theme  ,
clrMenuFrameBg  ,
CLR_MAIN_FRAME   
)
THEME_CLR ( Theme  ,
clrMenuTitle  ,
CLR_MAIN_FRAME   
)
THEME_CLR ( Theme  ,
clrMenuMainBracket  ,
CLR_MENU_ITEMS   
)
THEME_CLR ( Theme  ,
clrMenuTimerRecording  ,
CLR_DEVICE   
)
THEME_CLR ( Theme  ,
clrMenuDeviceRecording  ,
CLR_TIMER   
)
THEME_CLR ( Theme  ,
clrMenuItemCurrentFg  ,
CLR_MAIN_FRAME   
)
THEME_CLR ( Theme  ,
clrMenuItemCurrentBg  ,
RgbShade(CLR_MENU_ITEMS,-0.5)   
)
THEME_CLR ( Theme  ,
clrMenuItemSelectable  ,
CLR_MENU_ITEMS   
)
THEME_CLR ( Theme  ,
clrMenuItemNonSelectable  ,
CLR_TEXT   
)
THEME_CLR ( Theme  ,
clrMenuScrollbarTotal  ,
RgbShade(CLR_MAIN_FRAME, 0.2)   
)
THEME_CLR ( Theme  ,
clrMenuScrollbarShown  ,
CLR_SEEN   
)
THEME_CLR ( Theme  ,
clrMenuScrollbarArrow  ,
CLR_BLACK   
)
THEME_CLR ( Theme  ,
clrMenuText  ,
CLR_TEXT   
)
THEME_CLR ( Theme  ,
clrReplayFrameFg  ,
CLR_BLACK   
)
THEME_CLR ( Theme  ,
clrReplayFrameBg  ,
CLR_REPLAY_FRAME   
)
THEME_CLR ( Theme  ,
clrReplayPosition  ,
CLR_SEEN   
)
THEME_CLR ( Theme  ,
clrReplayJumpFg  ,
CLR_BLACK   
)
THEME_CLR ( Theme  ,
clrReplayJumpBg  ,
CLR_SEEN   
)
THEME_CLR ( Theme  ,
clrReplayProgressSeen  ,
CLR_SEEN   
)
THEME_CLR ( Theme  ,
clrReplayProgressRest  ,
RgbShade(CLR_WHITE,-0.2)   
)
THEME_CLR ( Theme  ,
clrReplayProgressSelected  ,
CLR_EXPOSED   
)
THEME_CLR ( Theme  ,
clrReplayProgressMark  ,
CLR_BLACK   
)
THEME_CLR ( Theme  ,
clrReplayProgressCurrent  ,
CLR_EXPOSED   
)
THEME_CLR ( Theme  ,
clrTrackFrameFg  ,
CLR_BLACK   
)
THEME_CLR ( Theme  ,
clrTrackFrameBg  ,
CLR_TRACK   
)
THEME_CLR ( Theme  ,
clrTrackItemFg  ,
CLR_BLACK   
)
THEME_CLR ( Theme  ,
clrTrackItemBg  ,
RgbShade(CLR_TRACK, 0.5)   
)
THEME_CLR ( Theme  ,
clrTrackItemCurrentFg  ,
CLR_BLACK   
)
THEME_CLR ( Theme  ,
clrTrackItemCurrentBg  ,
CLR_TRACK   
)

Variable Documentation

const char* const* ReplaySymbols[2][2][5]
static
Initial value:
= {
{ { pause_xpm, srew_xpm, srew1_xpm, srew2_xpm, srew3_xpm },
{ pause_xpm, sfwd_xpm, sfwd1_xpm, sfwd2_xpm, sfwd3_xpm }, },
{ { play_xpm, frew_xpm, frew1_xpm, frew2_xpm, frew3_xpm },
{ play_xpm, ffwd_xpm, ffwd1_xpm, ffwd2_xpm, ffwd3_xpm } }
}

Definition at line 1881 of file skinlcars.c.

cTheme Theme
static

Definition at line 75 of file skinlcars.c.

bool TwoColors = false
static

Definition at line 203 of file skinlcars.c.