Mercurial > mplayer.hg
annotate Gui/app.h @ 16138:6cada718a809
If scaleh == 1 our destination image must be readable
author | reimar |
---|---|
date | Thu, 28 Jul 2005 15:53:18 +0000 |
parents | 9635dcba8f29 |
children | 9a5a62f480e6 |
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 |
8380 | 63 // 47 ... |
8043 | 64 |
65 #define evExit 1000 | |
66 | |
67 // --- General events --- | |
68 | |
69 #define evFileLoaded 5000 | |
70 #define evHideMouseCursor 5001 | |
71 #define evMessageBox 5002 | |
72 #define evGeneralTimer 5003 | |
73 #define evGtkIsOk 5004 | |
74 #define evShowPopUpMenu 5005 | |
75 #define evHidePopUpMenu 5006 | |
76 #define evSetDVDAudio 5007 | |
77 #define evSetDVDSubtitle 5008 | |
78 #define evSetDVDTitle 5009 | |
79 #define evSetDVDChapter 5010 | |
80 #define evSubtitleLoaded 5011 | |
81 #define evSetVCDTrack 5012 | |
82 #define evSetURL 5013 | |
83 | |
84 #define evFName 7000 | |
85 #define evMovieTime 7001 | |
86 #define evRedraw 7002 | |
87 #define evHideWindow 7003 | |
88 #define evShowWindow 7004 | |
89 #define evFirstLoad 7005 | |
90 | |
91 // ---------------------- | |
92 | |
93 typedef struct | |
94 { | |
95 int msg; | |
96 char * name; | |
97 } evName; | |
98 | |
99 extern int evBoxs; | |
100 extern evName evNames[]; | |
1693 | 101 |
102 #define itNULL 0 | |
103 #define itButton 101 // button | |
104 #define itHPotmeter 102 // horizontal potmeter | |
105 #define itVPotmeter 103 // vertical potmeter | |
106 #define itSLabel 104 // static label | |
107 #define itDLabel 105 // dynamic label | |
108 #define itBase 106 | |
109 #define itPotmeter 107 | |
110 #define itFont 108 | |
111 // --- | |
112 #define btnPressed 0 | |
113 #define btnReleased 1 | |
114 #define btnDisabled 2 | |
115 // --- | |
116 typedef struct | |
117 { | |
118 int type; | |
119 // --- | |
120 int x,y; | |
121 int width,height; | |
122 // --- | |
123 int px,py,psx,psy; | |
124 // --- | |
125 int msg,msg2; | |
8300 | 126 int pressed,tmp; |
1693 | 127 int key,key2; |
128 int phases; | |
129 float value; | |
130 txSample Bitmap; | |
131 txSample Mask; | |
132 // --- | |
133 int fontid; | |
134 int align; | |
135 char * label; | |
136 // --- | |
137 int event; | |
8973 | 138 // --- |
139 int R,G,B; | |
1693 | 140 } wItem; |
141 | |
142 typedef struct | |
143 { | |
144 wItem main; | |
145 wsTWindow mainWindow; | |
2851
b64fa5d25142
add roleld mouse support and some small bugfix. neked jol a testedbe.
pontscho
parents:
1866
diff
changeset
|
146 int mainDecoration; |
1693 | 147 |
148 wItem sub; | |
149 wsTWindow subWindow; | |
8949 | 150 |
151 wItem bar; | |
152 wsTWindow barWindow; | |
153 int barIsPresent; | |
8973 | 154 |
1693 | 155 wItem menuBase; |
156 wItem menuSelected; | |
157 wsTWindow menuWindow; | |
8949 | 158 int menuIsPresent; |
1693 | 159 |
160 // --- | |
161 int NumberOfItems; | |
162 wItem Items[256]; | |
163 // --- | |
164 int NumberOfMenuItems; | |
8973 | 165 wItem MenuItems[64]; |
166 // --- | |
167 int NumberOfBarItems; | |
9625 | 168 wItem barItems[256]; |
1693 | 169 } listItems; |
170 | |
171 extern listItems appMPlayer; | |
172 | |
173 extern char * skinDirInHome; | |
174 extern char * skinMPlayerDir; | |
1866
32b1bb50a0e8
some bug fix, and add decoration item to skin conffile. faszom(C)
pontscho
parents:
1729
diff
changeset
|
175 extern char * skinName; |
1693 | 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 | |
8280
72700fefd3dc
no seeking if stream is STREAMTYPE_STREAM (net/stdin)
pontscho
parents:
8058
diff
changeset
|
183 extern void btnModify( int event,float state ); |
72700fefd3dc
no seeking if stream is STREAMTYPE_STREAM (net/stdin)
pontscho
parents:
8058
diff
changeset
|
184 extern float btnGetValue( int event ); |
72700fefd3dc
no seeking if stream is STREAMTYPE_STREAM (net/stdin)
pontscho
parents:
8058
diff
changeset
|
185 extern void btnSet( int event,int set ); |
72700fefd3dc
no seeking if stream is STREAMTYPE_STREAM (net/stdin)
pontscho
parents:
8058
diff
changeset
|
186 |
1693 | 187 #endif |