annotate Gui/app.h @ 19348:c4104abaaf46

cosmetics: Rename some variables for consistency.
author diego
date Mon, 07 Aug 2006 08:57:43 +0000
parents 08888397444e
children
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
18118
f9a939c204ad Adds "cheap" subtitle switching for non-DVD playouts (for ex. OGG or MKV).
gpoirier
parents: 17974
diff changeset
63 #define evSetSubtitle 47
f9a939c204ad Adds "cheap" subtitle switching for non-DVD playouts (for ex. OGG or MKV).
gpoirier
parents: 17974
diff changeset
64 // 48 ...
8043
e5dda05f9aab cleanup
pontscho
parents: 6218
diff changeset
65
e5dda05f9aab cleanup
pontscho
parents: 6218
diff changeset
66 #define evExit 1000
e5dda05f9aab cleanup
pontscho
parents: 6218
diff changeset
67
e5dda05f9aab cleanup
pontscho
parents: 6218
diff changeset
68 // --- General events ---
e5dda05f9aab cleanup
pontscho
parents: 6218
diff changeset
69
e5dda05f9aab cleanup
pontscho
parents: 6218
diff changeset
70 #define evFileLoaded 5000
e5dda05f9aab cleanup
pontscho
parents: 6218
diff changeset
71 #define evHideMouseCursor 5001
e5dda05f9aab cleanup
pontscho
parents: 6218
diff changeset
72 #define evMessageBox 5002
e5dda05f9aab cleanup
pontscho
parents: 6218
diff changeset
73 #define evGeneralTimer 5003
e5dda05f9aab cleanup
pontscho
parents: 6218
diff changeset
74 #define evGtkIsOk 5004
e5dda05f9aab cleanup
pontscho
parents: 6218
diff changeset
75 #define evShowPopUpMenu 5005
e5dda05f9aab cleanup
pontscho
parents: 6218
diff changeset
76 #define evHidePopUpMenu 5006
e5dda05f9aab cleanup
pontscho
parents: 6218
diff changeset
77 #define evSetDVDAudio 5007
e5dda05f9aab cleanup
pontscho
parents: 6218
diff changeset
78 #define evSetDVDSubtitle 5008
e5dda05f9aab cleanup
pontscho
parents: 6218
diff changeset
79 #define evSetDVDTitle 5009
e5dda05f9aab cleanup
pontscho
parents: 6218
diff changeset
80 #define evSetDVDChapter 5010
e5dda05f9aab cleanup
pontscho
parents: 6218
diff changeset
81 #define evSubtitleLoaded 5011
e5dda05f9aab cleanup
pontscho
parents: 6218
diff changeset
82 #define evSetVCDTrack 5012
e5dda05f9aab cleanup
pontscho
parents: 6218
diff changeset
83 #define evSetURL 5013
e5dda05f9aab cleanup
pontscho
parents: 6218
diff changeset
84
e5dda05f9aab cleanup
pontscho
parents: 6218
diff changeset
85 #define evFName 7000
e5dda05f9aab cleanup
pontscho
parents: 6218
diff changeset
86 #define evMovieTime 7001
e5dda05f9aab cleanup
pontscho
parents: 6218
diff changeset
87 #define evRedraw 7002
e5dda05f9aab cleanup
pontscho
parents: 6218
diff changeset
88 #define evHideWindow 7003
e5dda05f9aab cleanup
pontscho
parents: 6218
diff changeset
89 #define evShowWindow 7004
e5dda05f9aab cleanup
pontscho
parents: 6218
diff changeset
90 #define evFirstLoad 7005
e5dda05f9aab cleanup
pontscho
parents: 6218
diff changeset
91
e5dda05f9aab cleanup
pontscho
parents: 6218
diff changeset
92 // ----------------------
e5dda05f9aab cleanup
pontscho
parents: 6218
diff changeset
93
e5dda05f9aab cleanup
pontscho
parents: 6218
diff changeset
94 typedef struct
e5dda05f9aab cleanup
pontscho
parents: 6218
diff changeset
95 {
e5dda05f9aab cleanup
pontscho
parents: 6218
diff changeset
96 int msg;
19110
08888397444e marks several strings inside structs as const when they hold just
reynaldo
parents: 18118
diff changeset
97 const char * name;
8043
e5dda05f9aab cleanup
pontscho
parents: 6218
diff changeset
98 } evName;
e5dda05f9aab cleanup
pontscho
parents: 6218
diff changeset
99
e5dda05f9aab cleanup
pontscho
parents: 6218
diff changeset
100 extern int evBoxs;
e5dda05f9aab cleanup
pontscho
parents: 6218
diff changeset
101 extern evName evNames[];
1693
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
102
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
103 #define itNULL 0
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
104 #define itButton 101 // button
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
105 #define itHPotmeter 102 // horizontal potmeter
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
106 #define itVPotmeter 103 // vertical potmeter
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
107 #define itSLabel 104 // static label
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
108 #define itDLabel 105 // dynamic label
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
109 #define itBase 106
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
110 #define itPotmeter 107
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
111 #define itFont 108
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
112 // ---
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
113 #define btnPressed 0
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
114 #define btnReleased 1
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
115 #define btnDisabled 2
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
116 // ---
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
117 typedef struct
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
118 {
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
119 int type;
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
120 // ---
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
121 int x,y;
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
122 int width,height;
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
123 // ---
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
124 int px,py,psx,psy;
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
125 // ---
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
126 int msg,msg2;
8300
bf8e8144dfa6 10l fix in item disabling (vagymi)
pontscho
parents: 8280
diff changeset
127 int pressed,tmp;
1693
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
128 int key,key2;
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
129 int phases;
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
130 float value;
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
131 txSample Bitmap;
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
132 txSample Mask;
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
133 // ---
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
134 int fontid;
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
135 int align;
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
136 char * label;
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
137 // ---
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
138 int event;
8973
0a665389cf2b - add playbar
pontscho
parents: 8949
diff changeset
139 // ---
0a665389cf2b - add playbar
pontscho
parents: 8949
diff changeset
140 int R,G,B;
1693
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
141 } wItem;
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
142
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
143 typedef struct
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
144 {
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
145 wItem main;
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
146 wsTWindow mainWindow;
2851
b64fa5d25142 add roleld mouse support and some small bugfix. neked jol a testedbe.
pontscho
parents: 1866
diff changeset
147 int mainDecoration;
1693
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
148
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
149 wItem sub;
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
150 wsTWindow subWindow;
8949
d07ab8e088a9 correct skin changing
pontscho
parents: 8423
diff changeset
151
d07ab8e088a9 correct skin changing
pontscho
parents: 8423
diff changeset
152 wItem bar;
d07ab8e088a9 correct skin changing
pontscho
parents: 8423
diff changeset
153 wsTWindow barWindow;
d07ab8e088a9 correct skin changing
pontscho
parents: 8423
diff changeset
154 int barIsPresent;
8973
0a665389cf2b - add playbar
pontscho
parents: 8949
diff changeset
155
1693
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
156 wItem menuBase;
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
157 wItem menuSelected;
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
158 wsTWindow menuWindow;
8949
d07ab8e088a9 correct skin changing
pontscho
parents: 8423
diff changeset
159 int menuIsPresent;
1693
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
160
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
161 // ---
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
162 int NumberOfItems;
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
163 wItem Items[256];
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
164 // ---
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
165 int NumberOfMenuItems;
8973
0a665389cf2b - add playbar
pontscho
parents: 8949
diff changeset
166 wItem MenuItems[64];
0a665389cf2b - add playbar
pontscho
parents: 8949
diff changeset
167 // ---
0a665389cf2b - add playbar
pontscho
parents: 8949
diff changeset
168 int NumberOfBarItems;
9625
bc24dd70c6e2 many 10l for me ...
pontscho
parents: 8973
diff changeset
169 wItem barItems[256];
1693
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
170 } listItems;
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
171
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
172 extern listItems appMPlayer;
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
173
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
174 extern char * skinDirInHome;
17974
9a5a62f480e6 Rename the default GUI skins directory from 'Skin' to 'skins', keeping
diego
parents: 14589
diff changeset
175 extern char * skinDirInHome_obsolete;
1693
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
176 extern char * skinMPlayerDir;
17974
9a5a62f480e6 Rename the default GUI skins directory from 'Skin' to 'skins', keeping
diego
parents: 14589
diff changeset
177 extern char * skinMPlayerDir_obsolete;
1866
32b1bb50a0e8 some bug fix, and add decoration item to skin conffile. faszom(C)
pontscho
parents: 1729
diff changeset
178 extern char * skinName;
1693
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
179
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
180 extern void appInitStruct( listItems * item );
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
181 extern void appClearItem( wItem * item );
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
182 extern void appCopy( listItems * item1,listItems * item2 );
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
183 extern int appFindMessage( unsigned char * str );
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
184 extern int appFindKey( unsigned char * name );
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
185
8280
72700fefd3dc no seeking if stream is STREAMTYPE_STREAM (net/stdin)
pontscho
parents: 8058
diff changeset
186 extern void btnModify( int event,float state );
72700fefd3dc no seeking if stream is STREAMTYPE_STREAM (net/stdin)
pontscho
parents: 8058
diff changeset
187 extern float btnGetValue( int event );
72700fefd3dc no seeking if stream is STREAMTYPE_STREAM (net/stdin)
pontscho
parents: 8058
diff changeset
188 extern void btnSet( int event,int set );
72700fefd3dc no seeking if stream is STREAMTYPE_STREAM (net/stdin)
pontscho
parents: 8058
diff changeset
189
1693
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
190 #endif