annotate Gui/app.h @ 17482:e6dc1aeaf8a5

fix aac in mov/mp4
author michael
date Wed, 25 Jan 2006 15:49:31 +0000
parents 9635dcba8f29
children 9a5a62f480e6
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
14589
9635dcba8f29 Add half size entry to the GMPlayer menu.
diego
parents: 9625
diff changeset
35 #define evHalfSize 301
8043
e5dda05f9aab cleanup
pontscho
parents: 6218
diff changeset
36 #define evNormalSize 24
e5dda05f9aab cleanup
pontscho
parents: 6218
diff changeset
37 #define evDoubleSize 25
e5dda05f9aab cleanup
pontscho
parents: 6218
diff changeset
38 #define evFullScreen 26
e5dda05f9aab cleanup
pontscho
parents: 6218
diff changeset
39
e5dda05f9aab cleanup
pontscho
parents: 6218
diff changeset
40 #define evSetMoviePosition 27
e5dda05f9aab cleanup
pontscho
parents: 6218
diff changeset
41 #define evSetVolume 28
e5dda05f9aab cleanup
pontscho
parents: 6218
diff changeset
42 #define evSetBalance 29
e5dda05f9aab cleanup
pontscho
parents: 6218
diff changeset
43 #define evMute 30
e5dda05f9aab cleanup
pontscho
parents: 6218
diff changeset
44
e5dda05f9aab cleanup
pontscho
parents: 6218
diff changeset
45 #define evIncVolume 31
e5dda05f9aab cleanup
pontscho
parents: 6218
diff changeset
46 #define evDecVolume 32
e5dda05f9aab cleanup
pontscho
parents: 6218
diff changeset
47 #define evIncAudioBufDelay 33
e5dda05f9aab cleanup
pontscho
parents: 6218
diff changeset
48 #define evDecAudioBufDelay 34
e5dda05f9aab cleanup
pontscho
parents: 6218
diff changeset
49 #define evIncBalance 35
e5dda05f9aab cleanup
pontscho
parents: 6218
diff changeset
50 #define evDecBalance 36
e5dda05f9aab cleanup
pontscho
parents: 6218
diff changeset
51
e5dda05f9aab cleanup
pontscho
parents: 6218
diff changeset
52 #define evHelp 37
e5dda05f9aab cleanup
pontscho
parents: 6218
diff changeset
53
e5dda05f9aab cleanup
pontscho
parents: 6218
diff changeset
54 #define evLoadSubtitle 38
e5dda05f9aab cleanup
pontscho
parents: 6218
diff changeset
55 #define evDropSubtitle 43
e5dda05f9aab cleanup
pontscho
parents: 6218
diff changeset
56 #define evPlayDVD 39
e5dda05f9aab cleanup
pontscho
parents: 6218
diff changeset
57 #define evPlayVCD 40
e5dda05f9aab cleanup
pontscho
parents: 6218
diff changeset
58 #define evPlayNetwork 41
e5dda05f9aab cleanup
pontscho
parents: 6218
diff changeset
59 #define evLoadAudioFile 42
e5dda05f9aab cleanup
pontscho
parents: 6218
diff changeset
60 #define evSetAspect 44
8312
ef8c992672f4 - audio track handling in menu (idea from R¸«ädiger Kuhlmann)
pontscho
parents: 8300
diff changeset
61 #define evSetAudio 45
8423
c6a1a5b6ba25 - fix three submenu bug
pontscho
parents: 8380
diff changeset
62 #define evSetVideo 46
8380
743fa83d9e2d need this
pontscho
parents: 8312
diff changeset
63 // 47 ...
8043
e5dda05f9aab cleanup
pontscho
parents: 6218
diff changeset
64
e5dda05f9aab cleanup
pontscho
parents: 6218
diff changeset
65 #define evExit 1000
e5dda05f9aab cleanup
pontscho
parents: 6218
diff changeset
66
e5dda05f9aab cleanup
pontscho
parents: 6218
diff changeset
67 // --- General events ---
e5dda05f9aab cleanup
pontscho
parents: 6218
diff changeset
68
e5dda05f9aab cleanup
pontscho
parents: 6218
diff changeset
69 #define evFileLoaded 5000
e5dda05f9aab cleanup
pontscho
parents: 6218
diff changeset
70 #define evHideMouseCursor 5001
e5dda05f9aab cleanup
pontscho
parents: 6218
diff changeset
71 #define evMessageBox 5002
e5dda05f9aab cleanup
pontscho
parents: 6218
diff changeset
72 #define evGeneralTimer 5003
e5dda05f9aab cleanup
pontscho
parents: 6218
diff changeset
73 #define evGtkIsOk 5004
e5dda05f9aab cleanup
pontscho
parents: 6218
diff changeset
74 #define evShowPopUpMenu 5005
e5dda05f9aab cleanup
pontscho
parents: 6218
diff changeset
75 #define evHidePopUpMenu 5006
e5dda05f9aab cleanup
pontscho
parents: 6218
diff changeset
76 #define evSetDVDAudio 5007
e5dda05f9aab cleanup
pontscho
parents: 6218
diff changeset
77 #define evSetDVDSubtitle 5008
e5dda05f9aab cleanup
pontscho
parents: 6218
diff changeset
78 #define evSetDVDTitle 5009
e5dda05f9aab cleanup
pontscho
parents: 6218
diff changeset
79 #define evSetDVDChapter 5010
e5dda05f9aab cleanup
pontscho
parents: 6218
diff changeset
80 #define evSubtitleLoaded 5011
e5dda05f9aab cleanup
pontscho
parents: 6218
diff changeset
81 #define evSetVCDTrack 5012
e5dda05f9aab cleanup
pontscho
parents: 6218
diff changeset
82 #define evSetURL 5013
e5dda05f9aab cleanup
pontscho
parents: 6218
diff changeset
83
e5dda05f9aab cleanup
pontscho
parents: 6218
diff changeset
84 #define evFName 7000
e5dda05f9aab cleanup
pontscho
parents: 6218
diff changeset
85 #define evMovieTime 7001
e5dda05f9aab cleanup
pontscho
parents: 6218
diff changeset
86 #define evRedraw 7002
e5dda05f9aab cleanup
pontscho
parents: 6218
diff changeset
87 #define evHideWindow 7003
e5dda05f9aab cleanup
pontscho
parents: 6218
diff changeset
88 #define evShowWindow 7004
e5dda05f9aab cleanup
pontscho
parents: 6218
diff changeset
89 #define evFirstLoad 7005
e5dda05f9aab cleanup
pontscho
parents: 6218
diff changeset
90
e5dda05f9aab cleanup
pontscho
parents: 6218
diff changeset
91 // ----------------------
e5dda05f9aab cleanup
pontscho
parents: 6218
diff changeset
92
e5dda05f9aab cleanup
pontscho
parents: 6218
diff changeset
93 typedef struct
e5dda05f9aab cleanup
pontscho
parents: 6218
diff changeset
94 {
e5dda05f9aab cleanup
pontscho
parents: 6218
diff changeset
95 int msg;
e5dda05f9aab cleanup
pontscho
parents: 6218
diff changeset
96 char * name;
e5dda05f9aab cleanup
pontscho
parents: 6218
diff changeset
97 } evName;
e5dda05f9aab cleanup
pontscho
parents: 6218
diff changeset
98
e5dda05f9aab cleanup
pontscho
parents: 6218
diff changeset
99 extern int evBoxs;
e5dda05f9aab cleanup
pontscho
parents: 6218
diff changeset
100 extern evName evNames[];
1693
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
101
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
102 #define itNULL 0
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
103 #define itButton 101 // button
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
104 #define itHPotmeter 102 // horizontal potmeter
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
105 #define itVPotmeter 103 // vertical potmeter
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
106 #define itSLabel 104 // static label
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
107 #define itDLabel 105 // dynamic label
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
108 #define itBase 106
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
109 #define itPotmeter 107
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
110 #define itFont 108
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
111 // ---
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
112 #define btnPressed 0
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
113 #define btnReleased 1
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
114 #define btnDisabled 2
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
115 // ---
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
116 typedef struct
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
117 {
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
118 int type;
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
119 // ---
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
120 int x,y;
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
121 int width,height;
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
122 // ---
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
123 int px,py,psx,psy;
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
124 // ---
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
125 int msg,msg2;
8300
bf8e8144dfa6 10l fix in item disabling (vagymi)
pontscho
parents: 8280
diff changeset
126 int pressed,tmp;
1693
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
127 int key,key2;
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
128 int phases;
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
129 float value;
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
130 txSample Bitmap;
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
131 txSample Mask;
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
132 // ---
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
133 int fontid;
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
134 int align;
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
135 char * label;
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
136 // ---
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
137 int event;
8973
0a665389cf2b - add playbar
pontscho
parents: 8949
diff changeset
138 // ---
0a665389cf2b - add playbar
pontscho
parents: 8949
diff changeset
139 int R,G,B;
1693
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
140 } wItem;
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
141
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
142 typedef struct
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
143 {
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
144 wItem main;
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
145 wsTWindow mainWindow;
2851
b64fa5d25142 add roleld mouse support and some small bugfix. neked jol a testedbe.
pontscho
parents: 1866
diff changeset
146 int mainDecoration;
1693
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
147
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
148 wItem sub;
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
149 wsTWindow subWindow;
8949
d07ab8e088a9 correct skin changing
pontscho
parents: 8423
diff changeset
150
d07ab8e088a9 correct skin changing
pontscho
parents: 8423
diff changeset
151 wItem bar;
d07ab8e088a9 correct skin changing
pontscho
parents: 8423
diff changeset
152 wsTWindow barWindow;
d07ab8e088a9 correct skin changing
pontscho
parents: 8423
diff changeset
153 int barIsPresent;
8973
0a665389cf2b - add playbar
pontscho
parents: 8949
diff changeset
154
1693
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
155 wItem menuBase;
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
156 wItem menuSelected;
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
157 wsTWindow menuWindow;
8949
d07ab8e088a9 correct skin changing
pontscho
parents: 8423
diff changeset
158 int menuIsPresent;
1693
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
159
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
160 // ---
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
161 int NumberOfItems;
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
162 wItem Items[256];
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
163 // ---
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
164 int NumberOfMenuItems;
8973
0a665389cf2b - add playbar
pontscho
parents: 8949
diff changeset
165 wItem MenuItems[64];
0a665389cf2b - add playbar
pontscho
parents: 8949
diff changeset
166 // ---
0a665389cf2b - add playbar
pontscho
parents: 8949
diff changeset
167 int NumberOfBarItems;
9625
bc24dd70c6e2 many 10l for me ...
pontscho
parents: 8973
diff changeset
168 wItem barItems[256];
1693
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
169 } listItems;
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
170
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
171 extern listItems appMPlayer;
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
172
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
173 extern char * skinDirInHome;
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
174 extern char * skinMPlayerDir;
1866
32b1bb50a0e8 some bug fix, and add decoration item to skin conffile. faszom(C)
pontscho
parents: 1729
diff changeset
175 extern char * skinName;
1693
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
176
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
177 extern void appInitStruct( listItems * item );
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
178 extern void appClearItem( wItem * item );
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
179 extern void appCopy( listItems * item1,listItems * item2 );
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
180 extern int appFindMessage( unsigned char * str );
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
181 extern int appFindKey( unsigned char * name );
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
182
8280
72700fefd3dc no seeking if stream is STREAMTYPE_STREAM (net/stdin)
pontscho
parents: 8058
diff changeset
183 extern void btnModify( int event,float state );
72700fefd3dc no seeking if stream is STREAMTYPE_STREAM (net/stdin)
pontscho
parents: 8058
diff changeset
184 extern float btnGetValue( int event );
72700fefd3dc no seeking if stream is STREAMTYPE_STREAM (net/stdin)
pontscho
parents: 8058
diff changeset
185 extern void btnSet( int event,int set );
72700fefd3dc no seeking if stream is STREAMTYPE_STREAM (net/stdin)
pontscho
parents: 8058
diff changeset
186
1693
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
187 #endif