annotate Gui/app.h @ 1863:bb7710b16dc2

reset module status after uninit
author arpi
date Thu, 06 Sep 2001 20:44:42 +0000
parents d6c99f70449e
children 32b1bb50a0e8
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
1693
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
1
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
2 #ifndef __MY_APPS
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
3 #define __MY_APPS
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
4
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
5 #include "bitmap/bitmap.h"
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
6 #include "wm/ws.h"
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
7 #include "wm/wskeys.h"
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
8 #include "events.h"
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
9
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
10 #define itNULL 0
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
11 #define itButton 101 // button
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
12 #define itHPotmeter 102 // horizontal potmeter
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
13 #define itVPotmeter 103 // vertical potmeter
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
14 #define itSLabel 104 // static label
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
15 #define itDLabel 105 // dynamic label
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
16 #define itBase 106
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
17 #define itPotmeter 107
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
18 #define itFont 108
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
19 // ---
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
20 #define btnPressed 0
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
21 #define btnReleased 1
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
22 #define btnDisabled 2
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
23 // ---
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
24 typedef struct
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
25 {
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
26 int type;
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
27 // ---
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
28 int x,y;
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
29 int width,height;
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
30 // ---
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
31 int px,py,psx,psy;
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
32 // ---
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
33 int msg,msg2;
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
34 int pressed,disabled,tmp;
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
35 int key,key2;
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
36 int phases;
1729
d6c99f70449e fix hprogressbar
pontscho
parents: 1723
diff changeset
37 int used;
1693
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
38 float value;
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
39 txSample Bitmap;
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
40 txSample Mask;
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
41 // ---
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
42 int fontid;
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
43 int align;
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
44 char * label;
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
45 // ---
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
46 int event;
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
47 } wItem;
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
48
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
49 typedef struct
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
50 {
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
51 wItem main;
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
52 wsTWindow mainWindow;
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
53
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
54 wItem sub;
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
55 wsTWindow subWindow;
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
56 int subR,subG,subB;
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
57 int subPixel;
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
58
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
59 wItem eq;
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
60 wsTWindow eqWindow;
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
61
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
62 wItem menuBase;
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
63 wItem menuSelected;
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
64 wsTWindow menuWindow;
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
65
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
66 // ---
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
67 int NumberOfItems;
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
68 wItem Items[256];
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
69 // ---
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
70 int NumberOfMenuItems;
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
71 wItem MenuItems[32];
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
72 } listItems;
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
73
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
74 extern listItems appMPlayer;
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
75 extern listItems appTV;
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
76 extern listItems appRadio;
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
77
1707
216aae08226c misc fixes/cleanup, Skin path stuff fixed
arpi
parents: 1693
diff changeset
78 //extern char * appMPlayerDirInHome;
216aae08226c misc fixes/cleanup, Skin path stuff fixed
arpi
parents: 1693
diff changeset
79 //extern char * appMPlayerDir;
1693
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
80 extern char * skinDirInHome;
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
81 extern char * skinMPlayerDir;
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
82
1723
5e4214a7540e GUI stuff. now seeking works, and xmga renders to video window
arpi
parents: 1707
diff changeset
83 extern void appInit( int argc,char* argv[], char *envp[], void* disp );
1693
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
84 extern void appInitStruct( listItems * item );
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
85 extern void appClearItem( wItem * item );
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
86 extern void appCopy( listItems * item1,listItems * item2 );
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
87 extern int appFindMessage( unsigned char * str );
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
88 extern int appFindKey( unsigned char * name );
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
89
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
90 #endif