📄 dvdinfoframe.h
字号:
//// Copyright (c) 2005 by Istv醤 V醨adi//// This file is part of dxr3Player, a DVD player written specifically // for the DXR3 (aka Hollywood+) decoder card.// This program is free software; you can redistribute it and/or modify// it under the terms of the GNU General Public License as published by// the Free Software Foundation; either version 2 of the License, or// (at your option) any later version.//// This program is distributed in the hope that it will be useful,// but WITHOUT ANY WARRANTY; without even the implied warranty of// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the// GNU General Public License for more details.//// You should have received a copy of the GNU General Public License// along with this program; if not, write to the Free Software// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA#ifndef OUTPUT_UNICHROME_OSD_DVDINFOFRAME_H#define OUTPUT_UNICHROME_OSD_DVDINFOFRAME_H//------------------------------------------------------------------------------#include "Frame.h"#include "IconField.h"#include "ProgressWindow.h"#include "output/osd/DVDPosition.h"#include "unichrome/Icon.h"#include "enums.h"//------------------------------------------------------------------------------namespace output { namespace unichrome { namespace osd {//------------------------------------------------------------------------------/** * The DVD info frame. */class DVDInfoFrame : public Frame{public: /** * The width of the dvd info window. */ static const size_t width = 500; /** * The height of the dvd info window. */ static const size_t height = 160; /** * The offset of the DVD info window from the bottom. */ static const size_t bottomOffset = 60; /** * The background color. */ static const uint32_t backgroundColor = 0x00852363; /** * The color of field values. */ static const uint32_t fieldValueColor = 0x00deff5a; /** * The color of the progress bar values. */ static const uint32_t progressBarColor = 0x0000ff99;private: /** * The icon directory. */ char* iconDirectory; /** * The icon for the title field. */ ::unichrome::Icon titleIcon; /** * The icon for the chapter field. */ ::unichrome::Icon chapterIcon; /** * The icon for the audio language field. */ ::unichrome::Icon audioLanguageIcon; /** * The icon for the subtitle language field. */ ::unichrome::Icon spuLanguageIcon; /** * The icon for playmode: PLAY */ ::unichrome::Icon playModePlayIcon; /** * The icon for playmode: PAUSE */ ::unichrome::Icon playModePauseIcon; /** * The icon for playmode: FAST_FORWARD_1 */ ::unichrome::Icon playModeFF1Icon; /** * The icon for playmode: FAST_FORWARD_2 */ ::unichrome::Icon playModeFF2Icon; /** * The icon for playmode: FAST_FORWARD_3 */ ::unichrome::Icon playModeFF3Icon; /** * The icon for playmode: FAST_BACKWARD_1 */ ::unichrome::Icon playModeREW1Icon; /** * The icon for playmode: FAST_BACKWARD_2 */ ::unichrome::Icon playModeREW2Icon; /** * The icon for playmode: FAST_BACKWARD_3 */ ::unichrome::Icon playModeREW3Icon; /** * The title field. */ IconField titleField; /** * The chapter field. */ IconField chapterField; /** * The audio language field. */ IconField audioLanguageField; /** * The subtitle language field. */ IconField spuLanguageField; /** * The progress window. */ ProgressWindow progressWindow; /** * The playmode window. */ ::unichrome::LogicalWindow playModeWindow; /** * The last DVD position. */ output::osd::DVDPosition currentPosition; /** * The audio language code. */ unsigned currentAudioLanguageCode; /** * The subtitle language code. */ unsigned currentSPULanguageCode; /** * The current play mode. */ playMode_t currentPlayMode;public: /** * Construct the frame. */ DVDInfoFrame(Config& config, ::unichrome::Window& displayWindow, RoundedField::Config& numericFieldConfig, RoundedField::Config& capitalFieldConfig, const char* iconDirectory = 0); /** * Destroy the frame. */ ~DVDInfoFrame(); /** * Set the position */ void setPosition(const output::osd::DVDPosition& dvdPosition); /** * Set the language codes. */ void setLanguages(unsigned audioLanguageCode, unsigned spuLanguageCode); /** * Set the play mode. */ void setPlayMode(playMode_t playMode);private: /** * Setup a position field. */ void setPosition(IconField& positionField, unsigned& currentPosition, unsigned newPosition); /** * Setup a language code. */ void setLanguageCode(IconField& languageField, unsigned& currentCode, unsigned newCode);};//------------------------------------------------------------------------------} /* namespace output::unichrome::osd */ } /* namespace output::unichrome */ } /* namespace output *///------------------------------------------------------------------------------#endif // OUTPUT_UNICHROME_OSD_DVDINFOFRAME_H// Local variables:// mode: c++// End:
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -