Mercurial > mplayer.hg
annotate Gui/app.h @ 8123:9fc45fe0d444
*HUGE* set of compiler warning fixes, unused variables removal
based on patch by Dominik Mierzejewski <dominik@rangers.eu.org>
author | arpi |
---|---|
date | Wed, 06 Nov 2002 23:54:29 +0000 |
parents | 9246adcf95f0 |
children | 72700fefd3dc |
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 | |
60 // 45 ... | |
61 | |
62 #define evExit 1000 | |
63 | |
64 // --- General events --- | |
65 | |
66 #define evFileLoaded 5000 | |
67 #define evHideMouseCursor 5001 | |
68 #define evMessageBox 5002 | |
69 #define evGeneralTimer 5003 | |
70 #define evGtkIsOk 5004 | |
71 #define evShowPopUpMenu 5005 | |
72 #define evHidePopUpMenu 5006 | |
73 #define evSetDVDAudio 5007 | |
74 #define evSetDVDSubtitle 5008 | |
75 #define evSetDVDTitle 5009 | |
76 #define evSetDVDChapter 5010 | |
77 #define evSubtitleLoaded 5011 | |
78 #define evSetVCDTrack 5012 | |
79 #define evSetURL 5013 | |
80 | |
81 #define evFName 7000 | |
82 #define evMovieTime 7001 | |
83 #define evRedraw 7002 | |
84 #define evHideWindow 7003 | |
85 #define evShowWindow 7004 | |
86 #define evFirstLoad 7005 | |
87 | |
88 // ---------------------- | |
89 | |
90 typedef struct | |
91 { | |
92 int msg; | |
93 char * name; | |
94 } evName; | |
95 | |
96 extern int evBoxs; | |
97 extern evName evNames[]; | |
1693 | 98 |
99 #define itNULL 0 | |
100 #define itButton 101 // button | |
101 #define itHPotmeter 102 // horizontal potmeter | |
102 #define itVPotmeter 103 // vertical potmeter | |
103 #define itSLabel 104 // static label | |
104 #define itDLabel 105 // dynamic label | |
105 #define itBase 106 | |
106 #define itPotmeter 107 | |
107 #define itFont 108 | |
108 // --- | |
109 #define btnPressed 0 | |
110 #define btnReleased 1 | |
111 #define btnDisabled 2 | |
112 // --- | |
113 typedef struct | |
114 { | |
115 int type; | |
116 // --- | |
117 int x,y; | |
118 int width,height; | |
119 // --- | |
120 int px,py,psx,psy; | |
121 // --- | |
122 int msg,msg2; | |
123 int pressed,disabled,tmp; | |
124 int key,key2; | |
125 int phases; | |
126 float value; | |
127 txSample Bitmap; | |
128 txSample Mask; | |
129 // --- | |
130 int fontid; | |
131 int align; | |
132 char * label; | |
133 // --- | |
134 int event; | |
135 } wItem; | |
136 | |
137 typedef struct | |
138 { | |
139 wItem main; | |
140 wsTWindow mainWindow; | |
2851
b64fa5d25142
add roleld mouse support and some small bugfix. neked jol a testedbe.
pontscho
parents:
1866
diff
changeset
|
141 int mainDecoration; |
1693 | 142 |
143 wItem sub; | |
144 wsTWindow subWindow; | |
145 int subR,subG,subB; | |
146 int subPixel; | |
147 | |
148 wItem eq; | |
149 wsTWindow eqWindow; | |
150 | |
151 wItem menuBase; | |
152 wItem menuSelected; | |
153 wsTWindow menuWindow; | |
154 | |
155 // --- | |
156 int NumberOfItems; | |
157 wItem Items[256]; | |
158 // --- | |
159 int NumberOfMenuItems; | |
160 wItem MenuItems[32]; | |
161 } listItems; | |
162 | |
163 extern listItems appMPlayer; | |
164 | |
165 extern char * skinDirInHome; | |
166 extern char * skinMPlayerDir; | |
1866
32b1bb50a0e8
some bug fix, and add decoration item to skin conffile. faszom(C)
pontscho
parents:
1729
diff
changeset
|
167 extern char * skinName; |
1693 | 168 |
169 extern void appInitStruct( listItems * item ); | |
170 extern void appClearItem( wItem * item ); | |
171 extern void appCopy( listItems * item1,listItems * item2 ); | |
172 extern int appFindMessage( unsigned char * str ); | |
173 extern int appFindKey( unsigned char * name ); | |
174 | |
175 #endif |