6626
|
1
|
|
2 #include <stdlib.h>
|
|
3 #include <stdio.h>
|
|
4 #include <sys/types.h>
|
|
5 #include <sys/stat.h>
|
|
6 #include <unistd.h>
|
|
7 #include <string.h>
|
|
8
|
|
9 #include <gdk/gdkkeysyms.h>
|
|
10 #include <gtk/gtk.h>
|
|
11
|
6627
|
12 #include "../../events.h"
|
6794
|
13 #include "../../cfg.h"
|
6651
|
14 #include "../../help_mp.h"
|
6627
|
15 #include "../../../config.h"
|
|
16 #include "../../../help_mp.h"
|
|
17 #include "../../../mplayer.h"
|
|
18 #include "../../../libao2/eq.h"
|
6755
|
19 #include "../../../libvo/video_out.h"
|
6627
|
20 #include "../widgets.h"
|
|
21 #include "../mplayer.h"
|
|
22
|
6626
|
23 #include "eq.h"
|
|
24
|
6840
|
25 #define eqRange 15
|
6794
|
26
|
6627
|
27 GtkWidget * Equalizer;
|
|
28
|
|
29 static GtkWidget * Notebook;
|
6626
|
30 static GtkWidget * ChannelsList;
|
|
31 static GtkWidget * VContrast, * VBrightness, * VHue, * VSaturation;
|
|
32 static GtkAdjustment * VContrastadj, * VBrightnessadj, * VHueadj, * VSaturationadj;
|
6651
|
33 static GtkWidget * Ok, * Clear, * Config;
|
6626
|
34 static GtkWidget * A3125, * A125, * A6250, * A250, * A500, * A1000, * A2000, * A4000, * A8000, * A16000;
|
|
35 static GtkAdjustment * A3125adj, * A125adj, * A6250adj, * A250adj, * A500adj, * A1000adj, * A2000adj, * A4000adj, * A8000adj, * A16000adj;
|
|
36
|
|
37 static int Channel = -1;
|
6627
|
38 static int gtkVEqualizer = 0;
|
6651
|
39 static int gtkVEquConfig = 0;
|
|
40
|
|
41 // ---
|
6627
|
42
|
6651
|
43 char * gtkEquChannel1 = NULL;
|
|
44 char * gtkEquChannel2 = NULL;
|
|
45 char * gtkEquChannel3 = NULL;
|
|
46 char * gtkEquChannel4 = NULL;
|
|
47 char * gtkEquChannel5 = NULL;
|
|
48 char * gtkEquChannel6 = NULL;
|
|
49
|
|
50 // ---
|
|
51
|
|
52 void ShowEquConfig( void );
|
|
53 void HideEquConfig( void );
|
|
54
|
6627
|
55 static void eqSetBands( int channel )
|
|
56 {
|
|
57 if ( channel < 0 ) channel=0;
|
|
58 gtk_adjustment_set_value( A3125adj,0.0f - gtkEquChannels[channel][0] );
|
|
59 gtk_adjustment_set_value( A6250adj,0.0f - gtkEquChannels[channel][1] );
|
|
60 gtk_adjustment_set_value( A125adj,0.0f - gtkEquChannels[channel][2] );
|
|
61 gtk_adjustment_set_value( A250adj,0.0f - gtkEquChannels[channel][3] );
|
|
62 gtk_adjustment_set_value( A500adj,0.0f - gtkEquChannels[channel][4] );
|
|
63 gtk_adjustment_set_value( A1000adj,0.0f - gtkEquChannels[channel][5] );
|
|
64 gtk_adjustment_set_value( A2000adj,0.0f - gtkEquChannels[channel][6] );
|
|
65 gtk_adjustment_set_value( A4000adj,0.0f - gtkEquChannels[channel][7] );
|
|
66 gtk_adjustment_set_value( A8000adj,0.0f - gtkEquChannels[channel][8] );
|
|
67 gtk_adjustment_set_value( A16000adj,0.0f - gtkEquChannels[channel][9] );
|
6755
|
68
|
|
69 gtk_adjustment_set_value( VContrastadj,(float)vo_gamma_contrast );
|
|
70 gtk_adjustment_set_value( VBrightnessadj,(float)vo_gamma_brightness );
|
|
71 gtk_adjustment_set_value( VHueadj,(float)vo_gamma_hue );
|
|
72 gtk_adjustment_set_value( VSaturationadj,(float)vo_gamma_saturation );
|
6627
|
73 }
|
|
74
|
6651
|
75 static void eqSetChannelNames( void )
|
|
76 {
|
|
77 gchar * str[2];
|
|
78 gtk_clist_clear( GTK_CLIST( ChannelsList ) );
|
|
79 str[1]="";
|
|
80 str[0]=MSGTR_EQU_All;
|
|
81 gtk_clist_append( GTK_CLIST( ChannelsList ) ,str);
|
|
82 if ( guiIntfStruct.AudioType > 1 )
|
|
83 {
|
|
84 str[0]=gtkEquChannel1; gtk_clist_append( GTK_CLIST( ChannelsList ) ,str);
|
|
85 str[0]=gtkEquChannel2; gtk_clist_append( GTK_CLIST( ChannelsList ) ,str);
|
|
86 }
|
|
87 if ( guiIntfStruct.AudioType > 2 )
|
|
88 {
|
|
89 str[0]=gtkEquChannel3; gtk_clist_append( GTK_CLIST( ChannelsList ) ,str);
|
|
90 str[0]=gtkEquChannel4; gtk_clist_append( GTK_CLIST( ChannelsList ) ,str);
|
|
91 }
|
|
92 if ( guiIntfStruct.AudioType > 4 )
|
|
93 {
|
|
94 str[0]=gtkEquChannel5; gtk_clist_append( GTK_CLIST( ChannelsList ) ,str);
|
|
95 str[0]=gtkEquChannel6; gtk_clist_append( GTK_CLIST( ChannelsList ) ,str);
|
|
96 }
|
6755
|
97 gtk_clist_select_row( GTK_CLIST( ChannelsList ),0,0 );
|
6651
|
98 }
|
|
99
|
6627
|
100 void ShowEqualizer( void )
|
|
101 {
|
|
102 if ( gtkVEqualizer ) gtkActive( Equalizer );
|
|
103 else Equalizer=create_Equalizer();
|
|
104
|
6651
|
105 if ( !gtkEquChannel1 ) gtkEquChannel1=strdup( MSGTR_EQU_Front_Right );
|
|
106 if ( !gtkEquChannel2 ) gtkEquChannel2=strdup( MSGTR_EQU_Front_Left );
|
|
107 if ( !gtkEquChannel3 ) gtkEquChannel3=strdup( MSGTR_EQU_Back_Right );
|
|
108 if ( !gtkEquChannel4 ) gtkEquChannel4=strdup( MSGTR_EQU_Back_Left );
|
|
109 if ( !gtkEquChannel5 ) gtkEquChannel5=strdup( MSGTR_EQU_Center );
|
|
110 if ( !gtkEquChannel6 ) gtkEquChannel6=strdup( MSGTR_EQU_Bass );
|
6627
|
111
|
6651
|
112 eqSetChannelNames();
|
|
113
|
6755
|
114 VContrastadj->value=(float)vo_gamma_contrast;
|
|
115 VBrightnessadj->value=(float)vo_gamma_brightness;
|
|
116 VHueadj->value=(float)vo_gamma_hue;
|
|
117 VSaturationadj->value=(float)vo_gamma_saturation;
|
6627
|
118
|
6912
|
119 if ( !guiIntfStruct.Playing )
|
6651
|
120 {
|
|
121 gtk_widget_set_sensitive( VContrast,FALSE );
|
|
122 gtk_widget_set_sensitive( VBrightness,FALSE );
|
|
123 gtk_widget_set_sensitive( VHue,FALSE );
|
|
124 gtk_widget_set_sensitive( VSaturation,FALSE );
|
|
125 }
|
6794
|
126 Channel=-1;
|
6651
|
127 eqSetBands( 0 );
|
6794
|
128 if ( !guiIntfStruct.Playing || !gtkEnableAudioEqualizer )
|
6651
|
129 {
|
|
130 gtk_widget_set_sensitive( ChannelsList,FALSE );
|
|
131 gtk_widget_set_sensitive( A3125,FALSE );
|
|
132 gtk_widget_set_sensitive( A125,FALSE );
|
|
133 gtk_widget_set_sensitive( A6250,FALSE );
|
|
134 gtk_widget_set_sensitive( A250,FALSE );
|
|
135 gtk_widget_set_sensitive( A500,FALSE );
|
|
136 gtk_widget_set_sensitive( A1000,FALSE );
|
|
137 gtk_widget_set_sensitive( A2000,FALSE );
|
|
138 gtk_widget_set_sensitive( A4000,FALSE );
|
|
139 gtk_widget_set_sensitive( A8000,FALSE );
|
|
140 gtk_widget_set_sensitive( A16000,FALSE );
|
6627
|
141 }
|
|
142
|
6755
|
143 if ( gtk_notebook_get_current_page( GTK_NOTEBOOK( Notebook ) ) == 0 ) gtk_widget_show( Config );
|
6627
|
144 gtk_widget_show( Equalizer );
|
|
145 }
|
6626
|
146
|
|
147 void HideEqualizer( void )
|
6651
|
148 {
|
6755
|
149 if ( !gtkVEqualizer ) return;
|
6903
|
150 gtkVEqualizer=0;
|
6651
|
151 gtk_widget_hide( Equalizer );
|
|
152 gtk_widget_destroy( Equalizer );
|
|
153 if ( gtkVEquConfig ) HideEquConfig();
|
|
154 }
|
6626
|
155
|
6627
|
156 static gboolean eqHScaleMotion( GtkWidget * widget,GdkEventMotion * event,gpointer user_data )
|
6626
|
157 {
|
6627
|
158 equalizer_t eq;
|
6626
|
159 switch ( (int)user_data )
|
|
160 {
|
6627
|
161 case 0: eq.gain=A3125adj->value; break;
|
|
162 case 1: eq.gain=A6250adj->value; break;
|
|
163 case 2: eq.gain=A125adj->value; break;
|
|
164 case 3: eq.gain=A250adj->value; break;
|
|
165 case 4: eq.gain=A500adj->value; break;
|
|
166 case 5: eq.gain=A1000adj->value; break;
|
|
167 case 6: eq.gain=A2000adj->value; break;
|
|
168 case 7: eq.gain=A4000adj->value; break;
|
|
169 case 8: eq.gain=A8000adj->value; break;
|
|
170 case 9: eq.gain=A16000adj->value; break;
|
|
171 default: return FALSE;
|
6626
|
172 }
|
6627
|
173 eq.gain=0.0f - eq.gain;
|
|
174 eq.band=(int)user_data;
|
|
175 if ( Channel == -1 )
|
|
176 {
|
|
177 int i;
|
|
178 for ( i=0;i<6;i++ )
|
|
179 { eq.channel=i; gtkSet( gtkSetEqualizer,0,&eq ); }
|
|
180 } else { eq.channel=Channel; gtkSet( gtkSetEqualizer,0,&eq ); }
|
6626
|
181
|
6627
|
182 return FALSE;
|
6626
|
183 }
|
|
184
|
6627
|
185 static gboolean eqVScaleMotion( GtkWidget * widget,GdkEventMotion * event,gpointer user_data )
|
6626
|
186 {
|
6627
|
187
|
|
188 switch( (int)user_data )
|
6626
|
189 {
|
6627
|
190 case 1: gtkSet( gtkSetContrast,VContrastadj->value,NULL ); break;
|
|
191 case 2: gtkSet( gtkSetBrightness,VBrightnessadj->value,NULL ); break;
|
6755
|
192 case 3: gtkSet( gtkSetHue,VHueadj->value,NULL ); break;
|
6627
|
193 case 4: gtkSet( gtkSetSaturation,VSaturationadj->value,NULL ); break;
|
6626
|
194 }
|
|
195
|
6627
|
196 return FALSE;
|
6626
|
197 }
|
|
198
|
6627
|
199 static void eqButtonReleased( GtkButton * button,gpointer user_data )
|
|
200 {
|
|
201 switch( (int)user_data )
|
|
202 {
|
|
203 case 0: HideEqualizer(); break;
|
|
204 case 1:
|
6651
|
205 if ( gtk_notebook_get_current_page( GTK_NOTEBOOK( Notebook ) ) == 0 )
|
6627
|
206 {
|
6794
|
207 if ( !guiIntfStruct.Playing || !gtkEnableAudioEqualizer ) break;
|
6627
|
208 gtkSet( gtkSetEqualizer,0,NULL );
|
|
209 eqSetBands( Channel );
|
|
210 }
|
|
211 else
|
|
212 {
|
6912
|
213 if ( !guiIntfStruct.Playing ) break;
|
6627
|
214 gtkSet( gtkSetContrast,0.0f,NULL );
|
|
215 gtkSet( gtkSetBrightness,0.0f,NULL );
|
|
216 gtkSet( gtkSetHue,0.0f,NULL );
|
|
217 gtkSet( gtkSetSaturation,0.0f,NULL );
|
6755
|
218 vo_gamma_brightness=vo_gamma_contrast=vo_gamma_hue=vo_gamma_saturation=0;
|
|
219 eqSetBands( Channel );
|
6627
|
220 }
|
|
221 break;
|
6651
|
222 case 2:
|
|
223 ShowEquConfig();
|
|
224 break;
|
6627
|
225 }
|
|
226 }
|
6626
|
227
|
|
228 gboolean eqDestroy( GtkWidget * widget,GdkEvent * event,gpointer user_data )
|
|
229 { HideEqualizer(); return FALSE; }
|
|
230
|
6627
|
231 static void eqShow( GtkWidget * widget,gpointer user_data )
|
|
232 { gtkVEqualizer=(int)user_data; }
|
6626
|
233
|
6627
|
234 static void eqSelectChannelsListRow( GtkCList * clist,gint row,gint column,GdkEvent * event,gpointer user_data )
|
6626
|
235 {
|
|
236 Channel=row - 1;
|
6627
|
237 eqSetBands( Channel );
|
|
238 if ( Channel == -1 )
|
|
239 {
|
|
240 int i,j; equalizer_t eq;
|
|
241 for ( i=1;i<6;i++ )
|
|
242 for ( j=0;j<10;j++ )
|
|
243 { eq.band=j; eq.channel=i; eq.gain=gtkEquChannels[0][j]; gtkSet( gtkSetEqualizer,0,&eq ); }
|
|
244 }
|
6626
|
245 }
|
|
246
|
6651
|
247 void eqNotebook( GtkNotebook * notebook,GtkNotebookPage * page,gint page_num,gpointer user_data )
|
|
248 {
|
|
249 if ( page_num ) gtk_widget_hide( Config );
|
|
250 else gtk_widget_show( Config );
|
|
251 }
|
|
252
|
6626
|
253 GtkWidget * create_Equalizer( void )
|
|
254 {
|
|
255 GtkWidget * frame1;
|
|
256 GtkWidget * frame2;
|
|
257 GtkWidget * frame3;
|
|
258 GtkWidget * frame4;
|
|
259 GtkWidget * vbox1;
|
|
260 GtkWidget * hbox1;
|
|
261 GtkWidget * scrolledwindow1;
|
|
262 GtkWidget * table1;
|
|
263 GtkWidget * label3;
|
|
264 GtkWidget * label4;
|
|
265 GtkWidget * label5;
|
|
266 GtkWidget * label6;
|
|
267 GtkWidget * label7;
|
|
268 GtkWidget * label8;
|
|
269 GtkWidget * label9;
|
|
270 GtkWidget * label10;
|
|
271 GtkWidget * label11;
|
|
272 GtkWidget * label12;
|
|
273 GtkWidget * label1;
|
|
274 GtkWidget * hbox2;
|
|
275 GtkWidget * vbox2;
|
|
276 GtkWidget * label13;
|
|
277 GtkWidget * label14;
|
|
278 GtkWidget * label15;
|
|
279 GtkWidget * label16;
|
|
280 GtkWidget * vbox3;
|
|
281 GtkWidget * label2;
|
|
282 GtkWidget * hbuttonbox1;
|
|
283 GtkWidget * hseparator1;
|
|
284 GtkAccelGroup * accel_group;
|
|
285
|
|
286 accel_group=gtk_accel_group_new();
|
|
287
|
|
288 Equalizer=gtk_window_new( GTK_WINDOW_DIALOG );
|
6651
|
289 gtk_widget_set_name( Equalizer,MSGTR_Equalizer );
|
|
290 gtk_object_set_data( GTK_OBJECT( Equalizer ),MSGTR_Equalizer,Equalizer );
|
6626
|
291 gtk_widget_set_usize( Equalizer,550,256 );
|
6651
|
292 gtk_window_set_title( GTK_WINDOW( Equalizer ),MSGTR_Equalizer );
|
6626
|
293 gtk_window_set_position( GTK_WINDOW( Equalizer ),GTK_WIN_POS_CENTER );
|
|
294 gtk_window_set_policy( GTK_WINDOW( Equalizer ),FALSE,FALSE,FALSE );
|
6651
|
295 gtk_window_set_wmclass( GTK_WINDOW( Equalizer ),MSGTR_Equalizer,"MPlayer" );
|
6626
|
296
|
6651
|
297 gtk_widget_realize( Equalizer );
|
|
298 gtkAddIcon( Equalizer );
|
|
299
|
6626
|
300 frame1=gtk_frame_new( NULL );
|
|
301 gtk_widget_set_name( frame1,"frame1" );
|
|
302 gtk_widget_ref( frame1 );
|
|
303 gtk_object_set_data_full( GTK_OBJECT( Equalizer ),"frame1",frame1,(GtkDestroyNotify)gtk_widget_unref );
|
|
304 gtk_widget_show( frame1 );
|
|
305 gtk_container_add( GTK_CONTAINER( Equalizer ),frame1 );
|
|
306 gtk_container_set_border_width( GTK_CONTAINER( frame1 ),1 );
|
|
307 gtk_frame_set_shadow_type( GTK_FRAME( frame1 ),GTK_SHADOW_IN );
|
|
308
|
|
309 frame2=gtk_frame_new( NULL );
|
|
310 gtk_widget_set_name( frame2,"frame2" );
|
|
311 gtk_widget_ref( frame2 );
|
|
312 gtk_object_set_data_full( GTK_OBJECT( Equalizer ),"frame2",frame2,(GtkDestroyNotify)gtk_widget_unref );
|
|
313 gtk_widget_show( frame2 );
|
|
314 gtk_container_add( GTK_CONTAINER( frame1 ),frame2 );
|
|
315 gtk_frame_set_shadow_type( GTK_FRAME( frame2 ),GTK_SHADOW_NONE );
|
|
316
|
|
317 frame3=gtk_frame_new( NULL );
|
|
318 gtk_widget_set_name( frame3,"frame3" );
|
|
319 gtk_widget_ref( frame3 );
|
|
320 gtk_object_set_data_full( GTK_OBJECT( Equalizer ),"frame3",frame3,(GtkDestroyNotify)gtk_widget_unref );
|
|
321 gtk_widget_show( frame3 );
|
|
322 gtk_container_add( GTK_CONTAINER( frame2 ),frame3 );
|
|
323 gtk_frame_set_shadow_type( GTK_FRAME( frame3 ),GTK_SHADOW_ETCHED_OUT );
|
|
324
|
|
325 frame4=gtk_frame_new( NULL );
|
|
326 gtk_widget_set_name( frame4,"frame4" );
|
|
327 gtk_widget_ref( frame4 );
|
|
328 gtk_object_set_data_full( GTK_OBJECT( Equalizer ),"frame4",frame4,(GtkDestroyNotify)gtk_widget_unref );
|
|
329 gtk_widget_show( frame4 );
|
|
330 gtk_container_add( GTK_CONTAINER( frame3 ),frame4 );
|
|
331 gtk_frame_set_shadow_type( GTK_FRAME( frame4 ),GTK_SHADOW_NONE );
|
|
332
|
|
333 vbox1=gtk_vbox_new( FALSE,0 );
|
|
334 gtk_widget_set_name( vbox1,"vbox1" );
|
|
335 gtk_widget_ref( vbox1 );
|
|
336 gtk_object_set_data_full( GTK_OBJECT( Equalizer ),"vbox1",vbox1,(GtkDestroyNotify)gtk_widget_unref );
|
|
337 gtk_widget_show( vbox1 );
|
|
338 gtk_container_add( GTK_CONTAINER( frame4 ),vbox1 );
|
|
339
|
|
340 Notebook=gtk_notebook_new();
|
|
341 gtk_widget_set_name( Notebook,"Notebook" );
|
|
342 gtk_widget_ref( Notebook );
|
|
343 gtk_object_set_data_full( GTK_OBJECT( Equalizer ),"Notebook",Notebook,(GtkDestroyNotify)gtk_widget_unref );
|
|
344 gtk_widget_show( Notebook );
|
|
345 gtk_box_pack_start( GTK_BOX( vbox1 ),Notebook,TRUE,TRUE,0 );
|
|
346 gtk_container_set_border_width( GTK_CONTAINER( Notebook ),1 );
|
|
347
|
|
348 hbox1=gtk_hbox_new( FALSE,0 );
|
|
349 gtk_widget_set_name( hbox1,"hbox1" );
|
|
350 gtk_widget_ref( hbox1 );
|
|
351 gtk_object_set_data_full( GTK_OBJECT( Equalizer ),"hbox1",hbox1,(GtkDestroyNotify)gtk_widget_unref );
|
|
352 gtk_widget_show( hbox1 );
|
|
353 gtk_container_add( GTK_CONTAINER( Notebook ),hbox1 );
|
|
354
|
|
355 scrolledwindow1=gtk_scrolled_window_new( NULL,NULL );
|
|
356 gtk_widget_set_name( scrolledwindow1,"scrolledwindow1" );
|
|
357 gtk_widget_ref( scrolledwindow1 );
|
|
358 gtk_object_set_data_full( GTK_OBJECT( Equalizer ),"scrolledwindow1",scrolledwindow1,(GtkDestroyNotify)gtk_widget_unref );
|
|
359 gtk_widget_show( scrolledwindow1 );
|
|
360 gtk_box_pack_start( GTK_BOX( hbox1 ),scrolledwindow1,FALSE,FALSE,0 );
|
|
361 gtk_widget_set_usize( scrolledwindow1,106,-2 );
|
|
362 gtk_scrolled_window_set_policy( GTK_SCROLLED_WINDOW( scrolledwindow1 ),GTK_POLICY_AUTOMATIC,GTK_POLICY_AUTOMATIC );
|
|
363
|
|
364 ChannelsList=gtk_clist_new( 1 );
|
|
365 gtk_widget_set_name( ChannelsList,"ChannelsList" );
|
|
366 gtk_widget_ref( ChannelsList );
|
|
367 gtk_object_set_data_full( GTK_OBJECT( Equalizer ),"ChannelsList",ChannelsList,(GtkDestroyNotify)gtk_widget_unref );
|
|
368 gtk_widget_show( ChannelsList );
|
|
369 gtk_container_add( GTK_CONTAINER( scrolledwindow1 ),ChannelsList );
|
|
370 gtk_clist_set_column_width( GTK_CLIST( ChannelsList ),0,80 );
|
|
371 gtk_clist_column_titles_hide( GTK_CLIST( ChannelsList ) );
|
|
372
|
|
373 table1=gtk_table_new( 2,10,FALSE );
|
|
374 gtk_widget_set_name( table1,"table1" );
|
|
375 gtk_widget_ref( table1 );
|
|
376 gtk_object_set_data_full( GTK_OBJECT( Equalizer ),"table1",table1,(GtkDestroyNotify)gtk_widget_unref );
|
|
377 gtk_widget_show( table1 );
|
|
378 gtk_box_pack_start( GTK_BOX( hbox1 ),table1,FALSE,FALSE,0 );
|
|
379 gtk_table_set_row_spacings( GTK_TABLE( table1 ),4 );
|
|
380 gtk_table_set_col_spacings( GTK_TABLE( table1 ),9 );
|
|
381
|
6794
|
382 A3125adj=GTK_ADJUSTMENT( gtk_adjustment_new( 0,-eqRange,eqRange,0.5,0,0 ) );
|
6626
|
383 A3125=gtk_vscale_new( A3125adj );
|
|
384 gtk_widget_set_name( A3125,"A3125" );
|
|
385 gtk_widget_ref( A3125 );
|
|
386 gtk_object_set_data_full( GTK_OBJECT( Equalizer ),"A3125",A3125,(GtkDestroyNotify)gtk_widget_unref );
|
|
387 gtk_widget_show( A3125 );
|
|
388 gtk_table_attach( GTK_TABLE( table1 ),A3125,0,1,0,1,( GtkAttachOptions )( GTK_FILL ),( GtkAttachOptions )( GTK_EXPAND | GTK_FILL ),0,0 );
|
|
389 gtk_scale_set_draw_value( GTK_SCALE( A3125 ),FALSE );
|
|
390
|
6794
|
391 A6250adj=GTK_ADJUSTMENT( gtk_adjustment_new( 0,-eqRange,eqRange,0.5,0,0 ) );
|
6626
|
392 A6250=gtk_vscale_new( A6250adj );
|
|
393 gtk_widget_set_name( A6250,"A6250" );
|
|
394 gtk_widget_ref( A6250 );
|
|
395 gtk_object_set_data_full( GTK_OBJECT( Equalizer ),"A6250",A6250,(GtkDestroyNotify)gtk_widget_unref );
|
|
396 gtk_widget_show( A6250 );
|
|
397 gtk_table_attach( GTK_TABLE( table1 ),A6250,1,2,0,1,( GtkAttachOptions )( GTK_FILL ),( GtkAttachOptions )( GTK_EXPAND | GTK_FILL ),0,0 );
|
|
398 gtk_scale_set_draw_value( GTK_SCALE( A6250 ),FALSE );
|
|
399
|
6794
|
400 A125adj=GTK_ADJUSTMENT( gtk_adjustment_new( 0,-eqRange,eqRange,0.5,0,0 ) );
|
6626
|
401 A125=gtk_vscale_new( A125adj );
|
|
402 gtk_widget_set_name( A125,"A125" );
|
|
403 gtk_widget_ref( A125 );
|
|
404 gtk_object_set_data_full( GTK_OBJECT( Equalizer ),"A125",A125,(GtkDestroyNotify)gtk_widget_unref );
|
|
405 gtk_widget_show( A125 );
|
|
406 gtk_table_attach( GTK_TABLE( table1 ),A125,2,3,0,1,( GtkAttachOptions )( GTK_FILL ),( GtkAttachOptions )( GTK_EXPAND | GTK_FILL ),0,0 );
|
|
407 gtk_scale_set_draw_value( GTK_SCALE( A125 ),FALSE );
|
|
408
|
6794
|
409 A250adj=GTK_ADJUSTMENT( gtk_adjustment_new( 0,-eqRange,eqRange,0.5,0,0 ) );
|
6626
|
410 A250=gtk_vscale_new( A250adj );
|
|
411 gtk_widget_set_name( A250,"A250" );
|
|
412 gtk_widget_ref( A250 );
|
|
413 gtk_object_set_data_full( GTK_OBJECT( Equalizer ),"A250",A250,(GtkDestroyNotify)gtk_widget_unref );
|
|
414 gtk_widget_show( A250 );
|
|
415 gtk_table_attach( GTK_TABLE( table1 ),A250,3,4,0,1,( GtkAttachOptions )( GTK_FILL ),( GtkAttachOptions )( GTK_EXPAND | GTK_FILL ),0,0 );
|
|
416 gtk_scale_set_draw_value( GTK_SCALE( A250 ),FALSE );
|
|
417
|
6794
|
418 A500adj=GTK_ADJUSTMENT( gtk_adjustment_new( 0,-eqRange,eqRange,0.5,0,0 ) );
|
6626
|
419 A500=gtk_vscale_new( A500adj );
|
|
420 gtk_widget_set_name( A500,"A500" );
|
|
421 gtk_widget_ref( A500 );
|
|
422 gtk_object_set_data_full( GTK_OBJECT( Equalizer ),"A500",A500,(GtkDestroyNotify)gtk_widget_unref );
|
|
423 gtk_widget_show( A500 );
|
|
424 gtk_table_attach( GTK_TABLE( table1 ),A500,4,5,0,1,( GtkAttachOptions )( GTK_FILL ),( GtkAttachOptions )( GTK_EXPAND | GTK_FILL ),0,0 );
|
|
425 gtk_scale_set_draw_value( GTK_SCALE( A500 ),FALSE );
|
|
426
|
6794
|
427 A1000adj=GTK_ADJUSTMENT( gtk_adjustment_new( 0,-eqRange,eqRange,0.5,0,0 ) );
|
6626
|
428 A1000=gtk_vscale_new( A1000adj );
|
|
429 gtk_widget_set_name( A1000,"A1000" );
|
|
430 gtk_widget_ref( A1000 );
|
|
431 gtk_object_set_data_full( GTK_OBJECT( Equalizer ),"A1000",A1000,(GtkDestroyNotify)gtk_widget_unref );
|
|
432 gtk_widget_show( A1000 );
|
|
433 gtk_table_attach( GTK_TABLE( table1 ),A1000,5,6,0,1,( GtkAttachOptions )( GTK_FILL ),( GtkAttachOptions )( GTK_EXPAND | GTK_FILL ),0,0 );
|
|
434 gtk_scale_set_draw_value( GTK_SCALE( A1000 ),FALSE );
|
|
435
|
6794
|
436 A2000adj=GTK_ADJUSTMENT( gtk_adjustment_new( 0,-eqRange,eqRange,0.5,0,0 ) );
|
6626
|
437 A2000=gtk_vscale_new( A2000adj );
|
|
438 gtk_widget_set_name( A2000,"A2000" );
|
|
439 gtk_widget_ref( A2000 );
|
|
440 gtk_object_set_data_full( GTK_OBJECT( Equalizer ),"A2000",A2000,(GtkDestroyNotify)gtk_widget_unref );
|
|
441 gtk_widget_show( A2000 );
|
|
442 gtk_table_attach( GTK_TABLE( table1 ),A2000,6,7,0,1,( GtkAttachOptions )( GTK_FILL ),( GtkAttachOptions )( GTK_EXPAND | GTK_FILL ),0,0 );
|
|
443 gtk_scale_set_draw_value( GTK_SCALE( A2000 ),FALSE );
|
|
444
|
6794
|
445 A4000adj=GTK_ADJUSTMENT( gtk_adjustment_new( 0,-eqRange,eqRange,0.5,0,0 ) );
|
6626
|
446 A4000=gtk_vscale_new( A4000adj );
|
|
447 gtk_widget_set_name( A4000,"A4000" );
|
|
448 gtk_widget_ref( A4000 );
|
|
449 gtk_object_set_data_full( GTK_OBJECT( Equalizer ),"A4000",A4000,(GtkDestroyNotify)gtk_widget_unref );
|
|
450 gtk_widget_show( A4000 );
|
|
451 gtk_table_attach( GTK_TABLE( table1 ),A4000,7,8,0,1,( GtkAttachOptions )( GTK_FILL ),( GtkAttachOptions )( GTK_EXPAND | GTK_FILL ),0,0 );
|
|
452 gtk_scale_set_draw_value( GTK_SCALE( A4000 ),FALSE );
|
|
453
|
6794
|
454 A8000adj=GTK_ADJUSTMENT( gtk_adjustment_new( 0,-eqRange,eqRange,0.5,0,0 ) );
|
6626
|
455 A8000=gtk_vscale_new( A8000adj );
|
|
456 gtk_widget_set_name( A8000,"A8000" );
|
|
457 gtk_widget_ref( A8000 );
|
|
458 gtk_object_set_data_full( GTK_OBJECT( Equalizer ),"A8000",A8000,(GtkDestroyNotify)gtk_widget_unref );
|
|
459 gtk_widget_show( A8000 );
|
|
460 gtk_table_attach( GTK_TABLE( table1 ),A8000,8,9,0,1,( GtkAttachOptions )( GTK_FILL ),( GtkAttachOptions )( GTK_EXPAND | GTK_FILL ),0,0 );
|
|
461 gtk_scale_set_draw_value( GTK_SCALE( A8000 ),FALSE );
|
|
462
|
6794
|
463 A16000adj=GTK_ADJUSTMENT( gtk_adjustment_new( 0,-eqRange,eqRange,0.5,0,0 ) );
|
6626
|
464 A16000=gtk_vscale_new( A16000adj );
|
|
465 gtk_widget_set_name( A16000,"A16000" );
|
|
466 gtk_widget_ref( A16000 );
|
|
467 gtk_object_set_data_full( GTK_OBJECT( Equalizer ),"A16000",A16000,(GtkDestroyNotify)gtk_widget_unref );
|
|
468 gtk_widget_show( A16000 );
|
|
469 gtk_table_attach( GTK_TABLE( table1 ),A16000,9,10,0,1,( GtkAttachOptions )( GTK_FILL ),( GtkAttachOptions )( GTK_EXPAND | GTK_FILL ),0,0 );
|
|
470 gtk_scale_set_draw_value( GTK_SCALE( A16000 ),FALSE );
|
|
471
|
|
472 label3=gtk_label_new( "31.25" );
|
|
473 gtk_widget_set_name( label3,"label3" );
|
|
474 gtk_widget_ref( label3 );
|
|
475 gtk_object_set_data_full( GTK_OBJECT( Equalizer ),"label3",label3,(GtkDestroyNotify)gtk_widget_unref );
|
|
476 gtk_widget_show( label3 );
|
|
477 gtk_table_attach( GTK_TABLE( table1 ),label3,0,1,1,2,( GtkAttachOptions )( GTK_FILL ),( GtkAttachOptions )( 0 ),0,0 );
|
|
478 gtk_misc_set_alignment( GTK_MISC( label3 ),0,0.5 );
|
|
479 gtk_misc_set_padding( GTK_MISC( label3 ),2,0 );
|
|
480
|
|
481 label4=gtk_label_new( "62.50" );
|
|
482 gtk_widget_set_name( label4,"label4" );
|
|
483 gtk_widget_ref( label4 );
|
|
484 gtk_object_set_data_full( GTK_OBJECT( Equalizer ),"label4",label4,(GtkDestroyNotify)gtk_widget_unref );
|
|
485 gtk_widget_show( label4 );
|
|
486 gtk_table_attach( GTK_TABLE( table1 ),label4,1,2,1,2,( GtkAttachOptions )( GTK_FILL ),( GtkAttachOptions )( 0 ),0,0 );
|
|
487 gtk_misc_set_alignment( GTK_MISC( label4 ),0,0.5 );
|
|
488 gtk_misc_set_padding( GTK_MISC( label4 ),1,0 );
|
|
489
|
|
490 label5=gtk_label_new( "125" );
|
|
491 gtk_widget_set_name( label5,"label5" );
|
|
492 gtk_widget_ref( label5 );
|
|
493 gtk_object_set_data_full( GTK_OBJECT( Equalizer ),"label5",label5,(GtkDestroyNotify)gtk_widget_unref );
|
|
494 gtk_widget_show( label5 );
|
|
495 gtk_table_attach( GTK_TABLE( table1 ),label5,2,3,1,2,( GtkAttachOptions )( GTK_FILL ),( GtkAttachOptions )( 0 ),0,0 );
|
|
496 gtk_misc_set_alignment( GTK_MISC( label5 ),0,0.5 );
|
|
497 gtk_misc_set_padding( GTK_MISC( label5 ),5,0 );
|
|
498
|
|
499 label6=gtk_label_new( "250" );
|
|
500 gtk_widget_set_name( label6,"label6" );
|
|
501 gtk_widget_ref( label6 );
|
|
502 gtk_object_set_data_full( GTK_OBJECT( Equalizer ),"label6",label6,(GtkDestroyNotify)gtk_widget_unref );
|
|
503 gtk_widget_show( label6 );
|
|
504 gtk_table_attach( GTK_TABLE( table1 ),label6,3,4,1,2,( GtkAttachOptions )( GTK_FILL ),( GtkAttachOptions )( 0 ),0,0 );
|
|
505 gtk_misc_set_alignment( GTK_MISC( label6 ),0,0.5 );
|
|
506 gtk_misc_set_padding( GTK_MISC( label6 ),5,0 );
|
|
507
|
|
508 label7=gtk_label_new( "500" );
|
|
509 gtk_widget_set_name( label7,"label7" );
|
|
510 gtk_widget_ref( label7 );
|
|
511 gtk_object_set_data_full( GTK_OBJECT( Equalizer ),"label7",label7,(GtkDestroyNotify)gtk_widget_unref );
|
|
512 gtk_widget_show( label7 );
|
|
513 gtk_table_attach( GTK_TABLE( table1 ),label7,4,5,1,2,( GtkAttachOptions )( GTK_FILL ),( GtkAttachOptions )( 0 ),0,0 );
|
|
514 gtk_misc_set_alignment( GTK_MISC( label7 ),0,0.5 );
|
|
515 gtk_misc_set_padding( GTK_MISC( label7 ),7,0 );
|
|
516
|
|
517 label8=gtk_label_new( "1000" );
|
|
518 gtk_widget_set_name( label8,"label8" );
|
|
519 gtk_widget_ref( label8 );
|
|
520 gtk_object_set_data_full( GTK_OBJECT( Equalizer ),"label8",label8,(GtkDestroyNotify)gtk_widget_unref );
|
|
521 gtk_widget_show( label8 );
|
|
522 gtk_table_attach( GTK_TABLE( table1 ),label8,5,6,1,2,( GtkAttachOptions )( GTK_FILL ),( GtkAttachOptions )( 0 ),0,0 );
|
|
523 gtk_misc_set_alignment( GTK_MISC( label8 ),0,0.5 );
|
|
524 gtk_misc_set_padding( GTK_MISC( label8 ),5,0 );
|
|
525
|
|
526 label9=gtk_label_new( "2000" );
|
|
527 gtk_widget_set_name( label9,"label9" );
|
|
528 gtk_widget_ref( label9 );
|
|
529 gtk_object_set_data_full( GTK_OBJECT( Equalizer ),"label9",label9,(GtkDestroyNotify)gtk_widget_unref );
|
|
530 gtk_widget_show( label9 );
|
|
531 gtk_table_attach( GTK_TABLE( table1 ),label9,6,7,1,2,( GtkAttachOptions )( GTK_FILL ),( GtkAttachOptions )( 0 ),0,0 );
|
|
532 gtk_misc_set_alignment( GTK_MISC( label9 ),0,0.5 );
|
|
533 gtk_misc_set_padding( GTK_MISC( label9 ),2,0 );
|
|
534
|
|
535 label10=gtk_label_new( "4000" );
|
|
536 gtk_widget_set_name( label10,"label10" );
|
|
537 gtk_widget_ref( label10 );
|
|
538 gtk_object_set_data_full( GTK_OBJECT( Equalizer ),"label10",label10,(GtkDestroyNotify)gtk_widget_unref );
|
|
539 gtk_widget_show( label10 );
|
|
540 gtk_table_attach( GTK_TABLE( table1 ),label10,7,8,1,2,( GtkAttachOptions )( GTK_FILL ),( GtkAttachOptions )( 0 ),0,0 );
|
|
541 gtk_misc_set_alignment( GTK_MISC( label10 ),0,0.5 );
|
|
542 gtk_misc_set_padding( GTK_MISC( label10 ),3,0 );
|
|
543
|
|
544 label11=gtk_label_new( "8000" );
|
|
545 gtk_widget_set_name( label11,"label11" );
|
|
546 gtk_widget_ref( label11 );
|
|
547 gtk_object_set_data_full( GTK_OBJECT( Equalizer ),"label11",label11,(GtkDestroyNotify)gtk_widget_unref );
|
|
548 gtk_widget_show( label11 );
|
|
549 gtk_table_attach( GTK_TABLE( table1 ),label11,8,9,1,2,( GtkAttachOptions )( GTK_FILL ),( GtkAttachOptions )( 0 ),0,0 );
|
|
550 gtk_misc_set_alignment( GTK_MISC( label11 ),0,0.5 );
|
|
551 gtk_misc_set_padding( GTK_MISC( label11 ),1,0 );
|
|
552
|
|
553 label12=gtk_label_new( "16000" );
|
|
554 gtk_widget_set_name( label12,"label12" );
|
|
555 gtk_widget_ref( label12 );
|
|
556 gtk_object_set_data_full( GTK_OBJECT( Equalizer ),"label12",label12,(GtkDestroyNotify)gtk_widget_unref );
|
|
557 gtk_widget_show( label12 );
|
|
558 gtk_table_attach( GTK_TABLE( table1 ),label12,9,10,1,2,( GtkAttachOptions )( GTK_FILL ),( GtkAttachOptions )( 0 ),0,0 );
|
|
559 gtk_misc_set_alignment( GTK_MISC( label12 ),0,0.5 );
|
|
560
|
6651
|
561 label1=gtk_label_new( MSGTR_EQU_Audio );
|
6626
|
562 gtk_widget_set_name( label1,"label1" );
|
|
563 gtk_widget_ref( label1 );
|
|
564 gtk_object_set_data_full( GTK_OBJECT( Equalizer ),"label1",label1,(GtkDestroyNotify)gtk_widget_unref );
|
|
565 gtk_widget_show( label1 );
|
|
566 gtk_notebook_set_tab_label( GTK_NOTEBOOK( Notebook ),gtk_notebook_get_nth_page( GTK_NOTEBOOK( Notebook ),0 ),label1 );
|
|
567
|
|
568 hbox2=gtk_hbox_new( FALSE,0 );
|
|
569 gtk_widget_set_name( hbox2,"hbox2" );
|
|
570 gtk_widget_ref( hbox2 );
|
|
571 gtk_object_set_data_full( GTK_OBJECT( Equalizer ),"hbox2",hbox2,(GtkDestroyNotify)gtk_widget_unref );
|
|
572 gtk_widget_show( hbox2 );
|
|
573 gtk_container_add( GTK_CONTAINER( Notebook ),hbox2 );
|
|
574
|
|
575 vbox2=gtk_vbox_new( TRUE,0 );
|
|
576 gtk_widget_set_name( vbox2,"vbox2" );
|
|
577 gtk_widget_ref( vbox2 );
|
|
578 gtk_object_set_data_full( GTK_OBJECT( Equalizer ),"vbox2",vbox2,(GtkDestroyNotify)gtk_widget_unref );
|
|
579 gtk_widget_show( vbox2 );
|
|
580 gtk_box_pack_start( GTK_BOX( hbox2 ),vbox2,FALSE,FALSE,0 );
|
|
581
|
6651
|
582 label13=gtk_label_new( MSGTR_EQU_Contrast );
|
6626
|
583 gtk_widget_set_name( label13,"label13" );
|
|
584 gtk_widget_ref( label13 );
|
|
585 gtk_object_set_data_full( GTK_OBJECT( Equalizer ),"label13",label13,(GtkDestroyNotify)gtk_widget_unref );
|
|
586 gtk_widget_show( label13 );
|
|
587 gtk_box_pack_start( GTK_BOX( vbox2 ),label13,FALSE,FALSE,0 );
|
|
588 gtk_label_set_justify( GTK_LABEL( label13 ),GTK_JUSTIFY_LEFT );
|
|
589 gtk_misc_set_alignment( GTK_MISC( label13 ),0.02,0.5 );
|
|
590
|
6651
|
591 label14=gtk_label_new( MSGTR_EQU_Brightness );
|
6626
|
592 gtk_widget_set_name( label14,"label14" );
|
|
593 gtk_widget_ref( label14 );
|
|
594 gtk_object_set_data_full( GTK_OBJECT( Equalizer ),"label14",label14,(GtkDestroyNotify)gtk_widget_unref );
|
|
595 gtk_widget_show( label14 );
|
|
596 gtk_box_pack_start( GTK_BOX( vbox2 ),label14,FALSE,FALSE,0 );
|
|
597 gtk_label_set_justify( GTK_LABEL( label14 ),GTK_JUSTIFY_LEFT );
|
|
598 gtk_misc_set_alignment( GTK_MISC( label14 ),0.02,0.5 );
|
|
599
|
6651
|
600 label15=gtk_label_new( MSGTR_EQU_Hue );
|
6626
|
601 gtk_widget_set_name( label15,"label15" );
|
|
602 gtk_widget_ref( label15 );
|
|
603 gtk_object_set_data_full( GTK_OBJECT( Equalizer ),"label15",label15,(GtkDestroyNotify)gtk_widget_unref );
|
|
604 gtk_widget_show( label15 );
|
|
605 gtk_box_pack_start( GTK_BOX( vbox2 ),label15,FALSE,FALSE,0 );
|
|
606 gtk_label_set_justify( GTK_LABEL( label15 ),GTK_JUSTIFY_LEFT );
|
|
607 gtk_misc_set_alignment( GTK_MISC( label15 ),0.02,0.5 );
|
|
608
|
6651
|
609 label16=gtk_label_new( MSGTR_EQU_Saturation );
|
6626
|
610 gtk_widget_set_name( label16,"label16" );
|
|
611 gtk_widget_ref( label16 );
|
|
612 gtk_object_set_data_full( GTK_OBJECT( Equalizer ),"label16",label16,(GtkDestroyNotify)gtk_widget_unref );
|
|
613 gtk_widget_show( label16 );
|
|
614 gtk_box_pack_start( GTK_BOX( vbox2 ),label16,FALSE,FALSE,0 );
|
|
615 gtk_label_set_justify( GTK_LABEL( label16 ),GTK_JUSTIFY_LEFT );
|
|
616 gtk_misc_set_alignment( GTK_MISC( label16 ),0.02,0.5 );
|
|
617
|
|
618 vbox3=gtk_vbox_new( TRUE,0 );
|
|
619 gtk_widget_set_name( vbox3,"vbox3" );
|
|
620 gtk_widget_ref( vbox3 );
|
|
621 gtk_object_set_data_full( GTK_OBJECT( Equalizer ),"vbox3",vbox3,(GtkDestroyNotify)gtk_widget_unref );
|
|
622 gtk_widget_show( vbox3 );
|
|
623 gtk_box_pack_start( GTK_BOX( hbox2 ),vbox3,TRUE,TRUE,0 );
|
|
624
|
6755
|
625 VContrastadj=GTK_ADJUSTMENT( gtk_adjustment_new( 0,-100,100,1,0,0 ) );
|
6626
|
626 VContrast=gtk_hscale_new( VContrastadj );
|
|
627 gtk_widget_set_name( VContrast,"VContrast" );
|
|
628 gtk_widget_ref( VContrast );
|
|
629 gtk_object_set_data_full( GTK_OBJECT( Equalizer ),"VContrast",VContrast,(GtkDestroyNotify)gtk_widget_unref );
|
|
630 gtk_widget_show( VContrast );
|
|
631 gtk_box_pack_start( GTK_BOX( vbox3 ),VContrast,TRUE,TRUE,0 );
|
|
632 gtk_scale_set_value_pos( GTK_SCALE( VContrast ),GTK_POS_RIGHT );
|
|
633
|
6755
|
634 VBrightnessadj=GTK_ADJUSTMENT( gtk_adjustment_new( 0,-100,100,1,0,0 ) );
|
6626
|
635 VBrightness=gtk_hscale_new( VBrightnessadj );
|
|
636 gtk_widget_set_name( VBrightness,"VBrightness" );
|
|
637 gtk_widget_ref( VBrightness );
|
|
638 gtk_object_set_data_full( GTK_OBJECT( Equalizer ),"VBrightness",VBrightness,(GtkDestroyNotify)gtk_widget_unref );
|
|
639 gtk_widget_show( VBrightness );
|
|
640 gtk_box_pack_start( GTK_BOX( vbox3 ),VBrightness,TRUE,TRUE,0 );
|
|
641 gtk_scale_set_value_pos( GTK_SCALE( VBrightness ),GTK_POS_RIGHT );
|
|
642
|
6755
|
643 VHueadj=GTK_ADJUSTMENT( gtk_adjustment_new( 0,-100,100,1,0,0 ) );
|
6626
|
644 VHue=gtk_hscale_new( VHueadj );
|
|
645 gtk_widget_set_name( VHue,"VHue" );
|
|
646 gtk_widget_ref( VHue );
|
|
647 gtk_object_set_data_full( GTK_OBJECT( Equalizer ),"VHue",VHue,(GtkDestroyNotify)gtk_widget_unref );
|
|
648 gtk_widget_show( VHue );
|
|
649 gtk_box_pack_start( GTK_BOX( vbox3 ),VHue,TRUE,TRUE,0 );
|
|
650 gtk_scale_set_value_pos( GTK_SCALE( VHue ),GTK_POS_RIGHT );
|
|
651
|
6755
|
652 VSaturationadj=GTK_ADJUSTMENT( gtk_adjustment_new( 0,-100,100,1,0,0 ) );
|
6626
|
653 VSaturation=gtk_hscale_new( VSaturationadj );
|
|
654 gtk_widget_set_name( VSaturation,"VSaturation" );
|
|
655 gtk_widget_ref( VSaturation );
|
|
656 gtk_object_set_data_full( GTK_OBJECT( Equalizer ),"VSaturation",VSaturation,(GtkDestroyNotify)gtk_widget_unref );
|
|
657 gtk_widget_show( VSaturation );
|
|
658 gtk_box_pack_start( GTK_BOX( vbox3 ),VSaturation,TRUE,TRUE,0 );
|
|
659 gtk_scale_set_value_pos( GTK_SCALE( VSaturation ),GTK_POS_RIGHT );
|
|
660
|
6651
|
661 label2=gtk_label_new( MSGTR_EQU_Video );
|
6626
|
662 gtk_widget_set_name( label2,"label2" );
|
|
663 gtk_widget_ref( label2 );
|
|
664 gtk_object_set_data_full( GTK_OBJECT( Equalizer ),"label2",label2,(GtkDestroyNotify)gtk_widget_unref );
|
|
665 gtk_widget_show( label2 );
|
|
666 gtk_notebook_set_tab_label( GTK_NOTEBOOK( Notebook ),gtk_notebook_get_nth_page( GTK_NOTEBOOK( Notebook ),1 ),label2 );
|
|
667
|
|
668 hbuttonbox1=gtk_hbutton_box_new();
|
|
669 gtk_widget_set_name( hbuttonbox1,"hbuttonbox1" );
|
|
670 gtk_widget_ref( hbuttonbox1 );
|
|
671 gtk_object_set_data_full( GTK_OBJECT( Equalizer ),"hbuttonbox1",hbuttonbox1,(GtkDestroyNotify)gtk_widget_unref );
|
|
672 gtk_widget_show( hbuttonbox1 );
|
|
673 gtk_box_pack_end( GTK_BOX( vbox1 ),hbuttonbox1,FALSE,TRUE,0 );
|
|
674 gtk_button_box_set_layout( GTK_BUTTON_BOX( hbuttonbox1 ),GTK_BUTTONBOX_END );
|
6651
|
675 gtk_button_box_set_spacing( GTK_BUTTON_BOX( hbuttonbox1 ),10 );
|
|
676 gtk_button_box_set_child_size( GTK_BUTTON_BOX( hbuttonbox1 ),85,20 );
|
6627
|
677
|
6651
|
678 Config=gtk_button_new_with_label( MSGTR_Config );
|
|
679 gtk_widget_set_name( Config,"Config" );
|
|
680 gtk_widget_ref( Config );
|
|
681 gtk_object_set_data_full( GTK_OBJECT( Equalizer ),"Config",Config,(GtkDestroyNotify)gtk_widget_unref );
|
|
682 gtk_container_add( GTK_CONTAINER( hbuttonbox1 ),Config );
|
|
683
|
|
684 Clear=gtk_button_new_with_label( MSGTR_Clear );
|
6627
|
685 gtk_widget_set_name( Clear,"Clear" );
|
|
686 gtk_widget_ref( Clear );
|
|
687 gtk_object_set_data_full( GTK_OBJECT( Equalizer ),"Clear",Clear,(GtkDestroyNotify)gtk_widget_unref );
|
|
688 gtk_widget_show( Clear );
|
|
689 gtk_container_add( GTK_CONTAINER( hbuttonbox1 ),Clear );
|
6626
|
690
|
6651
|
691 Ok=gtk_button_new_with_label( MSGTR_Ok );
|
6626
|
692 gtk_widget_set_name( Ok,"Ok" );
|
|
693 gtk_widget_ref( Ok );
|
|
694 gtk_object_set_data_full( GTK_OBJECT( Equalizer ),"Ok",Ok,(GtkDestroyNotify)gtk_widget_unref );
|
|
695 gtk_widget_show( Ok );
|
|
696 gtk_container_add( GTK_CONTAINER( hbuttonbox1 ),Ok );
|
|
697 gtk_widget_add_accelerator( Ok,"released",accel_group,GDK_Escape,0,GTK_ACCEL_VISIBLE );
|
|
698 gtk_widget_add_accelerator( Ok,"released",accel_group,GDK_Return,0,GTK_ACCEL_VISIBLE );
|
|
699
|
|
700 hseparator1=gtk_hseparator_new();
|
|
701 gtk_widget_set_name( hseparator1,"hseparator1" );
|
|
702 gtk_widget_ref( hseparator1 );
|
|
703 gtk_object_set_data_full( GTK_OBJECT( Equalizer ),"hseparator1",hseparator1,(GtkDestroyNotify)gtk_widget_unref );
|
|
704 gtk_widget_show( hseparator1 );
|
|
705 gtk_box_pack_start( GTK_BOX( vbox1 ),hseparator1,FALSE,FALSE,0 );
|
|
706 gtk_widget_set_usize( hseparator1,-2,5 );
|
|
707
|
|
708 gtk_signal_connect( GTK_OBJECT( Equalizer ),"destroy",GTK_SIGNAL_FUNC( eqDestroy ),NULL );
|
6627
|
709 gtk_signal_connect( GTK_OBJECT( Equalizer ),"show",GTK_SIGNAL_FUNC( eqShow ),(void *)1 );
|
|
710 gtk_signal_connect( GTK_OBJECT( Equalizer ),"hide",GTK_SIGNAL_FUNC( eqShow ),(void *)0 );
|
6626
|
711 gtk_signal_connect( GTK_OBJECT( ChannelsList ),"select_row",GTK_SIGNAL_FUNC( eqSelectChannelsListRow ),NULL );
|
|
712
|
|
713 gtk_signal_connect( GTK_OBJECT( A3125 ),"motion_notify_event",GTK_SIGNAL_FUNC( eqHScaleMotion ),(void*)0 );
|
|
714 gtk_signal_connect( GTK_OBJECT( A6250 ),"motion_notify_event",GTK_SIGNAL_FUNC( eqHScaleMotion ),(void*)1 );
|
|
715 gtk_signal_connect( GTK_OBJECT( A125 ),"motion_notify_event",GTK_SIGNAL_FUNC( eqHScaleMotion ),(void*)2 );
|
|
716 gtk_signal_connect( GTK_OBJECT( A250 ),"motion_notify_event",GTK_SIGNAL_FUNC( eqHScaleMotion ),(void*)3 );
|
|
717 gtk_signal_connect( GTK_OBJECT( A500 ),"motion_notify_event",GTK_SIGNAL_FUNC( eqHScaleMotion ),(void*)4 );
|
|
718 gtk_signal_connect( GTK_OBJECT( A1000 ),"motion_notify_event",GTK_SIGNAL_FUNC( eqHScaleMotion ),(void*)5 );
|
|
719 gtk_signal_connect( GTK_OBJECT( A2000 ),"motion_notify_event",GTK_SIGNAL_FUNC( eqHScaleMotion ),(void*)6 );
|
|
720 gtk_signal_connect( GTK_OBJECT( A4000 ),"motion_notify_event",GTK_SIGNAL_FUNC( eqHScaleMotion ),(void*)7 );
|
|
721 gtk_signal_connect( GTK_OBJECT( A8000 ),"motion_notify_event",GTK_SIGNAL_FUNC( eqHScaleMotion ),(void*)8 );
|
|
722 gtk_signal_connect( GTK_OBJECT( A16000 ),"motion_notify_event",GTK_SIGNAL_FUNC( eqHScaleMotion ),(void*)9 );
|
|
723
|
|
724 gtk_signal_connect( GTK_OBJECT( VContrast ),"motion_notify_event",GTK_SIGNAL_FUNC( eqVScaleMotion ),(void*)1 );
|
|
725 gtk_signal_connect( GTK_OBJECT( VBrightness ),"motion_notify_event",GTK_SIGNAL_FUNC( eqVScaleMotion ),(void*)2 );
|
|
726 gtk_signal_connect( GTK_OBJECT( VHue ),"motion_notify_event",GTK_SIGNAL_FUNC( eqVScaleMotion ),(void*)3 );
|
|
727 gtk_signal_connect( GTK_OBJECT( VSaturation ),"motion_notify_event",GTK_SIGNAL_FUNC( eqVScaleMotion ),(void *)4 );
|
|
728
|
6627
|
729 gtk_signal_connect( GTK_OBJECT( Ok ),"released",GTK_SIGNAL_FUNC( eqButtonReleased ),(void *)0 );
|
|
730 gtk_signal_connect( GTK_OBJECT( Clear ),"released",GTK_SIGNAL_FUNC( eqButtonReleased ),(void *)1 );
|
6651
|
731 gtk_signal_connect( GTK_OBJECT( Config ),"released",GTK_SIGNAL_FUNC( eqButtonReleased ),(void *)2 );
|
|
732
|
|
733 gtk_signal_connect( GTK_OBJECT( Notebook ),"switch_page",GTK_SIGNAL_FUNC( eqNotebook ),NULL );
|
6626
|
734
|
|
735 gtk_window_add_accel_group( GTK_WINDOW( Equalizer ),accel_group );
|
|
736
|
|
737 return Equalizer;
|
|
738 }
|
|
739
|
6651
|
740 // --- equalizer config dialog box
|
|
741
|
|
742 static GtkWidget * EquConfig;
|
|
743 static GtkWidget * CBChannel1;
|
|
744 static GtkWidget * CEChannel1;
|
|
745 static GtkWidget * CBChannel2;
|
|
746 static GtkWidget * CEChannel2;
|
|
747 static GtkWidget * CBChannel3;
|
|
748 static GtkWidget * CEChannel3;
|
|
749 static GtkWidget * CBChannel4;
|
|
750 static GtkWidget * CEChannel4;
|
|
751 static GtkWidget * CBChannel5;
|
|
752 static GtkWidget * CEChannel5;
|
|
753 static GtkWidget * CBChannel6;
|
|
754 static GtkWidget * CEChannel6;
|
|
755 static GtkWidget * ecOk;
|
|
756 static GtkWidget * ecCancel;
|
|
757
|
|
758 GtkWidget * create_EquConfig( void );
|
|
759
|
|
760 void ShowEquConfig( void )
|
|
761 {
|
|
762 GList * Items = NULL;
|
|
763
|
|
764 if ( gtkVEquConfig ) gtkActive( EquConfig );
|
|
765 else EquConfig=create_EquConfig();
|
|
766
|
|
767 Items=g_list_append( Items,(gpointer)MSGTR_EQU_Front_Right );
|
|
768 Items=g_list_append( Items,(gpointer)MSGTR_EQU_Front_Left );
|
|
769 Items=g_list_append( Items,(gpointer)MSGTR_EQU_Back_Right );
|
|
770 Items=g_list_append( Items,(gpointer)MSGTR_EQU_Back_Left );
|
|
771 Items=g_list_append( Items,(gpointer)MSGTR_EQU_Center );
|
|
772 Items=g_list_append( Items,(gpointer)MSGTR_EQU_Bass );
|
|
773
|
|
774 gtk_combo_set_popdown_strings( GTK_COMBO( CBChannel1 ),Items );
|
|
775 gtk_combo_set_popdown_strings( GTK_COMBO( CBChannel2 ),Items );
|
|
776 gtk_combo_set_popdown_strings( GTK_COMBO( CBChannel3 ),Items );
|
|
777 gtk_combo_set_popdown_strings( GTK_COMBO( CBChannel4 ),Items );
|
|
778 gtk_combo_set_popdown_strings( GTK_COMBO( CBChannel5 ),Items );
|
|
779 gtk_combo_set_popdown_strings( GTK_COMBO( CBChannel6 ),Items );
|
|
780
|
|
781 g_list_free( Items );
|
|
782
|
|
783 gtk_entry_set_text( GTK_ENTRY( CEChannel1 ),gtkEquChannel1 ); gtk_entry_set_editable( GTK_ENTRY( CEChannel1 ),FALSE );
|
|
784 gtk_entry_set_text( GTK_ENTRY( CEChannel2 ),gtkEquChannel2 ); gtk_entry_set_editable( GTK_ENTRY( CEChannel2 ),FALSE );
|
|
785 gtk_entry_set_text( GTK_ENTRY( CEChannel3 ),gtkEquChannel3 ); gtk_entry_set_editable( GTK_ENTRY( CEChannel3 ),FALSE );
|
|
786 gtk_entry_set_text( GTK_ENTRY( CEChannel4 ),gtkEquChannel4 ); gtk_entry_set_editable( GTK_ENTRY( CEChannel4 ),FALSE );
|
|
787 gtk_entry_set_text( GTK_ENTRY( CEChannel5 ),gtkEquChannel5 ); gtk_entry_set_editable( GTK_ENTRY( CEChannel5 ),FALSE );
|
|
788 gtk_entry_set_text( GTK_ENTRY( CEChannel6 ),gtkEquChannel6 ); gtk_entry_set_editable( GTK_ENTRY( CEChannel6 ),FALSE );
|
|
789
|
|
790 gtk_widget_show( EquConfig );
|
6755
|
791 gtkSetLayer( EquConfig );
|
6651
|
792 }
|
|
793
|
|
794 void HideEquConfig( void )
|
|
795 { gtk_widget_hide( EquConfig ); gtk_widget_destroy( EquConfig ); gtkVEquConfig=0; }
|
|
796
|
|
797 static void ecHandler( GtkObject * object,gpointer user_data )
|
|
798 {
|
|
799 switch ( (int)user_data )
|
|
800 {
|
|
801 case 0: HideEquConfig(); break;
|
|
802 case 1: gtkVEquConfig=1; break;
|
|
803 case 2: gtkVEquConfig=0; break;
|
|
804 }
|
|
805 }
|
|
806
|
|
807 static void ecButtonReleased( GtkButton * button,gpointer user_data )
|
|
808 {
|
|
809 if ( (int)user_data )
|
|
810 { // if you pressed Ok
|
|
811 if ( gtkEquChannel1) free( gtkEquChannel1 ); gtkEquChannel1=strdup( gtk_entry_get_text( GTK_ENTRY( CEChannel1 ) ) );
|
|
812 if ( gtkEquChannel2) free( gtkEquChannel2 ); gtkEquChannel2=strdup( gtk_entry_get_text( GTK_ENTRY( CEChannel2 ) ) );
|
|
813 if ( gtkEquChannel3) free( gtkEquChannel3 ); gtkEquChannel3=strdup( gtk_entry_get_text( GTK_ENTRY( CEChannel3 ) ) );
|
|
814 if ( gtkEquChannel4) free( gtkEquChannel4 ); gtkEquChannel4=strdup( gtk_entry_get_text( GTK_ENTRY( CEChannel4 ) ) );
|
|
815 if ( gtkEquChannel5) free( gtkEquChannel5 ); gtkEquChannel5=strdup( gtk_entry_get_text( GTK_ENTRY( CEChannel5 ) ) );
|
|
816 if ( gtkEquChannel6) free( gtkEquChannel6 ); gtkEquChannel6=strdup( gtk_entry_get_text( GTK_ENTRY( CEChannel6 ) ) );
|
|
817 eqSetChannelNames();
|
|
818 }
|
|
819 HideEquConfig();
|
|
820 }
|
|
821
|
|
822 GtkWidget * create_EquConfig( void )
|
|
823 {
|
|
824 GtkWidget * frame1;
|
|
825 GtkWidget * frame2;
|
|
826 GtkWidget * frame3;
|
|
827 GtkWidget * frame4;
|
|
828 GtkWidget * vbox1;
|
|
829 GtkWidget * table1;
|
|
830 GtkWidget * label1;
|
|
831 GtkWidget * label2;
|
|
832 GtkWidget * label3;
|
|
833 GtkWidget * label4;
|
|
834 GtkWidget * label5;
|
|
835 GtkWidget * label6;
|
|
836 GtkWidget * hseparator1;
|
|
837 GtkWidget * hbuttonbox1;
|
|
838 GtkAccelGroup * accel_group;
|
|
839
|
|
840 accel_group=gtk_accel_group_new();
|
|
841
|
|
842 EquConfig=gtk_window_new( GTK_WINDOW_DIALOG );
|
|
843 gtk_widget_set_name( EquConfig,"EquConfig" );
|
|
844 gtk_object_set_data( GTK_OBJECT( EquConfig ),"EquConfig",EquConfig );
|
|
845 gtk_widget_set_usize( EquConfig,350,198 );
|
|
846 GTK_WIDGET_SET_FLAGS( EquConfig,GTK_CAN_DEFAULT );
|
|
847 gtk_window_set_title( GTK_WINDOW( EquConfig ),"Configure Equalizer" );
|
|
848 gtk_window_set_position( GTK_WINDOW( EquConfig ),GTK_WIN_POS_CENTER );
|
|
849 // gtk_window_set_modal( GTK_WINDOW( EquConfig ),TRUE );
|
|
850 gtk_window_set_policy( GTK_WINDOW( EquConfig ),FALSE,FALSE,FALSE );
|
|
851 gtk_window_set_wmclass( GTK_WINDOW( EquConfig ),"EquConfig","MPlayer" );
|
|
852
|
|
853 gtk_widget_realize( EquConfig );
|
|
854 gtkAddIcon( EquConfig );
|
|
855
|
|
856 frame1=gtk_frame_new( NULL );
|
|
857 gtk_widget_set_name( frame1,"frame1" );
|
|
858 gtk_widget_ref( frame1 );
|
|
859 gtk_object_set_data_full( GTK_OBJECT( EquConfig ),"frame1",frame1,(GtkDestroyNotify)gtk_widget_unref );
|
|
860 gtk_widget_show( frame1 );
|
|
861 gtk_container_add( GTK_CONTAINER( EquConfig ),frame1 );
|
|
862 gtk_container_set_border_width( GTK_CONTAINER( frame1 ),1 );
|
|
863 gtk_frame_set_shadow_type( GTK_FRAME( frame1 ),GTK_SHADOW_IN );
|
|
864
|
|
865 frame2=gtk_frame_new( NULL );
|
|
866 gtk_widget_set_name( frame2,"frame2" );
|
|
867 gtk_widget_ref( frame2 );
|
|
868 gtk_object_set_data_full( GTK_OBJECT( EquConfig ),"frame2",frame2,(GtkDestroyNotify)gtk_widget_unref );
|
|
869 gtk_widget_show( frame2 );
|
|
870 gtk_container_add( GTK_CONTAINER( frame1 ),frame2 );
|
|
871 gtk_frame_set_shadow_type( GTK_FRAME( frame2 ),GTK_SHADOW_NONE );
|
|
872
|
|
873 frame3=gtk_frame_new( NULL );
|
|
874 gtk_widget_set_name( frame3,"frame3" );
|
|
875 gtk_widget_ref( frame3 );
|
|
876 gtk_object_set_data_full( GTK_OBJECT( EquConfig ),"frame3",frame3,(GtkDestroyNotify)gtk_widget_unref );
|
|
877 gtk_widget_show( frame3 );
|
|
878 gtk_container_add( GTK_CONTAINER( frame2 ),frame3 );
|
|
879 gtk_frame_set_shadow_type( GTK_FRAME( frame3 ),GTK_SHADOW_ETCHED_OUT );
|
|
880
|
|
881 frame4=gtk_frame_new( NULL );
|
|
882 gtk_widget_set_name( frame4,"frame4" );
|
|
883 gtk_widget_ref( frame4 );
|
|
884 gtk_object_set_data_full( GTK_OBJECT( EquConfig ),"frame4",frame4,(GtkDestroyNotify)gtk_widget_unref );
|
|
885 gtk_widget_show( frame4 );
|
|
886 gtk_container_add( GTK_CONTAINER( frame3 ),frame4 );
|
|
887 gtk_frame_set_shadow_type( GTK_FRAME( frame4 ),GTK_SHADOW_NONE );
|
|
888
|
|
889 vbox1=gtk_vbox_new( FALSE,0 );
|
|
890 gtk_widget_set_name( vbox1,"vbox1" );
|
|
891 gtk_widget_ref( vbox1 );
|
|
892 gtk_object_set_data_full( GTK_OBJECT( EquConfig ),"vbox1",vbox1,(GtkDestroyNotify)gtk_widget_unref );
|
|
893 gtk_widget_show( vbox1 );
|
|
894 gtk_container_add( GTK_CONTAINER( frame4 ),vbox1 );
|
|
895
|
|
896 table1=gtk_table_new( 6,2,FALSE );
|
|
897 gtk_widget_set_name( table1,"table1" );
|
|
898 gtk_widget_ref( table1 );
|
|
899 gtk_object_set_data_full( GTK_OBJECT( EquConfig ),"table1",table1,(GtkDestroyNotify)gtk_widget_unref );
|
|
900 gtk_widget_show( table1 );
|
|
901 gtk_box_pack_start( GTK_BOX( vbox1 ),table1,TRUE,TRUE,0 );
|
|
902 gtk_table_set_row_spacings( GTK_TABLE( table1 ),4 );
|
|
903 gtk_table_set_col_spacings( GTK_TABLE( table1 ),4 );
|
|
904
|
|
905 label1=gtk_label_new( "Channel 1:" );
|
|
906 gtk_widget_set_name( label1,"label1" );
|
|
907 gtk_widget_ref( label1 );
|
|
908 gtk_object_set_data_full( GTK_OBJECT( EquConfig ),"label1",label1,(GtkDestroyNotify)gtk_widget_unref );
|
|
909 gtk_widget_show( label1 );
|
|
910 gtk_table_attach( GTK_TABLE( table1 ),label1,0,1,0,1,(GtkAttachOptions)( GTK_FILL ),(GtkAttachOptions)( 0 ),0,0 );
|
|
911 gtk_misc_set_alignment( GTK_MISC( label1 ),0,0.5 );
|
|
912
|
|
913 label2=gtk_label_new( "Channel 2:" );
|
|
914 gtk_widget_set_name( label2,"label2" );
|
|
915 gtk_widget_ref( label2 );
|
|
916 gtk_object_set_data_full( GTK_OBJECT( EquConfig ),"label2",label2,(GtkDestroyNotify)gtk_widget_unref );
|
|
917 gtk_widget_show( label2 );
|
|
918 gtk_table_attach( GTK_TABLE( table1 ),label2,0,1,1,2,(GtkAttachOptions)( GTK_FILL ),(GtkAttachOptions)( 0 ),0,0 );
|
|
919 gtk_misc_set_alignment( GTK_MISC( label2 ),0,0.5 );
|
|
920
|
|
921 label3=gtk_label_new( "Channel 3:" );
|
|
922 gtk_widget_set_name( label3,"label3" );
|
|
923 gtk_widget_ref( label3 );
|
|
924 gtk_object_set_data_full( GTK_OBJECT( EquConfig ),"label3",label3,(GtkDestroyNotify)gtk_widget_unref );
|
|
925 gtk_widget_show( label3 );
|
|
926 gtk_table_attach( GTK_TABLE( table1 ),label3,0,1,2,3,(GtkAttachOptions)( GTK_FILL ),(GtkAttachOptions)( 0 ),0,0 );
|
|
927 gtk_misc_set_alignment( GTK_MISC( label3 ),0,0.5 );
|
|
928
|
|
929 label4=gtk_label_new( "Channel 4:" );
|
|
930 gtk_widget_set_name( label4,"label4" );
|
|
931 gtk_widget_ref( label4 );
|
|
932 gtk_object_set_data_full( GTK_OBJECT( EquConfig ),"label4",label4,(GtkDestroyNotify)gtk_widget_unref );
|
|
933 gtk_widget_show( label4 );
|
|
934 gtk_table_attach( GTK_TABLE( table1 ),label4,0,1,3,4,(GtkAttachOptions)( GTK_FILL ),(GtkAttachOptions)( 0 ),0,0 );
|
|
935 gtk_misc_set_alignment( GTK_MISC( label4 ),0,0.5 );
|
|
936
|
|
937 label5=gtk_label_new( "Channel 5:" );
|
|
938 gtk_widget_set_name( label5,"label5" );
|
|
939 gtk_widget_ref( label5 );
|
|
940 gtk_object_set_data_full( GTK_OBJECT( EquConfig ),"label5",label5,(GtkDestroyNotify)gtk_widget_unref );
|
|
941 gtk_widget_show( label5 );
|
|
942 gtk_table_attach( GTK_TABLE( table1 ),label5,0,1,4,5,(GtkAttachOptions)( GTK_FILL ),(GtkAttachOptions)( 0 ),0,0 );
|
|
943 gtk_misc_set_alignment( GTK_MISC( label5 ),0,0.5 );
|
|
944
|
|
945 label6=gtk_label_new( "Channel 6:" );
|
|
946 gtk_widget_set_name( label6,"label6" );
|
|
947 gtk_widget_ref( label6 );
|
|
948 gtk_object_set_data_full( GTK_OBJECT( EquConfig ),"label6",label6,(GtkDestroyNotify)gtk_widget_unref );
|
|
949 gtk_widget_show( label6 );
|
|
950 gtk_table_attach( GTK_TABLE( table1 ),label6,0,1,5,6,(GtkAttachOptions)( GTK_FILL ),(GtkAttachOptions)( 0 ),0,0 );
|
|
951 gtk_misc_set_alignment( GTK_MISC( label6 ),0,0.5 );
|
|
952
|
|
953 CBChannel1=gtk_combo_new();
|
|
954 gtk_widget_set_name( CBChannel1,"CBChannel1" );
|
|
955 gtk_widget_ref( CBChannel1 );
|
|
956 gtk_object_set_data_full( GTK_OBJECT( EquConfig ),"CBChannel1",CBChannel1,(GtkDestroyNotify)gtk_widget_unref );
|
|
957 gtk_widget_show( CBChannel1 );
|
|
958 gtk_table_attach( GTK_TABLE( table1 ),CBChannel1,1,2,0,1,(GtkAttachOptions)( GTK_EXPAND | GTK_FILL ),(GtkAttachOptions)( 0 ),0,0 );
|
|
959
|
|
960 CEChannel1=GTK_COMBO( CBChannel1 )->entry;
|
|
961 gtk_widget_set_name( CEChannel1,"CEChannel1" );
|
|
962 gtk_widget_ref( CEChannel1 );
|
|
963 gtk_object_set_data_full( GTK_OBJECT( EquConfig ),"CEChannel1",CEChannel1,(GtkDestroyNotify)gtk_widget_unref );
|
|
964 gtk_widget_show( CEChannel1 );
|
|
965
|
|
966 CBChannel2=gtk_combo_new();
|
|
967 gtk_widget_set_name( CBChannel2,"CBChannel2" );
|
|
968 gtk_widget_ref( CBChannel2 );
|
|
969 gtk_object_set_data_full( GTK_OBJECT( EquConfig ),"CBChannel2",CBChannel2,(GtkDestroyNotify)gtk_widget_unref );
|
|
970 gtk_widget_show( CBChannel2 );
|
|
971 gtk_table_attach( GTK_TABLE( table1 ),CBChannel2,1,2,1,2,(GtkAttachOptions)( GTK_EXPAND | GTK_FILL ),(GtkAttachOptions)( 0 ),0,0 );
|
|
972
|
|
973 CEChannel2=GTK_COMBO( CBChannel2 )->entry;
|
|
974 gtk_widget_set_name( CEChannel2,"CEChannel2" );
|
|
975 gtk_widget_ref( CEChannel2 );
|
|
976 gtk_object_set_data_full( GTK_OBJECT( EquConfig ),"CEChannel2",CEChannel2,(GtkDestroyNotify)gtk_widget_unref );
|
|
977 gtk_widget_show( CEChannel2 );
|
|
978
|
|
979 CBChannel3=gtk_combo_new();
|
|
980 gtk_widget_set_name( CBChannel3,"CBChannel3" );
|
|
981 gtk_widget_ref( CBChannel3 );
|
|
982 gtk_object_set_data_full( GTK_OBJECT( EquConfig ),"CBChannel3",CBChannel3,(GtkDestroyNotify)gtk_widget_unref );
|
|
983 gtk_widget_show( CBChannel3 );
|
|
984 gtk_table_attach( GTK_TABLE( table1 ),CBChannel3,1,2,2,3,(GtkAttachOptions)( GTK_EXPAND | GTK_FILL ),(GtkAttachOptions)( 0 ),0,0 );
|
|
985
|
|
986 CEChannel3=GTK_COMBO( CBChannel3 )->entry;
|
|
987 gtk_widget_set_name( CEChannel3,"CEChannel3" );
|
|
988 gtk_widget_ref( CEChannel3 );
|
|
989 gtk_object_set_data_full( GTK_OBJECT( EquConfig ),"CEChannel3",CEChannel3,(GtkDestroyNotify)gtk_widget_unref );
|
|
990 gtk_widget_show( CEChannel3 );
|
|
991
|
|
992 CBChannel4=gtk_combo_new();
|
|
993 gtk_widget_set_name( CBChannel4,"CBChannel4" );
|
|
994 gtk_widget_ref( CBChannel4 );
|
|
995 gtk_object_set_data_full( GTK_OBJECT( EquConfig ),"CBChannel4",CBChannel4,(GtkDestroyNotify)gtk_widget_unref );
|
|
996 gtk_widget_show( CBChannel4 );
|
|
997 gtk_table_attach( GTK_TABLE( table1 ),CBChannel4,1,2,3,4,(GtkAttachOptions)( GTK_EXPAND | GTK_FILL ),(GtkAttachOptions)( 0 ),0,0 );
|
|
998
|
|
999 CEChannel4=GTK_COMBO( CBChannel4 )->entry;
|
|
1000 gtk_widget_set_name( CEChannel4,"CEChannel4" );
|
|
1001 gtk_widget_ref( CEChannel4 );
|
|
1002 gtk_object_set_data_full( GTK_OBJECT( EquConfig ),"CEChannel4",CEChannel4,(GtkDestroyNotify)gtk_widget_unref );
|
|
1003 gtk_widget_show( CEChannel4 );
|
|
1004
|
|
1005 CBChannel5=gtk_combo_new();
|
|
1006 gtk_widget_set_name( CBChannel5,"CBChannel5" );
|
|
1007 gtk_widget_ref( CBChannel5 );
|
|
1008 gtk_object_set_data_full( GTK_OBJECT( EquConfig ),"CBChannel5",CBChannel5,(GtkDestroyNotify)gtk_widget_unref );
|
|
1009 gtk_widget_show( CBChannel5 );
|
|
1010 gtk_table_attach( GTK_TABLE( table1 ),CBChannel5,1,2,4,5,(GtkAttachOptions)( GTK_EXPAND | GTK_FILL ),(GtkAttachOptions)( 0 ),0,0 );
|
|
1011
|
|
1012 CEChannel5=GTK_COMBO( CBChannel5 )->entry;
|
|
1013 gtk_widget_set_name( CEChannel5,"CEChannel5" );
|
|
1014 gtk_widget_ref( CEChannel5 );
|
|
1015 gtk_object_set_data_full( GTK_OBJECT( EquConfig ),"CEChannel5",CEChannel5,(GtkDestroyNotify)gtk_widget_unref );
|
|
1016 gtk_widget_show( CEChannel5 );
|
|
1017
|
|
1018 CBChannel6=gtk_combo_new();
|
|
1019 gtk_widget_set_name( CBChannel6,"CBChannel6" );
|
|
1020 gtk_widget_ref( CBChannel6 );
|
|
1021 gtk_object_set_data_full( GTK_OBJECT( EquConfig ),"CBChannel6",CBChannel6,(GtkDestroyNotify)gtk_widget_unref );
|
|
1022 gtk_widget_show( CBChannel6 );
|
|
1023 gtk_table_attach( GTK_TABLE( table1 ),CBChannel6,1,2,5,6,(GtkAttachOptions)( GTK_EXPAND | GTK_FILL ),(GtkAttachOptions)( 0 ),0,0 );
|
|
1024
|
|
1025 CEChannel6=GTK_COMBO( CBChannel6 )->entry;
|
|
1026 gtk_widget_set_name( CEChannel6,"CEChannel6" );
|
|
1027 gtk_widget_ref( CEChannel6 );
|
|
1028 gtk_object_set_data_full( GTK_OBJECT( EquConfig ),"CEChannel6",CEChannel6,(GtkDestroyNotify)gtk_widget_unref );
|
|
1029 gtk_widget_show( CEChannel6 );
|
|
1030
|
|
1031 hseparator1=gtk_hseparator_new();
|
|
1032 gtk_widget_set_name( hseparator1,"hseparator1" );
|
|
1033 gtk_widget_ref( hseparator1 );
|
|
1034 gtk_object_set_data_full( GTK_OBJECT( EquConfig ),"hseparator1",hseparator1,(GtkDestroyNotify)gtk_widget_unref );
|
|
1035 gtk_widget_show( hseparator1 );
|
|
1036 gtk_box_pack_start( GTK_BOX( vbox1 ),hseparator1,FALSE,FALSE,0 );
|
|
1037 gtk_widget_set_usize( hseparator1,-2,6 );
|
|
1038
|
|
1039 hbuttonbox1=gtk_hbutton_box_new();
|
|
1040 gtk_widget_set_name( hbuttonbox1,"hbuttonbox1" );
|
|
1041 gtk_widget_ref( hbuttonbox1 );
|
|
1042 gtk_object_set_data_full( GTK_OBJECT( EquConfig ),"hbuttonbox1",hbuttonbox1,(GtkDestroyNotify)gtk_widget_unref );
|
|
1043 gtk_widget_show( hbuttonbox1 );
|
|
1044 gtk_box_pack_start( GTK_BOX( vbox1 ),hbuttonbox1,FALSE,FALSE,0 );
|
|
1045 gtk_button_box_set_layout( GTK_BUTTON_BOX( hbuttonbox1 ),GTK_BUTTONBOX_END );
|
|
1046 gtk_button_box_set_spacing( GTK_BUTTON_BOX( hbuttonbox1 ),10 );
|
|
1047 gtk_button_box_set_child_size( GTK_BUTTON_BOX( hbuttonbox1 ),-1,20 );
|
|
1048 gtk_button_box_set_child_ipadding( GTK_BUTTON_BOX( hbuttonbox1 ),0,-1 );
|
|
1049
|
|
1050 ecOk=gtk_button_new_with_label( "Ok" );
|
|
1051 gtk_widget_set_name( ecOk,"Ok" );
|
|
1052 gtk_widget_ref( ecOk );
|
|
1053 gtk_object_set_data_full( GTK_OBJECT( EquConfig ),"ecOk",ecOk,(GtkDestroyNotify)gtk_widget_unref );
|
|
1054 gtk_widget_show( ecOk );
|
|
1055 gtk_container_add( GTK_CONTAINER( hbuttonbox1 ),ecOk );
|
|
1056 GTK_WIDGET_UNSET_FLAGS( ecOk,GTK_CAN_FOCUS );
|
|
1057 gtk_widget_add_accelerator( ecOk,"released",accel_group,GDK_Return,0,GTK_ACCEL_VISIBLE );
|
|
1058
|
|
1059 ecCancel=gtk_button_new_with_label( "Cancel" );
|
|
1060 gtk_widget_set_name( ecCancel,"Cancel" );
|
|
1061 gtk_widget_ref( ecCancel );
|
|
1062 gtk_object_set_data_full( GTK_OBJECT( EquConfig ),"ecCancel",ecCancel,(GtkDestroyNotify)gtk_widget_unref );
|
|
1063 gtk_widget_show( ecCancel );
|
|
1064 gtk_container_add( GTK_CONTAINER( hbuttonbox1 ),ecCancel );
|
|
1065 GTK_WIDGET_UNSET_FLAGS( ecCancel,GTK_CAN_FOCUS );
|
|
1066 gtk_widget_add_accelerator( ecCancel,"released",accel_group,GDK_Escape,0,GTK_ACCEL_VISIBLE );
|
|
1067
|
|
1068 gtk_signal_connect( GTK_OBJECT( EquConfig ),"destroy",GTK_SIGNAL_FUNC( ecHandler ),(void *)0 );
|
|
1069 gtk_signal_connect( GTK_OBJECT( EquConfig ),"show",GTK_SIGNAL_FUNC( ecHandler ),(void *)1 );
|
|
1070 gtk_signal_connect( GTK_OBJECT( EquConfig ),"hide",GTK_SIGNAL_FUNC( ecHandler ),(void *)2 );
|
|
1071
|
|
1072 gtk_signal_connect( GTK_OBJECT( ecOk ),"released",GTK_SIGNAL_FUNC( ecButtonReleased ),(void *)1 );
|
|
1073 gtk_signal_connect( GTK_OBJECT( ecCancel ),"released",GTK_SIGNAL_FUNC( ecButtonReleased ),(void *)0 );
|
|
1074
|
|
1075 gtk_window_add_accel_group( GTK_WINDOW( EquConfig ),accel_group );
|
|
1076
|
|
1077 return EquConfig;
|
|
1078 }
|
|
1079
|