From 34c08471a0ea3a1705e0f6244b318dcfe8f3090d Mon Sep 17 00:00:00 2001 From: Gregory Nutt Date: Wed, 15 May 2013 16:45:57 -0600 Subject: Add NxWdigets::CGlyphSliderHorizontal and associated grip widgets. From Ken Pettit. --- NxWidgets/nxwm/Makefile | 2 +- NxWidgets/nxwm/include/cmediaplayer.hxx | 7 +- NxWidgets/nxwm/include/nxwmconfig.hxx | 20 ++ NxWidgets/nxwm/include/nxwmglyphs.hxx | 7 + NxWidgets/nxwm/src/cmediaplayer.cxx | 59 ++++ NxWidgets/nxwm/src/glyph_mplayer_controls.cxx | 398 ++++++++++++++++++++++++++ 6 files changed, 491 insertions(+), 2 deletions(-) create mode 100644 NxWidgets/nxwm/src/glyph_mplayer_controls.cxx (limited to 'NxWidgets/nxwm') diff --git a/NxWidgets/nxwm/Makefile b/NxWidgets/nxwm/Makefile index 22653a524..f4d148316 100644 --- a/NxWidgets/nxwm/Makefile +++ b/NxWidgets/nxwm/Makefile @@ -76,7 +76,7 @@ CXXSRCS += glyph_minimize.cxx glyph_nsh.cxx glyph_play.cxx glyph_start.cxx CXXSRCS += glyph_stop.cxx ifeq ($(CONFIG_NXWM_MEDIAPLAYER),y) -CXXSRCS += glyph_mediaplayer.cxx cmediaplayer.cxx +CXXSRCS += glyph_mediaplayer.cxx cmediaplayer.cxx glyph_mplayer_controls.cxx endif SRCS = $(ASRCS) $(CSRCS) $(CXXSRCS) diff --git a/NxWidgets/nxwm/include/cmediaplayer.hxx b/NxWidgets/nxwm/include/cmediaplayer.hxx index 88143617e..81656c761 100644 --- a/NxWidgets/nxwm/include/cmediaplayer.hxx +++ b/NxWidgets/nxwm/include/cmediaplayer.hxx @@ -46,9 +46,10 @@ #include #include -#include "cbuttonarray.hxx" +#include "cimage.hxx" #include "clabel.hxx" #include "cnxfont.hxx" +#include "cglyphsliderhorizontal.hxx" #include "iapplication.hxx" #include "capplicationwindow.hxx" @@ -105,6 +106,10 @@ namespace NxWM NXWidgets::CLabel *m_text; /**< Some text in the app for now */ NXWidgets::CNxFont *m_font; /**< The font used in the media player */ + NXWidgets::CImage *m_rew; /**< Rewind control */ + NXWidgets::CImage *m_playPause; /**< Play/Pause control */ + NXWidgets::CImage *m_fwd; /**< Forward control */ + NXWidgets::CGlyphSliderHorizontal *m_volume; /**< Volume control */ /** * Calculator geometry. This stuff does not really have to be retained diff --git a/NxWidgets/nxwm/include/nxwmconfig.hxx b/NxWidgets/nxwm/include/nxwmconfig.hxx index d57b58b59..ad8e0e97d 100644 --- a/NxWidgets/nxwm/include/nxwmconfig.hxx +++ b/NxWidgets/nxwm/include/nxwmconfig.hxx @@ -552,6 +552,26 @@ # define CONFIG_NXWM_MEDIAPLAYER_ICON NxWM::g_mediaplayerBitmap #endif +#ifndef CONFIG_NXWM_MPLAYER_FWD_ICON +# define CONFIG_NXWM_MPLAYER_FWD_ICON NxWM::g_mplayerFwdBitmap +#endif + +#ifndef CONFIG_NXWM_MPLAYER_PLAY_ICON +# define CONFIG_NXWM_MPLAYER_PLAY_ICON NxWM::g_mplayerPlayBitmap +#endif + +#ifndef CONFIG_NXWM_MPLAYER_PAUSE_ICON +# define CONFIG_NXWM_MPLAYER_PAUSE_ICON NxWM::g_mplayerPauseBitmap +#endif + +#ifndef CONFIG_NXWM_MPLAYER_REW_ICON +# define CONFIG_NXWM_MPLAYER_REW_ICON NxWM::g_mplayerRewBitmap +#endif + +#ifndef CONFIG_NXWM_MPLAYER_VOL_ICON +# define CONFIG_NXWM_MPLAYER_VOL_ICON NxWM::g_mplayerVolBitmap +#endif + #ifndef CONFIG_NXWM_MEDIAPLAYER_FONTID # define CONFIG_NXWM_MEDIAPLAYER_FONTID CONFIG_NXWM_DEFAULT_FONTID #endif diff --git a/NxWidgets/nxwm/include/nxwmglyphs.hxx b/NxWidgets/nxwm/include/nxwmglyphs.hxx index 74b527611..5bcd4fb83 100644 --- a/NxWidgets/nxwm/include/nxwmglyphs.hxx +++ b/NxWidgets/nxwm/include/nxwmglyphs.hxx @@ -60,7 +60,14 @@ namespace NxWM extern const struct NXWidgets::SRlePaletteBitmap g_calculatorBitmap; extern const struct NXWidgets::SRlePaletteBitmap g_calibrationBitmap; extern const struct NXWidgets::SRlePaletteBitmap g_cmdBitmap; +#ifdef CONFIG_NXWM_MEDIAPLAYER extern const struct NXWidgets::SRlePaletteBitmap g_mediaplayerBitmap; + extern const struct NXWidgets::SRlePaletteBitmap g_mplayerFwdBitmap; + extern const struct NXWidgets::SRlePaletteBitmap g_mplayerPlayBitmap; + extern const struct NXWidgets::SRlePaletteBitmap g_mplayerPauseBitmap; + extern const struct NXWidgets::SRlePaletteBitmap g_mplayerRewBitmap; + extern const struct NXWidgets::SRlePaletteBitmap g_mplayerVolBitmap; +#endif extern const struct NXWidgets::SRlePaletteBitmap g_minimizeBitmap; extern const struct NXWidgets::SRlePaletteBitmap g_nshBitmap; extern const struct NXWidgets::SRlePaletteBitmap g_playBitmap; diff --git a/NxWidgets/nxwm/src/cmediaplayer.cxx b/NxWidgets/nxwm/src/cmediaplayer.cxx index ffe237fc1..795123cc3 100644 --- a/NxWidgets/nxwm/src/cmediaplayer.cxx +++ b/NxWidgets/nxwm/src/cmediaplayer.cxx @@ -267,6 +267,15 @@ void CMediaPlayer::redraw(void) m_text->enableDrawing(); m_text->redraw(); + + m_rew->enableDrawing(); + m_rew->redraw(); + m_playPause->enableDrawing(); + m_playPause->redraw(); + m_fwd->enableDrawing(); + m_fwd->redraw(); + m_volume->enableDrawing(); + m_volume->redraw(); } /** @@ -314,6 +323,8 @@ void CMediaPlayer::setGeometry(void) bool CMediaPlayer::createPlayer(void) { + int playControlX, playControlY; + // Select a font for the calculator m_font = new NXWidgets::CNxFont((nx_fontid_e)CONFIG_NXWM_MEDIAPLAYER_FONTID, @@ -354,6 +365,54 @@ bool CMediaPlayer::createPlayer(void) // Select the font m_text->setFont(m_font); + + // Create button for rewind + + playControlX = (m_windowSize.w >> 1) - 64; + playControlY = m_windowSize.h - 64; + + // Create the Rewind Image + + NXWidgets::CRlePaletteBitmap *pRewBitmap = new NXWidgets:: + CRlePaletteBitmap(&CONFIG_NXWM_MPLAYER_REW_ICON); + m_rew = new NXWidgets::CImage(control, + playControlX, playControlY, + 32, 32, + pRewBitmap, 0); + m_rew->setBorderless(true); + + // Create the Play Image + + pRewBitmap = new NXWidgets:: + CRlePaletteBitmap(&CONFIG_NXWM_MPLAYER_PLAY_ICON); + m_playPause = new NXWidgets::CImage(control, + playControlX + 32 + 16, playControlY, + 32, 32, + pRewBitmap, 0); + m_playPause->setBorderless(true); + + // Create the Forward Image + + pRewBitmap = new NXWidgets:: + CRlePaletteBitmap(&CONFIG_NXWM_MPLAYER_FWD_ICON); + m_fwd = new NXWidgets::CImage(control, + playControlX + 32*3, playControlY, + 32, 32, + pRewBitmap, 0); + m_fwd->setBorderless(true); + + // Create the Volume control + + pRewBitmap = new NXWidgets:: + CRlePaletteBitmap(&CONFIG_NXWM_MPLAYER_VOL_ICON); + m_volume = new NXWidgets::CGlyphSliderHorizontal(control, + 10, m_windowSize.h - 30, + m_windowSize.w - 20, 26, + pRewBitmap, MKRGB( 63, 90,192)); + m_volume->setMinimumValue(0); + m_volume->setMaximumValue(100); + m_volume->setValue(15); + return true; } diff --git a/NxWidgets/nxwm/src/glyph_mplayer_controls.cxx b/NxWidgets/nxwm/src/glyph_mplayer_controls.cxx new file mode 100644 index 000000000..4f6a387c1 --- /dev/null +++ b/NxWidgets/nxwm/src/glyph_mplayer_controls.cxx @@ -0,0 +1,398 @@ +/******************************************************************************************** + * NxWidgets/nxwm/src/glyph_mediaplayer.cxx + * + * Copyright (C) 2013 Ken Pettit. All rights reserved. + * Author: Ken Pettit + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions + * are met: + * + * 1. Redistributions of source code must retain the above copyright + * notice, this list of conditions and the following disclaimer. + * 2. Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in + * the documentation and/or other materials provided with the + * distribution. + * 3. Neither the name NuttX, NxWidgets, nor the names of its contributors + * me be used to endorse or promote products derived from this software + * without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS + * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT + * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS + * FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE + * COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, + * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, + * BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS + * OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED + * AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT + * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN + * ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE + * POSSIBILITY OF SUCH DAMAGE. + * + ********************************************************************************************/ + +/******************************************************************************************** + * Included Files + ********************************************************************************************/ + +/* Automatically NuttX bitmap file. */ +/* Generated from play_music.png by bitmap_converter.py. */ + +#include + +#include +#include +#include + +#include +#include +#include + +#include "crlepalettebitmap.hxx" + +#include "nxwmconfig.hxx" +#include "nxwmglyphs.hxx" + + +/******************************************************************************************** + * Pre-Processor Definitions + ********************************************************************************************/ + +#define BITMAP_WIDTH 32 +#define BITMAP_HEIGHT 32 +#define BITMAP_PALETTESIZE 8 + +using namespace NxWM; + +/* RGB24 (8-8-8) Colors */ + +static const NXWidgets::nxwidget_pixel_t palette[BITMAP_PALETTESIZE] = +{ + CONFIG_NXWM_DEFAULT_BACKGROUNDCOLOR, MKRGB( 11, 24,108), MKRGB( 63, 90,192), MKRGB(121,136,250), + MKRGB(224,234,244), MKRGB( 69, 80,149), MKRGB(127,169,239), MKRGB(152,174,207), +}; + +static const NXWidgets::nxwidget_pixel_t hilight_palette[BITMAP_PALETTESIZE] = +{ + CONFIG_NXWM_DEFAULT_BACKGROUNDCOLOR, MKRGB( 61, 74,158), MKRGB(113,140,242), MKRGB(171,186,255), + MKRGB(255,255,255), MKRGB(119,130,199), MKRGB(177,219,255), MKRGB(202,224,255), +}; + +/* Bitmap definition for the "Play" button */ + +static const NXWidgets::SRlePaletteBitmapEntry play_bitmap[] = +{ + { 32, 0}, /* Row 0 */ + { 14, 0}, { 4, 7}, { 14, 0}, /* Row 1 */ + { 10, 0}, { 12, 7}, { 10, 0}, /* Row 2 */ + { 8, 0}, { 3, 6}, { 9, 7}, { 3, 6}, { 1, 7}, { 8, 0}, /* Row 3 */ + { 7, 0}, { 7, 6}, { 4, 7}, { 7, 6}, { 7, 0}, /* Row 4 */ + { 6, 0}, { 3, 3}, { 13, 6}, { 4, 3}, { 6, 0}, /* Row 5 */ + { 5, 0}, { 6, 3}, { 9, 6}, { 7, 3}, { 5, 0}, /* Row 6 */ + { 4, 0}, { 1, 2}, { 22, 3}, { 1, 2}, { 4, 0}, /* Row 7 */ + { 3, 0}, { 1, 5}, { 23, 3}, { 1, 2}, { 1, 5}, { 3, 0}, /* Row 8 */ + { 3, 0}, { 3, 2}, { 5, 3}, { 1, 6}, { 13, 3}, { 4, 2}, + { 3, 0}, /* Row 9 */ + { 2, 0}, { 1, 5}, { 6, 2}, { 2, 3}, { 2, 4}, { 1, 6}, + { 9, 3}, { 6, 2}, { 1, 5}, { 2, 0}, /* Row 10 */ + { 2, 0}, { 1, 5}, { 8, 2}, { 1, 7}, { 3, 4}, { 1, 6}, + { 2, 2}, { 1, 3}, { 10, 2}, { 1, 5}, { 2, 0}, /* Row 11 */ + { 1, 0}, { 4, 5}, { 6, 2}, { 1, 7}, { 4, 4}, { 1, 7}, + { 1, 3}, { 8, 2}, { 4, 5}, { 2, 0}, /* Row 12 */ + { 1, 0}, { 7, 5}, { 3, 2}, { 1, 7}, { 6, 4}, { 1, 7}, + { 3, 2}, { 8, 5}, { 2, 0}, /* Row 13 */ + { 1, 0}, { 9, 5}, { 1, 2}, { 1, 7}, { 8, 4}, { 1, 7}, + { 8, 5}, { 1, 1}, { 1, 5}, { 1, 0}, /* Row 14 */ + { 1, 0}, { 4, 1}, { 6, 5}, { 1, 7}, { 10, 4}, { 1, 7}, + { 3, 5}, { 4, 1}, { 1, 5}, { 1, 0}, /* Row 15 */ + { 1, 0}, { 8, 1}, { 2, 5}, { 1, 7}, { 10, 4}, { 1, 7}, + { 7, 1}, { 1, 5}, { 1, 0}, /* Row 16 */ + { 1, 0}, { 10, 1}, { 1, 7}, { 9, 4}, { 1, 5}, { 8, 1}, + { 1, 5}, { 1, 0}, /* Row 17 */ + { 1, 0}, { 10, 1}, { 1, 7}, { 7, 4}, { 1, 5}, { 10, 1}, + { 2, 0}, /* Row 18 */ + { 1, 0}, { 1, 5}, { 9, 1}, { 1, 7}, { 5, 4}, { 1, 7}, + { 12, 1}, { 2, 0}, /* Row 19 */ + { 2, 0}, { 9, 1}, { 1, 7}, { 4, 4}, { 1, 5}, { 13, 1}, + { 2, 0}, /* Row 20 */ + { 2, 0}, { 9, 1}, { 1, 7}, { 2, 4}, { 1, 7}, { 1, 2}, + { 13, 1}, { 1, 5}, { 2, 0}, /* Row 21 */ + { 2, 0}, { 1, 5}, { 8, 1}, { 1, 7}, { 1, 4}, { 1, 5}, + { 6, 2}, { 9, 1}, { 3, 0}, /* Row 22 */ + { 3, 0}, { 7, 1}, { 1, 2}, { 1, 5}, { 10, 2}, { 6, 1}, + { 1, 5}, { 3, 0}, /* Row 23 */ + { 4, 0}, { 4, 1}, { 16, 2}, { 4, 1}, { 4, 0}, /* Row 24 */ + { 4, 0}, { 1, 5}, { 2, 1}, { 18, 2}, { 2, 1}, { 5, 0}, /* Row 25 */ + { 5, 0}, { 1, 5}, { 1, 1}, { 19, 2}, { 1, 5}, { 5, 0}, /* Row 26 */ + { 6, 0}, { 1, 5}, { 18, 2}, { 7, 0}, /* Row 27 */ + { 8, 0}, { 15, 2}, { 1, 5}, { 8, 0}, /* Row 28 */ + { 9, 0}, { 1, 5}, { 12, 2}, { 10, 0}, /* Row 29 */ + { 12, 0}, { 8, 2}, { 12, 0}, /* Row 30 */ + { 32, 0}, /* Row 31 */ +}; + +const struct NXWidgets::SRlePaletteBitmap NxWM::g_mplayerPlayBitmap = +{ + CONFIG_NXWIDGETS_BPP, + CONFIG_NXWIDGETS_FMT, + BITMAP_PALETTESIZE, + BITMAP_WIDTH, + BITMAP_HEIGHT, + {palette, hilight_palette}, + play_bitmap +}; + +/* Bitmap definition for the "Pause" button */ + +static const NXWidgets::SRlePaletteBitmapEntry pause_bitmap[] = +{ + { 32, 0}, /* Row 0 */ + { 14, 0}, { 4, 7}, { 14, 0}, /* Row 1 */ + { 10, 0}, { 12, 7}, { 10, 0}, /* Row 2 */ + { 8, 0}, { 4, 6}, { 8, 7}, { 4, 6}, { 8, 0}, /* Row 3 */ + { 7, 0}, { 7, 6}, { 3, 7}, { 8, 6}, { 7, 0}, /* Row 4 */ + { 6, 0}, { 3, 3}, { 13, 6}, { 4, 3}, { 6, 0}, /* Row 5 */ + { 5, 0}, { 6, 3}, { 9, 6}, { 7, 3}, { 5, 0}, /* Row 6 */ + { 4, 0}, { 1, 2}, { 22, 3}, { 1, 2}, { 4, 0}, /* Row 7 */ + { 3, 0}, { 1, 5}, { 23, 3}, { 1, 2}, { 1, 5}, { 3, 0}, /* Row 8 */ + { 3, 0}, { 3, 2}, { 19, 3}, { 4, 2}, { 3, 0}, /* Row 9 */ + { 2, 0}, { 1, 5}, { 5, 2}, { 2, 3}, { 1, 6}, { 3, 4}, + { 3, 3}, { 1, 7}, { 2, 4}, { 1, 7}, { 2, 3}, { 6, 2}, + { 1, 5}, { 2, 0}, /* Row 10 */ + { 2, 0}, { 1, 5}, { 7, 2}, { 1, 7}, { 3, 4}, { 1, 7}, + { 1, 2}, { 1, 3}, { 4, 4}, { 1, 3}, { 7, 2}, { 1, 5}, + { 2, 0}, /* Row 11 */ + { 1, 0}, { 4, 5}, { 5, 2}, { 1, 7}, { 3, 4}, { 1, 7}, + { 1, 2}, { 1, 3}, { 4, 4}, { 1, 6}, { 4, 2}, { 4, 5}, + { 2, 0}, /* Row 12 */ + { 1, 0}, { 8, 5}, { 1, 2}, { 1, 7}, { 3, 4}, { 1, 7}, + { 1, 2}, { 1, 5}, { 4, 4}, { 1, 5}, { 1, 2}, { 7, 5}, + { 2, 0}, /* Row 13 */ + { 1, 0}, { 9, 5}, { 1, 7}, { 3, 4}, { 1, 7}, { 1, 2}, + { 1, 5}, { 4, 4}, { 8, 5}, { 1, 1}, { 1, 5}, { 1, 0}, /* Row 14 */ + { 1, 0}, { 4, 1}, { 5, 5}, { 1, 7}, { 3, 4}, { 1, 7}, + { 2, 5}, { 4, 4}, { 5, 5}, { 4, 1}, { 1, 5}, { 1, 0}, /* Row 15 */ + { 1, 0}, { 9, 1}, { 1, 7}, { 3, 4}, { 1, 7}, { 2, 5}, + { 4, 4}, { 1, 5}, { 8, 1}, { 1, 5}, { 1, 0}, /* Row 16 */ + { 1, 0}, { 9, 1}, { 1, 7}, { 3, 4}, { 1, 7}, { 1, 1}, + { 1, 5}, { 4, 4}, { 1, 5}, { 8, 1}, { 1, 5}, { 1, 0}, /* Row 17 */ + { 1, 0}, { 9, 1}, { 1, 7}, { 3, 4}, { 1, 7}, { 1, 1}, + { 1, 5}, { 4, 4}, { 1, 5}, { 8, 1}, { 2, 0}, /* Row 18 */ + { 1, 0}, { 1, 5}, { 8, 1}, { 1, 7}, { 3, 4}, { 1, 7}, + { 1, 1}, { 1, 5}, { 4, 4}, { 1, 5}, { 8, 1}, { 2, 0}, /* Row 19 */ + { 2, 0}, { 8, 1}, { 1, 7}, { 3, 4}, { 1, 7}, { 1, 1}, + { 1, 5}, { 4, 4}, { 1, 5}, { 8, 1}, { 2, 0}, /* Row 20 */ + { 2, 0}, { 8, 1}, { 1, 7}, { 3, 4}, { 1, 7}, { 1, 1}, + { 1, 2}, { 4, 4}, { 1, 5}, { 7, 1}, { 1, 5}, { 2, 0}, /* Row 21 */ + { 2, 0}, { 1, 5}, { 7, 1}, { 1, 7}, { 3, 4}, { 1, 6}, + { 1, 1}, { 1, 2}, { 4, 4}, { 1, 2}, { 7, 1}, { 3, 0}, /* Row 22 */ + { 3, 0}, { 7, 1}, { 1, 2}, { 3, 6}, { 4, 2}, { 2, 6}, + { 2, 2}, { 6, 1}, { 1, 5}, { 3, 0}, /* Row 23 */ + { 4, 0}, { 4, 1}, { 16, 2}, { 4, 1}, { 4, 0}, /* Row 24 */ + { 4, 0}, { 1, 5}, { 2, 1}, { 18, 2}, { 2, 1}, { 5, 0}, /* Row 25 */ + { 5, 0}, { 1, 5}, { 1, 1}, { 6, 2}, { 6, 2}, { 7, 2}, + { 1, 5}, { 5, 0}, /* Row 26 */ + { 6, 0}, { 1, 5}, { 4, 2}, { 1, 5}, { 8, 2}, { 1, 5}, + { 4, 2}, { 7, 0}, /* Row 27 */ + { 8, 0}, { 3, 2}, { 4, 2}, { 2, 2}, { 4, 2}, { 2, 2}, + { 1, 5}, { 8, 0}, /* Row 28 */ + { 9, 0}, { 1, 5}, { 3, 2}, { 6, 2}, { 3, 2}, { 10, 0}, /* Row 29 */ + { 12, 0}, { 8, 2}, { 12, 0}, /* Row 30 */ + { 32, 0}, /* Row 31 */ +}; + +const struct NXWidgets::SRlePaletteBitmap NxWM::g_mplayerPauseBitmap = +{ + CONFIG_NXWIDGETS_BPP, + CONFIG_NXWIDGETS_FMT, + BITMAP_PALETTESIZE, + BITMAP_WIDTH, + BITMAP_HEIGHT, + {palette, hilight_palette}, + pause_bitmap +}; + +/* Bitmap definition for "Rewind" control */ + +static const NXWidgets::SRlePaletteBitmapEntry rew_bitmap[] = +{ + { 32, 0}, /* Row 0 */ +// { 14, 0}, { 3, 4}, { 1, 7}, { 14, 0}, /* Row 1 */ + { 14, 0}, { 4, 7}, { 14, 0}, /* Row 1 */ + { 10, 0}, { 12, 7}, { 10, 0}, /* Row 2 */ + { 8, 0}, { 1, 7}, { 3, 6}, { 8, 7}, + { 3, 6}, { 1, 7}, { 8, 0}, /* Row 3 */ + { 7, 0}, { 7, 6}, { 3, 7}, { 8, 6}, { 7, 0}, /* Row 4 */ + { 6, 0}, { 3, 3}, { 13, 6}, { 4, 3}, { 6, 0}, /* Row 5 */ + { 5, 0}, { 6, 3}, { 9, 6}, { 7, 3}, { 5, 0}, /* Row 6 */ + { 4, 0}, { 23, 3}, { 1, 2}, { 4, 0}, /* Row 7 */ + { 3, 0}, { 1, 5}, { 23, 3}, { 1, 2}, { 1, 5}, { 3, 0}, /* Row 8 */ + { 3, 0}, { 3, 2}, { 18, 3}, { 5, 2}, { 3, 0}, /* Row 9 */ + { 2, 0}, { 1, 5}, { 5, 2}, { 6, 3}, { 1, 6}, { 7, 3}, + { 2, 2}, { 2, 6}, { 3, 2}, { 1, 5}, { 2, 0}, /* Row 10 */ + { 2, 0}, { 1, 5}, { 9, 2}, { 1, 6}, { 2, 4}, { 1, 3}, + { 1, 2}, { 2, 3}, { 3, 2}, { 1, 6}, { 2, 4}, { 1, 6}, + { 3, 2}, { 1, 5}, { 2, 0}, /* Row 11 */ + { 1, 0}, { 2, 5}, { 7, 2}, { 1, 6}, { 4, 4}, { 1, 3}, + { 4, 2}, { 1, 3}, { 1, 7}, { 3, 4}, { 1, 7}, { 3, 2}, + { 1, 5}, { 2, 0}, /* Row 12 */ + { 1, 0}, { 5, 5}, { 2, 2}, { 1, 5}, { 1, 7}, { 5, 4}, + { 1, 5}, { 3, 2}, { 1, 7}, { 5, 4}, { 1, 7}, { 1, 2}, + { 3, 5}, { 2, 0}, /* Row 13 */ + { 1, 0}, { 6, 5}, { 1, 7}, { 7, 4}, { 1, 5}, { 1, 2}, + { 1, 7}, { 7, 4}, { 1, 7}, { 3, 5}, { 1, 1}, { 1, 5}, + { 1, 0}, /* Row 14 */ + { 1, 0}, { 4, 1}, { 1, 7}, { 9, 4}, { 1, 7}, { 9, 4}, + { 1, 7}, { 4, 1}, { 1, 5}, { 1, 0}, /* Row 15 */ + { 1, 0}, { 4, 1}, { 1, 5}, { 9, 4}, { 1, 7}, { 9, 4}, + { 1, 5}, { 4, 1}, { 1, 5}, { 1, 0}, /* Row 16 */ + { 1, 0}, { 6, 1}, { 1, 5}, { 7, 4}, { 1, 5}, { 1, 1}, + { 1, 5}, { 7, 4}, { 1, 5}, { 4, 1}, { 1, 5}, { 1, 0}, /* Row 17 */ + { 1, 0}, { 8, 1}, { 1, 7}, { 5, 4}, { 1, 5}, { 3, 1}, + { 1, 7}, { 5, 4}, { 1, 5}, { 4, 1}, { 2, 0}, /* Row 18 */ + { 1, 0}, { 1, 5}, { 8, 1}, { 1, 5}, { 4, 4}, { 1, 5}, + { 4, 1}, { 1, 5}, { 4, 4}, { 1, 5}, { 4, 1}, { 2, 0}, /* Row 19 */ + { 2, 0}, { 10, 1}, { 1, 7}, { 2, 4}, { 1, 2}, { 6, 1}, + { 1, 7}, { 2, 4}, { 1, 5}, { 4, 1}, { 2, 0}, /* Row 20 */ + { 2, 0}, { 11, 1}, { 1, 5}, { 1, 4}, { 1, 2}, { 7, 1}, + { 1, 5}, { 1, 7}, { 1, 5}, { 3, 1}, { 1, 5}, { 2, 0}, /* Row 21 */ + { 2, 0}, { 1, 5}, { 9, 1}, { 1, 2}, { 1, 1}, { 6, 2}, + { 9, 1}, { 3, 0}, /* Row 22 */ + { 3, 0}, { 7, 1}, { 12, 2}, { 6, 1}, { 1, 5}, { 3, 0}, /* Row 23 */ + { 4, 0}, { 5, 1}, { 14, 2}, { 5, 1}, { 4, 0}, /* Row 24 */ + { 4, 0}, { 1, 5}, { 2, 1}, { 18, 2}, { 2, 1}, { 5, 0}, /* Row 25 */ + { 5, 0}, { 1, 5}, { 1, 1}, { 6, 2}, { 6, 2}, { 7, 2}, + { 1, 5}, { 5, 0}, /* Row 26 */ + { 6, 0}, { 1, 5}, { 4, 2}, { 1, 5}, { 8, 2}, { 1, 5}, + { 4, 2}, { 7, 0}, /* Row 27 */ + { 8, 0}, { 3, 2}, { 3, 2}, { 4, 2}, { 3, 2}, { 2, 2}, + { 1, 5}, { 8, 0}, /* Row 28 */ + { 9, 0}, { 1, 5}, { 3, 2}, { 6, 2}, { 2, 2}, { 1, 5}, + { 10, 0}, /* Row 29 */ + { 12, 0}, { 3, 2}, { 2, 2}, { 3, 2}, { 12, 0}, /* Row 30 */ + { 32, 0}, /* Row 31 */ +}; + +const struct NXWidgets::SRlePaletteBitmap NxWM::g_mplayerRewBitmap = +{ + CONFIG_NXWIDGETS_BPP, + CONFIG_NXWIDGETS_FMT, + BITMAP_PALETTESIZE, + BITMAP_WIDTH, + BITMAP_HEIGHT, + {palette, hilight_palette}, + rew_bitmap +}; + +/* Bitmap definition for "Forward" control */ + +static const NXWidgets::SRlePaletteBitmapEntry fwd_bitmap[] = +{ + { 32, 0}, /* Row 0 */ + { 14, 0}, { 4, 7}, { 14, 0}, /* Row 1 */ + { 10, 0}, { 12, 7}, { 10, 0}, /* Row 2 */ + { 8, 0}, { 1, 7}, { 3, 6}, { 8, 7}, + { 3, 6}, { 1, 7}, { 8, 0}, /* Row 3 */ + { 7, 0}, { 7, 6}, { 3, 7}, { 8, 6}, { 7, 0}, /* Row 4 */ + { 6, 0}, { 3, 3}, { 13, 6}, { 4, 3}, { 6, 0}, /* Row 5 */ + { 5, 0}, { 6, 3}, { 10, 6}, { 6, 3}, { 5, 0}, /* Row 6 */ + { 4, 0}, { 1, 2}, { 22, 3}, { 1, 2}, { 4, 0}, /* Row 7 */ + { 3, 0}, { 1, 5}, { 23, 3}, { 1, 2}, { 1, 5}, { 3, 0}, /* Row 8 */ + { 3, 0}, { 3, 2}, { 19, 3}, { 4, 2}, { 3, 0}, /* Row 9 */ + { 2, 0}, { 1, 5}, { 3, 2}, { 2, 6}, { 2, 2}, { 7, 3}, + { 1, 6}, { 5, 3}, { 6, 2}, { 1, 5}, { 2, 0}, /* Row 10 */ + { 2, 0}, { 1, 5}, { 3, 2}, { 1, 7}, { 2, 4}, { 1, 3}, + { 2, 2}, { 3, 3}, { 1, 2}, { 1, 6}, { 2, 4}, { 1, 6}, + { 9, 2}, { 1, 5}, { 2, 0}, /* Row 11 */ + { 1, 0}, { 2, 5}, { 3, 2}, { 1, 7}, { 3, 4}, { 1, 7}, + { 5, 2}, { 1, 6}, { 4, 4}, { 1, 5}, { 7, 2}, { 1, 5}, + { 2, 0}, /* Row 12 */ + { 1, 0}, { 4, 5}, { 1, 2}, { 1, 7}, { 5, 4}, { 1, 7}, + { 3, 2}, { 1, 6}, { 5, 4}, { 1, 7}, { 1, 5}, { 2, 2}, + { 4, 5}, { 2, 0}, /* Row 13 */ + { 1, 0}, { 1, 5}, { 1, 1}, { 2, 5}, { 1, 1}, { 1, 7}, + { 7, 4}, { 1, 7}, { 1, 2}, { 1, 5}, { 7, 4}, { 1, 7}, + { 4, 5}, { 1, 1}, { 1, 5}, { 1, 0}, /* Row 14 */ + { 1, 0}, { 5, 1}, { 1, 7}, { 9, 4}, { 1, 7}, { 9, 4}, + { 1, 5}, { 3, 1}, { 1, 5}, { 1, 0}, /* Row 15 */ + { 1, 0}, { 5, 1}, { 1, 7}, { 8, 4}, { 2, 7}, { 8, 4}, + { 1, 7}, { 4, 1}, { 1, 5}, { 1, 0}, /* Row 16 */ + { 1, 0}, { 5, 1}, { 1, 5}, { 7, 4}, { 1, 5}, { 1, 1}, + { 1, 5}, { 7, 4}, { 1, 5}, { 5, 1}, { 1, 5}, { 1, 0}, /* Row 17 */ + { 1, 0}, { 5, 1}, { 1, 5}, { 5, 4}, { 1, 7}, { 3, 1}, + { 1, 5}, { 5, 4}, { 1, 7}, { 7, 1}, { 2, 0}, /* Row 18 */ + { 1, 0}, { 1, 5}, { 4, 1}, { 1, 5}, { 3, 4}, { 1, 7}, + { 1, 2}, { 4, 1}, { 1, 5}, { 4, 4}, { 1, 5}, { 8, 1}, + { 2, 0}, /* Row 19 */ + { 2, 0}, { 4, 1}, { 1, 5}, { 2, 4}, { 1, 5}, { 6, 1}, + { 1, 5}, { 2, 4}, { 1, 7}, { 10, 1}, { 2, 0}, /* Row 20 */ + { 2, 0}, { 4, 1}, { 2, 7}, { 8, 1}, { 1, 5}, { 1, 4}, + { 1, 2}, { 10, 1}, { 1, 5}, { 2, 0}, /* Row 21 */ + { 2, 0}, { 1, 5}, { 9, 1}, { 6, 2}, { 1, 1}, { 1, 2}, + { 9, 1}, { 3, 0}, /* Row 22 */ + { 3, 0}, { 7, 1}, { 12, 2}, { 6, 1}, { 1, 5}, { 3, 0}, /* Row 23 */ + { 4, 0}, { 5, 1}, { 14, 2}, { 5, 1}, { 4, 0}, /* Row 24 */ + { 4, 0}, { 1, 5}, { 2, 1}, { 18, 2}, { 2, 1}, { 5, 0}, /* Row 25 */ + { 5, 0}, { 1, 5}, { 1, 1}, { 6, 2}, { 6, 2}, { 7, 2}, + { 1, 5}, { 5, 0}, /* Row 26 */ + { 6, 0}, { 1, 5}, { 4, 2}, { 1, 5}, { 8, 2}, { 1, 5}, + { 4, 2}, { 7, 0}, /* Row 27 */ + { 8, 0}, { 3, 2}, { 3, 2}, { 4, 2}, { 3, 2}, { 2, 2}, + { 1, 5}, { 8, 0}, /* Row 28 */ + { 9, 0}, { 1, 5}, { 3, 2}, { 6, 2}, { 2, 2}, { 1, 5}, + { 10, 0}, /* Row 29 */ + { 12, 0}, { 3, 2}, { 2, 2}, { 3, 2}, { 12, 0}, /* Row 30 */ + { 32, 0}, /* Row 31 */ +}; + +const struct NXWidgets::SRlePaletteBitmap NxWM::g_mplayerFwdBitmap = +{ + CONFIG_NXWIDGETS_BPP, + CONFIG_NXWIDGETS_FMT, + BITMAP_PALETTESIZE, + BITMAP_WIDTH, + BITMAP_HEIGHT, + {palette, hilight_palette}, + fwd_bitmap +}; + +static const NXWidgets::SRlePaletteBitmapEntry vol_bitmap[] = +{ + { 22, 0}, /* Row 0 */ + { 9, 0}, { 5, 7}, { 8, 0}, /* Row 1 */ + { 6, 0}, { 2, 6}, { 6, 7}, { 2, 6}, { 1, 7}, { 5, 0}, /* Row 2 */ + { 4, 0}, { 2, 3}, { 9, 6}, { 3, 3}, { 4, 0}, /* Row 3 */ + { 3, 0}, { 5, 3}, { 6, 6}, { 5, 3}, { 3, 0}, /* Row 4 */ + { 3, 0}, { 16, 3}, { 3, 0}, /* Row 5 */ + { 2, 0}, { 2, 2}, { 13, 3}, { 3, 2}, { 2, 0}, /* Row 6 */ + { 1, 0}, { 1, 5}, { 4, 2}, { 10, 3}, { 4, 2}, { 1, 5}, + { 1, 0}, /* Row 7 */ + { 1, 0}, { 2, 5}, { 15, 2}, { 3, 5}, { 1, 0}, /* Row 8 */ + { 1, 0}, { 5, 5}, { 10, 2}, { 5, 5}, { 1, 0}, /* Row 9 */ + { 1, 0}, { 2, 1}, { 15, 5}, { 3, 1}, { 1, 0}, /* Row 10 */ + { 1, 0}, { 5, 1}, { 10, 5}, { 5, 1}, { 1, 0}, /* Row 11 */ + { 1, 0}, { 20, 1}, { 1, 0}, /* Row 12 */ + { 1, 0}, { 20, 1}, { 1, 0}, /* Row 13 */ + { 1, 0}, { 19, 1}, { 1, 5}, { 1, 0}, /* Row 14 */ + { 1, 0}, { 1, 5}, { 7, 1}, { 1, 5}, { 4, 2}, { 6, 1}, + { 2, 0}, /* Row 15 */ + { 2, 0}, { 5, 1}, { 8, 2}, { 4, 1}, { 1, 5}, { 2, 0}, /* Row 16 */ + { 3, 0}, { 2, 1}, { 12, 2}, { 2, 1}, { 3, 0}, /* Row 17 */ + { 3, 0}, { 1, 5}, { 1, 1}, { 13, 2}, { 1, 5}, { 3, 0}, /* Row 18 */ + { 6, 0}, { 10, 2}, { 1, 5}, { 5, 0}, /* Row 19 */ + { 6, 0}, { 1, 5}, { 8, 2}, { 7, 0}, /* Row 20 */ + { 22, 0}, /* Row 21 */ +}; + +const struct NXWidgets::SRlePaletteBitmap NxWM::g_mplayerVolBitmap = +{ + CONFIG_NXWIDGETS_BPP, + CONFIG_NXWIDGETS_FMT, + BITMAP_PALETTESIZE, + 22, + 22, + {hilight_palette, hilight_palette}, + vol_bitmap +}; -- cgit v1.2.3