Mercurial > audlegacy
view Plugins/Input/timidity/src/interface.c @ 553:82346a6312c2 trunk
[svn] make WMA plugin strings translatable
author | nenolod |
---|---|
date | Wed, 01 Feb 2006 13:09:00 -0800 |
parents | dd3d8211d3ef |
children | 9d09a5e6c3d5 |
line wrap: on
line source
/* * DO NOT EDIT THIS FILE - it is generated by Glade. */ #ifdef HAVE_CONFIG_H # include <config.h> #endif #include <sys/types.h> #include <sys/stat.h> #include <unistd.h> #include <string.h> #include <glib.h> #include <glib/gi18n.h> #include <gdk/gdkkeysyms.h> #include <gtk/gtk.h> #include "callbacks.h" #include "interface.h" #include "interface.h" GtkWidget* create_xmmstimid_conf_wnd (void) { GtkWidget *xmmstimid_conf_wnd; GtkWidget *vbox4; GtkWidget *table1; GtkWidget *frame1; GtkWidget *vbox1; GSList *rate_group = NULL; GtkWidget *rate_11000; GtkWidget *rate_22000; GtkWidget *rate_44100; GtkWidget *frame2; GtkWidget *vbox2; GSList *bits_group = NULL; GtkWidget *bits_8; GtkWidget *bits_16; GtkWidget *frame3; GtkWidget *vbox3; GSList *channels_group = NULL; GtkWidget *channels_1; GtkWidget *channels_2; GtkWidget *frame4; GtkWidget *vbox5; GtkWidget *config_file; GtkWidget *hseparator1; GtkWidget *hbuttonbox1; GtkWidget *conf_ok; GtkWidget *button2; xmmstimid_conf_wnd = gtk_window_new (GTK_WINDOW_TOPLEVEL); gtk_object_set_data (GTK_OBJECT (xmmstimid_conf_wnd), "xmmstimid_conf_wnd", xmmstimid_conf_wnd); gtk_window_set_title (GTK_WINDOW (xmmstimid_conf_wnd), _("TiMidity Configuration")); gtk_window_set_position (GTK_WINDOW (xmmstimid_conf_wnd), GTK_WIN_POS_MOUSE); vbox4 = gtk_vbox_new (FALSE, 0); gtk_widget_ref (vbox4); gtk_object_set_data_full (GTK_OBJECT (xmmstimid_conf_wnd), "vbox4", vbox4, (GtkDestroyNotify) gtk_widget_unref); gtk_widget_show (vbox4); gtk_container_add (GTK_CONTAINER (xmmstimid_conf_wnd), vbox4); table1 = gtk_table_new (3, 2, FALSE); gtk_widget_ref (table1); gtk_object_set_data_full (GTK_OBJECT (xmmstimid_conf_wnd), "table1", table1, (GtkDestroyNotify) gtk_widget_unref); gtk_widget_show (table1); gtk_box_pack_start (GTK_BOX (vbox4), table1, TRUE, TRUE, 0); gtk_container_set_border_width (GTK_CONTAINER (table1), 10); gtk_table_set_row_spacings (GTK_TABLE (table1), 5); gtk_table_set_col_spacings (GTK_TABLE (table1), 5); frame1 = gtk_frame_new (_("Sampling Rate")); gtk_widget_ref (frame1); gtk_object_set_data_full (GTK_OBJECT (xmmstimid_conf_wnd), "frame1", frame1, (GtkDestroyNotify) gtk_widget_unref); gtk_widget_show (frame1); gtk_table_attach (GTK_TABLE (table1), frame1, 0, 1, 1, 2, (GtkAttachOptions) (GTK_EXPAND | GTK_FILL), (GtkAttachOptions) (GTK_EXPAND | GTK_FILL), 0, 0); vbox1 = gtk_vbox_new (FALSE, 0); gtk_widget_ref (vbox1); gtk_object_set_data_full (GTK_OBJECT (xmmstimid_conf_wnd), "vbox1", vbox1, (GtkDestroyNotify) gtk_widget_unref); gtk_widget_show (vbox1); gtk_container_add (GTK_CONTAINER (frame1), vbox1); gtk_container_set_border_width (GTK_CONTAINER (vbox1), 5); rate_11000 = gtk_radio_button_new_with_label (rate_group, _("11000 Hz")); rate_group = gtk_radio_button_group (GTK_RADIO_BUTTON (rate_11000)); gtk_widget_ref (rate_11000); gtk_object_set_data_full (GTK_OBJECT (xmmstimid_conf_wnd), "rate_11000", rate_11000, (GtkDestroyNotify) gtk_widget_unref); gtk_widget_show (rate_11000); gtk_box_pack_start (GTK_BOX (vbox1), rate_11000, FALSE, FALSE, 0); rate_22000 = gtk_radio_button_new_with_label (rate_group, _("22000 Hz")); rate_group = gtk_radio_button_group (GTK_RADIO_BUTTON (rate_22000)); gtk_widget_ref (rate_22000); gtk_object_set_data_full (GTK_OBJECT (xmmstimid_conf_wnd), "rate_22000", rate_22000, (GtkDestroyNotify) gtk_widget_unref); gtk_widget_show (rate_22000); gtk_box_pack_start (GTK_BOX (vbox1), rate_22000, FALSE, FALSE, 0); rate_44100 = gtk_radio_button_new_with_label (rate_group, _("44100 Hz")); rate_group = gtk_radio_button_group (GTK_RADIO_BUTTON (rate_44100)); gtk_widget_ref (rate_44100); gtk_object_set_data_full (GTK_OBJECT (xmmstimid_conf_wnd), "rate_44100", rate_44100, (GtkDestroyNotify) gtk_widget_unref); gtk_widget_show (rate_44100); gtk_box_pack_start (GTK_BOX (vbox1), rate_44100, FALSE, FALSE, 0); frame2 = gtk_frame_new (_("Sample Width")); gtk_widget_ref (frame2); gtk_object_set_data_full (GTK_OBJECT (xmmstimid_conf_wnd), "frame2", frame2, (GtkDestroyNotify) gtk_widget_unref); gtk_widget_show (frame2); gtk_table_attach (GTK_TABLE (table1), frame2, 1, 2, 1, 2, (GtkAttachOptions) (GTK_EXPAND | GTK_FILL), (GtkAttachOptions) (GTK_EXPAND | GTK_FILL), 0, 0); vbox2 = gtk_vbox_new (FALSE, 0); gtk_widget_ref (vbox2); gtk_object_set_data_full (GTK_OBJECT (xmmstimid_conf_wnd), "vbox2", vbox2, (GtkDestroyNotify) gtk_widget_unref); gtk_widget_show (vbox2); gtk_container_add (GTK_CONTAINER (frame2), vbox2); gtk_container_set_border_width (GTK_CONTAINER (vbox2), 5); bits_8 = gtk_radio_button_new_with_label (bits_group, _("8 bit")); bits_group = gtk_radio_button_group (GTK_RADIO_BUTTON (bits_8)); gtk_widget_ref (bits_8); gtk_object_set_data_full (GTK_OBJECT (xmmstimid_conf_wnd), "bits_8", bits_8, (GtkDestroyNotify) gtk_widget_unref); gtk_widget_show (bits_8); gtk_box_pack_start (GTK_BOX (vbox2), bits_8, FALSE, FALSE, 0); bits_16 = gtk_radio_button_new_with_label (bits_group, _("16 bit")); bits_group = gtk_radio_button_group (GTK_RADIO_BUTTON (bits_16)); gtk_widget_ref (bits_16); gtk_object_set_data_full (GTK_OBJECT (xmmstimid_conf_wnd), "bits_16", bits_16, (GtkDestroyNotify) gtk_widget_unref); gtk_widget_show (bits_16); gtk_box_pack_start (GTK_BOX (vbox2), bits_16, FALSE, FALSE, 0); frame3 = gtk_frame_new (_("Channels")); gtk_widget_ref (frame3); gtk_object_set_data_full (GTK_OBJECT (xmmstimid_conf_wnd), "frame3", frame3, (GtkDestroyNotify) gtk_widget_unref); gtk_widget_show (frame3); gtk_table_attach (GTK_TABLE (table1), frame3, 0, 1, 2, 3, (GtkAttachOptions) (GTK_EXPAND | GTK_FILL), (GtkAttachOptions) (GTK_EXPAND | GTK_FILL), 0, 0); vbox3 = gtk_vbox_new (FALSE, 0); gtk_widget_ref (vbox3); gtk_object_set_data_full (GTK_OBJECT (xmmstimid_conf_wnd), "vbox3", vbox3, (GtkDestroyNotify) gtk_widget_unref); gtk_widget_show (vbox3); gtk_container_add (GTK_CONTAINER (frame3), vbox3); gtk_container_set_border_width (GTK_CONTAINER (vbox3), 5); channels_1 = gtk_radio_button_new_with_label (channels_group, _("Mono")); channels_group = gtk_radio_button_group (GTK_RADIO_BUTTON (channels_1)); gtk_widget_ref (channels_1); gtk_object_set_data_full (GTK_OBJECT (xmmstimid_conf_wnd), "channels_1", channels_1, (GtkDestroyNotify) gtk_widget_unref); gtk_widget_show (channels_1); gtk_box_pack_start (GTK_BOX (vbox3), channels_1, FALSE, FALSE, 0); channels_2 = gtk_radio_button_new_with_label (channels_group, _("Stereo")); channels_group = gtk_radio_button_group (GTK_RADIO_BUTTON (channels_2)); gtk_widget_ref (channels_2); gtk_object_set_data_full (GTK_OBJECT (xmmstimid_conf_wnd), "channels_2", channels_2, (GtkDestroyNotify) gtk_widget_unref); gtk_widget_show (channels_2); gtk_box_pack_start (GTK_BOX (vbox3), channels_2, FALSE, FALSE, 0); frame4 = gtk_frame_new (_("TiMidity Configuration File")); gtk_widget_ref (frame4); gtk_object_set_data_full (GTK_OBJECT (xmmstimid_conf_wnd), "frame4", frame4, (GtkDestroyNotify) gtk_widget_unref); gtk_widget_show (frame4); gtk_table_attach (GTK_TABLE (table1), frame4, 0, 2, 0, 1, (GtkAttachOptions) (GTK_FILL), (GtkAttachOptions) (GTK_EXPAND | GTK_FILL), 0, 0); vbox5 = gtk_vbox_new (FALSE, 0); gtk_widget_ref (vbox5); gtk_object_set_data_full (GTK_OBJECT (xmmstimid_conf_wnd), "vbox5", vbox5, (GtkDestroyNotify) gtk_widget_unref); gtk_widget_show (vbox5); gtk_container_add (GTK_CONTAINER (frame4), vbox5); gtk_container_set_border_width (GTK_CONTAINER (vbox5), 5); config_file = gtk_entry_new (); gtk_widget_ref (config_file); gtk_object_set_data_full (GTK_OBJECT (xmmstimid_conf_wnd), "config_file", config_file, (GtkDestroyNotify) gtk_widget_unref); gtk_widget_show (config_file); gtk_box_pack_start (GTK_BOX (vbox5), config_file, TRUE, TRUE, 0); hseparator1 = gtk_hseparator_new (); gtk_widget_ref (hseparator1); gtk_object_set_data_full (GTK_OBJECT (xmmstimid_conf_wnd), "hseparator1", hseparator1, (GtkDestroyNotify) gtk_widget_unref); gtk_widget_show (hseparator1); gtk_box_pack_start (GTK_BOX (vbox4), hseparator1, TRUE, TRUE, 0); hbuttonbox1 = gtk_hbutton_box_new (); gtk_widget_ref (hbuttonbox1); gtk_object_set_data_full (GTK_OBJECT (xmmstimid_conf_wnd), "hbuttonbox1", hbuttonbox1, (GtkDestroyNotify) gtk_widget_unref); gtk_widget_show (hbuttonbox1); gtk_box_pack_start (GTK_BOX (vbox4), hbuttonbox1, TRUE, TRUE, 0); gtk_container_set_border_width (GTK_CONTAINER (hbuttonbox1), 5); gtk_button_box_set_layout (GTK_BUTTON_BOX (hbuttonbox1), GTK_BUTTONBOX_END); gtk_button_box_set_spacing (GTK_BUTTON_BOX (hbuttonbox1), 10); conf_ok = gtk_button_new_with_label (_("Ok")); gtk_widget_ref (conf_ok); gtk_object_set_data_full (GTK_OBJECT (xmmstimid_conf_wnd), "conf_ok", conf_ok, (GtkDestroyNotify) gtk_widget_unref); gtk_widget_show (conf_ok); gtk_container_add (GTK_CONTAINER (hbuttonbox1), conf_ok); GTK_WIDGET_SET_FLAGS (conf_ok, GTK_CAN_DEFAULT); button2 = gtk_button_new_with_label (_("Cancel")); gtk_widget_ref (button2); gtk_object_set_data_full (GTK_OBJECT (xmmstimid_conf_wnd), "button2", button2, (GtkDestroyNotify) gtk_widget_unref); gtk_widget_show (button2); gtk_container_add (GTK_CONTAINER (hbuttonbox1), button2); GTK_WIDGET_SET_FLAGS (button2, GTK_CAN_DEFAULT); gtk_signal_connect_object (GTK_OBJECT (button2), "clicked", GTK_SIGNAL_FUNC (gtk_widget_hide), GTK_OBJECT (xmmstimid_conf_wnd)); gtk_widget_grab_focus (conf_ok); gtk_widget_grab_default (conf_ok); return xmmstimid_conf_wnd; } GtkWidget* create_xmmstimid_about_wnd (void) { GtkWidget *xmmstimid_about_wnd; GtkWidget *vbox6; GtkWidget *vbox7; GtkWidget *name_version; GtkWidget *label2; GtkWidget *hseparator2; GtkWidget *hbuttonbox2; GtkWidget *button3; xmmstimid_about_wnd = gtk_window_new (GTK_WINDOW_TOPLEVEL); gtk_object_set_data (GTK_OBJECT (xmmstimid_about_wnd), "xmmstimid_about_wnd", xmmstimid_about_wnd); gtk_window_set_title (GTK_WINDOW (xmmstimid_about_wnd), _("About TiMidity Plugin")); gtk_window_set_position (GTK_WINDOW (xmmstimid_about_wnd), GTK_WIN_POS_MOUSE); vbox6 = gtk_vbox_new (FALSE, 0); gtk_widget_ref (vbox6); gtk_object_set_data_full (GTK_OBJECT (xmmstimid_about_wnd), "vbox6", vbox6, (GtkDestroyNotify) gtk_widget_unref); gtk_widget_show (vbox6); gtk_container_add (GTK_CONTAINER (xmmstimid_about_wnd), vbox6); vbox7 = gtk_vbox_new (FALSE, 0); gtk_widget_ref (vbox7); gtk_object_set_data_full (GTK_OBJECT (xmmstimid_about_wnd), "vbox7", vbox7, (GtkDestroyNotify) gtk_widget_unref); gtk_widget_show (vbox7); gtk_box_pack_start (GTK_BOX (vbox6), vbox7, TRUE, TRUE, 0); gtk_container_set_border_width (GTK_CONTAINER (vbox7), 20); name_version = gtk_label_new (_("TiMidity Plugin")); gtk_widget_ref (name_version); gtk_object_set_data_full (GTK_OBJECT (xmmstimid_about_wnd), "name_version", name_version, (GtkDestroyNotify) gtk_widget_unref); gtk_widget_show (name_version); gtk_box_pack_start (GTK_BOX (vbox7), name_version, TRUE, TRUE, 0); gtk_misc_set_alignment (GTK_MISC (name_version), 0.5, 1); label2 = gtk_label_new (_("http://libtimidity.sourceforge.net\nby Konstantin Korikov")); gtk_widget_ref (label2); gtk_object_set_data_full (GTK_OBJECT (xmmstimid_about_wnd), "label2", label2, (GtkDestroyNotify) gtk_widget_unref); gtk_widget_show (label2); gtk_box_pack_start (GTK_BOX (vbox7), label2, TRUE, TRUE, 0); gtk_misc_set_alignment (GTK_MISC (label2), 0.5, 7.45058e-09); hseparator2 = gtk_hseparator_new (); gtk_widget_ref (hseparator2); gtk_object_set_data_full (GTK_OBJECT (xmmstimid_about_wnd), "hseparator2", hseparator2, (GtkDestroyNotify) gtk_widget_unref); gtk_widget_show (hseparator2); gtk_box_pack_start (GTK_BOX (vbox6), hseparator2, FALSE, TRUE, 0); hbuttonbox2 = gtk_hbutton_box_new (); gtk_widget_ref (hbuttonbox2); gtk_object_set_data_full (GTK_OBJECT (xmmstimid_about_wnd), "hbuttonbox2", hbuttonbox2, (GtkDestroyNotify) gtk_widget_unref); gtk_widget_show (hbuttonbox2); gtk_box_pack_start (GTK_BOX (vbox6), hbuttonbox2, FALSE, TRUE, 0); gtk_container_set_border_width (GTK_CONTAINER (hbuttonbox2), 5); gtk_button_box_set_layout (GTK_BUTTON_BOX (hbuttonbox2), GTK_BUTTONBOX_END); button3 = gtk_button_new_with_label (_("Ok")); gtk_widget_ref (button3); gtk_object_set_data_full (GTK_OBJECT (xmmstimid_about_wnd), "button3", button3, (GtkDestroyNotify) gtk_widget_unref); gtk_widget_show (button3); gtk_container_add (GTK_CONTAINER (hbuttonbox2), button3); GTK_WIDGET_SET_FLAGS (button3, GTK_CAN_DEFAULT); gtk_signal_connect_object (GTK_OBJECT (button3), "clicked", GTK_SIGNAL_FUNC (gtk_widget_hide), GTK_OBJECT (xmmstimid_about_wnd)); gtk_widget_grab_focus (button3); gtk_widget_grab_default (button3); return xmmstimid_about_wnd; }