Mercurial > mplayer.hg
annotate Gui/app.h @ 8534:922ce27eb683
This patch adds support for vertical subtitle alignment
control. Possible values are top, center, and bottom,
with bottom being the default. Alignment is relevant when
it comes to positioning subtitles with one line (or fewer
lines) of text relative to multi-line subtitles.
It is implemented as a new command (sub_alignment) that
without an argument cycles the alignment (between top,
center, and bottom), or with an argument sets the
alignment (0 for top, 1 for center, 2 for bottom).
The key 'i' is bound to this command.
patch by Oskar Liljeblad (oskar@osk.mine.nu)
author | arpi |
---|---|
date | Mon, 23 Dec 2002 01:37:43 +0000 |
parents | c6a1a5b6ba25 |
children | d07ab8e088a9 |
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; | |
137 } wItem; | |
138 | |
139 typedef struct | |
140 { | |
141 wItem main; | |
142 wsTWindow mainWindow; | |
2851
b64fa5d25142
add roleld mouse support and some small bugfix. neked jol a testedbe.
pontscho
parents:
1866
diff
changeset
|
143 int mainDecoration; |
1693 | 144 |
145 wItem sub; | |
146 wsTWindow subWindow; | |
147 int subR,subG,subB; | |
148 int subPixel; | |
149 | |
150 wItem eq; | |
151 wsTWindow eqWindow; | |
152 | |
153 wItem menuBase; | |
154 wItem menuSelected; | |
155 wsTWindow menuWindow; | |
156 | |
157 // --- | |
158 int NumberOfItems; | |
159 wItem Items[256]; | |
160 // --- | |
161 int NumberOfMenuItems; | |
162 wItem MenuItems[32]; | |
163 } listItems; | |
164 | |
165 extern listItems appMPlayer; | |
166 | |
167 extern char * skinDirInHome; | |
168 extern char * skinMPlayerDir; | |
1866
32b1bb50a0e8
some bug fix, and add decoration item to skin conffile. faszom(C)
pontscho
parents:
1729
diff
changeset
|
169 extern char * skinName; |
1693 | 170 |
171 extern void appInitStruct( listItems * item ); | |
172 extern void appClearItem( wItem * item ); | |
173 extern void appCopy( listItems * item1,listItems * item2 ); | |
174 extern int appFindMessage( unsigned char * str ); | |
175 extern int appFindKey( unsigned char * name ); | |
176 | |
8280
72700fefd3dc
no seeking if stream is STREAMTYPE_STREAM (net/stdin)
pontscho
parents:
8058
diff
changeset
|
177 extern void btnModify( int event,float state ); |
72700fefd3dc
no seeking if stream is STREAMTYPE_STREAM (net/stdin)
pontscho
parents:
8058
diff
changeset
|
178 extern float btnGetValue( int event ); |
72700fefd3dc
no seeking if stream is STREAMTYPE_STREAM (net/stdin)
pontscho
parents:
8058
diff
changeset
|
179 extern void btnSet( int event,int set ); |
72700fefd3dc
no seeking if stream is STREAMTYPE_STREAM (net/stdin)
pontscho
parents:
8058
diff
changeset
|
180 |
1693 | 181 #endif |