annotate Gui/app.h @ 4624:080882dddb2e

fixedsize video samples fixed (dvntsc-qt.mov)
author arpi
date Sun, 10 Feb 2002 00:45:56 +0000
parents b64fa5d25142
children 3e7f39c4110c
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;
2851
b64fa5d25142 add roleld mouse support and some small bugfix. neked jol a testedbe.
pontscho
parents: 1866
diff changeset
53 int mainDecoration;
1693
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
54
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
55 wItem sub;
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
56 wsTWindow subWindow;
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
57 int subR,subG,subB;
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
58 int subPixel;
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
59
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
60 wItem eq;
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
61 wsTWindow eqWindow;
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
62
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
63 wItem menuBase;
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
64 wItem menuSelected;
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
65 wsTWindow menuWindow;
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
66
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
67 // ---
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
68 int NumberOfItems;
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
69 wItem Items[256];
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
70 // ---
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
71 int NumberOfMenuItems;
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
72 wItem MenuItems[32];
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
73 } listItems;
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
74
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
75 extern listItems appMPlayer;
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
76
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
77 extern char * skinDirInHome;
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
78 extern char * skinMPlayerDir;
1866
32b1bb50a0e8 some bug fix, and add decoration item to skin conffile. faszom(C)
pontscho
parents: 1729
diff changeset
79 extern char * skinName;
1693
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
80
1723
5e4214a7540e GUI stuff. now seeking works, and xmga renders to video window
arpi
parents: 1707
diff changeset
81 extern void appInit( int argc,char* argv[], char *envp[], void* disp );
1693
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
82 extern void appInitStruct( listItems * item );
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
83 extern void appClearItem( wItem * item );
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
84 extern void appCopy( listItems * item1,listItems * item2 );
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
85 extern int appFindMessage( unsigned char * str );
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
86 extern int appFindKey( unsigned char * name );
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
87
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
88 #endif