Mercurial > mplayer.hg
annotate Gui/app.h @ 8319:7a56c1b0baf5
fixes
author | gabucino |
---|---|
date | Sat, 30 Nov 2002 22:15:42 +0000 |
parents | ef8c992672f4 |
children | 743fa83d9e2d |
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 | |
35 #define evNormalSize 24 | |
36 #define evDoubleSize 25 | |
37 #define evFullScreen 26 | |
38 | |
39 #define evSetMoviePosition 27 | |
40 #define evSetVolume 28 | |
41 #define evSetBalance 29 | |
42 #define evMute 30 | |
43 | |
44 #define evIncVolume 31 | |
45 #define evDecVolume 32 | |
46 #define evIncAudioBufDelay 33 | |
47 #define evDecAudioBufDelay 34 | |
48 #define evIncBalance 35 | |
49 #define evDecBalance 36 | |
50 | |
51 #define evHelp 37 | |
52 | |
53 #define evLoadSubtitle 38 | |
54 #define evDropSubtitle 43 | |
55 #define evPlayDVD 39 | |
56 #define evPlayVCD 40 | |
57 #define evPlayNetwork 41 | |
58 #define evLoadAudioFile 42 | |
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 |
ef8c992672f4
- audio track handling in menu (idea from R¸«ädiger Kuhlmann)
pontscho
parents:
8300
diff
changeset
|
61 // 46 ... |
8043 | 62 |
63 #define evExit 1000 | |
64 | |
65 // --- General events --- | |
66 | |
67 #define evFileLoaded 5000 | |
68 #define evHideMouseCursor 5001 | |
69 #define evMessageBox 5002 | |
70 #define evGeneralTimer 5003 | |
71 #define evGtkIsOk 5004 | |
72 #define evShowPopUpMenu 5005 | |
73 #define evHidePopUpMenu 5006 | |
74 #define evSetDVDAudio 5007 | |
75 #define evSetDVDSubtitle 5008 | |
76 #define evSetDVDTitle 5009 | |
77 #define evSetDVDChapter 5010 | |
78 #define evSubtitleLoaded 5011 | |
79 #define evSetVCDTrack 5012 | |
80 #define evSetURL 5013 | |
81 | |
82 #define evFName 7000 | |
83 #define evMovieTime 7001 | |
84 #define evRedraw 7002 | |
85 #define evHideWindow 7003 | |
86 #define evShowWindow 7004 | |
87 #define evFirstLoad 7005 | |
88 | |
89 // ---------------------- | |
90 | |
91 typedef struct | |
92 { | |
93 int msg; | |
94 char * name; | |
95 } evName; | |
96 | |
97 extern int evBoxs; | |
98 extern evName evNames[]; | |
1693 | 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; | |
8300 | 124 int pressed,tmp; |
1693 | 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 } wItem; | |
137 | |
138 typedef struct | |
139 { | |
140 wItem main; | |
141 wsTWindow mainWindow; | |
2851
b64fa5d25142
add roleld mouse support and some small bugfix. neked jol a testedbe.
pontscho
parents:
1866
diff
changeset
|
142 int mainDecoration; |
1693 | 143 |
144 wItem sub; | |
145 wsTWindow subWindow; | |
146 int subR,subG,subB; | |
147 int subPixel; | |
148 | |
149 wItem eq; | |
150 wsTWindow eqWindow; | |
151 | |
152 wItem menuBase; | |
153 wItem menuSelected; | |
154 wsTWindow menuWindow; | |
155 | |
156 // --- | |
157 int NumberOfItems; | |
158 wItem Items[256]; | |
159 // --- | |
160 int NumberOfMenuItems; | |
161 wItem MenuItems[32]; | |
162 } listItems; | |
163 | |
164 extern listItems appMPlayer; | |
165 | |
166 extern char * skinDirInHome; | |
167 extern char * skinMPlayerDir; | |
1866
32b1bb50a0e8
some bug fix, and add decoration item to skin conffile. faszom(C)
pontscho
parents:
1729
diff
changeset
|
168 extern char * skinName; |
1693 | 169 |
170 extern void appInitStruct( listItems * item ); | |
171 extern void appClearItem( wItem * item ); | |
172 extern void appCopy( listItems * item1,listItems * item2 ); | |
173 extern int appFindMessage( unsigned char * str ); | |
174 extern int appFindKey( unsigned char * name ); | |
175 | |
8280
72700fefd3dc
no seeking if stream is STREAMTYPE_STREAM (net/stdin)
pontscho
parents:
8058
diff
changeset
|
176 extern void btnModify( int event,float state ); |
72700fefd3dc
no seeking if stream is STREAMTYPE_STREAM (net/stdin)
pontscho
parents:
8058
diff
changeset
|
177 extern float btnGetValue( int event ); |
72700fefd3dc
no seeking if stream is STREAMTYPE_STREAM (net/stdin)
pontscho
parents:
8058
diff
changeset
|
178 extern void btnSet( int event,int set ); |
72700fefd3dc
no seeking if stream is STREAMTYPE_STREAM (net/stdin)
pontscho
parents:
8058
diff
changeset
|
179 |
1693 | 180 #endif |