annotate Gui/app.h @ 8752:e0d9b55617b7

1l
author arpi
date Fri, 03 Jan 2003 23:52:55 +0000
parents c6a1a5b6ba25
children d07ab8e088a9
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
8312
ef8c992672f4 - audio track handling in menu (idea from R¸«ädiger Kuhlmann)
pontscho
parents: 8300
diff changeset
60 #define evSetAudio 45
8423
c6a1a5b6ba25 - fix three submenu bug
pontscho
parents: 8380
diff changeset
61 #define evSetVideo 46
8380
743fa83d9e2d need this
pontscho
parents: 8312
diff changeset
62 // 47 ...
8043
e5dda05f9aab cleanup
pontscho
parents: 6218
diff changeset
63
e5dda05f9aab cleanup
pontscho
parents: 6218
diff changeset
64 #define evExit 1000
e5dda05f9aab cleanup
pontscho
parents: 6218
diff changeset
65
e5dda05f9aab cleanup
pontscho
parents: 6218
diff changeset
66 // --- General events ---
e5dda05f9aab cleanup
pontscho
parents: 6218
diff changeset
67
e5dda05f9aab cleanup
pontscho
parents: 6218
diff changeset
68 #define evFileLoaded 5000
e5dda05f9aab cleanup
pontscho
parents: 6218
diff changeset
69 #define evHideMouseCursor 5001
e5dda05f9aab cleanup
pontscho
parents: 6218
diff changeset
70 #define evMessageBox 5002
e5dda05f9aab cleanup
pontscho
parents: 6218
diff changeset
71 #define evGeneralTimer 5003
e5dda05f9aab cleanup
pontscho
parents: 6218
diff changeset
72 #define evGtkIsOk 5004
e5dda05f9aab cleanup
pontscho
parents: 6218
diff changeset
73 #define evShowPopUpMenu 5005
e5dda05f9aab cleanup
pontscho
parents: 6218
diff changeset
74 #define evHidePopUpMenu 5006
e5dda05f9aab cleanup
pontscho
parents: 6218
diff changeset
75 #define evSetDVDAudio 5007
e5dda05f9aab cleanup
pontscho
parents: 6218
diff changeset
76 #define evSetDVDSubtitle 5008
e5dda05f9aab cleanup
pontscho
parents: 6218
diff changeset
77 #define evSetDVDTitle 5009
e5dda05f9aab cleanup
pontscho
parents: 6218
diff changeset
78 #define evSetDVDChapter 5010
e5dda05f9aab cleanup
pontscho
parents: 6218
diff changeset
79 #define evSubtitleLoaded 5011
e5dda05f9aab cleanup
pontscho
parents: 6218
diff changeset
80 #define evSetVCDTrack 5012
e5dda05f9aab cleanup
pontscho
parents: 6218
diff changeset
81 #define evSetURL 5013
e5dda05f9aab cleanup
pontscho
parents: 6218
diff changeset
82
e5dda05f9aab cleanup
pontscho
parents: 6218
diff changeset
83 #define evFName 7000
e5dda05f9aab cleanup
pontscho
parents: 6218
diff changeset
84 #define evMovieTime 7001
e5dda05f9aab cleanup
pontscho
parents: 6218
diff changeset
85 #define evRedraw 7002
e5dda05f9aab cleanup
pontscho
parents: 6218
diff changeset
86 #define evHideWindow 7003
e5dda05f9aab cleanup
pontscho
parents: 6218
diff changeset
87 #define evShowWindow 7004
e5dda05f9aab cleanup
pontscho
parents: 6218
diff changeset
88 #define evFirstLoad 7005
e5dda05f9aab cleanup
pontscho
parents: 6218
diff changeset
89
e5dda05f9aab cleanup
pontscho
parents: 6218
diff changeset
90 // ----------------------
e5dda05f9aab cleanup
pontscho
parents: 6218
diff changeset
91
e5dda05f9aab cleanup
pontscho
parents: 6218
diff changeset
92 typedef struct
e5dda05f9aab cleanup
pontscho
parents: 6218
diff changeset
93 {
e5dda05f9aab cleanup
pontscho
parents: 6218
diff changeset
94 int msg;
e5dda05f9aab cleanup
pontscho
parents: 6218
diff changeset
95 char * name;
e5dda05f9aab cleanup
pontscho
parents: 6218
diff changeset
96 } evName;
e5dda05f9aab cleanup
pontscho
parents: 6218
diff changeset
97
e5dda05f9aab cleanup
pontscho
parents: 6218
diff changeset
98 extern int evBoxs;
e5dda05f9aab cleanup
pontscho
parents: 6218
diff changeset
99 extern evName evNames[];
1693
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
100
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
101 #define itNULL 0
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
102 #define itButton 101 // button
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
103 #define itHPotmeter 102 // horizontal potmeter
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
104 #define itVPotmeter 103 // vertical potmeter
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
105 #define itSLabel 104 // static label
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
106 #define itDLabel 105 // dynamic label
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
107 #define itBase 106
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
108 #define itPotmeter 107
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
109 #define itFont 108
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
110 // ---
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
111 #define btnPressed 0
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
112 #define btnReleased 1
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
113 #define btnDisabled 2
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
114 // ---
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
115 typedef struct
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
116 {
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
117 int type;
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
118 // ---
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
119 int x,y;
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
120 int width,height;
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
121 // ---
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
122 int px,py,psx,psy;
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
123 // ---
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
124 int msg,msg2;
8300
bf8e8144dfa6 10l fix in item disabling (vagymi)
pontscho
parents: 8280
diff changeset
125 int pressed,tmp;
1693
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
126 int key,key2;
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
127 int phases;
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
128 float value;
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
129 txSample Bitmap;
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
130 txSample Mask;
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
131 // ---
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
132 int fontid;
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
133 int align;
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
134 char * label;
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
135 // ---
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
136 int event;
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
137 } wItem;
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
138
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
139 typedef struct
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
140 {
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
141 wItem main;
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
142 wsTWindow mainWindow;
2851
b64fa5d25142 add roleld mouse support and some small bugfix. neked jol a testedbe.
pontscho
parents: 1866
diff changeset
143 int mainDecoration;
1693
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
144
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
145 wItem sub;
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
146 wsTWindow subWindow;
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
147 int subR,subG,subB;
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
148 int subPixel;
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
149
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
150 wItem eq;
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
151 wsTWindow eqWindow;
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
152
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
153 wItem menuBase;
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
154 wItem menuSelected;
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
155 wsTWindow menuWindow;
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
156
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
157 // ---
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
158 int NumberOfItems;
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
159 wItem Items[256];
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
160 // ---
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
161 int NumberOfMenuItems;
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
162 wItem MenuItems[32];
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
163 } listItems;
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
164
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
165 extern listItems appMPlayer;
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
166
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
167 extern char * skinDirInHome;
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
168 extern char * skinMPlayerDir;
1866
32b1bb50a0e8 some bug fix, and add decoration item to skin conffile. faszom(C)
pontscho
parents: 1729
diff changeset
169 extern char * skinName;
1693
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
170
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
171 extern void appInitStruct( listItems * item );
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
172 extern void appClearItem( wItem * item );
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
173 extern void appCopy( listItems * item1,listItems * item2 );
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
174 extern int appFindMessage( unsigned char * str );
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
175 extern int appFindKey( unsigned char * name );
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
176
8280
72700fefd3dc no seeking if stream is STREAMTYPE_STREAM (net/stdin)
pontscho
parents: 8058
diff changeset
177 extern void btnModify( int event,float state );
72700fefd3dc no seeking if stream is STREAMTYPE_STREAM (net/stdin)
pontscho
parents: 8058
diff changeset
178 extern float btnGetValue( int event );
72700fefd3dc no seeking if stream is STREAMTYPE_STREAM (net/stdin)
pontscho
parents: 8058
diff changeset
179 extern void btnSet( int event,int set );
72700fefd3dc no seeking if stream is STREAMTYPE_STREAM (net/stdin)
pontscho
parents: 8058
diff changeset
180
1693
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
181 #endif