Mercurial > mplayer.hg
annotate Gui/app.h @ 10425:82387bdeb8b7
more generated files
author | diego |
---|---|
date | Sun, 13 Jul 2003 23:30:28 +0000 |
parents | bc24dd70c6e2 |
children | 9635dcba8f29 |
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 |
8423 | 61 #define evSetVideo 46 |
8380 | 62 // 47 ... |
8043 | 63 |
64 #define evExit 1000 | |
65 | |
66 // --- General events --- | |
67 | |
68 #define evFileLoaded 5000 | |
69 #define evHideMouseCursor 5001 | |
70 #define evMessageBox 5002 | |
71 #define evGeneralTimer 5003 | |
72 #define evGtkIsOk 5004 | |
73 #define evShowPopUpMenu 5005 | |
74 #define evHidePopUpMenu 5006 | |
75 #define evSetDVDAudio 5007 | |
76 #define evSetDVDSubtitle 5008 | |
77 #define evSetDVDTitle 5009 | |
78 #define evSetDVDChapter 5010 | |
79 #define evSubtitleLoaded 5011 | |
80 #define evSetVCDTrack 5012 | |
81 #define evSetURL 5013 | |
82 | |
83 #define evFName 7000 | |
84 #define evMovieTime 7001 | |
85 #define evRedraw 7002 | |
86 #define evHideWindow 7003 | |
87 #define evShowWindow 7004 | |
88 #define evFirstLoad 7005 | |
89 | |
90 // ---------------------- | |
91 | |
92 typedef struct | |
93 { | |
94 int msg; | |
95 char * name; | |
96 } evName; | |
97 | |
98 extern int evBoxs; | |
99 extern evName evNames[]; | |
1693 | 100 |
101 #define itNULL 0 | |
102 #define itButton 101 // button | |
103 #define itHPotmeter 102 // horizontal potmeter | |
104 #define itVPotmeter 103 // vertical potmeter | |
105 #define itSLabel 104 // static label | |
106 #define itDLabel 105 // dynamic label | |
107 #define itBase 106 | |
108 #define itPotmeter 107 | |
109 #define itFont 108 | |
110 // --- | |
111 #define btnPressed 0 | |
112 #define btnReleased 1 | |
113 #define btnDisabled 2 | |
114 // --- | |
115 typedef struct | |
116 { | |
117 int type; | |
118 // --- | |
119 int x,y; | |
120 int width,height; | |
121 // --- | |
122 int px,py,psx,psy; | |
123 // --- | |
124 int msg,msg2; | |
8300 | 125 int pressed,tmp; |
1693 | 126 int key,key2; |
127 int phases; | |
128 float value; | |
129 txSample Bitmap; | |
130 txSample Mask; | |
131 // --- | |
132 int fontid; | |
133 int align; | |
134 char * label; | |
135 // --- | |
136 int event; | |
8973 | 137 // --- |
138 int R,G,B; | |
1693 | 139 } wItem; |
140 | |
141 typedef struct | |
142 { | |
143 wItem main; | |
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 | 146 |
147 wItem sub; | |
148 wsTWindow subWindow; | |
8949 | 149 |
150 wItem bar; | |
151 wsTWindow barWindow; | |
152 int barIsPresent; | |
8973 | 153 |
1693 | 154 wItem menuBase; |
155 wItem menuSelected; | |
156 wsTWindow menuWindow; | |
8949 | 157 int menuIsPresent; |
1693 | 158 |
159 // --- | |
160 int NumberOfItems; | |
161 wItem Items[256]; | |
162 // --- | |
163 int NumberOfMenuItems; | |
8973 | 164 wItem MenuItems[64]; |
165 // --- | |
166 int NumberOfBarItems; | |
9625 | 167 wItem barItems[256]; |
1693 | 168 } listItems; |
169 | |
170 extern listItems appMPlayer; | |
171 | |
172 extern char * skinDirInHome; | |
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 | 175 |
176 extern void appInitStruct( listItems * item ); | |
177 extern void appClearItem( wItem * item ); | |
178 extern void appCopy( listItems * item1,listItems * item2 ); | |
179 extern int appFindMessage( unsigned char * str ); | |
180 extern int appFindKey( unsigned char * name ); | |
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 | 186 #endif |