dialogs4.c

来自「ANFY特效」· C语言 代码 · 共 1,417 行 · 第 1/5 页

C
1,417
字号
  gtk_entry_set_editable (GTK_ENTRY (bt_entry), FALSE);  gtk_entry_set_text (GTK_ENTRY (bt_entry), _("0"));  back_color = gtk_button_new_with_label (_("Back. color..."));  gtk_widget_set_name (back_color, "back_color");  gtk_widget_ref (back_color);  gtk_object_set_data_full (GTK_OBJECT (anfy3d_light), "back_color", back_color,                            (GtkDestroyNotify) gtk_widget_unref);  gtk_widget_show (back_color);  gtk_box_pack_start (GTK_BOX (hbox185), back_color, FALSE, FALSE, 0);  gtk_widget_set_usize (back_color, 90, -2);  gtk_tooltips_set_tip (tooltips, back_color, _("Background color"), NULL);  color_pixmap = set_color_pixmap ((GtkWidget*)NULL, 0, 0, 0);  gtk_widget_set_name (color_pixmap, "color_pixmap");  gtk_widget_ref (color_pixmap);  gtk_object_set_data_full (GTK_OBJECT (anfy3d_light), "color_pixmap", color_pixmap,			    (GtkDestroyNotify) gtk_widget_unref);  gtk_widget_show (color_pixmap);  gtk_box_pack_end (GTK_BOX (hbox185), color_pixmap, FALSE, FALSE, 0);  hbox186 = gtk_hbox_new (FALSE, 10);  gtk_widget_set_name (hbox186, "hbox186");  gtk_widget_ref (hbox186);  gtk_object_set_data_full (GTK_OBJECT (anfy3d_light), "hbox186", hbox186,                            (GtkDestroyNotify) gtk_widget_unref);  gtk_widget_show (hbox186);  gtk_table_attach (GTK_TABLE (table56), hbox186, 1, 2, 0, 1,                    (GtkAttachOptions) (GTK_FILL),                    (GtkAttachOptions) (GTK_FILL), 0, 0);  back_combo = gtk_combo_new ();  gtk_widget_set_name (back_combo, "back_combo");  gtk_widget_ref (back_combo);  gtk_object_set_data_full (GTK_OBJECT (anfy3d_light), "back_combo", back_combo,                            (GtkDestroyNotify) gtk_widget_unref);  gtk_widget_show (back_combo);  gtk_box_pack_start (GTK_BOX (hbox186), back_combo, FALSE, TRUE, 0);  gtk_widget_set_usize (back_combo, 80, -2);  back_combo_items = g_list_append (back_combo_items, _("black"));  back_combo_items = g_list_append (back_combo_items, _("sphere"));  back_combo_items = g_list_append (back_combo_items, _("colour"));  gtk_combo_set_popdown_strings (GTK_COMBO (back_combo), back_combo_items);  g_list_free (back_combo_items);  back_entry = GTK_COMBO (back_combo)->entry;  gtk_widget_set_name (back_entry, "back_entry");  gtk_widget_ref (back_entry);  gtk_object_set_data_full (GTK_OBJECT (anfy3d_light), "back_entry", back_entry,                            (GtkDestroyNotify) gtk_widget_unref);  gtk_widget_show (back_entry);  gtk_tooltips_set_tip (tooltips, back_entry, _("Enable/disable background"), NULL);  gtk_entry_set_editable (GTK_ENTRY (back_entry), FALSE);  gtk_entry_set_text (GTK_ENTRY (back_entry), _("black"));  blur = gtk_check_button_new_with_label (_("Blur motion"));  gtk_widget_set_name (blur, "blur");  gtk_widget_ref (blur);  gtk_object_set_data_full (GTK_OBJECT (anfy3d_light), "blur", blur,                            (GtkDestroyNotify) gtk_widget_unref);  gtk_widget_show (blur);  gtk_box_pack_start (GTK_BOX (hbox186), blur, FALSE, FALSE, 0);  hbox187 = gtk_hbox_new (FALSE, 0);  gtk_widget_set_name (hbox187, "hbox187");  gtk_widget_ref (hbox187);  gtk_object_set_data_full (GTK_OBJECT (anfy3d_light), "hbox187", hbox187,                            (GtkDestroyNotify) gtk_widget_unref);  gtk_widget_show (hbox187);  gtk_table_attach (GTK_TABLE (table56), hbox187, 1, 2, 1, 2,                    (GtkAttachOptions) (GTK_FILL),                    (GtkAttachOptions) (GTK_FILL), 0, 0);  render_combo = gtk_combo_new ();  gtk_widget_set_name (render_combo, "render_combo");  gtk_widget_ref (render_combo);  gtk_object_set_data_full (GTK_OBJECT (anfy3d_light), "render_combo", render_combo,                            (GtkDestroyNotify) gtk_widget_unref);  gtk_widget_show (render_combo);  gtk_box_pack_start (GTK_BOX (hbox187), render_combo, FALSE, TRUE, 0);  gtk_widget_set_usize (render_combo, 160, -2);  render_combo_items = g_list_append (render_combo_items, _("Plain texture"));  render_combo_items = g_list_append (render_combo_items, _("Gouraud shading"));  render_combo_items = g_list_append (render_combo_items, _("Phong shading"));  render_combo_items = g_list_append (render_combo_items, _("Gaussian phong shading"));  render_combo_items = g_list_append (render_combo_items, _("Transparent (light)"));  render_combo_items = g_list_append (render_combo_items, _("Transparent (medium)"));  render_combo_items = g_list_append (render_combo_items, _("Liquid texture"));  render_combo_items = g_list_append (render_combo_items, _("Liquid gouraud shading"));  render_combo_items = g_list_append (render_combo_items, _("Liquid phong shading"));  render_combo_items = g_list_append (render_combo_items, _("Liquid transparent"));  render_combo_items = g_list_append (render_combo_items, _("Reflects mirror view"));  render_combo_items = g_list_append (render_combo_items, _("Particles"));  render_combo_items = g_list_append (render_combo_items, _("Darker plain texture"));  render_combo_items = g_list_append (render_combo_items, _("Metal shading"));  render_combo_items = g_list_append (render_combo_items, _("Environment mapping"));  gtk_combo_set_popdown_strings (GTK_COMBO (render_combo), render_combo_items);  g_list_free (render_combo_items);  render_entry = GTK_COMBO (render_combo)->entry;  gtk_widget_set_name (render_entry, "render_entry");  gtk_widget_ref (render_entry);  gtk_object_set_data_full (GTK_OBJECT (anfy3d_light), "render_entry", render_entry,                            (GtkDestroyNotify) gtk_widget_unref);  gtk_widget_show (render_entry);  gtk_tooltips_set_tip (tooltips, render_entry, _("Render technique"), NULL);  gtk_entry_set_editable (GTK_ENTRY (render_entry), FALSE);  gtk_entry_set_text (GTK_ENTRY (render_entry), _("Plain texture"));  hbox188 = gtk_hbox_new (FALSE, 0);  gtk_widget_set_name (hbox188, "hbox188");  gtk_widget_ref (hbox188);  gtk_object_set_data_full (GTK_OBJECT (anfy3d_light), "hbox188", hbox188,                            (GtkDestroyNotify) gtk_widget_unref);  gtk_widget_show (hbox188);  gtk_table_attach (GTK_TABLE (table56), hbox188, 1, 2, 3, 4,                    (GtkAttachOptions) (GTK_FILL),                    (GtkAttachOptions) (GTK_FILL), 0, 0);  script_combo = gtk_combo_new ();  gtk_widget_set_name (script_combo, "script_combo");  gtk_widget_ref (script_combo);  gtk_object_set_data_full (GTK_OBJECT (anfy3d_light), "script_combo", script_combo,                            (GtkDestroyNotify) gtk_widget_unref);  gtk_widget_show (script_combo);  gtk_box_pack_start (GTK_BOX (hbox188), script_combo, FALSE, TRUE, 0);  gtk_widget_set_usize (script_combo, 80, -2);  script_combo_items = g_list_append (script_combo_items, _("Objects"));  script_combo_items = g_list_append (script_combo_items, _("Labyrinth"));  gtk_combo_set_popdown_strings (GTK_COMBO (script_combo), script_combo_items);  g_list_free (script_combo_items);  script_entry = GTK_COMBO (script_combo)->entry;  gtk_widget_set_name (script_entry, "script_entry");  gtk_widget_ref (script_entry);  gtk_object_set_data_full (GTK_OBJECT (anfy3d_light), "script_entry", script_entry,                            (GtkDestroyNotify) gtk_widget_unref);  gtk_widget_show (script_entry);  gtk_tooltips_set_tip (tooltips, script_entry, _("Graphical effect"), NULL);  gtk_entry_set_editable (GTK_ENTRY (script_entry), FALSE);  gtk_entry_set_text (GTK_ENTRY (script_entry), _("objects"));  hbox189 = gtk_hbox_new (TRUE, 0);  gtk_widget_set_name (hbox189, "hbox189");  gtk_widget_ref (hbox189);  gtk_object_set_data_full (GTK_OBJECT (anfy3d_light), "hbox189", hbox189,                            (GtkDestroyNotify) gtk_widget_unref);  gtk_widget_show (hbox189);  gtk_box_pack_start (GTK_BOX (vbox106), hbox189, TRUE, TRUE, 20);  custom = gtk_button_new_with_label (_("Custom 3D objects ?"));  gtk_widget_set_name (custom, "custom");  gtk_widget_ref (custom);  gtk_object_set_data_full (GTK_OBJECT (anfy3d_light), "custom", custom,                            (GtkDestroyNotify) gtk_widget_unref);  gtk_widget_show (custom);  gtk_box_pack_start (GTK_BOX (hbox189), custom, FALSE, FALSE, 0);  gtk_widget_set_usize (custom, 140, 25);  gtk_widget_set_sensitive (t1_entry, FALSE);  gtk_widget_set_sensitive (t2_entry, FALSE);  gtk_widget_set_sensitive (g_entry, FALSE);  gtk_widget_set_sensitive (p_entry, FALSE);  gtk_widget_set_sensitive (t1_browse, FALSE);  gtk_widget_set_sensitive (t2_browse, FALSE);  gtk_widget_set_sensitive (g_browse, FALSE);  gtk_widget_set_sensitive (p_browse, FALSE);  finish_dialog (anfy3d_light, vbox104, accel_group);  gtk_signal_connect (GTK_OBJECT (textscroll), "toggled",                      GTK_SIGNAL_FUNC (on_textscroll), NULL);  gtk_signal_connect (GTK_OBJECT (back_color), "clicked",                      GTK_SIGNAL_FUNC (on_back_color), NULL);  gtk_signal_connect (GTK_OBJECT (fog), "toggled",                      GTK_SIGNAL_FUNC (OnFog), NULL);  gtk_signal_connect (GTK_OBJECT (custom), "clicked",                      GTK_SIGNAL_FUNC (OnInfoCustom3d), NULL);  gtk_signal_connect (GTK_OBJECT (back_entry), "changed",                      GTK_SIGNAL_FUNC (OnSelchangeBackmode), NULL);  gtk_signal_connect (GTK_OBJECT (texture1), "toggled",                      GTK_SIGNAL_FUNC (OnAnfy3d_check), GINT_TO_POINTER(1));  gtk_signal_connect (GTK_OBJECT (texture2), "toggled",                      GTK_SIGNAL_FUNC (OnAnfy3d_check), GINT_TO_POINTER(2));  gtk_signal_connect (GTK_OBJECT (phong), "toggled",                      GTK_SIGNAL_FUNC (OnAnfy3d_check), GINT_TO_POINTER(3));  gtk_signal_connect (GTK_OBJECT (gauss), "toggled",                      GTK_SIGNAL_FUNC (OnAnfy3d_check), GINT_TO_POINTER(4));  gtk_signal_connect (GTK_OBJECT (t0_browse), "clicked",                      GTK_SIGNAL_FUNC (OnAnfy3d_browse), GINT_TO_POINTER(0));  gtk_signal_connect (GTK_OBJECT (t1_browse), "clicked",                      GTK_SIGNAL_FUNC (OnAnfy3d_browse), GINT_TO_POINTER(1));  gtk_signal_connect (GTK_OBJECT (t2_browse), "clicked",                      GTK_SIGNAL_FUNC (OnAnfy3d_browse), GINT_TO_POINTER(2));  gtk_signal_connect (GTK_OBJECT (p_browse), "clicked",                      GTK_SIGNAL_FUNC (OnAnfy3d_browse), GINT_TO_POINTER(3));  gtk_signal_connect (GTK_OBJECT (g_browse), "clicked",                      GTK_SIGNAL_FUNC (OnAnfy3d_browse), GINT_TO_POINTER(4));  gtk_window_add_accel_group (GTK_WINDOW (anfy3d_light), accel_group);  gtk_object_set_data (GTK_OBJECT (anfy3d_light), "tooltips", tooltips);  return anfy3d_light;}GtkWidget* create_anfy3d_0 (){  GtkWidget *anfy3d_0;  GtkWidget *vbox242;  GtkWidget *out_frame;  GtkWidget *hbox357;  GtkWidget *vbox245;  GtkWidget *frame172;  GtkWidget *table156;  GtkWidget *label653;  GtkWidget *label652;  GtkWidget *label651;  GtkWidget *main_tex_combo;  GtkWidget *main_tex_entry;  GtkWidget *main_render_combo;  GList *main_render_combo_items = NULL;  GtkWidget *main_render_entry;  GtkWidget *main_type_combo;  GList *main_type_combo_items = NULL;  GtkWidget *main_type_entry;  GtkWidget *frame173;  GtkWidget *table157;  GtkWidget *label654;  GtkWidget *label655;  GtkWidget *label656;  GtkWidget *child_type_combo;  GList *child_type_combo_items = NULL;  GtkWidget *child_type_entry;  GtkWidget *child_render_combo;  GList *child_render_combo_items = NULL;  GtkWidget *child_render_entry;  GtkWidget *child_tex_combo;  GtkWidget *child_tex_entry;  GtkWidget *animlight;  GtkWidget *vbox246;  GtkWidget *frame171;  GtkWidget *table155;  GtkWidget *label648;  GtkWidget *label647;  GtkWidget *label646;  GtkWidget *y;  GtkWidget *z;  GtkWidget *x;  GtkWidget *label649;  GtkWidget *shadow_combo;  GList *shadow_combo_items = NULL;  GtkWidget *shadow_entry;  GtkWidget *mirror;  GtkWidget *label650;  GtkWidget *light_combo;  GtkWidget *light_entry;  GtkWidget *frame170;  GtkWidget *table154;  GtkWidget *label645;  GtkWidget *label644;  GtkWidget *label643;  GtkWidget *label642;  GtkWidget *label641;  GtkWidget *label640;  GtkWidget *label639;  GtkWidget *label638;  GtkWidget *label637;  GtkWidget *func_combo;  GtkWidget *func_entry;  GtkWidget *height;  GtkWidget *width;  GtkWidget *height_faces;  GtkWidget *width_faces;  GtkWidget *add;  GtkWidget *ampl;  GtkWidget *p1;  GtkWidget *p2;  GtkTooltips *tooltips;  GtkAccelGroup *accel_group;  char strTmp[256];  GetSavedVar(applet_info[current_applet].name, INI_SCRIPT, strTmp);  anfy3d_0 = init_dialog (&accel_group, &tooltips, &vbox242);

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?