annotate Gui/app.h @ 9450:915590b8193b

mwallp compiles again (michael moved libpostproc.....)
author gabucino
date Mon, 17 Feb 2003 11:45:10 +0000
parents 0a665389cf2b
children bc24dd70c6e2
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;
8973
0a665389cf2b - add playbar
pontscho
parents: 8949
diff changeset
137 // ---
0a665389cf2b - add playbar
pontscho
parents: 8949
diff changeset
138 int R,G,B;
1693
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
139 } wItem;
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
140
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
141 typedef struct
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
142 {
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
143 wItem main;
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
144 wsTWindow mainWindow;
2851
b64fa5d25142 add roleld mouse support and some small bugfix. neked jol a testedbe.
pontscho
parents: 1866
diff changeset
145 int mainDecoration;
1693
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
146
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
147 wItem sub;
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
148 wsTWindow subWindow;
8949
d07ab8e088a9 correct skin changing
pontscho
parents: 8423
diff changeset
149
d07ab8e088a9 correct skin changing
pontscho
parents: 8423
diff changeset
150 wItem bar;
d07ab8e088a9 correct skin changing
pontscho
parents: 8423
diff changeset
151 wsTWindow barWindow;
d07ab8e088a9 correct skin changing
pontscho
parents: 8423
diff changeset
152 int barIsPresent;
8973
0a665389cf2b - add playbar
pontscho
parents: 8949
diff changeset
153
1693
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
154 wItem menuBase;
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
155 wItem menuSelected;
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
156 wsTWindow menuWindow;
8949
d07ab8e088a9 correct skin changing
pontscho
parents: 8423
diff changeset
157 int menuIsPresent;
1693
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
158
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
159 // ---
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
160 int NumberOfItems;
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
161 wItem Items[256];
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
162 // ---
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
163 int NumberOfMenuItems;
8973
0a665389cf2b - add playbar
pontscho
parents: 8949
diff changeset
164 wItem MenuItems[64];
0a665389cf2b - add playbar
pontscho
parents: 8949
diff changeset
165 // ---
0a665389cf2b - add playbar
pontscho
parents: 8949
diff changeset
166 int NumberOfBarItems;
0a665389cf2b - add playbar
pontscho
parents: 8949
diff changeset
167 wItem barItems[32];
1693
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
168 } listItems;
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
169
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
170 extern listItems appMPlayer;
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
171
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
172 extern char * skinDirInHome;
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
173 extern char * skinMPlayerDir;
1866
32b1bb50a0e8 some bug fix, and add decoration item to skin conffile. faszom(C)
pontscho
parents: 1729
diff changeset
174 extern char * skinName;
1693
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
175
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
176 extern void appInitStruct( listItems * item );
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
177 extern void appClearItem( wItem * item );
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
178 extern void appCopy( listItems * item1,listItems * item2 );
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
179 extern int appFindMessage( unsigned char * str );
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
180 extern int appFindKey( unsigned char * name );
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
181
8280
72700fefd3dc no seeking if stream is STREAMTYPE_STREAM (net/stdin)
pontscho
parents: 8058
diff changeset
182 extern void btnModify( int event,float state );
72700fefd3dc no seeking if stream is STREAMTYPE_STREAM (net/stdin)
pontscho
parents: 8058
diff changeset
183 extern float btnGetValue( int event );
72700fefd3dc no seeking if stream is STREAMTYPE_STREAM (net/stdin)
pontscho
parents: 8058
diff changeset
184 extern void btnSet( int event,int set );
72700fefd3dc no seeking if stream is STREAMTYPE_STREAM (net/stdin)
pontscho
parents: 8058
diff changeset
185
1693
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
186 #endif