2 * This file is part of MPlayer.
4 * MPlayer is free software; you can redistribute it and/or modify
5 * it under the terms of the GNU General Public License as published by
6 * the Free Software Foundation; either version 2 of the License, or
7 * (at your option) any later version.
9 * MPlayer is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 * GNU General Public License for more details.
14 * You should have received a copy of the GNU General Public License along
15 * with MPlayer; if not, write to the Free Software Foundation, Inc.,
16 * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
19 #ifndef MPLAYER_GUI_APP_H
20 #define MPLAYER_GUI_APP_H
24 #include "wm/wskeys.h"
26 // --- User events ------
40 #define evPreferences 14
41 #define evSkinBrowser 15
42 #define evPlaySwitchToPause 16
43 #define evPauseSwitchToPlay 17
45 #define evBackward10sec 18
46 #define evForward10sec 19
47 #define evBackward1min 20
48 #define evForward1min 21
49 #define evBackward10min 22
50 #define evForward10min 23
52 #define evHalfSize 301
53 #define evNormalSize 24
54 #define evDoubleSize 25
55 #define evFullScreen 26
57 #define evSetMoviePosition 27
58 #define evSetVolume 28
59 #define evSetBalance 29
62 #define evIncVolume 31
63 #define evDecVolume 32
64 #define evIncAudioBufDelay 33
65 #define evDecAudioBufDelay 34
66 #define evIncBalance 35
67 #define evDecBalance 36
71 #define evLoadSubtitle 38
72 #define evDropSubtitle 43
75 #define evPlayNetwork 41
76 #define evLoadAudioFile 42
77 #define evSetAspect 44
80 #define evSetSubtitle 47
85 // --- General events ---
87 #define evFileLoaded 5000
88 #define evHideMouseCursor 5001
89 #define evMessageBox 5002
90 #define evGeneralTimer 5003
91 #define evGtkIsOk 5004
92 #define evShowPopUpMenu 5005
93 #define evHidePopUpMenu 5006
94 #define evSetDVDAudio 5007
95 #define evSetDVDSubtitle 5008
96 #define evSetDVDTitle 5009
97 #define evSetDVDChapter 5010
98 #define evSubtitleLoaded 5011
99 #define evSetVCDTrack 5012
100 #define evSetURL 5013
103 #define evMovieTime 7001
104 #define evRedraw 7002
105 #define evHideWindow 7003
106 #define evShowWindow 7004
107 #define evFirstLoad 7005
109 // ----------------------
118 #define itButton 101 // button
119 #define itHPotmeter 102 // horizontal potmeter
120 #define itVPotmeter 103 // vertical potmeter
121 #define itSLabel 104 // static label
122 #define itDLabel 105 // dynamic label
124 #define itPotmeter 107
128 #define btnReleased 1
129 #define btnDisabled 2
160 wsTWindow mainWindow
;
172 wsTWindow menuWindow
;
179 int NumberOfMenuItems
;
182 int NumberOfBarItems
;
186 extern listItems appMPlayer
;
188 extern char * skinDirInHome
;
189 extern char * skinDirInHome_obsolete
;
190 extern char * skinMPlayerDir
;
191 extern char * skinMPlayerDir_obsolete
;
192 extern char * skinName
;
194 void appInitStruct( listItems
* item
);
195 void appClearItem( wItem
* item
);
196 void appCopy( listItems
* item1
, listItems
* item2
);
197 int appFindMessage( unsigned char * str
);
198 int appFindKey( unsigned char * name
);
200 void btnModify( int event
, float state
);
201 float btnGetValue( int event
);
202 void btnSet( int event
, int set
);
204 #endif /* MPLAYER_GUI_APP_H */