Mercurial > mplayer.hg
annotate Gui/app.h @ 19887:1259d6add8e6
When one of the PCM configuration function in init() fails, abort
immediately instead of continuing with the remaining calls that would
fail anyway because the device or some variable wasn't properly
initialized in this case.
author | cladisch |
---|---|
date | Mon, 18 Sep 2006 16:29:27 +0000 |
parents | 08888397444e |
children |
rev | line source |
---|---|
1693 | 1 |
8043 | 2 #ifndef __APPS_H |
3 #define __APPS_H | |
1693 | 4 |
8058 | 5 #include "bitmap.h" |
1693 | 6 #include "wm/ws.h" |
7 #include "wm/wskeys.h" | |
8043 | 8 |
9 // --- User events ------ | |
10 | |
11 #define evNone 0 | |
12 #define evPlay 1 | |
13 #define evStop 2 | |
14 #define evPause 3 | |
15 #define evPrev 6 | |
16 #define evNext 7 | |
17 #define evLoad 8 | |
18 #define evEqualizer 9 | |
19 #define evPlayList 10 | |
20 #define evIconify 11 | |
21 #define evAbout 12 | |
22 #define evLoadPlay 13 | |
23 #define evPreferences 14 | |
24 #define evSkinBrowser 15 | |
25 #define evPlaySwitchToPause 16 | |
26 #define evPauseSwitchToPlay 17 | |
27 | |
28 #define evBackward10sec 18 | |
29 #define evForward10sec 19 | |
30 #define evBackward1min 20 | |
31 #define evForward1min 21 | |
32 #define evBackward10min 22 | |
33 #define evForward10min 23 | |
34 | |
14589 | 35 #define evHalfSize 301 |
8043 | 36 #define evNormalSize 24 |
37 #define evDoubleSize 25 | |
38 #define evFullScreen 26 | |
39 | |
40 #define evSetMoviePosition 27 | |
41 #define evSetVolume 28 | |
42 #define evSetBalance 29 | |
43 #define evMute 30 | |
44 | |
45 #define evIncVolume 31 | |
46 #define evDecVolume 32 | |
47 #define evIncAudioBufDelay 33 | |
48 #define evDecAudioBufDelay 34 | |
49 #define evIncBalance 35 | |
50 #define evDecBalance 36 | |
51 | |
52 #define evHelp 37 | |
53 | |
54 #define evLoadSubtitle 38 | |
55 #define evDropSubtitle 43 | |
56 #define evPlayDVD 39 | |
57 #define evPlayVCD 40 | |
58 #define evPlayNetwork 41 | |
59 #define evLoadAudioFile 42 | |
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 | 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 | 65 |
66 #define evExit 1000 | |
67 | |
68 // --- General events --- | |
69 | |
70 #define evFileLoaded 5000 | |
71 #define evHideMouseCursor 5001 | |
72 #define evMessageBox 5002 | |
73 #define evGeneralTimer 5003 | |
74 #define evGtkIsOk 5004 | |
75 #define evShowPopUpMenu 5005 | |
76 #define evHidePopUpMenu 5006 | |
77 #define evSetDVDAudio 5007 | |
78 #define evSetDVDSubtitle 5008 | |
79 #define evSetDVDTitle 5009 | |
80 #define evSetDVDChapter 5010 | |
81 #define evSubtitleLoaded 5011 | |
82 #define evSetVCDTrack 5012 | |
83 #define evSetURL 5013 | |
84 | |
85 #define evFName 7000 | |
86 #define evMovieTime 7001 | |
87 #define evRedraw 7002 | |
88 #define evHideWindow 7003 | |
89 #define evShowWindow 7004 | |
90 #define evFirstLoad 7005 | |
91 | |
92 // ---------------------- | |
93 | |
94 typedef struct | |
95 { | |
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 | 98 } evName; |
99 | |
100 extern int evBoxs; | |
101 extern evName evNames[]; | |
1693 | 102 |
103 #define itNULL 0 | |
104 #define itButton 101 // button | |
105 #define itHPotmeter 102 // horizontal potmeter | |
106 #define itVPotmeter 103 // vertical potmeter | |
107 #define itSLabel 104 // static label | |
108 #define itDLabel 105 // dynamic label | |
109 #define itBase 106 | |
110 #define itPotmeter 107 | |
111 #define itFont 108 | |
112 // --- | |
113 #define btnPressed 0 | |
114 #define btnReleased 1 | |
115 #define btnDisabled 2 | |
116 // --- | |
117 typedef struct | |
118 { | |
119 int type; | |
120 // --- | |
121 int x,y; | |
122 int width,height; | |
123 // --- | |
124 int px,py,psx,psy; | |
125 // --- | |
126 int msg,msg2; | |
8300 | 127 int pressed,tmp; |
1693 | 128 int key,key2; |
129 int phases; | |
130 float value; | |
131 txSample Bitmap; | |
132 txSample Mask; | |
133 // --- | |
134 int fontid; | |
135 int align; | |
136 char * label; | |
137 // --- | |
138 int event; | |
8973 | 139 // --- |
140 int R,G,B; | |
1693 | 141 } wItem; |
142 | |
143 typedef struct | |
144 { | |
145 wItem main; | |
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 | 148 |
149 wItem sub; | |
150 wsTWindow subWindow; | |
8949 | 151 |
152 wItem bar; | |
153 wsTWindow barWindow; | |
154 int barIsPresent; | |
8973 | 155 |
1693 | 156 wItem menuBase; |
157 wItem menuSelected; | |
158 wsTWindow menuWindow; | |
8949 | 159 int menuIsPresent; |
1693 | 160 |
161 // --- | |
162 int NumberOfItems; | |
163 wItem Items[256]; | |
164 // --- | |
165 int NumberOfMenuItems; | |
8973 | 166 wItem MenuItems[64]; |
167 // --- | |
168 int NumberOfBarItems; | |
9625 | 169 wItem barItems[256]; |
1693 | 170 } listItems; |
171 | |
172 extern listItems appMPlayer; | |
173 | |
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 | 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 | 179 |
180 extern void appInitStruct( listItems * item ); | |
181 extern void appClearItem( wItem * item ); | |
182 extern void appCopy( listItems * item1,listItems * item2 ); | |
183 extern int appFindMessage( unsigned char * str ); | |
184 extern int appFindKey( unsigned char * name ); | |
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 | 190 #endif |