2002-04-25 04:41:45 +00:00
|
|
|
/***************************************************************************
|
|
|
|
* __________ __ ___.
|
|
|
|
* Open \______ \ ____ ____ | | _\_ |__ _______ ___
|
|
|
|
* Source | _// _ \_/ ___\| |/ /| __ \ / _ \ \/ /
|
|
|
|
* Jukebox | | ( <_> ) \___| < | \_\ ( <_> > < <
|
|
|
|
* Firmware |____|_ /\____/ \___ >__|_ \|___ /\____/__/\_ \
|
|
|
|
* \/ \/ \/ \/ \/
|
2002-04-27 15:20:53 +00:00
|
|
|
* $Id$
|
2002-04-25 04:41:45 +00:00
|
|
|
*
|
|
|
|
* Copyright (C) 2002 by Felix Arends
|
|
|
|
*
|
|
|
|
* All files in this archive are subject to the GNU General Public License.
|
|
|
|
* See the file COPYING in the source tree root for full license agreement.
|
|
|
|
*
|
|
|
|
* This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY
|
|
|
|
* KIND, either express or implied.
|
|
|
|
*
|
|
|
|
****************************************************************************/
|
|
|
|
|
|
|
|
#ifndef __UISW32_H__
|
|
|
|
#define __UISW32_H__
|
|
|
|
|
2003-02-14 23:12:55 +00:00
|
|
|
#ifdef _MSC_VER
|
2003-02-14 20:51:10 +00:00
|
|
|
typedef unsigned short wchar_t;
|
|
|
|
#define _WCHAR_T_DEFINED
|
2003-02-14 23:12:55 +00:00
|
|
|
#endif
|
2002-04-25 04:41:45 +00:00
|
|
|
#include <windows.h>
|
|
|
|
#include "lcd-win32.h"
|
|
|
|
|
2005-01-17 00:25:23 +00:00
|
|
|
#if defined(ARCHOS_RECORDER)
|
|
|
|
#define UI_TITLE "Jukebox Recorder"
|
|
|
|
#define UI_WIDTH 270 // width of GUI window
|
|
|
|
#define UI_HEIGHT 406 // height of GUI window
|
|
|
|
#define UI_LCD_BGCOLOR 90, 145, 90 // bkgnd color of LCD (no backlight)
|
|
|
|
#define UI_LCD_BGCOLORLIGHT 126, 229, 126 // bkgnd color of LCD (backlight)
|
2002-04-26 05:37:29 +00:00
|
|
|
#define UI_LCD_BLACK 0, 0, 0 // black
|
2005-01-17 00:25:23 +00:00
|
|
|
#define UI_LCD_POSX 80 // x position of lcd
|
|
|
|
#define UI_LCD_POSY 104 // y position of lcd (96 for real aspect)
|
2003-04-19 13:15:33 +00:00
|
|
|
#define UI_LCD_WIDTH 112
|
2005-01-17 00:25:23 +00:00
|
|
|
#define UI_LCD_HEIGHT 64 // (80 for real aspect)
|
|
|
|
|
|
|
|
#elif defined(ARCHOS_PLAYER)
|
|
|
|
#define UI_TITLE "Jukebox Player"
|
|
|
|
#define UI_WIDTH 284 // width of GUI window
|
|
|
|
#define UI_HEIGHT 420 // height of GUI window
|
|
|
|
#define UI_LCD_BGCOLOR 90, 145, 90 // bkgnd color of LCD (no backlight)
|
|
|
|
#define UI_LCD_BGCOLORLIGHT 126, 229, 126 // bkgnd color of LCD (backlight)
|
|
|
|
#define UI_LCD_BLACK 0, 0, 0 // black
|
|
|
|
#define UI_LCD_POSX 75 // x position of lcd
|
|
|
|
#define UI_LCD_POSY 111 // y position of lcd
|
|
|
|
#define UI_LCD_WIDTH 132
|
|
|
|
#define UI_LCD_HEIGHT 75
|
|
|
|
|
|
|
|
#elif defined(ARCHOS_FMRECORDER) || defined(ARCHOS_RECORDERV2)
|
|
|
|
#define UI_TITLE "Jukebox FM Recorder"
|
|
|
|
#define UI_WIDTH 285 // width of GUI window
|
|
|
|
#define UI_HEIGHT 414 // height of GUI window
|
|
|
|
#define UI_LCD_BGCOLOR 90, 145, 90 // bkgnd color of LCD (no backlight)
|
|
|
|
#define UI_LCD_BGCOLORLIGHT 126, 229, 126 // bkgnd color of LCD (backlight)
|
|
|
|
#define UI_LCD_BLACK 0, 0, 0 // black
|
|
|
|
#define UI_LCD_POSX 87 // x position of lcd
|
|
|
|
#define UI_LCD_POSY 77 // y position of lcd (69 for real aspect)
|
|
|
|
#define UI_LCD_WIDTH 112
|
|
|
|
#define UI_LCD_HEIGHT 64 // (80 for real aspect)
|
|
|
|
|
|
|
|
#elif defined(ARCHOS_ONDIOSP) || defined(ARCHOS_ONDIOFM)
|
|
|
|
#define UI_TITLE "Ondio"
|
|
|
|
#define UI_WIDTH 155 // width of GUI window
|
|
|
|
#define UI_HEIGHT 334 // height of GUI window
|
|
|
|
#define UI_LCD_BGCOLOR 90, 145, 90 // bkgnd color of LCD (no backlight)
|
|
|
|
#define UI_LCD_BGCOLORLIGHT 90, 145, 90 // bkgnd color of LCD (backlight)
|
|
|
|
#define UI_LCD_BLACK 0, 0, 0 // black
|
|
|
|
#define UI_LCD_POSX 21 // x position of lcd
|
|
|
|
#define UI_LCD_POSY 82 // y position of lcd (74 for real aspect)
|
|
|
|
#define UI_LCD_WIDTH 112
|
|
|
|
#define UI_LCD_HEIGHT 64 // (80 for real aspect)
|
|
|
|
|
|
|
|
#elif defined(IRIVER_H100)
|
|
|
|
#define UI_TITLE "iRiver H100"
|
|
|
|
#define UI_WIDTH 352 // width of GUI window
|
|
|
|
#define UI_HEIGHT 377 // height of GUI window
|
|
|
|
#define UI_LCD_BGCOLOR 90, 145, 90 // bkgnd color of LCD (no backlight)
|
|
|
|
#define UI_LCD_BGCOLORLIGHT 230, 216, 173 // bkgnd color of LCD (backlight)
|
|
|
|
#define UI_LCD_BLACK 0, 0, 0 // black
|
|
|
|
#define UI_LCD_POSX 96 // x position of lcd
|
|
|
|
#define UI_LCD_POSY 28 // y position of lcd
|
|
|
|
#define UI_LCD_WIDTH 160
|
|
|
|
#define UI_LCD_HEIGHT 128
|
|
|
|
|
2005-01-23 01:06:01 +00:00
|
|
|
#elif defined(ARCHOS_GMINI120)
|
|
|
|
#define UI_TITLE "Gmini 120"
|
|
|
|
#define UI_WIDTH 370 // width of GUI window
|
|
|
|
#define UI_HEIGHT 264 // height of GUI window
|
|
|
|
#define UI_LCD_BGCOLOR 90, 145, 90 // bkgnd color of LCD (no backlight)
|
|
|
|
#define UI_LCD_BGCOLORLIGHT 230, 160, 60 // bkgnd color of LCD (backlight)
|
|
|
|
#define UI_LCD_BLACK 0, 0, 0 // black
|
|
|
|
#define UI_LCD_POSX 85 // x position of lcd
|
|
|
|
#define UI_LCD_POSY 61 // y position of lcd (74 for real aspect)
|
|
|
|
#define UI_LCD_WIDTH 192 // * 1.5
|
|
|
|
#define UI_LCD_HEIGHT 96 // * 1.5
|
|
|
|
|
2005-01-17 00:25:23 +00:00
|
|
|
#endif
|
2002-04-25 04:41:45 +00:00
|
|
|
|
2002-06-12 15:39:39 +00:00
|
|
|
#define TM_YIELD WM_USER + 101 // thread message for yield
|
2002-06-15 10:58:14 +00:00
|
|
|
#define TIMER_EVENT 0x34928340
|
2002-06-12 15:39:39 +00:00
|
|
|
|
2002-04-25 04:41:45 +00:00
|
|
|
extern HWND hGUIWnd; // the GUI window handle
|
|
|
|
extern unsigned int uThreadID; // id of mod thread
|
2002-06-01 20:56:38 +00:00
|
|
|
extern bool bActive;
|
2002-04-25 04:41:45 +00:00
|
|
|
|
|
|
|
// typedefs
|
|
|
|
typedef unsigned char uchar;
|
|
|
|
typedef unsigned int uint32;
|
|
|
|
|
2003-03-05 22:47:26 +00:00
|
|
|
#endif // #ifndef __UISW32_H__
|