2001-08-25 21:04:29 +00:00
|
|
|
|
|
|
|
#ifndef __MY_APPS
|
|
|
|
#define __MY_APPS
|
|
|
|
|
|
|
|
#include "bitmap/bitmap.h"
|
|
|
|
#include "wm/ws.h"
|
|
|
|
#include "wm/wskeys.h"
|
|
|
|
#include "events.h"
|
|
|
|
|
|
|
|
#define itNULL 0
|
|
|
|
#define itButton 101 // button
|
|
|
|
#define itHPotmeter 102 // horizontal potmeter
|
|
|
|
#define itVPotmeter 103 // vertical potmeter
|
|
|
|
#define itSLabel 104 // static label
|
|
|
|
#define itDLabel 105 // dynamic label
|
|
|
|
#define itBase 106
|
|
|
|
#define itPotmeter 107
|
|
|
|
#define itFont 108
|
|
|
|
// ---
|
|
|
|
#define btnPressed 0
|
|
|
|
#define btnReleased 1
|
|
|
|
#define btnDisabled 2
|
|
|
|
// ---
|
|
|
|
typedef struct
|
|
|
|
{
|
|
|
|
int type;
|
|
|
|
// ---
|
|
|
|
int x,y;
|
|
|
|
int width,height;
|
|
|
|
// ---
|
|
|
|
int px,py,psx,psy;
|
|
|
|
// ---
|
|
|
|
int msg,msg2;
|
|
|
|
int pressed,disabled,tmp;
|
|
|
|
int key,key2;
|
|
|
|
int phases;
|
2001-08-28 15:55:02 +00:00
|
|
|
int used;
|
2001-08-25 21:04:29 +00:00
|
|
|
float value;
|
|
|
|
txSample Bitmap;
|
|
|
|
txSample Mask;
|
|
|
|
// ---
|
|
|
|
int fontid;
|
|
|
|
int align;
|
|
|
|
char * label;
|
|
|
|
// ---
|
|
|
|
int event;
|
|
|
|
} wItem;
|
|
|
|
|
|
|
|
typedef struct
|
|
|
|
{
|
|
|
|
wItem main;
|
|
|
|
wsTWindow mainWindow;
|
2001-11-12 12:26:09 +00:00
|
|
|
int mainDecoration;
|
2001-08-25 21:04:29 +00:00
|
|
|
|
|
|
|
wItem sub;
|
|
|
|
wsTWindow subWindow;
|
|
|
|
int subR,subG,subB;
|
|
|
|
int subPixel;
|
|
|
|
|
|
|
|
wItem eq;
|
|
|
|
wsTWindow eqWindow;
|
|
|
|
|
|
|
|
wItem menuBase;
|
|
|
|
wItem menuSelected;
|
|
|
|
wsTWindow menuWindow;
|
|
|
|
|
|
|
|
// ---
|
|
|
|
int NumberOfItems;
|
|
|
|
wItem Items[256];
|
|
|
|
// ---
|
|
|
|
int NumberOfMenuItems;
|
|
|
|
wItem MenuItems[32];
|
|
|
|
} listItems;
|
|
|
|
|
|
|
|
extern listItems appMPlayer;
|
|
|
|
|
|
|
|
extern char * skinDirInHome;
|
|
|
|
extern char * skinMPlayerDir;
|
2001-09-07 21:04:14 +00:00
|
|
|
extern char * skinName;
|
2001-08-25 21:04:29 +00:00
|
|
|
|
2001-08-27 23:56:44 +00:00
|
|
|
extern void appInit( int argc,char* argv[], char *envp[], void* disp );
|
2001-08-25 21:04:29 +00:00
|
|
|
extern void appInitStruct( listItems * item );
|
|
|
|
extern void appClearItem( wItem * item );
|
|
|
|
extern void appCopy( listItems * item1,listItems * item2 );
|
|
|
|
extern int appFindMessage( unsigned char * str );
|
|
|
|
extern int appFindKey( unsigned char * name );
|
|
|
|
|
|
|
|
#endif
|