📄 interface.c
字号:
image189 = gtk_image_new_from_icon_name ("stock_draw-circle", GTK_ICON_SIZE_DND); gtk_widget_set_name (image189, "image189"); gtk_widget_show (image189); gtk_box_pack_end (GTK_BOX (hbox25), image189, FALSE, FALSE, 0); gtk_widget_set_size_request (image189, 50, 60); gtk_misc_set_alignment (GTK_MISC (image189), 0, 0); gtk_misc_set_padding (GTK_MISC (image189), 11, 0); toolitem32 = (GtkWidget*) gtk_tool_item_new (); gtk_widget_set_name (toolitem32, "toolitem32"); gtk_widget_show (toolitem32); gtk_container_add (GTK_CONTAINER (toolbarNodes), toolitem32); toolBox = gtk_button_new (); gtk_widget_set_name (toolBox, "toolBox"); gtk_widget_show (toolBox); gtk_container_add (GTK_CONTAINER (toolitem32), toolBox); gtk_widget_set_size_request (toolBox, 50, 61); gtk_button_set_relief (GTK_BUTTON (toolBox), GTK_RELIEF_NONE); alignment25 = gtk_alignment_new (0.5, 0.5, 0, 0); gtk_widget_set_name (alignment25, "alignment25"); gtk_widget_show (alignment25); gtk_container_add (GTK_CONTAINER (toolBox), alignment25); hbox26 = gtk_hbox_new (FALSE, 2); gtk_widget_set_name (hbox26, "hbox26"); gtk_widget_show (hbox26); gtk_container_add (GTK_CONTAINER (alignment25), hbox26); label31 = gtk_label_new_with_mnemonic (_("Box")); gtk_widget_set_name (label31, "label31"); gtk_widget_show (label31); gtk_box_pack_start (GTK_BOX (hbox26), label31, FALSE, FALSE, 0); gtk_label_set_justify (GTK_LABEL (label31), GTK_JUSTIFY_CENTER); gtk_misc_set_alignment (GTK_MISC (label31), 0, 0); gtk_misc_set_padding (GTK_MISC (label31), 13, 32); image190 = gtk_image_new_from_icon_name ("stock_draw-cube", GTK_ICON_SIZE_DND); gtk_widget_set_name (image190, "image190"); gtk_widget_show (image190); gtk_box_pack_end (GTK_BOX (hbox26), image190, FALSE, FALSE, 0); gtk_widget_set_size_request (image190, 50, 50); gtk_misc_set_alignment (GTK_MISC (image190), 0, 0); gtk_misc_set_padding (GTK_MISC (image190), 12, 0); toolitem33 = (GtkWidget*) gtk_tool_item_new (); gtk_widget_set_name (toolitem33, "toolitem33"); gtk_widget_show (toolitem33); gtk_container_add (GTK_CONTAINER (toolbarNodes), toolitem33); toolNodeDelete = gtk_button_new (); gtk_widget_set_name (toolNodeDelete, "toolNodeDelete"); gtk_widget_show (toolNodeDelete); gtk_container_add (GTK_CONTAINER (toolitem33), toolNodeDelete); gtk_widget_set_size_request (toolNodeDelete, 60, 61); gtk_button_set_relief (GTK_BUTTON (toolNodeDelete), GTK_RELIEF_NONE); alignment26 = gtk_alignment_new (0.5, 0.5, 0, 0); gtk_widget_set_name (alignment26, "alignment26"); gtk_widget_show (alignment26); gtk_container_add (GTK_CONTAINER (toolNodeDelete), alignment26); hbox27 = gtk_hbox_new (FALSE, 2); gtk_widget_set_name (hbox27, "hbox27"); gtk_widget_show (hbox27); gtk_container_add (GTK_CONTAINER (alignment26), hbox27); label32 = gtk_label_new_with_mnemonic (_("Delete")); gtk_widget_set_name (label32, "label32"); gtk_widget_show (label32); gtk_box_pack_start (GTK_BOX (hbox27), label32, FALSE, FALSE, 0); gtk_widget_set_size_request (label32, 60, 60); gtk_misc_set_alignment (GTK_MISC (label32), 0, 0); gtk_misc_set_padding (GTK_MISC (label32), 5, 34); image191 = gtk_image_new_from_stock ("gtk-delete", GTK_ICON_SIZE_DND); gtk_widget_set_name (image191, "image191"); gtk_widget_show (image191); gtk_box_pack_end (GTK_BOX (hbox27), image191, FALSE, FALSE, 0); gtk_widget_set_size_request (image191, 50, 50); gtk_misc_set_alignment (GTK_MISC (image191), 0, 0); gtk_misc_set_padding (GTK_MISC (image191), 10, 0); label27 = gtk_label_new (_("Joints of robot")); gtk_widget_set_name (label27, "label27"); gtk_widget_show (label27); gtk_fixed_put (GTK_FIXED (fixed1), label27, 8, 344); gtk_widget_set_size_request (label27, 104, 16); frameNodeProps = gtk_frame_new (NULL); gtk_widget_set_name (frameNodeProps, "frameNodeProps"); gtk_widget_show (frameNodeProps); gtk_fixed_put (GTK_FIXED (fixed1), frameNodeProps, 336, 96); gtk_widget_set_size_request (frameNodeProps, 352, 232); gtk_frame_set_shadow_type (GTK_FRAME (frameNodeProps), GTK_SHADOW_NONE); scrolledwindow1 = gtk_scrolled_window_new (NULL, NULL); gtk_widget_set_name (scrolledwindow1, "scrolledwindow1"); gtk_widget_show (scrolledwindow1); gtk_container_add (GTK_CONTAINER (frameNodeProps), scrolledwindow1); gtk_scrolled_window_set_policy (GTK_SCROLLED_WINDOW (scrolledwindow1), GTK_POLICY_NEVER, GTK_POLICY_ALWAYS); gtk_scrolled_window_set_shadow_type (GTK_SCROLLED_WINDOW (scrolledwindow1), GTK_SHADOW_ETCHED_IN); viewport1 = gtk_viewport_new (NULL, NULL); gtk_widget_set_name (viewport1, "viewport1"); gtk_widget_show (viewport1); gtk_container_add (GTK_CONTAINER (scrolledwindow1), viewport1); tableNodeProps = gtk_table_new (12, 2, FALSE); gtk_widget_set_name (tableNodeProps, "tableNodeProps"); gtk_widget_show (tableNodeProps); gtk_container_add (GTK_CONTAINER (viewport1), tableNodeProps); gtk_table_set_col_spacings (GTK_TABLE (tableNodeProps), 4); label52 = gtk_label_new (_("Node Name:")); gtk_widget_set_name (label52, "label52"); gtk_widget_show (label52); gtk_table_attach (GTK_TABLE (tableNodeProps), label52, 0, 1, 1, 2, (GtkAttachOptions) (GTK_FILL), (GtkAttachOptions) (0), 0, 0); gtk_misc_set_alignment (GTK_MISC (label52), 0, 0.5); label51 = gtk_label_new (_("X:")); gtk_widget_set_name (label51, "label51"); gtk_widget_show (label51); gtk_table_attach (GTK_TABLE (tableNodeProps), label51, 0, 1, 2, 3, (GtkAttachOptions) (GTK_FILL), (GtkAttachOptions) (0), 0, 0); gtk_misc_set_alignment (GTK_MISC (label51), 0, 0.5); label53 = gtk_label_new (_("Y:")); gtk_widget_set_name (label53, "label53"); gtk_widget_show (label53); gtk_table_attach (GTK_TABLE (tableNodeProps), label53, 0, 1, 3, 4, (GtkAttachOptions) (GTK_FILL), (GtkAttachOptions) (0), 0, 0); gtk_misc_set_alignment (GTK_MISC (label53), 0, 0.5); label54 = gtk_label_new (_("Z:")); gtk_widget_set_name (label54, "label54"); gtk_widget_show (label54); gtk_table_attach (GTK_TABLE (tableNodeProps), label54, 0, 1, 4, 5, (GtkAttachOptions) (GTK_FILL), (GtkAttachOptions) (0), 0, 0); gtk_misc_set_alignment (GTK_MISC (label54), 0, 0.5); label55 = gtk_label_new (_("Length/Radius:")); gtk_widget_set_name (label55, "label55"); gtk_widget_show (label55); gtk_table_attach (GTK_TABLE (tableNodeProps), label55, 0, 1, 5, 6, (GtkAttachOptions) (GTK_FILL), (GtkAttachOptions) (0), 0, 0); gtk_misc_set_alignment (GTK_MISC (label55), 0, 0.5); label56 = gtk_label_new (_("Width:")); gtk_widget_set_name (label56, "label56"); gtk_widget_show (label56); gtk_table_attach (GTK_TABLE (tableNodeProps), label56, 0, 1, 6, 7, (GtkAttachOptions) (GTK_FILL), (GtkAttachOptions) (0), 0, 0); gtk_misc_set_alignment (GTK_MISC (label56), 0, 0.5); label57 = gtk_label_new (_("Height:")); gtk_widget_set_name (label57, "label57"); gtk_widget_show (label57); gtk_table_attach (GTK_TABLE (tableNodeProps), label57, 0, 1, 7, 8, (GtkAttachOptions) (GTK_FILL), (GtkAttachOptions) (0), 0, 0); gtk_misc_set_alignment (GTK_MISC (label57), 0, 0.5); label58 = gtk_label_new (_("Material:")); gtk_widget_set_name (label58, "label58"); gtk_widget_show (label58); gtk_table_attach (GTK_TABLE (tableNodeProps), label58, 0, 1, 8, 9, (GtkAttachOptions) (GTK_FILL), (GtkAttachOptions) (0), 0, 0); gtk_misc_set_alignment (GTK_MISC (label58), 0, 0.5); label59 = gtk_label_new (_("Shape:")); gtk_widget_set_name (label59, "label59"); gtk_widget_show (label59); gtk_table_attach (GTK_TABLE (tableNodeProps), label59, 0, 1, 9, 10, (GtkAttachOptions) (GTK_FILL), (GtkAttachOptions) (0), 0, 0); gtk_misc_set_alignment (GTK_MISC (label59), 0, 0.5); label60 = gtk_label_new (_("Parent:")); gtk_widget_set_name (label60, "label60"); gtk_widget_show (label60); gtk_table_attach (GTK_TABLE (tableNodeProps), label60, 0, 1, 10, 11, (GtkAttachOptions) (GTK_FILL), (GtkAttachOptions) (0), 0, 0); gtk_misc_set_alignment (GTK_MISC (label60), 0, 0.5); label61 = gtk_label_new (_("Mass:")); gtk_widget_set_name (label61, "label61"); gtk_widget_show (label61); gtk_table_attach (GTK_TABLE (tableNodeProps), label61, 0, 1, 11, 12, (GtkAttachOptions) (GTK_FILL), (GtkAttachOptions) (0), 0, 0); gtk_misc_set_alignment (GTK_MISC (label61), 0, 0.5); label62 = gtk_label_new (_("Node Type:")); gtk_widget_set_name (label62, "label62"); gtk_widget_show (label62); gtk_table_attach (GTK_TABLE (tableNodeProps), label62, 0, 1, 0, 1, (GtkAttachOptions) (GTK_FILL), (GtkAttachOptions) (0), 0, 0); gtk_misc_set_alignment (GTK_MISC (label62), 0, 0.5); comboNodeType = gtk_combo_box_entry_new_text (); gtk_widget_set_name (comboNodeType, "comboNodeType"); gtk_widget_show (comboNodeType); gtk_table_attach (GTK_TABLE (tableNodeProps), comboNodeType, 1, 2, 0, 1, (GtkAttachOptions) (GTK_EXPAND | GTK_FILL), (GtkAttachOptions) (GTK_FILL), 0, 0); gtk_combo_box_append_text (GTK_COMBO_BOX (comboNodeType), _("Space")); gtk_combo_box_append_text (GTK_COMBO_BOX (comboNodeType), _("AgentAspect")); gtk_combo_box_append_text (GTK_COMBO_BOX (comboNodeType), _("Transform")); gtk_combo_box_append_text (GTK_COMBO_BOX (comboNodeType), _("Box")); gtk_combo_box_append_text (GTK_COMBO_BOX (comboNodeType), _("CCylinder")); gtk_combo_box_append_text (GTK_COMBO_BOX (comboNodeType), _("Sphere")); gtk_combo_box_set_add_tearoffs (GTK_COMBO_BOX (comboNodeType), TRUE); txtNodeName = gtk_entry_new (); gtk_widget_set_name (txtNodeName, "txtNodeName"); gtk_widget_show (txtNodeName); gtk_table_attach (GTK_TABLE (tableNodeProps), txtNodeName, 1, 2, 1, 2, (GtkAttachOptions) (GTK_EXPAND | GTK_FILL), (GtkAttachOptions) (0), 0, 0); gtk_entry_set_invisible_char (GTK_ENTRY (txtNodeName), 8226); txtNodeX = gtk_entry_new (); gtk_widget_set_name (txtNodeX, "txtNodeX"); gtk_widget_show (txtNodeX); gtk_table_attach (GTK_TABLE (tableNodeProps), txtNodeX, 1, 2, 2, 3, (GtkAttachOptions) (GTK_EXPAND | GTK_FILL), (GtkAttachOptions) (0), 0, 0); gtk_entry_set_invisible_char (GTK_ENTRY (txtNodeX), 8226); txtNodeY = gtk_entry_new (); gtk_widget_set_name (txtNodeY, "txtNodeY"); gtk_widget_show (txtNodeY); gtk_table_attach (GTK_TABLE (tableNodeProps), txtNodeY, 1, 2, 3, 4, (GtkAttachOptions) (GTK_EXPAND | GTK_FILL), (GtkAttachOptions) (0), 0, 0); gtk_entry_set_invisible_char (GTK_ENTRY (txtNodeY), 8226); txtNodeZ = gtk_entry_new (); gtk_widget_set_name (txtNodeZ, "txtNodeZ"); gtk_widget_show (txtNodeZ); gtk_table_attach (GTK_TABLE (tableNodeProps), txtNodeZ, 1, 2, 4, 5, (GtkAttachOptions) (GTK_EXPAND | GTK_FILL), (GtkAttachOptions) (0), 0, 0); gtk_entry_set_invisible_char (GTK_ENTRY (txtNodeZ), 8226); txtNodeLength = gtk_entry_new (); gtk_widget_set_name (txtNodeLength, "txtNodeLength"); gtk_widget_show (txtNodeLength); gtk_table_attach (GTK_TABLE (tableNodeProps), txtNodeLength, 1, 2, 5, 6, (GtkAttachOptions) (GTK_EXPAND | GTK_FILL), (GtkAttachOptions) (0), 0, 0); gtk_entry_set_invisible_char (GTK_ENTRY (txtNodeLength), 8226); txtNodeWidth = gtk_entry_new (); gtk_widget_set_name (txtNodeWidth, "txtNodeWidth"); gtk_widget_show (txtNodeWidth); gtk_table_attach (GTK_TABLE (tableNodeProps), txtNodeWidth, 1, 2, 6, 7, (GtkAttachOptions) (GTK_EXPAND | GTK_FILL), (GtkAttachOptions) (0), 0, 0); gtk_entry_set_invisible_char (GTK_ENTRY (txtNodeWidth), 8226); txtNodeHeight = gtk_entry_new (); gtk_widget_set_name (txtNodeHeight, "txtNodeHeight"); gtk_widget_show (txtNodeHeight); gtk_table_attach (GTK_TABLE (tableNodeProps), txtNodeHeight, 1, 2, 7, 8, (GtkAttachOptions) (GTK_EXPAND | GTK_FILL), (GtkAttachOptions) (0), 0, 0); gtk_entry_set_invisible_char (GTK_ENTRY (txtNodeHeight), 8226); comboNodeMat = gtk_combo_box_entry_new_text (); gtk_widget_set_name (comboNodeMat, "comboNodeMat"); gtk_widget_show (comboNodeMat); gtk_table_attach (GTK_TABLE (tableNodeProps), comboNodeMat, 1, 2, 8, 9, (GtkAttachOptions) (GTK_FILL), (GtkAttachOptions) (GTK_FILL), 0, 0); gtk_combo_box_append_text (GTK_COMBO_BOX (comboNodeMat), _("Black")); gtk_combo_box_append_text (GTK_COMBO_BOX (comboNodeMat), _("Blue")); gtk_combo_box_append_text (GTK_COMBO_BOX (comboNodeMat), _("Darkgrey")); gtk_combo_box_append_text (GTK_COMBO_BOX (comboNodeMat), _("Green")); gtk_combo_box_append_text (GTK_COMBO_BOX (comboNodeMat), _("Grey")); gtk_combo_box_append_text (GTK_COMBO_BOX (comboNodeMat), _("Red")); gtk_combo_box_append_text (GTK_COMBO_BOX (comboNodeMat), _("White")); gtk_combo_box_append_text (GTK_COMBO_BOX (comboNodeMat), _("Yellow")); gtk_combo_box_set_add_tearoffs (GTK_COMBO_BOX (comboNodeMat), TRUE); comboNodeShape = gtk_combo_box_entry_new_text (); gtk_widget_set_name (comboNodeShape, "comboNodeShape"); gtk_widget_show (comboNodeShape); gtk_table_attach (GTK_TABLE (tableNodeProps), comboNodeShape, 1, 2, 9, 10, (GtkAttachOptions) (GTK_FILL), (GtkAttachOptions) (GTK_FILL), 0, 0); gtk_combo_box_append_text (GTK_COMBO_BOX (comboNodeShape), _("Box")); gtk_combo_box_append_text (GTK_COMBO_BOX (comboNodeShape), _("Sphere")); gtk_combo_box_append_text (GTK_COMBO_BOX (comboNodeShape), _("CCylinder")); gtk_combo_box_append_text (GTK_COMBO_BOX (comboNodeShape), _("No Shape")); gtk_combo_box_set_add_tearoffs (GTK_COMBO_BOX (comboNodeShape), TRUE);
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -