1693
|
1
|
|
2 #ifndef __MY_APPS
|
|
3 #define __MY_APPS
|
|
4
|
|
5 #include "bitmap/bitmap.h"
|
|
6 #include "wm/ws.h"
|
|
7 #include "wm/wskeys.h"
|
|
8 #include "events.h"
|
|
9
|
|
10 #define itNULL 0
|
|
11 #define itButton 101 // button
|
|
12 #define itHPotmeter 102 // horizontal potmeter
|
|
13 #define itVPotmeter 103 // vertical potmeter
|
|
14 #define itSLabel 104 // static label
|
|
15 #define itDLabel 105 // dynamic label
|
|
16 #define itBase 106
|
|
17 #define itPotmeter 107
|
|
18 #define itFont 108
|
|
19 // ---
|
|
20 #define btnPressed 0
|
|
21 #define btnReleased 1
|
|
22 #define btnDisabled 2
|
|
23 // ---
|
|
24 typedef struct
|
|
25 {
|
|
26 int type;
|
|
27 // ---
|
|
28 int x,y;
|
|
29 int width,height;
|
|
30 // ---
|
|
31 int px,py,psx,psy;
|
|
32 // ---
|
|
33 int msg,msg2;
|
|
34 int pressed,disabled,tmp;
|
|
35 int key,key2;
|
|
36 int phases;
|
|
37 float value;
|
|
38 txSample Bitmap;
|
|
39 txSample Mask;
|
|
40 // ---
|
|
41 int fontid;
|
|
42 int align;
|
|
43 char * label;
|
|
44 // ---
|
|
45 int event;
|
|
46 } wItem;
|
|
47
|
|
48 typedef struct
|
|
49 {
|
|
50 wItem main;
|
|
51 wsTWindow mainWindow;
|
|
52
|
|
53 wItem sub;
|
|
54 wsTWindow subWindow;
|
|
55 int subR,subG,subB;
|
|
56 int subPixel;
|
|
57
|
|
58 wItem eq;
|
|
59 wsTWindow eqWindow;
|
|
60
|
|
61 wItem menuBase;
|
|
62 wItem menuSelected;
|
|
63 wsTWindow menuWindow;
|
|
64
|
|
65 // ---
|
|
66 int NumberOfItems;
|
|
67 wItem Items[256];
|
|
68 // ---
|
|
69 int NumberOfMenuItems;
|
|
70 wItem MenuItems[32];
|
|
71 } listItems;
|
|
72
|
|
73 extern listItems appMPlayer;
|
|
74 extern listItems appTV;
|
|
75 extern listItems appRadio;
|
|
76
|
|
77 extern char * appMPlayerDirInHome;
|
|
78 extern char * appMPlayerDir;
|
|
79 extern char * skinDirInHome;
|
|
80 extern char * skinMPlayerDir;
|
|
81
|
|
82 extern void appInit( int argc,char* argv[], char *envp[] );
|
|
83 extern void appInitStruct( listItems * item );
|
|
84 extern void appClearItem( wItem * item );
|
|
85 extern void appCopy( listItems * item1,listItems * item2 );
|
|
86 extern int appFindMessage( unsigned char * str );
|
|
87 extern int appFindKey( unsigned char * name );
|
|
88
|
|
89 #endif
|