annotate Gui/app.h @ 8123:9fc45fe0d444

*HUGE* set of compiler warning fixes, unused variables removal based on patch by Dominik Mierzejewski <dominik@rangers.eu.org>
author arpi
date Wed, 06 Nov 2002 23:54:29 +0000
parents 9246adcf95f0
children 72700fefd3dc
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
1693
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
1
8043
e5dda05f9aab cleanup
pontscho
parents: 6218
diff changeset
2 #ifndef __APPS_H
e5dda05f9aab cleanup
pontscho
parents: 6218
diff changeset
3 #define __APPS_H
1693
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
4
8058
9246adcf95f0 cosmetic
pontscho
parents: 8043
diff changeset
5 #include "bitmap.h"
1693
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"
8043
e5dda05f9aab cleanup
pontscho
parents: 6218
diff changeset
8
e5dda05f9aab cleanup
pontscho
parents: 6218
diff changeset
9 // --- User events ------
e5dda05f9aab cleanup
pontscho
parents: 6218
diff changeset
10
e5dda05f9aab cleanup
pontscho
parents: 6218
diff changeset
11 #define evNone 0
e5dda05f9aab cleanup
pontscho
parents: 6218
diff changeset
12 #define evPlay 1
e5dda05f9aab cleanup
pontscho
parents: 6218
diff changeset
13 #define evStop 2
e5dda05f9aab cleanup
pontscho
parents: 6218
diff changeset
14 #define evPause 3
e5dda05f9aab cleanup
pontscho
parents: 6218
diff changeset
15 #define evPrev 6
e5dda05f9aab cleanup
pontscho
parents: 6218
diff changeset
16 #define evNext 7
e5dda05f9aab cleanup
pontscho
parents: 6218
diff changeset
17 #define evLoad 8
e5dda05f9aab cleanup
pontscho
parents: 6218
diff changeset
18 #define evEqualizer 9
e5dda05f9aab cleanup
pontscho
parents: 6218
diff changeset
19 #define evPlayList 10
e5dda05f9aab cleanup
pontscho
parents: 6218
diff changeset
20 #define evIconify 11
e5dda05f9aab cleanup
pontscho
parents: 6218
diff changeset
21 #define evAbout 12
e5dda05f9aab cleanup
pontscho
parents: 6218
diff changeset
22 #define evLoadPlay 13
e5dda05f9aab cleanup
pontscho
parents: 6218
diff changeset
23 #define evPreferences 14
e5dda05f9aab cleanup
pontscho
parents: 6218
diff changeset
24 #define evSkinBrowser 15
e5dda05f9aab cleanup
pontscho
parents: 6218
diff changeset
25 #define evPlaySwitchToPause 16
e5dda05f9aab cleanup
pontscho
parents: 6218
diff changeset
26 #define evPauseSwitchToPlay 17
e5dda05f9aab cleanup
pontscho
parents: 6218
diff changeset
27
e5dda05f9aab cleanup
pontscho
parents: 6218
diff changeset
28 #define evBackward10sec 18
e5dda05f9aab cleanup
pontscho
parents: 6218
diff changeset
29 #define evForward10sec 19
e5dda05f9aab cleanup
pontscho
parents: 6218
diff changeset
30 #define evBackward1min 20
e5dda05f9aab cleanup
pontscho
parents: 6218
diff changeset
31 #define evForward1min 21
e5dda05f9aab cleanup
pontscho
parents: 6218
diff changeset
32 #define evBackward10min 22
e5dda05f9aab cleanup
pontscho
parents: 6218
diff changeset
33 #define evForward10min 23
e5dda05f9aab cleanup
pontscho
parents: 6218
diff changeset
34
e5dda05f9aab cleanup
pontscho
parents: 6218
diff changeset
35 #define evNormalSize 24
e5dda05f9aab cleanup
pontscho
parents: 6218
diff changeset
36 #define evDoubleSize 25
e5dda05f9aab cleanup
pontscho
parents: 6218
diff changeset
37 #define evFullScreen 26
e5dda05f9aab cleanup
pontscho
parents: 6218
diff changeset
38
e5dda05f9aab cleanup
pontscho
parents: 6218
diff changeset
39 #define evSetMoviePosition 27
e5dda05f9aab cleanup
pontscho
parents: 6218
diff changeset
40 #define evSetVolume 28
e5dda05f9aab cleanup
pontscho
parents: 6218
diff changeset
41 #define evSetBalance 29
e5dda05f9aab cleanup
pontscho
parents: 6218
diff changeset
42 #define evMute 30
e5dda05f9aab cleanup
pontscho
parents: 6218
diff changeset
43
e5dda05f9aab cleanup
pontscho
parents: 6218
diff changeset
44 #define evIncVolume 31
e5dda05f9aab cleanup
pontscho
parents: 6218
diff changeset
45 #define evDecVolume 32
e5dda05f9aab cleanup
pontscho
parents: 6218
diff changeset
46 #define evIncAudioBufDelay 33
e5dda05f9aab cleanup
pontscho
parents: 6218
diff changeset
47 #define evDecAudioBufDelay 34
e5dda05f9aab cleanup
pontscho
parents: 6218
diff changeset
48 #define evIncBalance 35
e5dda05f9aab cleanup
pontscho
parents: 6218
diff changeset
49 #define evDecBalance 36
e5dda05f9aab cleanup
pontscho
parents: 6218
diff changeset
50
e5dda05f9aab cleanup
pontscho
parents: 6218
diff changeset
51 #define evHelp 37
e5dda05f9aab cleanup
pontscho
parents: 6218
diff changeset
52
e5dda05f9aab cleanup
pontscho
parents: 6218
diff changeset
53 #define evLoadSubtitle 38
e5dda05f9aab cleanup
pontscho
parents: 6218
diff changeset
54 #define evDropSubtitle 43
e5dda05f9aab cleanup
pontscho
parents: 6218
diff changeset
55 #define evPlayDVD 39
e5dda05f9aab cleanup
pontscho
parents: 6218
diff changeset
56 #define evPlayVCD 40
e5dda05f9aab cleanup
pontscho
parents: 6218
diff changeset
57 #define evPlayNetwork 41
e5dda05f9aab cleanup
pontscho
parents: 6218
diff changeset
58 #define evLoadAudioFile 42
e5dda05f9aab cleanup
pontscho
parents: 6218
diff changeset
59 #define evSetAspect 44
e5dda05f9aab cleanup
pontscho
parents: 6218
diff changeset
60 // 45 ...
e5dda05f9aab cleanup
pontscho
parents: 6218
diff changeset
61
e5dda05f9aab cleanup
pontscho
parents: 6218
diff changeset
62 #define evExit 1000
e5dda05f9aab cleanup
pontscho
parents: 6218
diff changeset
63
e5dda05f9aab cleanup
pontscho
parents: 6218
diff changeset
64 // --- General events ---
e5dda05f9aab cleanup
pontscho
parents: 6218
diff changeset
65
e5dda05f9aab cleanup
pontscho
parents: 6218
diff changeset
66 #define evFileLoaded 5000
e5dda05f9aab cleanup
pontscho
parents: 6218
diff changeset
67 #define evHideMouseCursor 5001
e5dda05f9aab cleanup
pontscho
parents: 6218
diff changeset
68 #define evMessageBox 5002
e5dda05f9aab cleanup
pontscho
parents: 6218
diff changeset
69 #define evGeneralTimer 5003
e5dda05f9aab cleanup
pontscho
parents: 6218
diff changeset
70 #define evGtkIsOk 5004
e5dda05f9aab cleanup
pontscho
parents: 6218
diff changeset
71 #define evShowPopUpMenu 5005
e5dda05f9aab cleanup
pontscho
parents: 6218
diff changeset
72 #define evHidePopUpMenu 5006
e5dda05f9aab cleanup
pontscho
parents: 6218
diff changeset
73 #define evSetDVDAudio 5007
e5dda05f9aab cleanup
pontscho
parents: 6218
diff changeset
74 #define evSetDVDSubtitle 5008
e5dda05f9aab cleanup
pontscho
parents: 6218
diff changeset
75 #define evSetDVDTitle 5009
e5dda05f9aab cleanup
pontscho
parents: 6218
diff changeset
76 #define evSetDVDChapter 5010
e5dda05f9aab cleanup
pontscho
parents: 6218
diff changeset
77 #define evSubtitleLoaded 5011
e5dda05f9aab cleanup
pontscho
parents: 6218
diff changeset
78 #define evSetVCDTrack 5012
e5dda05f9aab cleanup
pontscho
parents: 6218
diff changeset
79 #define evSetURL 5013
e5dda05f9aab cleanup
pontscho
parents: 6218
diff changeset
80
e5dda05f9aab cleanup
pontscho
parents: 6218
diff changeset
81 #define evFName 7000
e5dda05f9aab cleanup
pontscho
parents: 6218
diff changeset
82 #define evMovieTime 7001
e5dda05f9aab cleanup
pontscho
parents: 6218
diff changeset
83 #define evRedraw 7002
e5dda05f9aab cleanup
pontscho
parents: 6218
diff changeset
84 #define evHideWindow 7003
e5dda05f9aab cleanup
pontscho
parents: 6218
diff changeset
85 #define evShowWindow 7004
e5dda05f9aab cleanup
pontscho
parents: 6218
diff changeset
86 #define evFirstLoad 7005
e5dda05f9aab cleanup
pontscho
parents: 6218
diff changeset
87
e5dda05f9aab cleanup
pontscho
parents: 6218
diff changeset
88 // ----------------------
e5dda05f9aab cleanup
pontscho
parents: 6218
diff changeset
89
e5dda05f9aab cleanup
pontscho
parents: 6218
diff changeset
90 typedef struct
e5dda05f9aab cleanup
pontscho
parents: 6218
diff changeset
91 {
e5dda05f9aab cleanup
pontscho
parents: 6218
diff changeset
92 int msg;
e5dda05f9aab cleanup
pontscho
parents: 6218
diff changeset
93 char * name;
e5dda05f9aab cleanup
pontscho
parents: 6218
diff changeset
94 } evName;
e5dda05f9aab cleanup
pontscho
parents: 6218
diff changeset
95
e5dda05f9aab cleanup
pontscho
parents: 6218
diff changeset
96 extern int evBoxs;
e5dda05f9aab cleanup
pontscho
parents: 6218
diff changeset
97 extern evName evNames[];
1693
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
98
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
99 #define itNULL 0
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
100 #define itButton 101 // button
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
101 #define itHPotmeter 102 // horizontal potmeter
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
102 #define itVPotmeter 103 // vertical potmeter
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
103 #define itSLabel 104 // static label
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
104 #define itDLabel 105 // dynamic label
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
105 #define itBase 106
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
106 #define itPotmeter 107
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
107 #define itFont 108
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
108 // ---
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
109 #define btnPressed 0
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
110 #define btnReleased 1
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
111 #define btnDisabled 2
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
112 // ---
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
113 typedef struct
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
114 {
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
115 int type;
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
116 // ---
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
117 int x,y;
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
118 int width,height;
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
119 // ---
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
120 int px,py,psx,psy;
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
121 // ---
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
122 int msg,msg2;
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
123 int pressed,disabled,tmp;
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
124 int key,key2;
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
125 int phases;
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
126 float value;
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
127 txSample Bitmap;
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
128 txSample Mask;
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
129 // ---
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
130 int fontid;
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
131 int align;
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
132 char * label;
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
133 // ---
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
134 int event;
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
135 } wItem;
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
136
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
137 typedef struct
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
138 {
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
139 wItem main;
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
140 wsTWindow mainWindow;
2851
b64fa5d25142 add roleld mouse support and some small bugfix. neked jol a testedbe.
pontscho
parents: 1866
diff changeset
141 int mainDecoration;
1693
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
142
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
143 wItem sub;
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
144 wsTWindow subWindow;
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
145 int subR,subG,subB;
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
146 int subPixel;
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
147
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
148 wItem eq;
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
149 wsTWindow eqWindow;
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
150
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
151 wItem menuBase;
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
152 wItem menuSelected;
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
153 wsTWindow menuWindow;
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
154
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
155 // ---
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
156 int NumberOfItems;
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
157 wItem Items[256];
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
158 // ---
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
159 int NumberOfMenuItems;
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
160 wItem MenuItems[32];
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
161 } listItems;
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
162
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
163 extern listItems appMPlayer;
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
164
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
165 extern char * skinDirInHome;
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
166 extern char * skinMPlayerDir;
1866
32b1bb50a0e8 some bug fix, and add decoration item to skin conffile. faszom(C)
pontscho
parents: 1729
diff changeset
167 extern char * skinName;
1693
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
168
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
169 extern void appInitStruct( listItems * item );
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
170 extern void appClearItem( wItem * item );
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
171 extern void appCopy( listItems * item1,listItems * item2 );
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
172 extern int appFindMessage( unsigned char * str );
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
173 extern int appFindKey( unsigned char * name );
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
174
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
175 #endif