vdr
2.2.0
|
#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 cOsd * | CreateOsd (int Left, int Top, int x0, int y0, int x1, int y1) |
static cFont * | CreateTinyFont (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] |
#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) |
Definition at line 66 of file skinlcars.c.
Referenced by cSkinLCARSDisplayChannel::cSkinLCARSDisplayChannel(), cSkinLCARSDisplayMenu::cSkinLCARSDisplayMenu(), cSkinLCARSDisplayMessage::cSkinLCARSDisplayMessage(), cSkinLCARSDisplayReplay::cSkinLCARSDisplayReplay(), cSkinLCARSDisplayTracks::cSkinLCARSDisplayTracks(), cSkinLCARSDisplayVolume::cSkinLCARSDisplayVolume(), cSkinLCARSDisplayMenu::DrawDevice(), cSkinLCARSDisplayMenu::DrawMainFrameLower(), cSkinLCARSDisplayMenu::DrawMainFrameUpper(), cSkinLCARSDisplayMenu::DrawScrollbar(), cSkinLCARSDisplayChannel::DrawSeen(), cSkinLCARSDisplayMenu::DrawSeen(), cSkinLCARSDisplayMenu::DrawTimer(), cSkinLCARSDisplayMenu::DrawTimers(), cSkinLCARSDisplayTracks::SetItem(), cSkinLCARSDisplayChannel::SetPositioner(), and cSkinLCARSDisplayMenu::SetTitle().
#define ShowSeenExtent (Setup.FontOsdSize / 5) |
Definition at line 70 of file skinlcars.c.
Referenced by cSkinLCARSDisplayChannel::DrawSeen(), cSkinLCARSDisplayMenu::DrawSeen(), cSkinLCARSDisplayChannel::SetMessage(), and cSkinLCARSDisplayChannel::SetPositioner().
#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) |
Definition at line 67 of file skinlcars.c.
Referenced by cSkinLCARSDisplayTracks::cSkinLCARSDisplayTracks(), cSkinLCARSDisplayMenu::DrawScrollbar(), cSkinLCARSDisplayMenu::DrawTimer(), and cSkinLCARSDisplayVolume::SetVolume().
#define TextSpacing (2 * TextFrame) |
Definition at line 68 of file skinlcars.c.
Referenced by cSkinLCARSDisplayMenu::SetItem(), and cSkinLCARSDisplayVolume::SetVolume().
|
static |
Definition at line 205 of file skinlcars.c.
References tArea::bpp, cOsd::CanHandleAreas(), cOsdProvider::NewOsd(), oeOk, cOsd::SetAntiAliasGranularity(), and cOsd::SetAreas().
Referenced by cSkinLCARSDisplayChannel::cSkinLCARSDisplayChannel(), cSkinLCARSDisplayMenu::cSkinLCARSDisplayMenu(), cSkinLCARSDisplayMessage::cSkinLCARSDisplayMessage(), cSkinLCARSDisplayReplay::cSkinLCARSDisplayReplay(), cSkinLCARSDisplayTracks::cSkinLCARSDisplayTracks(), and cSkinLCARSDisplayVolume::cSkinLCARSDisplayVolume().
|
static |
Definition at line 222 of file skinlcars.c.
References cFont::CreateFont(), cSetup::FontOsd, and Setup.
Referenced by cSkinLCARSDisplayChannel::cSkinLCARSDisplayChannel(), and cSkinLCARSDisplayMenu::cSkinLCARSDisplayMenu().
|
static |
Definition at line 236 of file skinlcars.c.
References cDevice::CamSlot(), cTheme::Color(), cDevice::DeviceNumber(), cDevice::DeviceType(), cOsd::DrawRectangle(), cOsd::DrawText(), fontOsd, cFont::GetFont(), cFont::Height(), itoa(), max(), cCamSlot::SlotNumber(), cString::sprintf(), taCenter, and cFont::Width().
Referenced by cSkinLCARSDisplayChannel::DrawDevice(), and cSkinLCARSDisplayMenu::DrawDevice().
|
static |
Definition at line 303 of file skinlcars.c.
References clrBackground, cTheme::Color(), constrain(), cPositioner::CurrentLongitude(), cOsd::DrawEllipse(), cOsd::DrawRectangle(), cPositioner::HardLimitLongitude(), cPositioner::HorizonLongitude(), max(), min(), cPositioner::NormalizeAngle(), cPositioner::pdLeft, cPositioner::pdRight, swap(), and cPositioner::TargetLongitude().
Referenced by cSkinLCARSDisplayChannel::SetPositioner().
|
static |
Definition at line 267 of file skinlcars.c.
References clrBackground, cTheme::Color(), cOsd::DrawRectangle(), max(), cDevice::SignalQuality(), and cDevice::SignalStrength().
Referenced by cSkinLCARSDisplayChannel::DrawSignal(), and cSkinLCARSDisplayMenu::DrawSignals().
THEME_CLR | ( | Theme | , |
clrBackground | , | ||
CLR_BACKGROUND | |||
) |
THEME_CLR | ( | Theme | , |
clrDeviceBg | , | ||
CLR_DEVICE | |||
) |
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 | , |
clrButtonYellowBg | , | ||
CLR_YELLOW | |||
) |
THEME_CLR | ( | Theme | , |
clrMessageWarningBg | , | ||
CLR_YELLOW | |||
) |
THEME_CLR | ( | Theme | , |
clrVolumeFrame | , | ||
CLR_MAIN_FRAME | |||
) |
THEME_CLR | ( | Theme | , |
clrVolumeBarUpper | , | ||
RgbShade(CLR_MAIN_FRAME,-0.2) | |||
) |
THEME_CLR | ( | Theme | , |
clrChannelFrameBg | , | ||
CLR_CHANNEL_FRAME | |||
) |
THEME_CLR | ( | Theme | , |
clrChannelSymbolOff | , | ||
RgbShade(CLR_CHANNEL_FRAME,-0.2) | |||
) |
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 | , |
clrMenuItemCurrentFg | , | ||
CLR_MAIN_FRAME | |||
) |
THEME_CLR | ( | Theme | , |
clrMenuItemCurrentBg | , | ||
RgbShade(CLR_MENU_ITEMS,-0.5) | |||
) |
THEME_CLR | ( | Theme | , |
clrMenuItemSelectable | , | ||
CLR_MENU_ITEMS | |||
) |
THEME_CLR | ( | Theme | , |
clrMenuScrollbarTotal | , | ||
RgbShade(CLR_MAIN_FRAME, 0.2) | |||
) |
THEME_CLR | ( | Theme | , |
clrReplayFrameBg | , | ||
CLR_REPLAY_FRAME | |||
) |
THEME_CLR | ( | Theme | , |
clrReplayProgressSelected | , | ||
CLR_EXPOSED | |||
) |
THEME_CLR | ( | Theme | , |
clrReplayProgressCurrent | , | ||
CLR_EXPOSED | |||
) |
|
static |
Definition at line 1881 of file skinlcars.c.
|
static |
Definition at line 75 of file skinlcars.c.
|
static |
Definition at line 203 of file skinlcars.c.