Mercurial > mplayer.hg
annotate gui/app.h @ 25338:dfba06821076
Ahem, fix breakage of last commit: The AltiVec detection code has three
sections, namely OS X, AMIGAOS4 and the rest.
author | diego |
---|---|
date | Tue, 11 Dec 2007 22:29:22 +0000 |
parents | 2dee54f0d8a0 |
children | 3baf6a2283da |
rev | line source |
---|---|
23077 | 1 |
23689
3f0d00abc073
Do not use leading underscores in multiple inclusion guards, they are reserved.
diego
parents:
23685
diff
changeset
|
2 #ifndef GUI_APP_H |
3f0d00abc073
Do not use leading underscores in multiple inclusion guards, they are reserved.
diego
parents:
23685
diff
changeset
|
3 #define GUI_APP_H |
23077 | 4 |
5 #include "bitmap.h" | |
6 #include "wm/ws.h" | |
7 #include "wm/wskeys.h" | |
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 | |
35 #define evHalfSize 301 | |
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 | |
61 #define evSetAudio 45 | |
62 #define evSetVideo 46 | |
63 #define evSetSubtitle 47 | |
64 // 48 ... | |
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; | |
97 const char * name; | |
98 } evName; | |
99 | |
100 #define itNULL 0 | |
101 #define itButton 101 // button | |
102 #define itHPotmeter 102 // horizontal potmeter | |
103 #define itVPotmeter 103 // vertical potmeter | |
104 #define itSLabel 104 // static label | |
105 #define itDLabel 105 // dynamic label | |
106 #define itBase 106 | |
107 #define itPotmeter 107 | |
108 #define itFont 108 | |
109 // --- | |
110 #define btnPressed 0 | |
111 #define btnReleased 1 | |
112 #define btnDisabled 2 | |
113 // --- | |
114 typedef struct | |
115 { | |
116 int type; | |
117 // --- | |
118 int x,y; | |
119 int width,height; | |
120 // --- | |
121 int px,py,psx,psy; | |
122 // --- | |
123 int msg,msg2; | |
124 int pressed,tmp; | |
125 int key,key2; | |
126 int phases; | |
127 float value; | |
128 txSample Bitmap; | |
129 txSample Mask; | |
130 // --- | |
131 int fontid; | |
132 int align; | |
133 char * label; | |
134 // --- | |
135 int event; | |
136 // --- | |
137 int R,G,B; | |
138 } wItem; | |
139 | |
140 typedef struct | |
141 { | |
142 wItem main; | |
143 wsTWindow mainWindow; | |
144 int mainDecoration; | |
145 | |
146 wItem sub; | |
147 wsTWindow subWindow; | |
148 | |
149 wItem bar; | |
150 wsTWindow barWindow; | |
151 int barIsPresent; | |
152 | |
153 wItem menuBase; | |
154 wItem menuSelected; | |
155 wsTWindow menuWindow; | |
156 int menuIsPresent; | |
157 | |
158 // --- | |
159 int NumberOfItems; | |
160 wItem Items[256]; | |
161 // --- | |
162 int NumberOfMenuItems; | |
163 wItem MenuItems[64]; | |
164 // --- | |
165 int NumberOfBarItems; | |
166 wItem barItems[256]; | |
167 } listItems; | |
168 | |
169 extern listItems appMPlayer; | |
170 | |
171 extern char * skinDirInHome; | |
172 extern char * skinDirInHome_obsolete; | |
173 extern char * skinMPlayerDir; | |
174 extern char * skinMPlayerDir_obsolete; | |
175 extern char * skinName; | |
176 | |
177 extern void appInitStruct( listItems * item ); | |
178 extern void appClearItem( wItem * item ); | |
179 extern void appCopy( listItems * item1,listItems * item2 ); | |
180 extern int appFindMessage( unsigned char * str ); | |
181 extern int appFindKey( unsigned char * name ); | |
182 | |
183 extern void btnModify( int event,float state ); | |
184 extern float btnGetValue( int event ); | |
185 extern void btnSet( int event,int set ); | |
186 | |
187 #endif |