00001
00002
00003
00004
00005 #ifdef HAVE_CONFIG_H
00006 # include <config.h>
00007 #endif
00008
00009 #include <sys/types.h>
00010 #include <sys/stat.h>
00011 #include <unistd.h>
00012 #include <string.h>
00013 #include <stdio.h>
00014
00015 #include <gdk/gdkkeysyms.h>
00016 #include <gtk/gtk.h>
00017
00018 #include "callbacks.h"
00019 #include "interface.h"
00020 #include "support.h"
00021
00022 #define GLADE_HOOKUP_OBJECT(component,widget,name) \
00023 g_object_set_data_full (G_OBJECT (component), name, \
00024 gtk_widget_ref (widget), (GDestroyNotify) gtk_widget_unref)
00025
00026 #define GLADE_HOOKUP_OBJECT_NO_REF(component,widget,name) \
00027 g_object_set_data (G_OBJECT (component), name, widget)
00028
00029 GtkWidget*
00030 create_about_dialog (void)
00031 {
00032 GtkWidget *about_dialog;
00033 const gchar *authors[] = {
00034 "Bert Timmerman <bert.timmerman@xs4all.nl>",
00035 NULL
00036 };
00037
00038 gchar *translators = "Bert Timmerman (nl)";
00039 GdkPixbuf *about_dialog_logo_pixbuf;
00040
00041 about_dialog = gtk_about_dialog_new ();
00042 gtk_widget_set_name (about_dialog, "about_dialog");
00043 gtk_about_dialog_set_version (GTK_ABOUT_DIALOG (about_dialog), VERSION);
00044 gtk_about_dialog_set_name (GTK_ABOUT_DIALOG (about_dialog), _("pcb-gfpw"));
00045 gtk_about_dialog_set_copyright (GTK_ABOUT_DIALOG (about_dialog), _("(C) 2007, 2008, 2009, 2010, 2011 Bert Timmerman."));
00046 gtk_about_dialog_set_comments (GTK_ABOUT_DIALOG (about_dialog), _("The pcb FootPrintWizard generates footprint files for the pcb layout editor.\n(see http://pcb.gpleda.org)\n"));
00047 gtk_about_dialog_set_license (GTK_ABOUT_DIALOG (about_dialog), _("This program is free software; you can redistribute it and/or modify\nit under the terms of the GNU General Public License as published by\nthe Free Software Foundation; either version 2 of the License, or\n(at your option) any later version.\n\nThis program is distributed in the hope that it will be useful,\nbut WITHOUT ANY WARRANTY; without even the implied warranty of\nMERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.\nSee the GNU General Public License for more details.\n\nYou should have received a copy of the GNU General Public License\nalong with this program; if not, write to:\nthe Free Software Foundation, Inc.,\n51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.\n"));
00048 gtk_about_dialog_set_website (GTK_ABOUT_DIALOG (about_dialog), "http://www.xs4all.nl/~ljh4timm/pcb-fpw/pcb-fpw.html");
00049 gtk_about_dialog_set_authors (GTK_ABOUT_DIALOG (about_dialog), authors);
00050 gtk_about_dialog_set_translator_credits (GTK_ABOUT_DIALOG (about_dialog), translators);
00051 about_dialog_logo_pixbuf = create_pixbuf ("splash_wiz.xpm");
00052 gtk_about_dialog_set_logo (GTK_ABOUT_DIALOG (about_dialog), about_dialog_logo_pixbuf);
00053
00054 g_signal_connect ((gpointer) about_dialog, "response",
00055 G_CALLBACK (on_about_dialog_close),
00056 NULL);
00057 g_signal_connect ((gpointer) about_dialog, "destroy",
00058 G_CALLBACK (on_about_dialog_destroy),
00059 NULL);
00060
00061
00062 GLADE_HOOKUP_OBJECT_NO_REF (about_dialog, about_dialog, "about_dialog");
00063
00064 return about_dialog;
00065 }
00066
00067 GtkWidget*
00068 create_pcb_gfpw (void)
00069 {
00070 GtkWidget *pcb_gfpw;
00071 GdkPixbuf *pcb_gfpw_icon_pixbuf;
00072 GtkWidget *vbox;
00073 GtkWidget *hbox;
00074 GtkWidget *notebook;
00075 GtkWidget *footprint_tab_table;
00076 GtkWidget *author_frame;
00077 GtkWidget *author_frame_alignment;
00078 GtkWidget *author_table;
00079 GtkWidget *footprint_author_label;
00080 GtkWidget *footprint_dist_license_label;
00081 GtkWidget *footprint_author_entry;
00082 GtkWidget *footprint_dist_license_entry;
00083 GtkWidget *footprint_use_license_entry;
00084 GtkWidget *footprint_use_license_label;
00085 GtkWidget *footprint_status_label;
00086 GtkWidget *footprint_status_entry;
00087 GtkWidget *author_frame_label;
00088 GtkWidget *footprint_frame;
00089 GtkWidget *footprint_frame_alignment;
00090 GtkWidget *footprint_table;
00091 GtkWidget *footprint_units_label;
00092 GtkWidget *footprint_units_entry;
00093 GtkWidget *footprint_name_entry;
00094 GtkWidget *footprint_type_entry;
00095 GtkWidget *footprint_type_label;
00096 GtkWidget *footprint_name_label;
00097 GtkWidget *package_body_height_entry;
00098 GtkWidget *package_body_height_label;
00099 GtkWidget *pacakge_body_width_label;
00100 GtkWidget *package_body_length_label;
00101 GtkWidget *footprint_value_label;
00102 GtkWidget *package_body_width_entry;
00103 GtkWidget *package_body_length_entry;
00104 GtkWidget *footprint_value_entry;
00105 GtkWidget *footprint_refdes_label;
00106 GtkWidget *footprint_refdes_entry;
00107 GtkWidget *add_license_checkbutton;
00108 GtkWidget *package_is_radial_checkbutton;
00109 GtkWidget *add_attribs_checkbutton;
00110 GtkWidget *footprint_frame_label;
00111 GtkWidget *footprint_tab_label;
00112 GtkWidget *pins_pads_table;
00113 GtkWidget *pads_frame;
00114 GtkWidget *pads_alignment;
00115 GtkWidget *pads_table;
00116 GtkWidget *pad_solder_mask_clearance_label;
00117 GtkWidget *pad_solder_mask_clearance_entry;
00118 GtkWidget *pad_clearance_label;
00119 GtkWidget *pad_width_label;
00120 GtkWidget *pad_length_label;
00121 GtkWidget *pad_clearance_entry;
00122 GtkWidget *pad_width_entry;
00123 GtkWidget *pad_length_entry;
00124 GtkWidget *pad_shape_label;
00125 GtkWidget *pad_shape_entry;
00126 GtkWidget *pads_label;
00127 GtkWidget *pins_frame;
00128 GtkWidget *pins_alignment;
00129 GtkWidget *pins_table;
00130 GtkWidget *pad_diameter_entry;
00131 GtkWidget *pin_drill_diameter_label;
00132 GtkWidget *pin_pad_diameter_label;
00133 GtkWidget *pin_square_checkbutton;
00134 GtkWidget *pin_drill_diameter_entry;
00135 GtkWidget *pins_label;
00136 GtkWidget *pins_pads_pattern_frame;
00137 GtkWidget *pins_pads_pattern_alignment;
00138 GtkWidget *pins_pads_pattern_table;
00139 GtkWidget *total_pins_and_pads_label;
00140 GtkWidget *pitch_x_label;
00141 GtkWidget *pitch_y_label;
00142 GtkWidget *number_total_pins_entry;
00143 GtkWidget *pitch_x_entry;
00144 GtkWidget *pitch_y_entry;
00145 GtkWidget *label1;
00146 GtkWidget *label2;
00147 GtkWidget *count_x_entry;
00148 GtkWidget *count_y_entry;
00149 GtkWidget *number_1_position_label;
00150 GtkWidget *number_1_position_entry;
00151 GtkWidget *number_of_columns_label;
00152 GtkWidget *number_of_columns_entry;
00153 GtkWidget *number_of_rows_label;
00154 GtkWidget *number_of_rows_entry;
00155 GtkWidget *pin_pad_exceptions_entry;
00156 GtkWidget *pin_pad_exceptions_button;
00157 GtkWidget *pins_pads_pattern_label;
00158 GtkWidget *pins_pads_tab_tab_label;
00159 GtkWidget *silkscreen_table;
00160 GtkWidget *courtyard_frame;
00161 GtkWidget *courtyard_alignment;
00162 GtkWidget *courtyard_table;
00163 GtkWidget *courtyard_checkbutton;
00164 GtkWidget *courtyard_width_label;
00165 GtkWidget *courtyard_length_label;
00166 GtkWidget *courtyard_length_entry;
00167 GtkWidget *courtyard_width_entry;
00168 GtkWidget *courtyard_line_width_label;
00169 GtkWidget *courtyard_line_width_entry;
00170 GtkWidget *courtyard_clearance_with_package_label;
00171 GtkWidget *courtyard_clearance_with_package_entry;
00172 GtkWidget *courtyard_label;
00173 GtkWidget *package_frame;
00174 GtkWidget *package_alignment;
00175 GtkWidget *package_table;
00176 GtkWidget *silkscreen_package_outline_checkbutton;
00177 GtkWidget *silkscreen_indicate_1_checkbutton;
00178 GtkWidget *silkscreen_line_width_label;
00179 GtkWidget *silkscreen_line_width_entry;
00180 GtkWidget *package_label;
00181 GtkWidget *silkscreen_tab_label;
00182 GtkWidget *thermal_table;
00183 GtkWidget *thermal_pad_frame;
00184 GtkWidget *thermal_pad_alignment;
00185 GtkWidget *thermal_pad_table;
00186 GtkWidget *thermal_checkbutton;
00187 GtkWidget *thermal_pad_length_label;
00188 GtkWidget *thermal_pad_width_label;
00189 GtkWidget *thermal_width_entry;
00190 GtkWidget *thermal_length_entry;
00191 GtkWidget *thermal_nopaste_checkbutton;
00192 GtkWidget *thermal_pad_solder_mask_clearance_label;
00193 GtkWidget *thermal_pad_clearance_label;
00194 GtkWidget *thermal_solder_mask_clearance_entry;
00195 GtkWidget *thermal_clearance_entry;
00196 GtkWidget *thermal_pad_label;
00197 GtkWidget *fiducials_frame;
00198 GtkWidget *fiducials_alignment;
00199 GtkWidget *fiducials_table;
00200 GtkWidget *fiducial_pad_diameter_label;
00201 GtkWidget *fiducial_pad_diameter_entry;
00202 GtkWidget *fiducial_checkbutton;
00203 GtkWidget *fiducial_solder_mask_clearance_label;
00204 GtkWidget *fiducial_pad_solder_mask_clearance_entry;
00205 GtkWidget *fiducial_pad_clearance_label;
00206 GtkWidget *fiducial_pad_clearance_entry;
00207 GtkWidget *fiducials_label;
00208 GtkWidget *thermal_pad_tab_label;
00209 GtkWidget *heel_and_toe_goals_vbox;
00210 GtkWidget *top_to_bottom_frame;
00211 GtkWidget *top_to_bottom_alignment;
00212 GtkWidget *top_to_bottom_table;
00213 GtkWidget *G1_radiobutton;
00214 GSList *G1_radiobutton_group = NULL;
00215 GtkWidget *C1_radiobutton;
00216 GtkWidget *Z1_radiobutton;
00217 GtkWidget *G1_entry;
00218 GtkWidget *C1_entry;
00219 GtkWidget *Z1_entry;
00220 GtkWidget *top_to_bottom_label;
00221 GtkWidget *left_to_right_frame;
00222 GtkWidget *left_to_right_alignment;
00223 GtkWidget *left_to_right_table;
00224 GtkWidget *G2_radiobutton;
00225 GSList *G2_radiobutton_group = NULL;
00226 GtkWidget *C2_radiobutton;
00227 GtkWidget *Z2_radiobutton;
00228 GtkWidget *G2_entry;
00229 GtkWidget *C2_entry;
00230 GtkWidget *Z2_entry;
00231 GtkWidget *left_to_right_label;
00232 GtkWidget *heel_and_toe_goals_tab_label;
00233 GtkWidget *hbuttonbox0;
00234 GtkWidget *refresh_button;
00235 GtkWidget *dimensions_button;
00236 GtkWidget *alignment4;
00237 GtkWidget *hbox4;
00238 GtkWidget *image4;
00239 GtkWidget *label6;
00240 GtkWidget *preview_button;
00241 GtkWidget *alignment1;
00242 GtkWidget *hbox1;
00243 GtkWidget *image1;
00244 GtkWidget *label3;
00245 GtkWidget *clear_button;
00246 GtkWidget *hbuttonbox1;
00247 GtkWidget *close_button;
00248 GtkWidget *footprint_button;
00249 GtkWidget *alignment3;
00250 GtkWidget *hbox3;
00251 GtkWidget *image3;
00252 GtkWidget *label5;
00253 GtkWidget *open_button;
00254 GtkWidget *save_button;
00255 GtkWidget *statusbar;
00256 GtkTooltips *tooltips;
00257
00258 tooltips = gtk_tooltips_new ();
00259
00260 pcb_gfpw = gtk_window_new (GTK_WINDOW_TOPLEVEL);
00261 gtk_widget_set_name (pcb_gfpw, "pcb_gfpw");
00262 gtk_tooltips_set_tip (tooltips, pcb_gfpw, _("FootPrintWizard for pcb footprints"), NULL);
00263 gtk_window_set_title (GTK_WINDOW (pcb_gfpw), _("pcb-gfpw FootPrint Wizard"));
00264 pcb_gfpw_icon_pixbuf = create_pixbuf ("gFootprintWizard.xpm");
00265 if (pcb_gfpw_icon_pixbuf)
00266 {
00267 gtk_window_set_icon (GTK_WINDOW (pcb_gfpw), pcb_gfpw_icon_pixbuf);
00268 gdk_pixbuf_unref (pcb_gfpw_icon_pixbuf);
00269 }
00270
00271 vbox = gtk_vbox_new (FALSE, 0);
00272 gtk_widget_set_name (vbox, "vbox");
00273 gtk_widget_show (vbox);
00274 gtk_container_add (GTK_CONTAINER (pcb_gfpw), vbox);
00275
00276 hbox = gtk_hbox_new (FALSE, 0);
00277 gtk_widget_set_name (hbox, "hbox");
00278 gtk_widget_show (hbox);
00279 gtk_box_pack_start (GTK_BOX (vbox), hbox, TRUE, TRUE, 0);
00280
00281 notebook = gtk_notebook_new ();
00282 gtk_widget_set_name (notebook, "notebook");
00283 gtk_widget_show (notebook);
00284 gtk_box_pack_start (GTK_BOX (hbox), notebook, TRUE, TRUE, 0);
00285 gtk_container_set_border_width (GTK_CONTAINER (notebook), 10);
00286
00287 footprint_tab_table = gtk_table_new (2, 1, FALSE);
00288 gtk_widget_set_name (footprint_tab_table, "footprint_tab_table");
00289 gtk_widget_show (footprint_tab_table);
00290 gtk_container_add (GTK_CONTAINER (notebook), footprint_tab_table);
00291 gtk_notebook_set_tab_label_packing (GTK_NOTEBOOK (notebook), footprint_tab_table,
00292 FALSE, FALSE, GTK_PACK_START);
00293 gtk_container_set_border_width (GTK_CONTAINER (footprint_tab_table), 5);
00294 gtk_table_set_row_spacings (GTK_TABLE (footprint_tab_table), 10);
00295
00296 author_frame = gtk_frame_new (NULL);
00297 gtk_widget_set_name (author_frame, "author_frame");
00298 gtk_widget_show (author_frame);
00299 gtk_table_attach (GTK_TABLE (footprint_tab_table), author_frame, 0, 1, 1, 2,
00300 (GtkAttachOptions) (GTK_FILL),
00301 (GtkAttachOptions) (0), 0, 0);
00302 gtk_frame_set_shadow_type (GTK_FRAME (author_frame), GTK_SHADOW_NONE);
00303
00304 author_frame_alignment = gtk_alignment_new (0.5, 0.5, 1, 1);
00305 gtk_widget_set_name (author_frame_alignment, "author_frame_alignment");
00306 gtk_widget_show (author_frame_alignment);
00307 gtk_container_add (GTK_CONTAINER (author_frame), author_frame_alignment);
00308 gtk_alignment_set_padding (GTK_ALIGNMENT (author_frame_alignment), 0, 0, 12, 0);
00309
00310 author_table = gtk_table_new (4, 2, FALSE);
00311 gtk_widget_set_name (author_table, "author_table");
00312 gtk_widget_show (author_table);
00313 gtk_container_add (GTK_CONTAINER (author_frame_alignment), author_table);
00314
00315 footprint_author_label = gtk_label_new (_("Author"));
00316 gtk_widget_set_name (footprint_author_label, "footprint_author_label");
00317 gtk_widget_show (footprint_author_label);
00318 gtk_table_attach (GTK_TABLE (author_table), footprint_author_label, 0, 1, 0, 1,
00319 (GtkAttachOptions) (GTK_FILL),
00320 (GtkAttachOptions) (0), 0, 0);
00321 gtk_misc_set_alignment (GTK_MISC (footprint_author_label), 0, 0.5);
00322
00323 footprint_dist_license_label = gtk_label_new (_("Distribution license "));
00324 gtk_widget_set_name (footprint_dist_license_label, "footprint_dist_license_label");
00325 gtk_widget_show (footprint_dist_license_label);
00326 gtk_table_attach (GTK_TABLE (author_table), footprint_dist_license_label, 0, 1, 1, 2,
00327 (GtkAttachOptions) (GTK_FILL),
00328 (GtkAttachOptions) (0), 0, 0);
00329 gtk_misc_set_alignment (GTK_MISC (footprint_dist_license_label), 0, 0.5);
00330
00331 footprint_author_entry = gtk_entry_new ();
00332 gtk_widget_set_name (footprint_author_entry, "footprint_author_entry");
00333 gtk_widget_show (footprint_author_entry);
00334 gtk_table_attach (GTK_TABLE (author_table), footprint_author_entry, 1, 2, 0, 1,
00335 (GtkAttachOptions) (GTK_EXPAND | GTK_FILL),
00336 (GtkAttachOptions) (0), 0, 0);
00337 gtk_tooltips_set_tip (tooltips, footprint_author_entry, _("Type your name here"), NULL);
00338 gtk_entry_set_invisible_char (GTK_ENTRY (footprint_author_entry), 8226);
00339
00340 footprint_dist_license_entry = gtk_entry_new ();
00341 gtk_widget_set_name (footprint_dist_license_entry, "footprint_dist_license_entry");
00342 gtk_widget_show (footprint_dist_license_entry);
00343 gtk_table_attach (GTK_TABLE (author_table), footprint_dist_license_entry, 1, 2, 1, 2,
00344 (GtkAttachOptions) (GTK_EXPAND | GTK_FILL),
00345 (GtkAttachOptions) (0), 0, 0);
00346 gtk_tooltips_set_tip (tooltips, footprint_dist_license_entry, _("License under which you distribute the file"), NULL);
00347 gtk_entry_set_text (GTK_ENTRY (footprint_dist_license_entry), _("GPL"));
00348 gtk_entry_set_invisible_char (GTK_ENTRY (footprint_dist_license_entry), 8226);
00349
00350 footprint_use_license_entry = gtk_entry_new ();
00351 gtk_widget_set_name (footprint_use_license_entry, "footprint_use_license_entry");
00352 gtk_widget_show (footprint_use_license_entry);
00353 gtk_table_attach (GTK_TABLE (author_table), footprint_use_license_entry, 1, 2, 2, 3,
00354 (GtkAttachOptions) (GTK_EXPAND | GTK_FILL),
00355 (GtkAttachOptions) (0), 0, 0);
00356 gtk_tooltips_set_tip (tooltips, footprint_use_license_entry, _("Allowable usage"), NULL);
00357 gtk_entry_set_text (GTK_ENTRY (footprint_use_license_entry), _("unlimited"));
00358 gtk_entry_set_invisible_char (GTK_ENTRY (footprint_use_license_entry), 8226);
00359
00360 footprint_use_license_label = gtk_label_new (_("Use license"));
00361 gtk_widget_set_name (footprint_use_license_label, "footprint_use_license_label");
00362 gtk_widget_show (footprint_use_license_label);
00363 gtk_table_attach (GTK_TABLE (author_table), footprint_use_license_label, 0, 1, 2, 3,
00364 (GtkAttachOptions) (GTK_FILL),
00365 (GtkAttachOptions) (0), 0, 0);
00366 gtk_misc_set_alignment (GTK_MISC (footprint_use_license_label), 0, 0.5);
00367
00368 footprint_status_label = gtk_label_new (_("Status"));
00369 gtk_widget_set_name (footprint_status_label, "footprint_status_label");
00370 gtk_widget_show (footprint_status_label);
00371 gtk_table_attach (GTK_TABLE (author_table), footprint_status_label, 0, 1, 3, 4,
00372 (GtkAttachOptions) (GTK_FILL),
00373 (GtkAttachOptions) (0), 0, 0);
00374 gtk_misc_set_alignment (GTK_MISC (footprint_status_label), 0, 0.5);
00375
00376 footprint_status_entry = gtk_combo_box_entry_new_text ();
00377 gtk_widget_set_name (footprint_status_entry, "footprint_status_entry");
00378 gtk_widget_show (footprint_status_entry);
00379 gtk_table_attach (GTK_TABLE (author_table), footprint_status_entry, 1, 2, 3, 4,
00380 (GtkAttachOptions) (GTK_FILL),
00381 (GtkAttachOptions) (GTK_FILL), 0, 0);
00382 gtk_combo_box_append_text (GTK_COMBO_BOX (footprint_status_entry), "");
00383 gtk_combo_box_append_text (GTK_COMBO_BOX (footprint_status_entry), _("Experimental"));
00384 gtk_combo_box_append_text (GTK_COMBO_BOX (footprint_status_entry), _("Private (not published)"));
00385 gtk_combo_box_append_text (GTK_COMBO_BOX (footprint_status_entry), _("Public (released)"));
00386 gtk_combo_box_append_text (GTK_COMBO_BOX (footprint_status_entry), _("Stable (confirmed by peers)"));
00387
00388 author_frame_label = gtk_label_new (_("<b>Author</b>"));
00389 gtk_widget_set_name (author_frame_label, "author_frame_label");
00390 gtk_widget_show (author_frame_label);
00391 gtk_frame_set_label_widget (GTK_FRAME (author_frame), author_frame_label);
00392 gtk_label_set_use_markup (GTK_LABEL (author_frame_label), TRUE);
00393
00394 footprint_frame = gtk_frame_new (NULL);
00395 gtk_widget_set_name (footprint_frame, "footprint_frame");
00396 gtk_widget_show (footprint_frame);
00397 gtk_table_attach (GTK_TABLE (footprint_tab_table), footprint_frame, 0, 1, 0, 1,
00398 (GtkAttachOptions) (GTK_FILL),
00399 (GtkAttachOptions) (0), 0, 0);
00400 gtk_frame_set_shadow_type (GTK_FRAME (footprint_frame), GTK_SHADOW_NONE);
00401
00402 footprint_frame_alignment = gtk_alignment_new (0.5, 0.5, 1, 1);
00403 gtk_widget_set_name (footprint_frame_alignment, "footprint_frame_alignment");
00404 gtk_widget_show (footprint_frame_alignment);
00405 gtk_container_add (GTK_CONTAINER (footprint_frame), footprint_frame_alignment);
00406 gtk_alignment_set_padding (GTK_ALIGNMENT (footprint_frame_alignment), 0, 0, 12, 0);
00407
00408 footprint_table = gtk_table_new (11, 2, FALSE);
00409 gtk_widget_set_name (footprint_table, "footprint_table");
00410 gtk_widget_show (footprint_table);
00411 gtk_container_add (GTK_CONTAINER (footprint_frame_alignment), footprint_table);
00412
00413 footprint_units_label = gtk_label_new (_("Units"));
00414 gtk_widget_set_name (footprint_units_label, "footprint_units_label");
00415 gtk_widget_show (footprint_units_label);
00416 gtk_table_attach (GTK_TABLE (footprint_table), footprint_units_label, 0, 1, 2, 3,
00417 (GtkAttachOptions) (GTK_FILL),
00418 (GtkAttachOptions) (0), 0, 0);
00419 gtk_misc_set_alignment (GTK_MISC (footprint_units_label), 0, 0.5);
00420
00421 footprint_units_entry = gtk_combo_box_entry_new_text ();
00422 gtk_widget_set_name (footprint_units_entry, "footprint_units_entry");
00423 gtk_widget_show (footprint_units_entry);
00424 gtk_table_attach (GTK_TABLE (footprint_table), footprint_units_entry, 1, 2, 2, 3,
00425 (GtkAttachOptions) (GTK_FILL),
00426 (GtkAttachOptions) (GTK_FILL), 0, 0);
00427 gtk_combo_box_append_text (GTK_COMBO_BOX (footprint_units_entry), "");
00428 gtk_combo_box_append_text (GTK_COMBO_BOX (footprint_units_entry), _("mil"));
00429 gtk_combo_box_append_text (GTK_COMBO_BOX (footprint_units_entry), _("mil/100"));
00430 gtk_combo_box_append_text (GTK_COMBO_BOX (footprint_units_entry), _("mm"));
00431
00432 footprint_name_entry = gtk_entry_new ();
00433 gtk_widget_set_name (footprint_name_entry, "footprint_name_entry");
00434 gtk_widget_show (footprint_name_entry);
00435 gtk_table_attach (GTK_TABLE (footprint_table), footprint_name_entry, 1, 2, 1, 2,
00436 (GtkAttachOptions) (GTK_EXPAND | GTK_FILL),
00437 (GtkAttachOptions) (0), 0, 0);
00438 gtk_tooltips_set_tip (tooltips, footprint_name_entry, _("Type the name of the footprint here, no suffix please"), NULL);
00439 gtk_entry_set_invisible_char (GTK_ENTRY (footprint_name_entry), 8226);
00440
00441 footprint_type_entry = gtk_combo_box_entry_new_text ();
00442 gtk_widget_set_name (footprint_type_entry, "footprint_type_entry");
00443 gtk_widget_show (footprint_type_entry);
00444 gtk_table_attach (GTK_TABLE (footprint_table), footprint_type_entry, 1, 2, 0, 1,
00445 (GtkAttachOptions) (GTK_FILL),
00446 (GtkAttachOptions) (GTK_FILL), 0, 0);
00447 gtk_combo_box_append_text (GTK_COMBO_BOX (footprint_type_entry), "");
00448 gtk_combo_box_append_text (GTK_COMBO_BOX (footprint_type_entry), _("BGA"));
00449 gtk_combo_box_append_text (GTK_COMBO_BOX (footprint_type_entry), _("CAPA"));
00450 gtk_combo_box_append_text (GTK_COMBO_BOX (footprint_type_entry), _("CAPAE"));
00451 gtk_combo_box_append_text (GTK_COMBO_BOX (footprint_type_entry), _("CAPC"));
00452 gtk_combo_box_append_text (GTK_COMBO_BOX (footprint_type_entry), _("CAPM"));
00453 gtk_combo_box_append_text (GTK_COMBO_BOX (footprint_type_entry), _("CAPMP"));
00454 gtk_combo_box_append_text (GTK_COMBO_BOX (footprint_type_entry), _("CAPPR"));
00455 gtk_combo_box_append_text (GTK_COMBO_BOX (footprint_type_entry), _("CON_DIL"));
00456 gtk_combo_box_append_text (GTK_COMBO_BOX (footprint_type_entry), _("CON_DIP"));
00457 gtk_combo_box_append_text (GTK_COMBO_BOX (footprint_type_entry), _("CON_HDR"));
00458 gtk_combo_box_append_text (GTK_COMBO_BOX (footprint_type_entry), _("CON_SIL"));
00459 gtk_combo_box_append_text (GTK_COMBO_BOX (footprint_type_entry), _("DIL"));
00460 gtk_combo_box_append_text (GTK_COMBO_BOX (footprint_type_entry), _("DIOM"));
00461 gtk_combo_box_append_text (GTK_COMBO_BOX (footprint_type_entry), _("DIOMELF"));
00462 gtk_combo_box_append_text (GTK_COMBO_BOX (footprint_type_entry), _("DIP"));
00463 gtk_combo_box_append_text (GTK_COMBO_BOX (footprint_type_entry), _("DIPS"));
00464 gtk_combo_box_append_text (GTK_COMBO_BOX (footprint_type_entry), _("DO"));
00465 gtk_combo_box_append_text (GTK_COMBO_BOX (footprint_type_entry), _("INDC"));
00466 gtk_combo_box_append_text (GTK_COMBO_BOX (footprint_type_entry), _("INDM"));
00467 gtk_combo_box_append_text (GTK_COMBO_BOX (footprint_type_entry), _("INDP"));
00468 gtk_combo_box_append_text (GTK_COMBO_BOX (footprint_type_entry), _("PGA"));
00469 gtk_combo_box_append_text (GTK_COMBO_BOX (footprint_type_entry), _("PLCC"));
00470 gtk_combo_box_append_text (GTK_COMBO_BOX (footprint_type_entry), _("QFN"));
00471 gtk_combo_box_append_text (GTK_COMBO_BOX (footprint_type_entry), _("QFP"));
00472 gtk_combo_box_append_text (GTK_COMBO_BOX (footprint_type_entry), _("RES"));
00473 gtk_combo_box_append_text (GTK_COMBO_BOX (footprint_type_entry), _("RESC"));
00474 gtk_combo_box_append_text (GTK_COMBO_BOX (footprint_type_entry), _("RESM"));
00475 gtk_combo_box_append_text (GTK_COMBO_BOX (footprint_type_entry), _("RESMELF"));
00476 gtk_combo_box_append_text (GTK_COMBO_BOX (footprint_type_entry), _("SIL"));
00477 gtk_combo_box_append_text (GTK_COMBO_BOX (footprint_type_entry), _("SIP"));
00478 gtk_combo_box_append_text (GTK_COMBO_BOX (footprint_type_entry), _("SO"));
00479 gtk_combo_box_append_text (GTK_COMBO_BOX (footprint_type_entry), _("SOT"));
00480 gtk_combo_box_append_text (GTK_COMBO_BOX (footprint_type_entry), _("TO"));
00481 gtk_combo_box_append_text (GTK_COMBO_BOX (footprint_type_entry), _("TO92"));
00482 gtk_combo_box_append_text (GTK_COMBO_BOX (footprint_type_entry), _("TO220"));
00483 gtk_combo_box_append_text (GTK_COMBO_BOX (footprint_type_entry), _("TO220S"));
00484 gtk_combo_box_append_text (GTK_COMBO_BOX (footprint_type_entry), _("TO220SW"));
00485 gtk_combo_box_append_text (GTK_COMBO_BOX (footprint_type_entry), _("TO220W"));
00486
00487 footprint_type_label = gtk_label_new (_("Type"));
00488 gtk_widget_set_name (footprint_type_label, "footprint_type_label");
00489 gtk_widget_show (footprint_type_label);
00490 gtk_table_attach (GTK_TABLE (footprint_table), footprint_type_label, 0, 1, 0, 1,
00491 (GtkAttachOptions) (GTK_FILL),
00492 (GtkAttachOptions) (0), 0, 0);
00493 gtk_misc_set_alignment (GTK_MISC (footprint_type_label), 0, 0.5);
00494
00495 footprint_name_label = gtk_label_new (_("Name"));
00496 gtk_widget_set_name (footprint_name_label, "footprint_name_label");
00497 gtk_widget_show (footprint_name_label);
00498 gtk_table_attach (GTK_TABLE (footprint_table), footprint_name_label, 0, 1, 1, 2,
00499 (GtkAttachOptions) (GTK_FILL),
00500 (GtkAttachOptions) (0), 0, 0);
00501 gtk_misc_set_alignment (GTK_MISC (footprint_name_label), 0, 0.5);
00502
00503 package_body_height_entry = gtk_entry_new ();
00504 gtk_widget_set_name (package_body_height_entry, "package_body_height_entry");
00505 gtk_widget_show (package_body_height_entry);
00506 gtk_table_attach (GTK_TABLE (footprint_table), package_body_height_entry, 1, 2, 7, 8,
00507 (GtkAttachOptions) (GTK_EXPAND | GTK_FILL),
00508 (GtkAttachOptions) (0), 0, 0);
00509 gtk_tooltips_set_tip (tooltips, package_body_height_entry, _("Type the height dimension of the package body here"), NULL);
00510 gtk_entry_set_invisible_char (GTK_ENTRY (package_body_height_entry), 8226);
00511
00512 package_body_height_label = gtk_label_new (_("Body height (Z) "));
00513 gtk_widget_set_name (package_body_height_label, "package_body_height_label");
00514 gtk_widget_show (package_body_height_label);
00515 gtk_table_attach (GTK_TABLE (footprint_table), package_body_height_label, 0, 1, 7, 8,
00516 (GtkAttachOptions) (GTK_FILL),
00517 (GtkAttachOptions) (0), 0, 0);
00518 gtk_misc_set_alignment (GTK_MISC (package_body_height_label), 0, 0.5);
00519
00520 pacakge_body_width_label = gtk_label_new (_("Body width (Y)"));
00521 gtk_widget_set_name (pacakge_body_width_label, "pacakge_body_width_label");
00522 gtk_widget_show (pacakge_body_width_label);
00523 gtk_table_attach (GTK_TABLE (footprint_table), pacakge_body_width_label, 0, 1, 6, 7,
00524 (GtkAttachOptions) (GTK_FILL),
00525 (GtkAttachOptions) (0), 0, 0);
00526 gtk_misc_set_alignment (GTK_MISC (pacakge_body_width_label), 0, 0.5);
00527
00528 package_body_length_label = gtk_label_new (_("Body length (X)"));
00529 gtk_widget_set_name (package_body_length_label, "package_body_length_label");
00530 gtk_widget_show (package_body_length_label);
00531 gtk_table_attach (GTK_TABLE (footprint_table), package_body_length_label, 0, 1, 5, 6,
00532 (GtkAttachOptions) (GTK_FILL),
00533 (GtkAttachOptions) (0), 0, 0);
00534 gtk_misc_set_alignment (GTK_MISC (package_body_length_label), 0, 0.5);
00535
00536 footprint_value_label = gtk_label_new (_("Value"));
00537 gtk_widget_set_name (footprint_value_label, "footprint_value_label");
00538 gtk_widget_show (footprint_value_label);
00539 gtk_table_attach (GTK_TABLE (footprint_table), footprint_value_label, 0, 1, 4, 5,
00540 (GtkAttachOptions) (GTK_FILL),
00541 (GtkAttachOptions) (0), 0, 0);
00542 gtk_misc_set_alignment (GTK_MISC (footprint_value_label), 0, 0.5);
00543
00544 package_body_width_entry = gtk_entry_new ();
00545 gtk_widget_set_name (package_body_width_entry, "package_body_width_entry");
00546 gtk_widget_show (package_body_width_entry);
00547 gtk_table_attach (GTK_TABLE (footprint_table), package_body_width_entry, 1, 2, 6, 7,
00548 (GtkAttachOptions) (GTK_EXPAND | GTK_FILL),
00549 (GtkAttachOptions) (0), 0, 0);
00550 gtk_tooltips_set_tip (tooltips, package_body_width_entry, _("Type the width dimension of the package body here"), NULL);
00551 gtk_entry_set_invisible_char (GTK_ENTRY (package_body_width_entry), 8226);
00552
00553 package_body_length_entry = gtk_entry_new ();
00554 gtk_widget_set_name (package_body_length_entry, "package_body_length_entry");
00555 gtk_widget_show (package_body_length_entry);
00556 gtk_table_attach (GTK_TABLE (footprint_table), package_body_length_entry, 1, 2, 5, 6,
00557 (GtkAttachOptions) (GTK_EXPAND | GTK_FILL),
00558 (GtkAttachOptions) (0), 0, 0);
00559 gtk_tooltips_set_tip (tooltips, package_body_length_entry, _("Type the length dimension of the package body here"), NULL);
00560 gtk_entry_set_invisible_char (GTK_ENTRY (package_body_length_entry), 8226);
00561
00562 footprint_value_entry = gtk_entry_new ();
00563 gtk_widget_set_name (footprint_value_entry, "footprint_value_entry");
00564 gtk_widget_show (footprint_value_entry);
00565 gtk_table_attach (GTK_TABLE (footprint_table), footprint_value_entry, 1, 2, 4, 5,
00566 (GtkAttachOptions) (GTK_EXPAND | GTK_FILL),
00567 (GtkAttachOptions) (0), 0, 0);
00568 gtk_tooltips_set_tip (tooltips, footprint_value_entry, _("Type the value of the package here"), NULL);
00569 gtk_entry_set_invisible_char (GTK_ENTRY (footprint_value_entry), 8226);
00570
00571 footprint_refdes_label = gtk_label_new (_("Refdes prefix"));
00572 gtk_widget_set_name (footprint_refdes_label, "footprint_refdes_label");
00573 gtk_widget_show (footprint_refdes_label);
00574 gtk_table_attach (GTK_TABLE (footprint_table), footprint_refdes_label, 0, 1, 3, 4,
00575 (GtkAttachOptions) (GTK_FILL),
00576 (GtkAttachOptions) (0), 0, 0);
00577 gtk_misc_set_alignment (GTK_MISC (footprint_refdes_label), 0, 0.5);
00578
00579 footprint_refdes_entry = gtk_entry_new ();
00580 gtk_widget_set_name (footprint_refdes_entry, "footprint_refdes_entry");
00581 gtk_widget_show (footprint_refdes_entry);
00582 gtk_table_attach (GTK_TABLE (footprint_table), footprint_refdes_entry, 1, 2, 3, 4,
00583 (GtkAttachOptions) (GTK_EXPAND | GTK_FILL),
00584 (GtkAttachOptions) (0), 0, 0);
00585 gtk_tooltips_set_tip (tooltips, footprint_refdes_entry, _("Type a refdes prefix here, without the ? please"), NULL);
00586 gtk_entry_set_invisible_char (GTK_ENTRY (footprint_refdes_entry), 8226);
00587
00588 add_license_checkbutton = gtk_check_button_new_with_mnemonic (_("Add license to footprint"));
00589 gtk_widget_set_name (add_license_checkbutton, "add_license_checkbutton");
00590 gtk_widget_show (add_license_checkbutton);
00591 gtk_table_attach (GTK_TABLE (footprint_table), add_license_checkbutton, 0, 2, 9, 10,
00592 (GtkAttachOptions) (GTK_FILL),
00593 (GtkAttachOptions) (0), 0, 0);
00594 gtk_tooltips_set_tip (tooltips, add_license_checkbutton, _("Check to add a license text to the footprint."), NULL);
00595
00596 package_is_radial_checkbutton = gtk_check_button_new_with_mnemonic (_("Radial package "));
00597 gtk_widget_set_name (package_is_radial_checkbutton, "package_is_radial_checkbutton");
00598 gtk_widget_show (package_is_radial_checkbutton);
00599 gtk_table_attach (GTK_TABLE (footprint_table), package_is_radial_checkbutton, 0, 2, 8, 9,
00600 (GtkAttachOptions) (GTK_FILL),
00601 (GtkAttachOptions) (0), 0, 0);
00602 gtk_tooltips_set_tip (tooltips, package_is_radial_checkbutton, _("Check for a radial package"), NULL);
00603
00604 add_attribs_checkbutton = gtk_check_button_new_with_mnemonic (_("Add attributes to footprint"));
00605 gtk_widget_set_name (add_attribs_checkbutton, "add_attribs_checkbutton");
00606 gtk_widget_show (add_attribs_checkbutton);
00607 gtk_table_attach (GTK_TABLE (footprint_table), add_attribs_checkbutton, 0, 2, 10, 11,
00608 (GtkAttachOptions) (GTK_FILL),
00609 (GtkAttachOptions) (0), 0, 0);
00610 gtk_tooltips_set_tip (tooltips, add_attribs_checkbutton, _("Check to add attributes to the footprint."), NULL);
00611
00612 footprint_frame_label = gtk_label_new (_("<b>Footprint</b>"));
00613 gtk_widget_set_name (footprint_frame_label, "footprint_frame_label");
00614 gtk_widget_show (footprint_frame_label);
00615 gtk_frame_set_label_widget (GTK_FRAME (footprint_frame), footprint_frame_label);
00616 gtk_label_set_use_markup (GTK_LABEL (footprint_frame_label), TRUE);
00617
00618 footprint_tab_label = gtk_label_new (_("Footprint"));
00619 gtk_widget_set_name (footprint_tab_label, "footprint_tab_label");
00620 gtk_widget_show (footprint_tab_label);
00621 gtk_notebook_set_tab_label (GTK_NOTEBOOK (notebook), gtk_notebook_get_nth_page (GTK_NOTEBOOK (notebook), 0), footprint_tab_label);
00622
00623 pins_pads_table = gtk_table_new (3, 1, FALSE);
00624 gtk_widget_set_name (pins_pads_table, "pins_pads_table");
00625 gtk_widget_show (pins_pads_table);
00626 gtk_container_add (GTK_CONTAINER (notebook), pins_pads_table);
00627 gtk_notebook_set_tab_label_packing (GTK_NOTEBOOK (notebook), pins_pads_table,
00628 FALSE, FALSE, GTK_PACK_START);
00629 gtk_container_set_border_width (GTK_CONTAINER (pins_pads_table), 5);
00630 gtk_table_set_row_spacings (GTK_TABLE (pins_pads_table), 10);
00631
00632 pads_frame = gtk_frame_new (NULL);
00633 gtk_widget_set_name (pads_frame, "pads_frame");
00634 gtk_widget_show (pads_frame);
00635 gtk_table_attach (GTK_TABLE (pins_pads_table), pads_frame, 0, 1, 2, 3,
00636 (GtkAttachOptions) (GTK_FILL),
00637 (GtkAttachOptions) (0), 0, 0);
00638 gtk_frame_set_shadow_type (GTK_FRAME (pads_frame), GTK_SHADOW_NONE);
00639
00640 pads_alignment = gtk_alignment_new (0.5, 0.5, 1, 1);
00641 gtk_widget_set_name (pads_alignment, "pads_alignment");
00642 gtk_widget_show (pads_alignment);
00643 gtk_container_add (GTK_CONTAINER (pads_frame), pads_alignment);
00644 gtk_alignment_set_padding (GTK_ALIGNMENT (pads_alignment), 0, 0, 12, 0);
00645
00646 pads_table = gtk_table_new (5, 2, FALSE);
00647 gtk_widget_set_name (pads_table, "pads_table");
00648 gtk_widget_show (pads_table);
00649 gtk_container_add (GTK_CONTAINER (pads_alignment), pads_table);
00650
00651 pad_solder_mask_clearance_label = gtk_label_new (_("Pad solder mask clearance "));
00652 gtk_widget_set_name (pad_solder_mask_clearance_label, "pad_solder_mask_clearance_label");
00653 gtk_widget_show (pad_solder_mask_clearance_label);
00654 gtk_table_attach (GTK_TABLE (pads_table), pad_solder_mask_clearance_label, 0, 1, 4, 5,
00655 (GtkAttachOptions) (GTK_FILL),
00656 (GtkAttachOptions) (0), 0, 0);
00657 gtk_misc_set_alignment (GTK_MISC (pad_solder_mask_clearance_label), 0, 0.5);
00658
00659 pad_solder_mask_clearance_entry = gtk_entry_new ();
00660 gtk_widget_set_name (pad_solder_mask_clearance_entry, "pad_solder_mask_clearance_entry");
00661 gtk_widget_show (pad_solder_mask_clearance_entry);
00662 gtk_table_attach (GTK_TABLE (pads_table), pad_solder_mask_clearance_entry, 1, 2, 4, 5,
00663 (GtkAttachOptions) (GTK_EXPAND | GTK_FILL),
00664 (GtkAttachOptions) (0), 0, 0);
00665 gtk_tooltips_set_tip (tooltips, pad_solder_mask_clearance_entry, _("Clearance distance with solder mask"), NULL);
00666 gtk_entry_set_invisible_char (GTK_ENTRY (pad_solder_mask_clearance_entry), 8226);
00667
00668 pad_clearance_label = gtk_label_new (_("Pad clearance"));
00669 gtk_widget_set_name (pad_clearance_label, "pad_clearance_label");
00670 gtk_widget_show (pad_clearance_label);
00671 gtk_table_attach (GTK_TABLE (pads_table), pad_clearance_label, 0, 1, 3, 4,
00672 (GtkAttachOptions) (GTK_FILL),
00673 (GtkAttachOptions) (0), 0, 0);
00674 gtk_misc_set_alignment (GTK_MISC (pad_clearance_label), 0, 0.5);
00675
00676 pad_width_label = gtk_label_new (_("Pad width (Y)"));
00677 gtk_widget_set_name (pad_width_label, "pad_width_label");
00678 gtk_widget_show (pad_width_label);
00679 gtk_table_attach (GTK_TABLE (pads_table), pad_width_label, 0, 1, 2, 3,
00680 (GtkAttachOptions) (GTK_FILL),
00681 (GtkAttachOptions) (0), 0, 0);
00682 gtk_misc_set_alignment (GTK_MISC (pad_width_label), 0, 0.5);
00683
00684 pad_length_label = gtk_label_new (_("Pad length (X) "));
00685 gtk_widget_set_name (pad_length_label, "pad_length_label");
00686 gtk_widget_show (pad_length_label);
00687 gtk_table_attach (GTK_TABLE (pads_table), pad_length_label, 0, 1, 1, 2,
00688 (GtkAttachOptions) (GTK_FILL),
00689 (GtkAttachOptions) (0), 0, 0);
00690 gtk_misc_set_alignment (GTK_MISC (pad_length_label), 0, 0.5);
00691
00692 pad_clearance_entry = gtk_entry_new ();
00693 gtk_widget_set_name (pad_clearance_entry, "pad_clearance_entry");
00694 gtk_widget_show (pad_clearance_entry);
00695 gtk_table_attach (GTK_TABLE (pads_table), pad_clearance_entry, 1, 2, 3, 4,
00696 (GtkAttachOptions) (GTK_EXPAND | GTK_FILL),
00697 (GtkAttachOptions) (0), 0, 0);
00698 gtk_tooltips_set_tip (tooltips, pad_clearance_entry, _("Clearance distance with polygons"), NULL);
00699 gtk_entry_set_invisible_char (GTK_ENTRY (pad_clearance_entry), 8226);
00700
00701 pad_width_entry = gtk_entry_new ();
00702 gtk_widget_set_name (pad_width_entry, "pad_width_entry");
00703 gtk_widget_show (pad_width_entry);
00704 gtk_table_attach (GTK_TABLE (pads_table), pad_width_entry, 1, 2, 2, 3,
00705 (GtkAttachOptions) (GTK_EXPAND | GTK_FILL),
00706 (GtkAttachOptions) (0), 0, 0);
00707 gtk_tooltips_set_tip (tooltips, pad_width_entry, _("Width of pads"), NULL);
00708 gtk_entry_set_invisible_char (GTK_ENTRY (pad_width_entry), 8226);
00709
00710 pad_length_entry = gtk_entry_new ();
00711 gtk_widget_set_name (pad_length_entry, "pad_length_entry");
00712 gtk_widget_show (pad_length_entry);
00713 gtk_table_attach (GTK_TABLE (pads_table), pad_length_entry, 1, 2, 1, 2,
00714 (GtkAttachOptions) (GTK_EXPAND | GTK_FILL),
00715 (GtkAttachOptions) (0), 0, 0);
00716 gtk_tooltips_set_tip (tooltips, pad_length_entry, _("Length of pads"), NULL);
00717 gtk_entry_set_invisible_char (GTK_ENTRY (pad_length_entry), 8226);
00718
00719 pad_shape_label = gtk_label_new (_("Pad shape"));
00720 gtk_widget_set_name (pad_shape_label, "pad_shape_label");
00721 gtk_widget_show (pad_shape_label);
00722 gtk_table_attach (GTK_TABLE (pads_table), pad_shape_label, 0, 1, 0, 1,
00723 (GtkAttachOptions) (GTK_FILL),
00724 (GtkAttachOptions) (0), 0, 0);
00725 gtk_misc_set_alignment (GTK_MISC (pad_shape_label), 0, 0.5);
00726
00727 pad_shape_entry = gtk_combo_box_entry_new_text ();
00728 gtk_widget_set_name (pad_shape_entry, "pad_shape_entry");
00729 gtk_widget_show (pad_shape_entry);
00730 gtk_table_attach (GTK_TABLE (pads_table), pad_shape_entry, 1, 2, 0, 1,
00731 (GtkAttachOptions) (GTK_FILL),
00732 (GtkAttachOptions) (GTK_FILL), 0, 0);
00733 gtk_combo_box_append_text (GTK_COMBO_BOX (pad_shape_entry), "");
00734 gtk_combo_box_append_text (GTK_COMBO_BOX (pad_shape_entry), _("circular pad"));
00735 gtk_combo_box_append_text (GTK_COMBO_BOX (pad_shape_entry), _("rectangular pad"));
00736 gtk_combo_box_append_text (GTK_COMBO_BOX (pad_shape_entry), _("octagonal pad"));
00737 gtk_combo_box_append_text (GTK_COMBO_BOX (pad_shape_entry), _("rounded pad, elongated"));
00738
00739 pads_label = gtk_label_new (_("<b>Pads</b>"));
00740 gtk_widget_set_name (pads_label, "pads_label");
00741 gtk_widget_show (pads_label);
00742 gtk_frame_set_label_widget (GTK_FRAME (pads_frame), pads_label);
00743 gtk_label_set_use_markup (GTK_LABEL (pads_label), TRUE);
00744
00745 pins_frame = gtk_frame_new (NULL);
00746 gtk_widget_set_name (pins_frame, "pins_frame");
00747 gtk_widget_show (pins_frame);
00748 gtk_table_attach (GTK_TABLE (pins_pads_table), pins_frame, 0, 1, 1, 2,
00749 (GtkAttachOptions) (GTK_FILL),
00750 (GtkAttachOptions) (0), 0, 0);
00751 gtk_frame_set_shadow_type (GTK_FRAME (pins_frame), GTK_SHADOW_NONE);
00752
00753 pins_alignment = gtk_alignment_new (0.5, 0.5, 1, 1);
00754 gtk_widget_set_name (pins_alignment, "pins_alignment");
00755 gtk_widget_show (pins_alignment);
00756 gtk_container_add (GTK_CONTAINER (pins_frame), pins_alignment);
00757 gtk_alignment_set_padding (GTK_ALIGNMENT (pins_alignment), 0, 0, 12, 0);
00758
00759 pins_table = gtk_table_new (3, 2, FALSE);
00760 gtk_widget_set_name (pins_table, "pins_table");
00761 gtk_widget_show (pins_table);
00762 gtk_container_add (GTK_CONTAINER (pins_alignment), pins_table);
00763
00764 pad_diameter_entry = gtk_entry_new ();
00765 gtk_widget_set_name (pad_diameter_entry, "pad_diameter_entry");
00766 gtk_widget_show (pad_diameter_entry);
00767 gtk_table_attach (GTK_TABLE (pins_table), pad_diameter_entry, 1, 2, 0, 1,
00768 (GtkAttachOptions) (GTK_EXPAND | GTK_FILL),
00769 (GtkAttachOptions) (0), 0, 0);
00770 gtk_tooltips_set_tip (tooltips, pad_diameter_entry, _("Diameter of pad for pins"), NULL);
00771 gtk_entry_set_invisible_char (GTK_ENTRY (pad_diameter_entry), 8226);
00772
00773 pin_drill_diameter_label = gtk_label_new (_("Pin drill diameter (d) "));
00774 gtk_widget_set_name (pin_drill_diameter_label, "pin_drill_diameter_label");
00775 gtk_widget_show (pin_drill_diameter_label);
00776 gtk_table_attach (GTK_TABLE (pins_table), pin_drill_diameter_label, 0, 1, 1, 2,
00777 (GtkAttachOptions) (GTK_FILL),
00778 (GtkAttachOptions) (0), 0, 0);
00779 gtk_misc_set_alignment (GTK_MISC (pin_drill_diameter_label), 0, 0.5);
00780
00781 pin_pad_diameter_label = gtk_label_new (_("Pin pad diameter (D) "));
00782 gtk_widget_set_name (pin_pad_diameter_label, "pin_pad_diameter_label");
00783 gtk_widget_show (pin_pad_diameter_label);
00784 gtk_table_attach (GTK_TABLE (pins_table), pin_pad_diameter_label, 0, 1, 0, 1,
00785 (GtkAttachOptions) (GTK_FILL),
00786 (GtkAttachOptions) (0), 0, 0);
00787 gtk_misc_set_alignment (GTK_MISC (pin_pad_diameter_label), 0, 0.5);
00788
00789 pin_square_checkbutton = gtk_check_button_new_with_mnemonic (_("Pin #1 square "));
00790 gtk_widget_set_name (pin_square_checkbutton, "pin_square_checkbutton");
00791 gtk_widget_show (pin_square_checkbutton);
00792 gtk_table_attach (GTK_TABLE (pins_table), pin_square_checkbutton, 0, 1, 2, 3,
00793 (GtkAttachOptions) (GTK_FILL),
00794 (GtkAttachOptions) (0), 0, 0);
00795 gtk_tooltips_set_tip (tooltips, pin_square_checkbutton, _("Check to draw square pin #1"), NULL);
00796
00797 pin_drill_diameter_entry = gtk_entry_new ();
00798 gtk_widget_set_name (pin_drill_diameter_entry, "pin_drill_diameter_entry");
00799 gtk_widget_show (pin_drill_diameter_entry);
00800 gtk_table_attach (GTK_TABLE (pins_table), pin_drill_diameter_entry, 1, 2, 1, 2,
00801 (GtkAttachOptions) (GTK_EXPAND | GTK_FILL),
00802 (GtkAttachOptions) (0), 0, 0);
00803 gtk_widget_set_size_request (pin_drill_diameter_entry, 158, -1);
00804 gtk_tooltips_set_tip (tooltips, pin_drill_diameter_entry, _("Diameter of drill hole for pins"), NULL);
00805 gtk_entry_set_invisible_char (GTK_ENTRY (pin_drill_diameter_entry), 8226);
00806
00807 pins_label = gtk_label_new (_("<b>Pins</b>"));
00808 gtk_widget_set_name (pins_label, "pins_label");
00809 gtk_widget_show (pins_label);
00810 gtk_frame_set_label_widget (GTK_FRAME (pins_frame), pins_label);
00811 gtk_label_set_use_markup (GTK_LABEL (pins_label), TRUE);
00812
00813 pins_pads_pattern_frame = gtk_frame_new (NULL);
00814 gtk_widget_set_name (pins_pads_pattern_frame, "pins_pads_pattern_frame");
00815 gtk_widget_show (pins_pads_pattern_frame);
00816 gtk_table_attach (GTK_TABLE (pins_pads_table), pins_pads_pattern_frame, 0, 1, 0, 1,
00817 (GtkAttachOptions) (GTK_FILL),
00818 (GtkAttachOptions) (0), 0, 0);
00819 gtk_frame_set_shadow_type (GTK_FRAME (pins_pads_pattern_frame), GTK_SHADOW_NONE);
00820
00821 pins_pads_pattern_alignment = gtk_alignment_new (0.5, 0.5, 1, 1);
00822 gtk_widget_set_name (pins_pads_pattern_alignment, "pins_pads_pattern_alignment");
00823 gtk_widget_show (pins_pads_pattern_alignment);
00824 gtk_container_add (GTK_CONTAINER (pins_pads_pattern_frame), pins_pads_pattern_alignment);
00825 gtk_alignment_set_padding (GTK_ALIGNMENT (pins_pads_pattern_alignment), 0, 0, 12, 0);
00826
00827 pins_pads_pattern_table = gtk_table_new (9, 2, FALSE);
00828 gtk_widget_set_name (pins_pads_pattern_table, "pins_pads_pattern_table");
00829 gtk_widget_show (pins_pads_pattern_table);
00830 gtk_container_add (GTK_CONTAINER (pins_pads_pattern_alignment), pins_pads_pattern_table);
00831
00832 total_pins_and_pads_label = gtk_label_new (_("Total pins and pads "));
00833 gtk_widget_set_name (total_pins_and_pads_label, "total_pins_and_pads_label");
00834 gtk_widget_show (total_pins_and_pads_label);
00835 gtk_table_attach (GTK_TABLE (pins_pads_pattern_table), total_pins_and_pads_label, 0, 1, 0, 1,
00836 (GtkAttachOptions) (GTK_FILL),
00837 (GtkAttachOptions) (0), 0, 0);
00838 gtk_misc_set_alignment (GTK_MISC (total_pins_and_pads_label), 0, 0.5);
00839
00840 pitch_x_label = gtk_label_new (_("Pitch X-direction"));
00841 gtk_widget_set_name (pitch_x_label, "pitch_x_label");
00842 gtk_widget_show (pitch_x_label);
00843 gtk_table_attach (GTK_TABLE (pins_pads_pattern_table), pitch_x_label, 0, 1, 3, 4,
00844 (GtkAttachOptions) (GTK_FILL),
00845 (GtkAttachOptions) (0), 0, 0);
00846 gtk_misc_set_alignment (GTK_MISC (pitch_x_label), 0, 0.5);
00847
00848 pitch_y_label = gtk_label_new (_("Pitch Y-direction"));
00849 gtk_widget_set_name (pitch_y_label, "pitch_y_label");
00850 gtk_widget_show (pitch_y_label);
00851 gtk_table_attach (GTK_TABLE (pins_pads_pattern_table), pitch_y_label, 0, 1, 4, 5,
00852 (GtkAttachOptions) (GTK_FILL),
00853 (GtkAttachOptions) (0), 0, 0);
00854 gtk_misc_set_alignment (GTK_MISC (pitch_y_label), 0, 0.5);
00855
00856 number_total_pins_entry = gtk_entry_new ();
00857 gtk_widget_set_name (number_total_pins_entry, "number_total_pins_entry");
00858 gtk_widget_show (number_total_pins_entry);
00859 gtk_table_attach (GTK_TABLE (pins_pads_pattern_table), number_total_pins_entry, 1, 2, 0, 1,
00860 (GtkAttachOptions) (GTK_EXPAND | GTK_FILL),
00861 (GtkAttachOptions) (0), 0, 0);
00862 gtk_tooltips_set_tip (tooltips, number_total_pins_entry, _("Total number of pins and pads"), NULL);
00863 gtk_entry_set_invisible_char (GTK_ENTRY (number_total_pins_entry), 8226);
00864
00865 pitch_x_entry = gtk_entry_new ();
00866 gtk_widget_set_name (pitch_x_entry, "pitch_x_entry");
00867 gtk_widget_show (pitch_x_entry);
00868 gtk_table_attach (GTK_TABLE (pins_pads_pattern_table), pitch_x_entry, 1, 2, 3, 4,
00869 (GtkAttachOptions) (GTK_EXPAND | GTK_FILL),
00870 (GtkAttachOptions) (0), 0, 0);
00871 gtk_tooltips_set_tip (tooltips, pitch_x_entry, _("Horizontal pin/pad pitch"), NULL);
00872 gtk_entry_set_invisible_char (GTK_ENTRY (pitch_x_entry), 8226);
00873
00874 pitch_y_entry = gtk_entry_new ();
00875 gtk_widget_set_name (pitch_y_entry, "pitch_y_entry");
00876 gtk_widget_show (pitch_y_entry);
00877 gtk_table_attach (GTK_TABLE (pins_pads_pattern_table), pitch_y_entry, 1, 2, 4, 5,
00878 (GtkAttachOptions) (GTK_EXPAND | GTK_FILL),
00879 (GtkAttachOptions) (0), 0, 0);
00880 gtk_tooltips_set_tip (tooltips, pitch_y_entry, _("Vertical pin/pad pitch"), NULL);
00881 gtk_entry_set_invisible_char (GTK_ENTRY (pitch_y_entry), 8226);
00882
00883 label1 = gtk_label_new (_("Count X-direction"));
00884 gtk_widget_set_name (label1, "label1");
00885 gtk_widget_show (label1);
00886 gtk_table_attach (GTK_TABLE (pins_pads_pattern_table), label1, 0, 1, 5, 6,
00887 (GtkAttachOptions) (GTK_FILL),
00888 (GtkAttachOptions) (0), 0, 0);
00889 gtk_misc_set_alignment (GTK_MISC (label1), 0, 0.5);
00890
00891 label2 = gtk_label_new (_("Count Y-direction"));
00892 gtk_widget_set_name (label2, "label2");
00893 gtk_widget_show (label2);
00894 gtk_table_attach (GTK_TABLE (pins_pads_pattern_table), label2, 0, 1, 6, 7,
00895 (GtkAttachOptions) (GTK_FILL),
00896 (GtkAttachOptions) (0), 0, 0);
00897 gtk_misc_set_alignment (GTK_MISC (label2), 0, 0.5);
00898
00899 count_x_entry = gtk_entry_new ();
00900 gtk_widget_set_name (count_x_entry, "count_x_entry");
00901 gtk_widget_show (count_x_entry);
00902 gtk_table_attach (GTK_TABLE (pins_pads_pattern_table), count_x_entry, 1, 2, 5, 6,
00903 (GtkAttachOptions) (GTK_EXPAND | GTK_FILL),
00904 (GtkAttachOptions) (0), 0, 0);
00905 gtk_tooltips_set_tip (tooltips, count_x_entry, _("Number of horizontal pin/pads"), NULL);
00906 gtk_entry_set_invisible_char (GTK_ENTRY (count_x_entry), 8226);
00907
00908 count_y_entry = gtk_entry_new ();
00909 gtk_widget_set_name (count_y_entry, "count_y_entry");
00910 gtk_widget_show (count_y_entry);
00911 gtk_table_attach (GTK_TABLE (pins_pads_pattern_table), count_y_entry, 1, 2, 6, 7,
00912 (GtkAttachOptions) (GTK_EXPAND | GTK_FILL),
00913 (GtkAttachOptions) (0), 0, 0);
00914 gtk_tooltips_set_tip (tooltips, count_y_entry, _("Number of vertical pin/pads"), NULL);
00915 gtk_entry_set_invisible_char (GTK_ENTRY (count_y_entry), 8226);
00916
00917 number_1_position_label = gtk_label_new (_("Pin/pad #1 position "));
00918 gtk_widget_set_name (number_1_position_label, "number_1_position_label");
00919 gtk_widget_show (number_1_position_label);
00920 gtk_table_attach (GTK_TABLE (pins_pads_pattern_table), number_1_position_label, 0, 1, 7, 8,
00921 (GtkAttachOptions) (GTK_FILL),
00922 (GtkAttachOptions) (0), 0, 0);
00923 gtk_misc_set_alignment (GTK_MISC (number_1_position_label), 0, 0.5);
00924
00925 number_1_position_entry = gtk_combo_box_entry_new_text ();
00926 gtk_widget_set_name (number_1_position_entry, "number_1_position_entry");
00927 gtk_widget_show (number_1_position_entry);
00928 gtk_table_attach (GTK_TABLE (pins_pads_pattern_table), number_1_position_entry, 1, 2, 7, 8,
00929 (GtkAttachOptions) (GTK_FILL),
00930 (GtkAttachOptions) (GTK_FILL), 0, 0);
00931 gtk_combo_box_append_text (GTK_COMBO_BOX (number_1_position_entry), "");
00932 gtk_combo_box_append_text (GTK_COMBO_BOX (number_1_position_entry), _("Upper left"));
00933 gtk_combo_box_append_text (GTK_COMBO_BOX (number_1_position_entry), _("Middle left"));
00934 gtk_combo_box_append_text (GTK_COMBO_BOX (number_1_position_entry), _("Lower left"));
00935 gtk_combo_box_append_text (GTK_COMBO_BOX (number_1_position_entry), _("Upper middle"));
00936 gtk_combo_box_append_text (GTK_COMBO_BOX (number_1_position_entry), _("Middle middle"));
00937 gtk_combo_box_append_text (GTK_COMBO_BOX (number_1_position_entry), _("Lower middle"));
00938 gtk_combo_box_append_text (GTK_COMBO_BOX (number_1_position_entry), _("Upper right"));
00939 gtk_combo_box_append_text (GTK_COMBO_BOX (number_1_position_entry), _("Middle right"));
00940 gtk_combo_box_append_text (GTK_COMBO_BOX (number_1_position_entry), _("Lower right"));
00941 gtk_combo_box_append_text (GTK_COMBO_BOX (number_1_position_entry), _(" "));
00942
00943 number_of_columns_label = gtk_label_new (_("Columns"));
00944 gtk_widget_set_name (number_of_columns_label, "number_of_columns_label");
00945 gtk_widget_show (number_of_columns_label);
00946 gtk_table_attach (GTK_TABLE (pins_pads_pattern_table), number_of_columns_label, 0, 1, 1, 2,
00947 (GtkAttachOptions) (GTK_FILL),
00948 (GtkAttachOptions) (0), 0, 0);
00949 gtk_misc_set_alignment (GTK_MISC (number_of_columns_label), 0, 0.5);
00950
00951 number_of_columns_entry = gtk_entry_new ();
00952 gtk_widget_set_name (number_of_columns_entry, "number_of_columns_entry");
00953 gtk_widget_show (number_of_columns_entry);
00954 gtk_table_attach (GTK_TABLE (pins_pads_pattern_table), number_of_columns_entry, 1, 2, 1, 2,
00955 (GtkAttachOptions) (GTK_EXPAND | GTK_FILL),
00956 (GtkAttachOptions) (0), 0, 0);
00957 gtk_tooltips_set_tip (tooltips, number_of_columns_entry, _("Number of columns"), NULL);
00958 gtk_entry_set_invisible_char (GTK_ENTRY (number_of_columns_entry), 8226);
00959
00960 number_of_rows_label = gtk_label_new (_("Rows"));
00961 gtk_widget_set_name (number_of_rows_label, "number_of_rows_label");
00962 gtk_widget_show (number_of_rows_label);
00963 gtk_table_attach (GTK_TABLE (pins_pads_pattern_table), number_of_rows_label, 0, 1, 2, 3,
00964 (GtkAttachOptions) (GTK_FILL),
00965 (GtkAttachOptions) (0), 0, 0);
00966 gtk_misc_set_alignment (GTK_MISC (number_of_rows_label), 0, 0.5);
00967
00968 number_of_rows_entry = gtk_entry_new ();
00969 gtk_widget_set_name (number_of_rows_entry, "number_of_rows_entry");
00970 gtk_widget_show (number_of_rows_entry);
00971 gtk_table_attach (GTK_TABLE (pins_pads_pattern_table), number_of_rows_entry, 1, 2, 2, 3,
00972 (GtkAttachOptions) (GTK_EXPAND | GTK_FILL),
00973 (GtkAttachOptions) (0), 0, 0);
00974 gtk_tooltips_set_tip (tooltips, number_of_rows_entry, _("Number of rows"), NULL);
00975 gtk_entry_set_invisible_char (GTK_ENTRY (number_of_rows_entry), 8226);
00976
00977 pin_pad_exceptions_entry = gtk_entry_new ();
00978 gtk_widget_set_name (pin_pad_exceptions_entry, "pin_pad_exceptions_entry");
00979 gtk_widget_show (pin_pad_exceptions_entry);
00980 gtk_table_attach (GTK_TABLE (pins_pads_pattern_table), pin_pad_exceptions_entry, 1, 2, 8, 9,
00981 (GtkAttachOptions) (GTK_EXPAND | GTK_FILL),
00982 (GtkAttachOptions) (0), 0, 0);
00983 gtk_tooltips_set_tip (tooltips, pin_pad_exceptions_entry, _("Enter non-existing pins or pads here"), NULL);
00984 gtk_entry_set_invisible_char (GTK_ENTRY (pin_pad_exceptions_entry), 8226);
00985
00986 pin_pad_exceptions_button = gtk_button_new_with_mnemonic (_("Pin/Pad exceptions"));
00987 gtk_widget_set_name (pin_pad_exceptions_button, "pin_pad_exceptions_button");
00988 gtk_widget_show (pin_pad_exceptions_button);
00989 gtk_table_attach (GTK_TABLE (pins_pads_pattern_table), pin_pad_exceptions_button, 0, 1, 8, 9,
00990 (GtkAttachOptions) (GTK_FILL),
00991 (GtkAttachOptions) (0), 0, 0);
00992 gtk_tooltips_set_tip (tooltips, pin_pad_exceptions_button, _("Click to select pin/pad exceptions"), NULL);
00993
00994 pins_pads_pattern_label = gtk_label_new (_("<b>Pattern</b>"));
00995 gtk_widget_set_name (pins_pads_pattern_label, "pins_pads_pattern_label");
00996 gtk_widget_show (pins_pads_pattern_label);
00997 gtk_frame_set_label_widget (GTK_FRAME (pins_pads_pattern_frame), pins_pads_pattern_label);
00998 gtk_label_set_use_markup (GTK_LABEL (pins_pads_pattern_label), TRUE);
00999
01000 pins_pads_tab_tab_label = gtk_label_new (_("Pins/Pads"));
01001 gtk_widget_set_name (pins_pads_tab_tab_label, "pins_pads_tab_tab_label");
01002 gtk_widget_show (pins_pads_tab_tab_label);
01003 gtk_notebook_set_tab_label (GTK_NOTEBOOK (notebook), gtk_notebook_get_nth_page (GTK_NOTEBOOK (notebook), 1), pins_pads_tab_tab_label);
01004
01005 silkscreen_table = gtk_table_new (2, 1, FALSE);
01006 gtk_widget_set_name (silkscreen_table, "silkscreen_table");
01007 gtk_widget_show (silkscreen_table);
01008 gtk_container_add (GTK_CONTAINER (notebook), silkscreen_table);
01009 gtk_notebook_set_tab_label_packing (GTK_NOTEBOOK (notebook), silkscreen_table,
01010 FALSE, FALSE, GTK_PACK_START);
01011 gtk_container_set_border_width (GTK_CONTAINER (silkscreen_table), 5);
01012 gtk_table_set_row_spacings (GTK_TABLE (silkscreen_table), 10);
01013
01014 courtyard_frame = gtk_frame_new (NULL);
01015 gtk_widget_set_name (courtyard_frame, "courtyard_frame");
01016 gtk_widget_show (courtyard_frame);
01017 gtk_table_attach (GTK_TABLE (silkscreen_table), courtyard_frame, 0, 1, 1, 2,
01018 (GtkAttachOptions) (GTK_FILL),
01019 (GtkAttachOptions) (0), 0, 0);
01020 gtk_frame_set_shadow_type (GTK_FRAME (courtyard_frame), GTK_SHADOW_NONE);
01021
01022 courtyard_alignment = gtk_alignment_new (0.5, 0.5, 1, 1);
01023 gtk_widget_set_name (courtyard_alignment, "courtyard_alignment");
01024 gtk_widget_show (courtyard_alignment);
01025 gtk_container_add (GTK_CONTAINER (courtyard_frame), courtyard_alignment);
01026 gtk_alignment_set_padding (GTK_ALIGNMENT (courtyard_alignment), 0, 0, 12, 0);
01027
01028 courtyard_table = gtk_table_new (5, 2, FALSE);
01029 gtk_widget_set_name (courtyard_table, "courtyard_table");
01030 gtk_widget_show (courtyard_table);
01031 gtk_container_add (GTK_CONTAINER (courtyard_alignment), courtyard_table);
01032
01033 courtyard_checkbutton = gtk_check_button_new_with_mnemonic (_("Print courtyard "));
01034 gtk_widget_set_name (courtyard_checkbutton, "courtyard_checkbutton");
01035 gtk_widget_show (courtyard_checkbutton);
01036 gtk_table_attach (GTK_TABLE (courtyard_table), courtyard_checkbutton, 0, 1, 0, 1,
01037 (GtkAttachOptions) (GTK_FILL),
01038 (GtkAttachOptions) (0), 0, 0);
01039 gtk_tooltips_set_tip (tooltips, courtyard_checkbutton, _("Check to draw a courtyard (keepout)"), NULL);
01040
01041 courtyard_width_label = gtk_label_new (_("Width (Y)"));
01042 gtk_widget_set_name (courtyard_width_label, "courtyard_width_label");
01043 gtk_widget_show (courtyard_width_label);
01044 gtk_table_attach (GTK_TABLE (courtyard_table), courtyard_width_label, 0, 1, 2, 3,
01045 (GtkAttachOptions) (GTK_FILL),
01046 (GtkAttachOptions) (0), 0, 0);
01047 gtk_misc_set_alignment (GTK_MISC (courtyard_width_label), 0, 0.5);
01048
01049 courtyard_length_label = gtk_label_new (_("Length or diameter (X) "));
01050 gtk_widget_set_name (courtyard_length_label, "courtyard_length_label");
01051 gtk_widget_show (courtyard_length_label);
01052 gtk_table_attach (GTK_TABLE (courtyard_table), courtyard_length_label, 0, 1, 1, 2,
01053 (GtkAttachOptions) (GTK_FILL),
01054 (GtkAttachOptions) (0), 0, 0);
01055 gtk_misc_set_alignment (GTK_MISC (courtyard_length_label), 0, 0.5);
01056
01057 courtyard_length_entry = gtk_entry_new ();
01058 gtk_widget_set_name (courtyard_length_entry, "courtyard_length_entry");
01059 gtk_widget_show (courtyard_length_entry);
01060 gtk_table_attach (GTK_TABLE (courtyard_table), courtyard_length_entry, 1, 2, 1, 2,
01061 (GtkAttachOptions) (GTK_EXPAND | GTK_FILL),
01062 (GtkAttachOptions) (0), 0, 0);
01063 gtk_tooltips_set_tip (tooltips, courtyard_length_entry, _("Length of courtyard"), NULL);
01064 gtk_entry_set_invisible_char (GTK_ENTRY (courtyard_length_entry), 8226);
01065
01066 courtyard_width_entry = gtk_entry_new ();
01067 gtk_widget_set_name (courtyard_width_entry, "courtyard_width_entry");
01068 gtk_widget_show (courtyard_width_entry);
01069 gtk_table_attach (GTK_TABLE (courtyard_table), courtyard_width_entry, 1, 2, 2, 3,
01070 (GtkAttachOptions) (GTK_EXPAND | GTK_FILL),
01071 (GtkAttachOptions) (0), 0, 0);
01072 gtk_tooltips_set_tip (tooltips, courtyard_width_entry, _("Width of courtyard"), NULL);
01073 gtk_entry_set_invisible_char (GTK_ENTRY (courtyard_width_entry), 8226);
01074
01075 courtyard_line_width_label = gtk_label_new (_("Line width"));
01076 gtk_widget_set_name (courtyard_line_width_label, "courtyard_line_width_label");
01077 gtk_widget_show (courtyard_line_width_label);
01078 gtk_table_attach (GTK_TABLE (courtyard_table), courtyard_line_width_label, 0, 1, 3, 4,
01079 (GtkAttachOptions) (GTK_FILL),
01080 (GtkAttachOptions) (0), 0, 0);
01081 gtk_misc_set_alignment (GTK_MISC (courtyard_line_width_label), 0, 0.5);
01082
01083 courtyard_line_width_entry = gtk_entry_new ();
01084 gtk_widget_set_name (courtyard_line_width_entry, "courtyard_line_width_entry");
01085 gtk_widget_show (courtyard_line_width_entry);
01086 gtk_table_attach (GTK_TABLE (courtyard_table), courtyard_line_width_entry, 1, 2, 3, 4,
01087 (GtkAttachOptions) (GTK_EXPAND | GTK_FILL),
01088 (GtkAttachOptions) (0), 0, 0);
01089 gtk_tooltips_set_tip (tooltips, courtyard_line_width_entry, _("Line width for courtyard"), NULL);
01090 gtk_entry_set_invisible_char (GTK_ENTRY (courtyard_line_width_entry), 8226);
01091
01092 courtyard_clearance_with_package_label = gtk_label_new (_("Clearance with package "));
01093 gtk_widget_set_name (courtyard_clearance_with_package_label, "courtyard_clearance_with_package_label");
01094 gtk_widget_show (courtyard_clearance_with_package_label);
01095 gtk_table_attach (GTK_TABLE (courtyard_table), courtyard_clearance_with_package_label, 0, 1, 4, 5,
01096 (GtkAttachOptions) (GTK_FILL),
01097 (GtkAttachOptions) (0), 0, 0);
01098 gtk_misc_set_alignment (GTK_MISC (courtyard_clearance_with_package_label), 0, 0.5);
01099
01100 courtyard_clearance_with_package_entry = gtk_entry_new ();
01101 gtk_widget_set_name (courtyard_clearance_with_package_entry, "courtyard_clearance_with_package_entry");
01102 gtk_widget_show (courtyard_clearance_with_package_entry);
01103 gtk_table_attach (GTK_TABLE (courtyard_table), courtyard_clearance_with_package_entry, 1, 2, 4, 5,
01104 (GtkAttachOptions) (GTK_EXPAND | GTK_FILL),
01105 (GtkAttachOptions) (0), 0, 0);
01106 gtk_tooltips_set_tip (tooltips, courtyard_clearance_with_package_entry, _("Clearance distance with package"), NULL);
01107 gtk_entry_set_invisible_char (GTK_ENTRY (courtyard_clearance_with_package_entry), 8226);
01108
01109 courtyard_label = gtk_label_new (_("<b>Courtyard</b>"));
01110 gtk_widget_set_name (courtyard_label, "courtyard_label");
01111 gtk_widget_show (courtyard_label);
01112 gtk_frame_set_label_widget (GTK_FRAME (courtyard_frame), courtyard_label);
01113 gtk_label_set_use_markup (GTK_LABEL (courtyard_label), TRUE);
01114
01115 package_frame = gtk_frame_new (NULL);
01116 gtk_widget_set_name (package_frame, "package_frame");
01117 gtk_widget_show (package_frame);
01118 gtk_table_attach (GTK_TABLE (silkscreen_table), package_frame, 0, 1, 0, 1,
01119 (GtkAttachOptions) (GTK_FILL),
01120 (GtkAttachOptions) (0), 0, 0);
01121 gtk_frame_set_shadow_type (GTK_FRAME (package_frame), GTK_SHADOW_NONE);
01122
01123 package_alignment = gtk_alignment_new (0.5, 0.5, 1, 1);
01124 gtk_widget_set_name (package_alignment, "package_alignment");
01125 gtk_widget_show (package_alignment);
01126 gtk_container_add (GTK_CONTAINER (package_frame), package_alignment);
01127 gtk_alignment_set_padding (GTK_ALIGNMENT (package_alignment), 0, 0, 12, 0);
01128
01129 package_table = gtk_table_new (2, 2, FALSE);
01130 gtk_widget_set_name (package_table, "package_table");
01131 gtk_widget_show (package_table);
01132 gtk_container_add (GTK_CONTAINER (package_alignment), package_table);
01133
01134 silkscreen_package_outline_checkbutton = gtk_check_button_new_with_mnemonic (_("Print package outline "));
01135 gtk_widget_set_name (silkscreen_package_outline_checkbutton, "silkscreen_package_outline_checkbutton");
01136 gtk_widget_show (silkscreen_package_outline_checkbutton);
01137 gtk_table_attach (GTK_TABLE (package_table), silkscreen_package_outline_checkbutton, 0, 1, 0, 1,
01138 (GtkAttachOptions) (GTK_FILL),
01139 (GtkAttachOptions) (0), 0, 0);
01140 gtk_tooltips_set_tip (tooltips, silkscreen_package_outline_checkbutton, _("Check to draw package outline"), NULL);
01141
01142 silkscreen_indicate_1_checkbutton = gtk_check_button_new_with_mnemonic (_("Pin/Pad #1 indicator "));
01143 gtk_widget_set_name (silkscreen_indicate_1_checkbutton, "silkscreen_indicate_1_checkbutton");
01144 gtk_widget_show (silkscreen_indicate_1_checkbutton);
01145 gtk_table_attach (GTK_TABLE (package_table), silkscreen_indicate_1_checkbutton, 1, 2, 0, 1,
01146 (GtkAttachOptions) (GTK_FILL),
01147 (GtkAttachOptions) (0), 0, 0);
01148 gtk_tooltips_set_tip (tooltips, silkscreen_indicate_1_checkbutton, _("Check to draw indicator for pin/pad #1"), NULL);
01149
01150 silkscreen_line_width_label = gtk_label_new (_("Line width"));
01151 gtk_widget_set_name (silkscreen_line_width_label, "silkscreen_line_width_label");
01152 gtk_widget_show (silkscreen_line_width_label);
01153 gtk_table_attach (GTK_TABLE (package_table), silkscreen_line_width_label, 0, 1, 1, 2,
01154 (GtkAttachOptions) (GTK_FILL),
01155 (GtkAttachOptions) (0), 0, 0);
01156 gtk_misc_set_alignment (GTK_MISC (silkscreen_line_width_label), 0, 0.5);
01157
01158 silkscreen_line_width_entry = gtk_entry_new ();
01159 gtk_widget_set_name (silkscreen_line_width_entry, "silkscreen_line_width_entry");
01160 gtk_widget_show (silkscreen_line_width_entry);
01161 gtk_table_attach (GTK_TABLE (package_table), silkscreen_line_width_entry, 1, 2, 1, 2,
01162 (GtkAttachOptions) (GTK_EXPAND | GTK_FILL),
01163 (GtkAttachOptions) (0), 0, 0);
01164 gtk_tooltips_set_tip (tooltips, silkscreen_line_width_entry, _("Line width for silkscreen"), NULL);
01165 gtk_entry_set_invisible_char (GTK_ENTRY (silkscreen_line_width_entry), 8226);
01166
01167 package_label = gtk_label_new (_("<b>Package</b>"));
01168 gtk_widget_set_name (package_label, "package_label");
01169 gtk_widget_show (package_label);
01170 gtk_frame_set_label_widget (GTK_FRAME (package_frame), package_label);
01171 gtk_label_set_use_markup (GTK_LABEL (package_label), TRUE);
01172
01173 silkscreen_tab_label = gtk_label_new (_("Silkscreen"));
01174 gtk_widget_set_name (silkscreen_tab_label, "silkscreen_tab_label");
01175 gtk_widget_show (silkscreen_tab_label);
01176 gtk_notebook_set_tab_label (GTK_NOTEBOOK (notebook), gtk_notebook_get_nth_page (GTK_NOTEBOOK (notebook), 2), silkscreen_tab_label);
01177
01178 thermal_table = gtk_table_new (2, 1, FALSE);
01179 gtk_widget_set_name (thermal_table, "thermal_table");
01180 gtk_widget_show (thermal_table);
01181 gtk_container_add (GTK_CONTAINER (notebook), thermal_table);
01182 gtk_notebook_set_tab_label_packing (GTK_NOTEBOOK (notebook), thermal_table,
01183 FALSE, FALSE, GTK_PACK_START);
01184 gtk_container_set_border_width (GTK_CONTAINER (thermal_table), 5);
01185 gtk_table_set_row_spacings (GTK_TABLE (thermal_table), 10);
01186
01187 thermal_pad_frame = gtk_frame_new (NULL);
01188 gtk_widget_set_name (thermal_pad_frame, "thermal_pad_frame");
01189 gtk_widget_show (thermal_pad_frame);
01190 gtk_table_attach (GTK_TABLE (thermal_table), thermal_pad_frame, 0, 1, 0, 1,
01191 (GtkAttachOptions) (GTK_FILL),
01192 (GtkAttachOptions) (0), 0, 0);
01193 gtk_frame_set_shadow_type (GTK_FRAME (thermal_pad_frame), GTK_SHADOW_NONE);
01194
01195 thermal_pad_alignment = gtk_alignment_new (0.5, 0.5, 1, 1);
01196 gtk_widget_set_name (thermal_pad_alignment, "thermal_pad_alignment");
01197 gtk_widget_show (thermal_pad_alignment);
01198 gtk_container_add (GTK_CONTAINER (thermal_pad_frame), thermal_pad_alignment);
01199 gtk_alignment_set_padding (GTK_ALIGNMENT (thermal_pad_alignment), 0, 0, 12, 0);
01200
01201 thermal_pad_table = gtk_table_new (5, 2, FALSE);
01202 gtk_widget_set_name (thermal_pad_table, "thermal_pad_table");
01203 gtk_widget_show (thermal_pad_table);
01204 gtk_container_add (GTK_CONTAINER (thermal_pad_alignment), thermal_pad_table);
01205
01206 thermal_checkbutton = gtk_check_button_new_with_mnemonic (_("Thermal pad"));
01207 gtk_widget_set_name (thermal_checkbutton, "thermal_checkbutton");
01208 gtk_widget_show (thermal_checkbutton);
01209 gtk_table_attach (GTK_TABLE (thermal_pad_table), thermal_checkbutton, 0, 1, 0, 1,
01210 (GtkAttachOptions) (GTK_FILL),
01211 (GtkAttachOptions) (0), 0, 0);
01212 gtk_tooltips_set_tip (tooltips, thermal_checkbutton, _("Check for a thermal pad"), NULL);
01213
01214 thermal_pad_length_label = gtk_label_new (_("Pad length (X)"));
01215 gtk_widget_set_name (thermal_pad_length_label, "thermal_pad_length_label");
01216 gtk_widget_show (thermal_pad_length_label);
01217 gtk_table_attach (GTK_TABLE (thermal_pad_table), thermal_pad_length_label, 0, 1, 1, 2,
01218 (GtkAttachOptions) (GTK_FILL),
01219 (GtkAttachOptions) (0), 0, 0);
01220 gtk_misc_set_alignment (GTK_MISC (thermal_pad_length_label), 0, 0.5);
01221
01222 thermal_pad_width_label = gtk_label_new (_("Pad width (Y)"));
01223 gtk_widget_set_name (thermal_pad_width_label, "thermal_pad_width_label");
01224 gtk_widget_show (thermal_pad_width_label);
01225 gtk_table_attach (GTK_TABLE (thermal_pad_table), thermal_pad_width_label, 0, 1, 2, 3,
01226 (GtkAttachOptions) (GTK_FILL),
01227 (GtkAttachOptions) (0), 0, 0);
01228 gtk_misc_set_alignment (GTK_MISC (thermal_pad_width_label), 0, 0.5);
01229
01230 thermal_width_entry = gtk_entry_new ();
01231 gtk_widget_set_name (thermal_width_entry, "thermal_width_entry");
01232 gtk_widget_show (thermal_width_entry);
01233 gtk_table_attach (GTK_TABLE (thermal_pad_table), thermal_width_entry, 1, 2, 2, 3,
01234 (GtkAttachOptions) (GTK_EXPAND | GTK_FILL),
01235 (GtkAttachOptions) (0), 0, 0);
01236 gtk_tooltips_set_tip (tooltips, thermal_width_entry, _("Width of thermal pad"), NULL);
01237 gtk_entry_set_invisible_char (GTK_ENTRY (thermal_width_entry), 8226);
01238
01239 thermal_length_entry = gtk_entry_new ();
01240 gtk_widget_set_name (thermal_length_entry, "thermal_length_entry");
01241 gtk_widget_show (thermal_length_entry);
01242 gtk_table_attach (GTK_TABLE (thermal_pad_table), thermal_length_entry, 1, 2, 1, 2,
01243 (GtkAttachOptions) (GTK_EXPAND | GTK_FILL),
01244 (GtkAttachOptions) (0), 0, 0);
01245 gtk_tooltips_set_tip (tooltips, thermal_length_entry, _("Length of thermal pad"), NULL);
01246 gtk_entry_set_invisible_char (GTK_ENTRY (thermal_length_entry), 8226);
01247
01248 thermal_nopaste_checkbutton = gtk_check_button_new_with_mnemonic (_("No paste on pad"));
01249 gtk_widget_set_name (thermal_nopaste_checkbutton, "thermal_nopaste_checkbutton");
01250 gtk_widget_show (thermal_nopaste_checkbutton);
01251 gtk_table_attach (GTK_TABLE (thermal_pad_table), thermal_nopaste_checkbutton, 1, 2, 0, 1,
01252 (GtkAttachOptions) (GTK_FILL),
01253 (GtkAttachOptions) (0), 0, 0);
01254 gtk_tooltips_set_tip (tooltips, thermal_nopaste_checkbutton, _("Check for no paste on pad"), NULL);
01255
01256 thermal_pad_solder_mask_clearance_label = gtk_label_new (_("Pad solder mask clearance "));
01257 gtk_widget_set_name (thermal_pad_solder_mask_clearance_label, "thermal_pad_solder_mask_clearance_label");
01258 gtk_widget_show (thermal_pad_solder_mask_clearance_label);
01259 gtk_table_attach (GTK_TABLE (thermal_pad_table), thermal_pad_solder_mask_clearance_label, 0, 1, 4, 5,
01260 (GtkAttachOptions) (GTK_FILL),
01261 (GtkAttachOptions) (0), 0, 0);
01262 gtk_misc_set_alignment (GTK_MISC (thermal_pad_solder_mask_clearance_label), 0, 0.5);
01263
01264 thermal_pad_clearance_label = gtk_label_new (_("Pad Clearance "));
01265 gtk_widget_set_name (thermal_pad_clearance_label, "thermal_pad_clearance_label");
01266 gtk_widget_show (thermal_pad_clearance_label);
01267 gtk_table_attach (GTK_TABLE (thermal_pad_table), thermal_pad_clearance_label, 0, 1, 3, 4,
01268 (GtkAttachOptions) (GTK_FILL),
01269 (GtkAttachOptions) (0), 0, 0);
01270 gtk_misc_set_alignment (GTK_MISC (thermal_pad_clearance_label), 0, 0.5);
01271
01272 thermal_solder_mask_clearance_entry = gtk_entry_new ();
01273 gtk_widget_set_name (thermal_solder_mask_clearance_entry, "thermal_solder_mask_clearance_entry");
01274 gtk_widget_show (thermal_solder_mask_clearance_entry);
01275 gtk_table_attach (GTK_TABLE (thermal_pad_table), thermal_solder_mask_clearance_entry, 1, 2, 4, 5,
01276 (GtkAttachOptions) (GTK_EXPAND | GTK_FILL),
01277 (GtkAttachOptions) (0), 0, 0);
01278 gtk_tooltips_set_tip (tooltips, thermal_solder_mask_clearance_entry, _("Clearance distance with solder mask"), NULL);
01279 gtk_entry_set_invisible_char (GTK_ENTRY (thermal_solder_mask_clearance_entry), 8226);
01280
01281 thermal_clearance_entry = gtk_entry_new ();
01282 gtk_widget_set_name (thermal_clearance_entry, "thermal_clearance_entry");
01283 gtk_widget_show (thermal_clearance_entry);
01284 gtk_table_attach (GTK_TABLE (thermal_pad_table), thermal_clearance_entry, 1, 2, 3, 4,
01285 (GtkAttachOptions) (GTK_EXPAND | GTK_FILL),
01286 (GtkAttachOptions) (0), 0, 0);
01287 gtk_tooltips_set_tip (tooltips, thermal_clearance_entry, _("Clearance distance with polygons"), NULL);
01288 gtk_entry_set_invisible_char (GTK_ENTRY (thermal_clearance_entry), 8226);
01289
01290 thermal_pad_label = gtk_label_new (_("<b>Thermal pad</b>"));
01291 gtk_widget_set_name (thermal_pad_label, "thermal_pad_label");
01292 gtk_widget_show (thermal_pad_label);
01293 gtk_frame_set_label_widget (GTK_FRAME (thermal_pad_frame), thermal_pad_label);
01294 gtk_label_set_use_markup (GTK_LABEL (thermal_pad_label), TRUE);
01295
01296 fiducials_frame = gtk_frame_new (NULL);
01297 gtk_widget_set_name (fiducials_frame, "fiducials_frame");
01298 gtk_widget_show (fiducials_frame);
01299 gtk_table_attach (GTK_TABLE (thermal_table), fiducials_frame, 0, 1, 1, 2,
01300 (GtkAttachOptions) (GTK_FILL),
01301 (GtkAttachOptions) (GTK_EXPAND | GTK_FILL), 0, 0);
01302 gtk_frame_set_shadow_type (GTK_FRAME (fiducials_frame), GTK_SHADOW_NONE);
01303
01304 fiducials_alignment = gtk_alignment_new (0.5, 0.5, 1, 1);
01305 gtk_widget_set_name (fiducials_alignment, "fiducials_alignment");
01306 gtk_widget_show (fiducials_alignment);
01307 gtk_container_add (GTK_CONTAINER (fiducials_frame), fiducials_alignment);
01308 gtk_alignment_set_padding (GTK_ALIGNMENT (fiducials_alignment), 0, 0, 12, 0);
01309
01310 fiducials_table = gtk_table_new (4, 2, FALSE);
01311 gtk_widget_set_name (fiducials_table, "fiducials_table");
01312 gtk_widget_show (fiducials_table);
01313 gtk_container_add (GTK_CONTAINER (fiducials_alignment), fiducials_table);
01314
01315 fiducial_pad_diameter_label = gtk_label_new (_("Fiducial pad diameter (D)"));
01316 gtk_widget_set_name (fiducial_pad_diameter_label, "fiducial_pad_diameter_label");
01317 gtk_widget_show (fiducial_pad_diameter_label);
01318 gtk_table_attach (GTK_TABLE (fiducials_table), fiducial_pad_diameter_label, 0, 1, 1, 2,
01319 (GtkAttachOptions) (GTK_FILL),
01320 (GtkAttachOptions) (0), 0, 0);
01321 gtk_misc_set_alignment (GTK_MISC (fiducial_pad_diameter_label), 0, 0.5);
01322
01323 fiducial_pad_diameter_entry = gtk_entry_new ();
01324 gtk_widget_set_name (fiducial_pad_diameter_entry, "fiducial_pad_diameter_entry");
01325 gtk_widget_show (fiducial_pad_diameter_entry);
01326 gtk_table_attach (GTK_TABLE (fiducials_table), fiducial_pad_diameter_entry, 1, 2, 1, 2,
01327 (GtkAttachOptions) (GTK_EXPAND | GTK_FILL),
01328 (GtkAttachOptions) (0), 0, 0);
01329 gtk_tooltips_set_tip (tooltips, fiducial_pad_diameter_entry, _("Diameter of fiducial pad"), NULL);
01330 gtk_entry_set_invisible_char (GTK_ENTRY (fiducial_pad_diameter_entry), 8226);
01331
01332 fiducial_checkbutton = gtk_check_button_new_with_mnemonic (_("Fiducials"));
01333 gtk_widget_set_name (fiducial_checkbutton, "fiducial_checkbutton");
01334 gtk_widget_show (fiducial_checkbutton);
01335 gtk_table_attach (GTK_TABLE (fiducials_table), fiducial_checkbutton, 0, 1, 0, 1,
01336 (GtkAttachOptions) (GTK_FILL),
01337 (GtkAttachOptions) (0), 0, 0);
01338
01339 fiducial_solder_mask_clearance_label = gtk_label_new (_("Fiducial solder mask clearance"));
01340 gtk_widget_set_name (fiducial_solder_mask_clearance_label, "fiducial_solder_mask_clearance_label");
01341 gtk_widget_show (fiducial_solder_mask_clearance_label);
01342 gtk_table_attach (GTK_TABLE (fiducials_table), fiducial_solder_mask_clearance_label, 0, 1, 3, 4,
01343 (GtkAttachOptions) (GTK_FILL),
01344 (GtkAttachOptions) (0), 0, 0);
01345 gtk_misc_set_alignment (GTK_MISC (fiducial_solder_mask_clearance_label), 0, 0.5);
01346
01347 fiducial_pad_solder_mask_clearance_entry = gtk_entry_new ();
01348 gtk_widget_set_name (fiducial_pad_solder_mask_clearance_entry, "fiducial_pad_solder_mask_clearance_entry");
01349 gtk_widget_show (fiducial_pad_solder_mask_clearance_entry);
01350 gtk_table_attach (GTK_TABLE (fiducials_table), fiducial_pad_solder_mask_clearance_entry, 1, 2, 3, 4,
01351 (GtkAttachOptions) (GTK_EXPAND | GTK_FILL),
01352 (GtkAttachOptions) (0), 0, 0);
01353 gtk_tooltips_set_tip (tooltips, fiducial_pad_solder_mask_clearance_entry, _("Clearance distance with solder mask"), NULL);
01354 gtk_entry_set_invisible_char (GTK_ENTRY (fiducial_pad_solder_mask_clearance_entry), 8226);
01355
01356 fiducial_pad_clearance_label = gtk_label_new (_("Fiducial Pad Clearance"));
01357 gtk_widget_set_name (fiducial_pad_clearance_label, "fiducial_pad_clearance_label");
01358 gtk_widget_show (fiducial_pad_clearance_label);
01359 gtk_table_attach (GTK_TABLE (fiducials_table), fiducial_pad_clearance_label, 0, 1, 2, 3,
01360 (GtkAttachOptions) (GTK_FILL),
01361 (GtkAttachOptions) (0), 0, 0);
01362 gtk_misc_set_alignment (GTK_MISC (fiducial_pad_clearance_label), 0, 0.5);
01363
01364 fiducial_pad_clearance_entry = gtk_entry_new ();
01365 gtk_widget_set_name (fiducial_pad_clearance_entry, "fiducial_pad_clearance_entry");
01366 gtk_widget_show (fiducial_pad_clearance_entry);
01367 gtk_table_attach (GTK_TABLE (fiducials_table), fiducial_pad_clearance_entry, 1, 2, 2, 3,
01368 (GtkAttachOptions) (GTK_EXPAND | GTK_FILL),
01369 (GtkAttachOptions) (0), 0, 0);
01370 gtk_tooltips_set_tip (tooltips, fiducial_pad_clearance_entry, _("Clearance distance with polygons"), NULL);
01371 gtk_entry_set_invisible_char (GTK_ENTRY (fiducial_pad_clearance_entry), 8226);
01372
01373 fiducials_label = gtk_label_new (_("<b>Fiducials</b>"));
01374 gtk_widget_set_name (fiducials_label, "fiducials_label");
01375 gtk_widget_show (fiducials_label);
01376 gtk_frame_set_label_widget (GTK_FRAME (fiducials_frame), fiducials_label);
01377 gtk_label_set_use_markup (GTK_LABEL (fiducials_label), TRUE);
01378
01379 thermal_pad_tab_label = gtk_label_new (_("Thermal pad"));
01380 gtk_widget_set_name (thermal_pad_tab_label, "thermal_pad_tab_label");
01381 gtk_widget_show (thermal_pad_tab_label);
01382 gtk_notebook_set_tab_label (GTK_NOTEBOOK (notebook), gtk_notebook_get_nth_page (GTK_NOTEBOOK (notebook), 3), thermal_pad_tab_label);
01383
01384 heel_and_toe_goals_vbox = gtk_vbox_new (FALSE, 10);
01385 gtk_widget_set_name (heel_and_toe_goals_vbox, "heel_and_toe_goals_vbox");
01386 gtk_widget_show (heel_and_toe_goals_vbox);
01387 gtk_container_add (GTK_CONTAINER (notebook), heel_and_toe_goals_vbox);
01388
01389 top_to_bottom_frame = gtk_frame_new (NULL);
01390 gtk_widget_set_name (top_to_bottom_frame, "top_to_bottom_frame");
01391 gtk_widget_show (top_to_bottom_frame);
01392 gtk_box_pack_start (GTK_BOX (heel_and_toe_goals_vbox), top_to_bottom_frame, FALSE, TRUE, 0);
01393 gtk_frame_set_shadow_type (GTK_FRAME (top_to_bottom_frame), GTK_SHADOW_NONE);
01394
01395 top_to_bottom_alignment = gtk_alignment_new (0.5, 0.5, 1, 1);
01396 gtk_widget_set_name (top_to_bottom_alignment, "top_to_bottom_alignment");
01397 gtk_widget_show (top_to_bottom_alignment);
01398 gtk_container_add (GTK_CONTAINER (top_to_bottom_frame), top_to_bottom_alignment);
01399 gtk_alignment_set_padding (GTK_ALIGNMENT (top_to_bottom_alignment), 0, 0, 12, 0);
01400
01401 top_to_bottom_table = gtk_table_new (3, 2, FALSE);
01402 gtk_widget_set_name (top_to_bottom_table, "top_to_bottom_table");
01403 gtk_widget_show (top_to_bottom_table);
01404 gtk_container_add (GTK_CONTAINER (top_to_bottom_alignment), top_to_bottom_table);
01405
01406 G1_radiobutton = gtk_radio_button_new_with_mnemonic (NULL, _("Inner-Inner (G1)"));
01407 gtk_widget_set_name (G1_radiobutton, "G1_radiobutton");
01408 gtk_widget_show (G1_radiobutton);
01409 gtk_table_attach (GTK_TABLE (top_to_bottom_table), G1_radiobutton, 0, 1, 0, 1,
01410 (GtkAttachOptions) (GTK_FILL),
01411 (GtkAttachOptions) (0), 0, 0);
01412 gtk_radio_button_set_group (GTK_RADIO_BUTTON (G1_radiobutton), G1_radiobutton_group);
01413 G1_radiobutton_group = gtk_radio_button_get_group (GTK_RADIO_BUTTON (G1_radiobutton));
01414
01415 C1_radiobutton = gtk_radio_button_new_with_mnemonic (NULL, _("Center-Center (C1)"));
01416 gtk_widget_set_name (C1_radiobutton, "C1_radiobutton");
01417 gtk_widget_show (C1_radiobutton);
01418 gtk_table_attach (GTK_TABLE (top_to_bottom_table), C1_radiobutton, 0, 1, 1, 2,
01419 (GtkAttachOptions) (GTK_FILL),
01420 (GtkAttachOptions) (0), 0, 0);
01421 gtk_radio_button_set_group (GTK_RADIO_BUTTON (C1_radiobutton), G1_radiobutton_group);
01422 G1_radiobutton_group = gtk_radio_button_get_group (GTK_RADIO_BUTTON (C1_radiobutton));
01423 gtk_toggle_button_set_active (GTK_TOGGLE_BUTTON (C1_radiobutton), TRUE);
01424
01425 Z1_radiobutton = gtk_radio_button_new_with_mnemonic (NULL, _("Outer-Outer (Z1)"));
01426 gtk_widget_set_name (Z1_radiobutton, "Z1_radiobutton");
01427 gtk_widget_show (Z1_radiobutton);
01428 gtk_table_attach (GTK_TABLE (top_to_bottom_table), Z1_radiobutton, 0, 1, 2, 3,
01429 (GtkAttachOptions) (GTK_FILL),
01430 (GtkAttachOptions) (0), 0, 0);
01431 gtk_radio_button_set_group (GTK_RADIO_BUTTON (Z1_radiobutton), G1_radiobutton_group);
01432 G1_radiobutton_group = gtk_radio_button_get_group (GTK_RADIO_BUTTON (Z1_radiobutton));
01433
01434 G1_entry = gtk_entry_new ();
01435 gtk_widget_set_name (G1_entry, "G1_entry");
01436 gtk_widget_show (G1_entry);
01437 gtk_table_attach (GTK_TABLE (top_to_bottom_table), G1_entry, 1, 2, 0, 1,
01438 (GtkAttachOptions) (GTK_EXPAND | GTK_FILL),
01439 (GtkAttachOptions) (0), 0, 0);
01440 gtk_tooltips_set_tip (tooltips, G1_entry, _("Top to bottom inner distance between pads"), NULL);
01441 gtk_entry_set_invisible_char (GTK_ENTRY (G1_entry), 8226);
01442
01443 C1_entry = gtk_entry_new ();
01444 gtk_widget_set_name (C1_entry, "C1_entry");
01445 gtk_widget_show (C1_entry);
01446 gtk_table_attach (GTK_TABLE (top_to_bottom_table), C1_entry, 1, 2, 1, 2,
01447 (GtkAttachOptions) (GTK_EXPAND | GTK_FILL),
01448 (GtkAttachOptions) (0), 0, 0);
01449 gtk_tooltips_set_tip (tooltips, C1_entry, _("Top to bottom center distance between pads"), NULL);
01450 gtk_entry_set_invisible_char (GTK_ENTRY (C1_entry), 8226);
01451
01452 Z1_entry = gtk_entry_new ();
01453 gtk_widget_set_name (Z1_entry, "Z1_entry");
01454 gtk_widget_show (Z1_entry);
01455 gtk_table_attach (GTK_TABLE (top_to_bottom_table), Z1_entry, 1, 2, 2, 3,
01456 (GtkAttachOptions) (GTK_EXPAND | GTK_FILL),
01457 (GtkAttachOptions) (0), 0, 0);
01458 gtk_tooltips_set_tip (tooltips, Z1_entry, _("Top to bottom outer distance between pads"), NULL);
01459 gtk_entry_set_invisible_char (GTK_ENTRY (Z1_entry), 8226);
01460
01461 top_to_bottom_label = gtk_label_new (_("<b>Top to Bottom</b>"));
01462 gtk_widget_set_name (top_to_bottom_label, "top_to_bottom_label");
01463 gtk_widget_show (top_to_bottom_label);
01464 gtk_frame_set_label_widget (GTK_FRAME (top_to_bottom_frame), top_to_bottom_label);
01465 gtk_label_set_use_markup (GTK_LABEL (top_to_bottom_label), TRUE);
01466
01467 left_to_right_frame = gtk_frame_new (NULL);
01468 gtk_widget_set_name (left_to_right_frame, "left_to_right_frame");
01469 gtk_widget_show (left_to_right_frame);
01470 gtk_box_pack_start (GTK_BOX (heel_and_toe_goals_vbox), left_to_right_frame, FALSE, TRUE, 0);
01471 gtk_frame_set_shadow_type (GTK_FRAME (left_to_right_frame), GTK_SHADOW_NONE);
01472
01473 left_to_right_alignment = gtk_alignment_new (0.5, 0.5, 1, 1);
01474 gtk_widget_set_name (left_to_right_alignment, "left_to_right_alignment");
01475 gtk_widget_show (left_to_right_alignment);
01476 gtk_container_add (GTK_CONTAINER (left_to_right_frame), left_to_right_alignment);
01477 gtk_alignment_set_padding (GTK_ALIGNMENT (left_to_right_alignment), 0, 0, 12, 0);
01478
01479 left_to_right_table = gtk_table_new (3, 2, FALSE);
01480 gtk_widget_set_name (left_to_right_table, "left_to_right_table");
01481 gtk_widget_show (left_to_right_table);
01482 gtk_container_add (GTK_CONTAINER (left_to_right_alignment), left_to_right_table);
01483
01484 G2_radiobutton = gtk_radio_button_new_with_mnemonic (NULL, _("Inner-Inner (G2)"));
01485 gtk_widget_set_name (G2_radiobutton, "G2_radiobutton");
01486 gtk_widget_show (G2_radiobutton);
01487 gtk_table_attach (GTK_TABLE (left_to_right_table), G2_radiobutton, 0, 1, 0, 1,
01488 (GtkAttachOptions) (GTK_FILL),
01489 (GtkAttachOptions) (0), 0, 0);
01490 gtk_radio_button_set_group (GTK_RADIO_BUTTON (G2_radiobutton), G2_radiobutton_group);
01491 G2_radiobutton_group = gtk_radio_button_get_group (GTK_RADIO_BUTTON (G2_radiobutton));
01492
01493 C2_radiobutton = gtk_radio_button_new_with_mnemonic (NULL, _("Center-Center (C2)"));
01494 gtk_widget_set_name (C2_radiobutton, "C2_radiobutton");
01495 gtk_widget_show (C2_radiobutton);
01496 gtk_table_attach (GTK_TABLE (left_to_right_table), C2_radiobutton, 0, 1, 1, 2,
01497 (GtkAttachOptions) (GTK_FILL),
01498 (GtkAttachOptions) (0), 0, 0);
01499 gtk_radio_button_set_group (GTK_RADIO_BUTTON (C2_radiobutton), G2_radiobutton_group);
01500 G2_radiobutton_group = gtk_radio_button_get_group (GTK_RADIO_BUTTON (C2_radiobutton));
01501 gtk_toggle_button_set_active (GTK_TOGGLE_BUTTON (C2_radiobutton), TRUE);
01502
01503 Z2_radiobutton = gtk_radio_button_new_with_mnemonic (NULL, _("Outer-Outer (Z2)"));
01504 gtk_widget_set_name (Z2_radiobutton, "Z2_radiobutton");
01505 gtk_widget_show (Z2_radiobutton);
01506 gtk_table_attach (GTK_TABLE (left_to_right_table), Z2_radiobutton, 0, 1, 2, 3,
01507 (GtkAttachOptions) (GTK_FILL),
01508 (GtkAttachOptions) (0), 0, 0);
01509 gtk_radio_button_set_group (GTK_RADIO_BUTTON (Z2_radiobutton), G2_radiobutton_group);
01510 G2_radiobutton_group = gtk_radio_button_get_group (GTK_RADIO_BUTTON (Z2_radiobutton));
01511
01512 G2_entry = gtk_entry_new ();
01513 gtk_widget_set_name (G2_entry, "G2_entry");
01514 gtk_widget_show (G2_entry);
01515 gtk_table_attach (GTK_TABLE (left_to_right_table), G2_entry, 1, 2, 0, 1,
01516 (GtkAttachOptions) (GTK_EXPAND | GTK_FILL),
01517 (GtkAttachOptions) (0), 0, 0);
01518 gtk_tooltips_set_tip (tooltips, G2_entry, _("Left to right inner distance between pads"), NULL);
01519 gtk_entry_set_invisible_char (GTK_ENTRY (G2_entry), 8226);
01520
01521 C2_entry = gtk_entry_new ();
01522 gtk_widget_set_name (C2_entry, "C2_entry");
01523 gtk_widget_show (C2_entry);
01524 gtk_table_attach (GTK_TABLE (left_to_right_table), C2_entry, 1, 2, 1, 2,
01525 (GtkAttachOptions) (GTK_EXPAND | GTK_FILL),
01526 (GtkAttachOptions) (0), 0, 0);
01527 gtk_tooltips_set_tip (tooltips, C2_entry, _("Left to right center distance between pads"), NULL);
01528 gtk_entry_set_invisible_char (GTK_ENTRY (C2_entry), 8226);
01529
01530 Z2_entry = gtk_entry_new ();
01531 gtk_widget_set_name (Z2_entry, "Z2_entry");
01532 gtk_widget_show (Z2_entry);
01533 gtk_table_attach (GTK_TABLE (left_to_right_table), Z2_entry, 1, 2, 2, 3,
01534 (GtkAttachOptions) (GTK_EXPAND | GTK_FILL),
01535 (GtkAttachOptions) (0), 0, 0);
01536 gtk_tooltips_set_tip (tooltips, Z2_entry, _("Left to right outer distance between pads"), NULL);
01537 gtk_entry_set_invisible_char (GTK_ENTRY (Z2_entry), 8226);
01538
01539 left_to_right_label = gtk_label_new (_("<b>Left to Right</b>"));
01540 gtk_widget_set_name (left_to_right_label, "left_to_right_label");
01541 gtk_widget_show (left_to_right_label);
01542 gtk_frame_set_label_widget (GTK_FRAME (left_to_right_frame), left_to_right_label);
01543 gtk_label_set_use_markup (GTK_LABEL (left_to_right_label), TRUE);
01544
01545 heel_and_toe_goals_tab_label = gtk_label_new (_("Heel & Toe goals"));
01546 gtk_widget_set_name (heel_and_toe_goals_tab_label, "heel_and_toe_goals_tab_label");
01547 gtk_widget_show (heel_and_toe_goals_tab_label);
01548 gtk_notebook_set_tab_label (GTK_NOTEBOOK (notebook), gtk_notebook_get_nth_page (GTK_NOTEBOOK (notebook), 4), heel_and_toe_goals_tab_label);
01549
01550 hbuttonbox0 = gtk_hbutton_box_new ();
01551 gtk_widget_set_name (hbuttonbox0, "hbuttonbox0");
01552 gtk_widget_show (hbuttonbox0);
01553 gtk_box_pack_start (GTK_BOX (vbox), hbuttonbox0, FALSE, FALSE, 0);
01554 gtk_container_set_border_width (GTK_CONTAINER (hbuttonbox0), 10);
01555
01556 refresh_button = gtk_button_new_from_stock ("gtk-refresh");
01557 gtk_widget_set_name (refresh_button, "refresh_button");
01558 gtk_widget_show (refresh_button);
01559 gtk_container_add (GTK_CONTAINER (hbuttonbox0), refresh_button);
01560 GTK_WIDGET_SET_FLAGS (refresh_button, GTK_CAN_DEFAULT);
01561 gtk_tooltips_set_tip (tooltips, refresh_button, _("Click on the refresh button to refresh the preview"), NULL);
01562
01563 dimensions_button = gtk_button_new ();
01564 gtk_widget_set_name (dimensions_button, "dimensions_button");
01565 gtk_widget_show (dimensions_button);
01566 gtk_container_add (GTK_CONTAINER (hbuttonbox0), dimensions_button);
01567 GTK_WIDGET_SET_FLAGS (dimensions_button, GTK_CAN_DEFAULT);
01568 gtk_tooltips_set_tip (tooltips, dimensions_button, _("Click on the Dimensions button for the package dimensions"), NULL);
01569
01570 alignment4 = gtk_alignment_new (0.5, 0.5, 0, 0);
01571 gtk_widget_set_name (alignment4, "alignment4");
01572 gtk_widget_show (alignment4);
01573 gtk_container_add (GTK_CONTAINER (dimensions_button), alignment4);
01574
01575 hbox4 = gtk_hbox_new (FALSE, 2);
01576 gtk_widget_set_name (hbox4, "hbox4");
01577 gtk_widget_show (hbox4);
01578 gtk_container_add (GTK_CONTAINER (alignment4), hbox4);
01579
01580 image4 = gtk_image_new_from_stock ("gtk-info", GTK_ICON_SIZE_BUTTON);
01581 gtk_widget_set_name (image4, "image4");
01582 gtk_widget_show (image4);
01583 gtk_box_pack_start (GTK_BOX (hbox4), image4, FALSE, FALSE, 0);
01584
01585 label6 = gtk_label_new_with_mnemonic (_("Dimensions"));
01586 gtk_widget_set_name (label6, "label6");
01587 gtk_widget_show (label6);
01588 gtk_box_pack_start (GTK_BOX (hbox4), label6, FALSE, FALSE, 0);
01589
01590 preview_button = gtk_button_new ();
01591 gtk_widget_set_name (preview_button, "preview_button");
01592 gtk_widget_show (preview_button);
01593 gtk_container_add (GTK_CONTAINER (hbuttonbox0), preview_button);
01594 GTK_WIDGET_SET_FLAGS (preview_button, GTK_CAN_DEFAULT);
01595 gtk_tooltips_set_tip (tooltips, preview_button, _("Click on the Preview button to view the footprint"), NULL);
01596
01597 alignment1 = gtk_alignment_new (0.5, 0.5, 0, 0);
01598 gtk_widget_set_name (alignment1, "alignment1");
01599 gtk_widget_show (alignment1);
01600 gtk_container_add (GTK_CONTAINER (preview_button), alignment1);
01601
01602 hbox1 = gtk_hbox_new (FALSE, 2);
01603 gtk_widget_set_name (hbox1, "hbox1");
01604 gtk_widget_show (hbox1);
01605 gtk_container_add (GTK_CONTAINER (alignment1), hbox1);
01606
01607 image1 = gtk_image_new_from_stock ("gtk-zoom-fit", GTK_ICON_SIZE_BUTTON);
01608 gtk_widget_set_name (image1, "image1");
01609 gtk_widget_show (image1);
01610 gtk_box_pack_start (GTK_BOX (hbox1), image1, FALSE, FALSE, 0);
01611
01612 label3 = gtk_label_new_with_mnemonic (_("Preview"));
01613 gtk_widget_set_name (label3, "label3");
01614 gtk_widget_show (label3);
01615 gtk_box_pack_start (GTK_BOX (hbox1), label3, FALSE, FALSE, 0);
01616
01617 clear_button = gtk_button_new_from_stock ("gtk-clear");
01618 gtk_widget_set_name (clear_button, "clear_button");
01619 gtk_widget_show (clear_button);
01620 gtk_container_add (GTK_CONTAINER (hbuttonbox0), clear_button);
01621 GTK_WIDGET_SET_FLAGS (clear_button, GTK_CAN_DEFAULT);
01622 gtk_tooltips_set_tip (tooltips, clear_button, _("Click on the Clear button to clear all entries"), NULL);
01623
01624 hbuttonbox1 = gtk_hbutton_box_new ();
01625 gtk_widget_set_name (hbuttonbox1, "hbuttonbox1");
01626 gtk_widget_show (hbuttonbox1);
01627 gtk_box_pack_start (GTK_BOX (vbox), hbuttonbox1, FALSE, FALSE, 0);
01628 gtk_container_set_border_width (GTK_CONTAINER (hbuttonbox1), 10);
01629
01630 close_button = gtk_button_new_from_stock ("gtk-close");
01631 gtk_widget_set_name (close_button, "close_button");
01632 gtk_widget_show (close_button);
01633 gtk_container_add (GTK_CONTAINER (hbuttonbox1), close_button);
01634 GTK_WIDGET_SET_FLAGS (close_button, GTK_CAN_DEFAULT);
01635 gtk_tooltips_set_tip (tooltips, close_button, _("Click the Close button to exit"), NULL);
01636
01637 footprint_button = gtk_button_new ();
01638 gtk_widget_set_name (footprint_button, "footprint_button");
01639 gtk_widget_show (footprint_button);
01640 gtk_container_add (GTK_CONTAINER (hbuttonbox1), footprint_button);
01641 GTK_WIDGET_SET_FLAGS (footprint_button, GTK_CAN_DEFAULT);
01642 gtk_tooltips_set_tip (tooltips, footprint_button, _("Click the Footprint button to write a footprint file"), NULL);
01643
01644 alignment3 = gtk_alignment_new (0.5, 0.5, 0, 0);
01645 gtk_widget_set_name (alignment3, "alignment3");
01646 gtk_widget_show (alignment3);
01647 gtk_container_add (GTK_CONTAINER (footprint_button), alignment3);
01648
01649 hbox3 = gtk_hbox_new (FALSE, 2);
01650 gtk_widget_set_name (hbox3, "hbox3");
01651 gtk_widget_show (hbox3);
01652 gtk_container_add (GTK_CONTAINER (alignment3), hbox3);
01653
01654 image3 = gtk_image_new_from_stock ("gtk-file", GTK_ICON_SIZE_BUTTON);
01655 gtk_widget_set_name (image3, "image3");
01656 gtk_widget_show (image3);
01657 gtk_box_pack_start (GTK_BOX (hbox3), image3, FALSE, FALSE, 0);
01658
01659 label5 = gtk_label_new_with_mnemonic ("Footprint");
01660 gtk_widget_set_name (label5, "label5");
01661 gtk_widget_show (label5);
01662 gtk_box_pack_start (GTK_BOX (hbox3), label5, FALSE, FALSE, 0);
01663
01664 open_button = gtk_button_new_from_stock ("gtk-open");
01665 gtk_widget_set_name (open_button, "open_button");
01666 gtk_widget_show (open_button);
01667 gtk_container_add (GTK_CONTAINER (hbuttonbox1), open_button);
01668 GTK_WIDGET_SET_FLAGS (open_button, GTK_CAN_DEFAULT);
01669 gtk_tooltips_set_tip (tooltips, open_button, _("Click the Open button to read an existing footprint file"), NULL);
01670
01671 save_button = gtk_button_new_from_stock ("gtk-save");
01672 gtk_widget_set_name (save_button, "save_button");
01673 gtk_widget_show (save_button);
01674 gtk_container_add (GTK_CONTAINER (hbuttonbox1), save_button);
01675 GTK_WIDGET_SET_FLAGS (save_button, GTK_CAN_DEFAULT);
01676 gtk_tooltips_set_tip (tooltips, save_button, _("Click the Save button to write the footprintwizard file"), NULL);
01677
01678 statusbar = gtk_statusbar_new ();
01679 gtk_widget_set_name (statusbar, "statusbar");
01680 gtk_widget_show (statusbar);
01681 gtk_box_pack_start (GTK_BOX (vbox), statusbar, FALSE, FALSE, 0);
01682
01683 g_signal_connect ((gpointer) pcb_gfpw, "destroy",
01684 G_CALLBACK (on_pcb_gfpw_destroy),
01685 NULL);
01686 g_signal_connect ((gpointer) footprint_author_entry, "changed",
01687 G_CALLBACK (on_footprint_author_entry_changed),
01688 NULL);
01689 g_signal_connect ((gpointer) footprint_dist_license_entry, "changed",
01690 G_CALLBACK (on_footprint_dist_license_entry_changed),
01691 NULL);
01692 g_signal_connect ((gpointer) footprint_use_license_entry, "changed",
01693 G_CALLBACK (on_footprint_use_license_entry_changed),
01694 NULL);
01695 g_signal_connect ((gpointer) footprint_status_entry, "changed",
01696 G_CALLBACK (on_footprint_status_entry_changed),
01697 NULL);
01698 g_signal_connect ((gpointer) footprint_units_entry, "changed",
01699 G_CALLBACK (on_footprint_units_entry_changed),
01700 NULL);
01701 g_signal_connect ((gpointer) footprint_name_entry, "changed",
01702 G_CALLBACK (on_footprint_name_entry_changed),
01703 NULL);
01704 g_signal_connect ((gpointer) footprint_type_entry, "changed",
01705 G_CALLBACK (on_footprint_type_entry_changed),
01706 NULL);
01707 g_signal_connect ((gpointer) package_body_height_entry, "changed",
01708 G_CALLBACK (on_package_body_height_entry_changed),
01709 NULL);
01710 g_signal_connect ((gpointer) package_body_width_entry, "changed",
01711 G_CALLBACK (on_package_body_width_entry_changed),
01712 NULL);
01713 g_signal_connect ((gpointer) package_body_length_entry, "changed",
01714 G_CALLBACK (on_package_body_length_entry_changed),
01715 NULL);
01716 g_signal_connect ((gpointer) footprint_value_entry, "changed",
01717 G_CALLBACK (on_footprint_value_entry_changed),
01718 NULL);
01719 g_signal_connect ((gpointer) footprint_refdes_entry, "changed",
01720 G_CALLBACK (on_footprint_refdes_entry_changed),
01721 NULL);
01722 g_signal_connect ((gpointer) add_license_checkbutton, "toggled",
01723 G_CALLBACK (on_add_license_checkbutton_toggled),
01724 NULL);
01725 g_signal_connect ((gpointer) package_is_radial_checkbutton, "toggled",
01726 G_CALLBACK (on_package_is_radial_checkbutton_toggled),
01727 NULL);
01728 g_signal_connect ((gpointer) add_attribs_checkbutton, "toggled",
01729 G_CALLBACK (on_add_attribs_checkbutton_toggled),
01730 NULL);
01731 g_signal_connect ((gpointer) pad_solder_mask_clearance_entry, "changed",
01732 G_CALLBACK (on_pad_solder_mask_clearance_entry_changed),
01733 NULL);
01734 g_signal_connect ((gpointer) pad_clearance_entry, "changed",
01735 G_CALLBACK (on_pad_clearance_entry_changed),
01736 NULL);
01737 g_signal_connect ((gpointer) pad_width_entry, "changed",
01738 G_CALLBACK (on_pad_width_entry_changed),
01739 NULL);
01740 g_signal_connect ((gpointer) pad_length_entry, "changed",
01741 G_CALLBACK (on_pad_length_entry_changed),
01742 NULL);
01743 g_signal_connect ((gpointer) pad_shape_entry, "changed",
01744 G_CALLBACK (on_pad_shape_entry_changed),
01745 NULL);
01746 g_signal_connect ((gpointer) pad_diameter_entry, "changed",
01747 G_CALLBACK (on_pad_diameter_entry_changed),
01748 NULL);
01749 g_signal_connect ((gpointer) pin_square_checkbutton, "toggled",
01750 G_CALLBACK (on_pin_square_checkbutton_toggled),
01751 NULL);
01752 g_signal_connect ((gpointer) pin_drill_diameter_entry, "changed",
01753 G_CALLBACK (on_pin_drill_diameter_entry_changed),
01754 NULL);
01755 g_signal_connect ((gpointer) number_total_pins_entry, "changed",
01756 G_CALLBACK (on_number_total_pins_entry_changed),
01757 NULL);
01758 g_signal_connect ((gpointer) pitch_x_entry, "changed",
01759 G_CALLBACK (on_pitch_x_entry_changed),
01760 NULL);
01761 g_signal_connect ((gpointer) pitch_y_entry, "changed",
01762 G_CALLBACK (on_pitch_y_entry_changed),
01763 NULL);
01764 g_signal_connect ((gpointer) count_x_entry, "changed",
01765 G_CALLBACK (on_count_x_entry_changed),
01766 NULL);
01767 g_signal_connect ((gpointer) count_y_entry, "changed",
01768 G_CALLBACK (on_count_y_entry_changed),
01769 NULL);
01770 g_signal_connect ((gpointer) number_1_position_entry, "changed",
01771 G_CALLBACK (on_number_1_position_entry_changed),
01772 NULL);
01773 g_signal_connect ((gpointer) number_of_columns_entry, "changed",
01774 G_CALLBACK (on_number_of_columns_entry_changed),
01775 NULL);
01776 g_signal_connect ((gpointer) number_of_rows_entry, "changed",
01777 G_CALLBACK (on_number_of_rows_entry_changed),
01778 NULL);
01779 g_signal_connect ((gpointer) pin_pad_exceptions_entry, "changed",
01780 G_CALLBACK (on_pin_pad_exceptions_entry_changed),
01781 NULL);
01782 g_signal_connect ((gpointer) pin_pad_exceptions_button, "clicked",
01783 G_CALLBACK (on_pin_pad_exceptions_button_clicked),
01784 NULL);
01785 g_signal_connect ((gpointer) courtyard_checkbutton, "toggled",
01786 G_CALLBACK (on_courtyard_checkbutton_toggled),
01787 NULL);
01788 g_signal_connect ((gpointer) courtyard_length_entry, "changed",
01789 G_CALLBACK (on_courtyard_length_entry_changed),
01790 NULL);
01791 g_signal_connect ((gpointer) courtyard_width_entry, "changed",
01792 G_CALLBACK (on_courtyard_width_entry_changed),
01793 NULL);
01794 g_signal_connect ((gpointer) courtyard_line_width_entry, "changed",
01795 G_CALLBACK (on_courtyard_line_width_entry_changed),
01796 NULL);
01797 g_signal_connect ((gpointer) courtyard_clearance_with_package_entry, "changed",
01798 G_CALLBACK (on_courtyard_clearance_with_package_entry_changed),
01799 NULL);
01800 g_signal_connect ((gpointer) silkscreen_package_outline_checkbutton, "toggled",
01801 G_CALLBACK (on_silkscreen_package_outline_checkbutton_toggled),
01802 NULL);
01803 g_signal_connect ((gpointer) silkscreen_indicate_1_checkbutton, "toggled",
01804 G_CALLBACK (on_silkscreen_indicate_1_checkbutton_toggled),
01805 NULL);
01806 g_signal_connect ((gpointer) silkscreen_line_width_entry, "changed",
01807 G_CALLBACK (on_silkscreen_line_width_entry_changed),
01808 NULL);
01809 g_signal_connect ((gpointer) thermal_checkbutton, "toggled",
01810 G_CALLBACK (on_thermal_checkbutton_toggled),
01811 NULL);
01812 g_signal_connect ((gpointer) thermal_width_entry, "changed",
01813 G_CALLBACK (on_thermal_width_entry_changed),
01814 NULL);
01815 g_signal_connect ((gpointer) thermal_length_entry, "changed",
01816 G_CALLBACK (on_thermal_length_entry_changed),
01817 NULL);
01818 g_signal_connect ((gpointer) thermal_nopaste_checkbutton, "toggled",
01819 G_CALLBACK (on_thermal_nopaste_checkbutton_toggled),
01820 NULL);
01821 g_signal_connect ((gpointer) thermal_solder_mask_clearance_entry, "changed",
01822 G_CALLBACK (on_thermal_solder_mask_clearance_entry_changed),
01823 NULL);
01824 g_signal_connect ((gpointer) thermal_clearance_entry, "changed",
01825 G_CALLBACK (on_thermal_clearance_entry_changed),
01826 NULL);
01827 g_signal_connect ((gpointer) fiducial_pad_diameter_entry, "changed",
01828 G_CALLBACK (on_fiducial_pad_diameter_entry_changed),
01829 NULL);
01830 g_signal_connect ((gpointer) fiducial_checkbutton, "toggled",
01831 G_CALLBACK (on_fiducial_checkbutton_toggled),
01832 NULL);
01833 g_signal_connect ((gpointer) fiducial_pad_solder_mask_clearance_entry, "changed",
01834 G_CALLBACK (on_fiducial_pad_solder_mask_clearance_entry_changed),
01835 NULL);
01836 g_signal_connect ((gpointer) fiducial_pad_clearance_entry, "changed",
01837 G_CALLBACK (on_fiducial_pad_clearance_entry_changed),
01838 NULL);
01839 g_signal_connect ((gpointer) G1_radiobutton, "toggled",
01840 G_CALLBACK (on_G1_radiobutton_toggled),
01841 NULL);
01842 g_signal_connect ((gpointer) C1_radiobutton, "toggled",
01843 G_CALLBACK (on_C1_radiobutton_toggled),
01844 NULL);
01845 g_signal_connect ((gpointer) Z1_radiobutton, "toggled",
01846 G_CALLBACK (on_Z1_radiobutton_toggled),
01847 NULL);
01848 g_signal_connect ((gpointer) G1_entry, "changed",
01849 G_CALLBACK (on_G1_entry_changed),
01850 NULL);
01851 g_signal_connect ((gpointer) C1_entry, "changed",
01852 G_CALLBACK (on_C1_entry_changed),
01853 NULL);
01854 g_signal_connect ((gpointer) Z1_entry, "changed",
01855 G_CALLBACK (on_Z1_entry_changed),
01856 NULL);
01857 g_signal_connect ((gpointer) G2_radiobutton, "toggled",
01858 G_CALLBACK (on_G2_radiobutton_toggled),
01859 NULL);
01860 g_signal_connect ((gpointer) C2_radiobutton, "toggled",
01861 G_CALLBACK (on_C2_radiobutton_toggled),
01862 NULL);
01863 g_signal_connect ((gpointer) Z2_radiobutton, "toggled",
01864 G_CALLBACK (on_Z2_radiobutton_toggled),
01865 NULL);
01866 g_signal_connect ((gpointer) G2_entry, "changed",
01867 G_CALLBACK (on_G2_entry_changed),
01868 NULL);
01869 g_signal_connect ((gpointer) C2_entry, "changed",
01870 G_CALLBACK (on_C2_entry_changed),
01871 NULL);
01872 g_signal_connect ((gpointer) Z2_entry, "changed",
01873 G_CALLBACK (on_Z2_entry_changed),
01874 NULL);
01875 g_signal_connect ((gpointer) refresh_button, "clicked",
01876 G_CALLBACK (on_refresh_button_clicked),
01877 NULL);
01878 g_signal_connect ((gpointer) dimensions_button, "clicked",
01879 G_CALLBACK (on_dimensions_button_clicked),
01880 NULL);
01881 g_signal_connect ((gpointer) preview_button, "clicked",
01882 G_CALLBACK (on_preview_button_clicked),
01883 NULL);
01884 g_signal_connect ((gpointer) clear_button, "clicked",
01885 G_CALLBACK (on_clear_button_clicked),
01886 NULL);
01887 g_signal_connect ((gpointer) close_button, "clicked",
01888 G_CALLBACK (on_close_button_clicked),
01889 NULL);
01890 g_signal_connect ((gpointer) footprint_button, "clicked",
01891 G_CALLBACK (on_footprint_button_clicked),
01892 NULL);
01893 g_signal_connect ((gpointer) open_button, "clicked",
01894 G_CALLBACK (on_open_button_clicked),
01895 NULL);
01896 g_signal_connect ((gpointer) save_button, "clicked",
01897 G_CALLBACK (on_save_button_clicked),
01898 NULL);
01899
01900
01901 GLADE_HOOKUP_OBJECT_NO_REF (pcb_gfpw, pcb_gfpw, "pcb_gfpw");
01902 GLADE_HOOKUP_OBJECT (pcb_gfpw, vbox, "vbox");
01903 GLADE_HOOKUP_OBJECT (pcb_gfpw, hbox, "hbox");
01904 GLADE_HOOKUP_OBJECT (pcb_gfpw, notebook, "notebook");
01905 GLADE_HOOKUP_OBJECT (pcb_gfpw, footprint_tab_table, "footprint_tab_table");
01906 GLADE_HOOKUP_OBJECT (pcb_gfpw, author_frame, "author_frame");
01907 GLADE_HOOKUP_OBJECT (pcb_gfpw, author_frame_alignment, "author_frame_alignment");
01908 GLADE_HOOKUP_OBJECT (pcb_gfpw, author_table, "author_table");
01909 GLADE_HOOKUP_OBJECT (pcb_gfpw, footprint_author_label, "footprint_author_label");
01910 GLADE_HOOKUP_OBJECT (pcb_gfpw, footprint_dist_license_label, "footprint_dist_license_label");
01911 GLADE_HOOKUP_OBJECT (pcb_gfpw, footprint_author_entry, "footprint_author_entry");
01912 GLADE_HOOKUP_OBJECT (pcb_gfpw, footprint_dist_license_entry, "footprint_dist_license_entry");
01913 GLADE_HOOKUP_OBJECT (pcb_gfpw, footprint_use_license_entry, "footprint_use_license_entry");
01914 GLADE_HOOKUP_OBJECT (pcb_gfpw, footprint_use_license_label, "footprint_use_license_label");
01915 GLADE_HOOKUP_OBJECT (pcb_gfpw, footprint_status_label, "footprint_status_label");
01916 GLADE_HOOKUP_OBJECT (pcb_gfpw, footprint_status_entry, "footprint_status_entry");
01917 GLADE_HOOKUP_OBJECT (pcb_gfpw, author_frame_label, "author_frame_label");
01918 GLADE_HOOKUP_OBJECT (pcb_gfpw, footprint_frame, "footprint_frame");
01919 GLADE_HOOKUP_OBJECT (pcb_gfpw, footprint_frame_alignment, "footprint_frame_alignment");
01920 GLADE_HOOKUP_OBJECT (pcb_gfpw, footprint_table, "footprint_table");
01921 GLADE_HOOKUP_OBJECT (pcb_gfpw, footprint_units_label, "footprint_units_label");
01922 GLADE_HOOKUP_OBJECT (pcb_gfpw, footprint_units_entry, "footprint_units_entry");
01923 GLADE_HOOKUP_OBJECT (pcb_gfpw, footprint_name_entry, "footprint_name_entry");
01924 GLADE_HOOKUP_OBJECT (pcb_gfpw, footprint_type_entry, "footprint_type_entry");
01925 GLADE_HOOKUP_OBJECT (pcb_gfpw, footprint_type_label, "footprint_type_label");
01926 GLADE_HOOKUP_OBJECT (pcb_gfpw, footprint_name_label, "footprint_name_label");
01927 GLADE_HOOKUP_OBJECT (pcb_gfpw, package_body_height_entry, "package_body_height_entry");
01928 GLADE_HOOKUP_OBJECT (pcb_gfpw, package_body_height_label, "package_body_height_label");
01929 GLADE_HOOKUP_OBJECT (pcb_gfpw, pacakge_body_width_label, "pacakge_body_width_label");
01930 GLADE_HOOKUP_OBJECT (pcb_gfpw, package_body_length_label, "package_body_length_label");
01931 GLADE_HOOKUP_OBJECT (pcb_gfpw, footprint_value_label, "footprint_value_label");
01932 GLADE_HOOKUP_OBJECT (pcb_gfpw, package_body_width_entry, "package_body_width_entry");
01933 GLADE_HOOKUP_OBJECT (pcb_gfpw, package_body_length_entry, "package_body_length_entry");
01934 GLADE_HOOKUP_OBJECT (pcb_gfpw, footprint_value_entry, "footprint_value_entry");
01935 GLADE_HOOKUP_OBJECT (pcb_gfpw, footprint_refdes_label, "footprint_refdes_label");
01936 GLADE_HOOKUP_OBJECT (pcb_gfpw, footprint_refdes_entry, "footprint_refdes_entry");
01937 GLADE_HOOKUP_OBJECT (pcb_gfpw, add_license_checkbutton, "add_license_checkbutton");
01938 GLADE_HOOKUP_OBJECT (pcb_gfpw, package_is_radial_checkbutton, "package_is_radial_checkbutton");
01939 GLADE_HOOKUP_OBJECT (pcb_gfpw, add_attribs_checkbutton, "add_attribs_checkbutton");
01940 GLADE_HOOKUP_OBJECT (pcb_gfpw, footprint_frame_label, "footprint_frame_label");
01941 GLADE_HOOKUP_OBJECT (pcb_gfpw, footprint_tab_label, "footprint_tab_label");
01942 GLADE_HOOKUP_OBJECT (pcb_gfpw, pins_pads_table, "pins_pads_table");
01943 GLADE_HOOKUP_OBJECT (pcb_gfpw, pads_frame, "pads_frame");
01944 GLADE_HOOKUP_OBJECT (pcb_gfpw, pads_alignment, "pads_alignment");
01945 GLADE_HOOKUP_OBJECT (pcb_gfpw, pads_table, "pads_table");
01946 GLADE_HOOKUP_OBJECT (pcb_gfpw, pad_solder_mask_clearance_label, "pad_solder_mask_clearance_label");
01947 GLADE_HOOKUP_OBJECT (pcb_gfpw, pad_solder_mask_clearance_entry, "pad_solder_mask_clearance_entry");
01948 GLADE_HOOKUP_OBJECT (pcb_gfpw, pad_clearance_label, "pad_clearance_label");
01949 GLADE_HOOKUP_OBJECT (pcb_gfpw, pad_width_label, "pad_width_label");
01950 GLADE_HOOKUP_OBJECT (pcb_gfpw, pad_length_label, "pad_length_label");
01951 GLADE_HOOKUP_OBJECT (pcb_gfpw, pad_clearance_entry, "pad_clearance_entry");
01952 GLADE_HOOKUP_OBJECT (pcb_gfpw, pad_width_entry, "pad_width_entry");
01953 GLADE_HOOKUP_OBJECT (pcb_gfpw, pad_length_entry, "pad_length_entry");
01954 GLADE_HOOKUP_OBJECT (pcb_gfpw, pad_shape_label, "pad_shape_label");
01955 GLADE_HOOKUP_OBJECT (pcb_gfpw, pad_shape_entry, "pad_shape_entry");
01956 GLADE_HOOKUP_OBJECT (pcb_gfpw, pads_label, "pads_label");
01957 GLADE_HOOKUP_OBJECT (pcb_gfpw, pins_frame, "pins_frame");
01958 GLADE_HOOKUP_OBJECT (pcb_gfpw, pins_alignment, "pins_alignment");
01959 GLADE_HOOKUP_OBJECT (pcb_gfpw, pins_table, "pins_table");
01960 GLADE_HOOKUP_OBJECT (pcb_gfpw, pad_diameter_entry, "pad_diameter_entry");
01961 GLADE_HOOKUP_OBJECT (pcb_gfpw, pin_drill_diameter_label, "pin_drill_diameter_label");
01962 GLADE_HOOKUP_OBJECT (pcb_gfpw, pin_pad_diameter_label, "pin_pad_diameter_label");
01963 GLADE_HOOKUP_OBJECT (pcb_gfpw, pin_square_checkbutton, "pin_square_checkbutton");
01964 GLADE_HOOKUP_OBJECT (pcb_gfpw, pin_drill_diameter_entry, "pin_drill_diameter_entry");
01965 GLADE_HOOKUP_OBJECT (pcb_gfpw, pins_label, "pins_label");
01966 GLADE_HOOKUP_OBJECT (pcb_gfpw, pins_pads_pattern_frame, "pins_pads_pattern_frame");
01967 GLADE_HOOKUP_OBJECT (pcb_gfpw, pins_pads_pattern_alignment, "pins_pads_pattern_alignment");
01968 GLADE_HOOKUP_OBJECT (pcb_gfpw, pins_pads_pattern_table, "pins_pads_pattern_table");
01969 GLADE_HOOKUP_OBJECT (pcb_gfpw, total_pins_and_pads_label, "total_pins_and_pads_label");
01970 GLADE_HOOKUP_OBJECT (pcb_gfpw, pitch_x_label, "pitch_x_label");
01971 GLADE_HOOKUP_OBJECT (pcb_gfpw, pitch_y_label, "pitch_y_label");
01972 GLADE_HOOKUP_OBJECT (pcb_gfpw, number_total_pins_entry, "number_total_pins_entry");
01973 GLADE_HOOKUP_OBJECT (pcb_gfpw, pitch_x_entry, "pitch_x_entry");
01974 GLADE_HOOKUP_OBJECT (pcb_gfpw, pitch_y_entry, "pitch_y_entry");
01975 GLADE_HOOKUP_OBJECT (pcb_gfpw, label1, "label1");
01976 GLADE_HOOKUP_OBJECT (pcb_gfpw, label2, "label2");
01977 GLADE_HOOKUP_OBJECT (pcb_gfpw, count_x_entry, "count_x_entry");
01978 GLADE_HOOKUP_OBJECT (pcb_gfpw, count_y_entry, "count_y_entry");
01979 GLADE_HOOKUP_OBJECT (pcb_gfpw, number_1_position_label, "number_1_position_label");
01980 GLADE_HOOKUP_OBJECT (pcb_gfpw, number_1_position_entry, "number_1_position_entry");
01981 GLADE_HOOKUP_OBJECT (pcb_gfpw, number_of_columns_label, "number_of_columns_label");
01982 GLADE_HOOKUP_OBJECT (pcb_gfpw, number_of_columns_entry, "number_of_columns_entry");
01983 GLADE_HOOKUP_OBJECT (pcb_gfpw, number_of_rows_label, "number_of_rows_label");
01984 GLADE_HOOKUP_OBJECT (pcb_gfpw, number_of_rows_entry, "number_of_rows_entry");
01985 GLADE_HOOKUP_OBJECT (pcb_gfpw, pin_pad_exceptions_entry, "pin_pad_exceptions_entry");
01986 GLADE_HOOKUP_OBJECT (pcb_gfpw, pin_pad_exceptions_button, "pin_pad_exceptions_button");
01987 GLADE_HOOKUP_OBJECT (pcb_gfpw, pins_pads_pattern_label, "pins_pads_pattern_label");
01988 GLADE_HOOKUP_OBJECT (pcb_gfpw, pins_pads_tab_tab_label, "pins_pads_tab_tab_label");
01989 GLADE_HOOKUP_OBJECT (pcb_gfpw, silkscreen_table, "silkscreen_table");
01990 GLADE_HOOKUP_OBJECT (pcb_gfpw, courtyard_frame, "courtyard_frame");
01991 GLADE_HOOKUP_OBJECT (pcb_gfpw, courtyard_alignment, "courtyard_alignment");
01992 GLADE_HOOKUP_OBJECT (pcb_gfpw, courtyard_table, "courtyard_table");
01993 GLADE_HOOKUP_OBJECT (pcb_gfpw, courtyard_checkbutton, "courtyard_checkbutton");
01994 GLADE_HOOKUP_OBJECT (pcb_gfpw, courtyard_width_label, "courtyard_width_label");
01995 GLADE_HOOKUP_OBJECT (pcb_gfpw, courtyard_length_label, "courtyard_length_label");
01996 GLADE_HOOKUP_OBJECT (pcb_gfpw, courtyard_length_entry, "courtyard_length_entry");
01997 GLADE_HOOKUP_OBJECT (pcb_gfpw, courtyard_width_entry, "courtyard_width_entry");
01998 GLADE_HOOKUP_OBJECT (pcb_gfpw, courtyard_line_width_label, "courtyard_line_width_label");
01999 GLADE_HOOKUP_OBJECT (pcb_gfpw, courtyard_line_width_entry, "courtyard_line_width_entry");
02000 GLADE_HOOKUP_OBJECT (pcb_gfpw, courtyard_clearance_with_package_label, "courtyard_clearance_with_package_label");
02001 GLADE_HOOKUP_OBJECT (pcb_gfpw, courtyard_clearance_with_package_entry, "courtyard_clearance_with_package_entry");
02002 GLADE_HOOKUP_OBJECT (pcb_gfpw, courtyard_label, "courtyard_label");
02003 GLADE_HOOKUP_OBJECT (pcb_gfpw, package_frame, "package_frame");
02004 GLADE_HOOKUP_OBJECT (pcb_gfpw, package_alignment, "package_alignment");
02005 GLADE_HOOKUP_OBJECT (pcb_gfpw, package_table, "package_table");
02006 GLADE_HOOKUP_OBJECT (pcb_gfpw, silkscreen_package_outline_checkbutton, "silkscreen_package_outline_checkbutton");
02007 GLADE_HOOKUP_OBJECT (pcb_gfpw, silkscreen_indicate_1_checkbutton, "silkscreen_indicate_1_checkbutton");
02008 GLADE_HOOKUP_OBJECT (pcb_gfpw, silkscreen_line_width_label, "silkscreen_line_width_label");
02009 GLADE_HOOKUP_OBJECT (pcb_gfpw, silkscreen_line_width_entry, "silkscreen_line_width_entry");
02010 GLADE_HOOKUP_OBJECT (pcb_gfpw, package_label, "package_label");
02011 GLADE_HOOKUP_OBJECT (pcb_gfpw, silkscreen_tab_label, "silkscreen_tab_label");
02012 GLADE_HOOKUP_OBJECT (pcb_gfpw, thermal_table, "thermal_table");
02013 GLADE_HOOKUP_OBJECT (pcb_gfpw, thermal_pad_frame, "thermal_pad_frame");
02014 GLADE_HOOKUP_OBJECT (pcb_gfpw, thermal_pad_alignment, "thermal_pad_alignment");
02015 GLADE_HOOKUP_OBJECT (pcb_gfpw, thermal_pad_table, "thermal_pad_table");
02016 GLADE_HOOKUP_OBJECT (pcb_gfpw, thermal_checkbutton, "thermal_checkbutton");
02017 GLADE_HOOKUP_OBJECT (pcb_gfpw, thermal_pad_length_label, "thermal_pad_length_label");
02018 GLADE_HOOKUP_OBJECT (pcb_gfpw, thermal_pad_width_label, "thermal_pad_width_label");
02019 GLADE_HOOKUP_OBJECT (pcb_gfpw, thermal_width_entry, "thermal_width_entry");
02020 GLADE_HOOKUP_OBJECT (pcb_gfpw, thermal_length_entry, "thermal_length_entry");
02021 GLADE_HOOKUP_OBJECT (pcb_gfpw, thermal_nopaste_checkbutton, "thermal_nopaste_checkbutton");
02022 GLADE_HOOKUP_OBJECT (pcb_gfpw, thermal_pad_solder_mask_clearance_label, "thermal_pad_solder_mask_clearance_label");
02023 GLADE_HOOKUP_OBJECT (pcb_gfpw, thermal_pad_clearance_label, "thermal_pad_clearance_label");
02024 GLADE_HOOKUP_OBJECT (pcb_gfpw, thermal_solder_mask_clearance_entry, "thermal_solder_mask_clearance_entry");
02025 GLADE_HOOKUP_OBJECT (pcb_gfpw, thermal_clearance_entry, "thermal_clearance_entry");
02026 GLADE_HOOKUP_OBJECT (pcb_gfpw, thermal_pad_label, "thermal_pad_label");
02027 GLADE_HOOKUP_OBJECT (pcb_gfpw, fiducials_frame, "fiducials_frame");
02028 GLADE_HOOKUP_OBJECT (pcb_gfpw, fiducials_alignment, "fiducials_alignment");
02029 GLADE_HOOKUP_OBJECT (pcb_gfpw, fiducials_table, "fiducials_table");
02030 GLADE_HOOKUP_OBJECT (pcb_gfpw, fiducial_pad_diameter_label, "fiducial_pad_diameter_label");
02031 GLADE_HOOKUP_OBJECT (pcb_gfpw, fiducial_pad_diameter_entry, "fiducial_pad_diameter_entry");
02032 GLADE_HOOKUP_OBJECT (pcb_gfpw, fiducial_checkbutton, "fiducial_checkbutton");
02033 GLADE_HOOKUP_OBJECT (pcb_gfpw, fiducial_solder_mask_clearance_label, "fiducial_solder_mask_clearance_label");
02034 GLADE_HOOKUP_OBJECT (pcb_gfpw, fiducial_pad_solder_mask_clearance_entry, "fiducial_pad_solder_mask_clearance_entry");
02035 GLADE_HOOKUP_OBJECT (pcb_gfpw, fiducial_pad_clearance_label, "fiducial_pad_clearance_label");
02036 GLADE_HOOKUP_OBJECT (pcb_gfpw, fiducial_pad_clearance_entry, "fiducial_pad_clearance_entry");
02037 GLADE_HOOKUP_OBJECT (pcb_gfpw, fiducials_label, "fiducials_label");
02038 GLADE_HOOKUP_OBJECT (pcb_gfpw, thermal_pad_tab_label, "thermal_pad_tab_label");
02039 GLADE_HOOKUP_OBJECT (pcb_gfpw, heel_and_toe_goals_vbox, "heel_and_toe_goals_vbox");
02040 GLADE_HOOKUP_OBJECT (pcb_gfpw, top_to_bottom_frame, "top_to_bottom_frame");
02041 GLADE_HOOKUP_OBJECT (pcb_gfpw, top_to_bottom_alignment, "top_to_bottom_alignment");
02042 GLADE_HOOKUP_OBJECT (pcb_gfpw, top_to_bottom_table, "top_to_bottom_table");
02043 GLADE_HOOKUP_OBJECT (pcb_gfpw, G1_radiobutton, "G1_radiobutton");
02044 GLADE_HOOKUP_OBJECT (pcb_gfpw, C1_radiobutton, "C1_radiobutton");
02045 GLADE_HOOKUP_OBJECT (pcb_gfpw, Z1_radiobutton, "Z1_radiobutton");
02046 GLADE_HOOKUP_OBJECT (pcb_gfpw, G1_entry, "G1_entry");
02047 GLADE_HOOKUP_OBJECT (pcb_gfpw, C1_entry, "C1_entry");
02048 GLADE_HOOKUP_OBJECT (pcb_gfpw, Z1_entry, "Z1_entry");
02049 GLADE_HOOKUP_OBJECT (pcb_gfpw, top_to_bottom_label, "top_to_bottom_label");
02050 GLADE_HOOKUP_OBJECT (pcb_gfpw, left_to_right_frame, "left_to_right_frame");
02051 GLADE_HOOKUP_OBJECT (pcb_gfpw, left_to_right_alignment, "left_to_right_alignment");
02052 GLADE_HOOKUP_OBJECT (pcb_gfpw, left_to_right_table, "left_to_right_table");
02053 GLADE_HOOKUP_OBJECT (pcb_gfpw, G2_radiobutton, "G2_radiobutton");
02054 GLADE_HOOKUP_OBJECT (pcb_gfpw, C2_radiobutton, "C2_radiobutton");
02055 GLADE_HOOKUP_OBJECT (pcb_gfpw, Z2_radiobutton, "Z2_radiobutton");
02056 GLADE_HOOKUP_OBJECT (pcb_gfpw, G2_entry, "G2_entry");
02057 GLADE_HOOKUP_OBJECT (pcb_gfpw, C2_entry, "C2_entry");
02058 GLADE_HOOKUP_OBJECT (pcb_gfpw, Z2_entry, "Z2_entry");
02059 GLADE_HOOKUP_OBJECT (pcb_gfpw, left_to_right_label, "left_to_right_label");
02060 GLADE_HOOKUP_OBJECT (pcb_gfpw, heel_and_toe_goals_tab_label, "heel_and_toe_goals_tab_label");
02061 GLADE_HOOKUP_OBJECT (pcb_gfpw, hbuttonbox0, "hbuttonbox0");
02062 GLADE_HOOKUP_OBJECT (pcb_gfpw, refresh_button, "refresh_button");
02063 GLADE_HOOKUP_OBJECT (pcb_gfpw, dimensions_button, "dimensions_button");
02064 GLADE_HOOKUP_OBJECT (pcb_gfpw, alignment4, "alignment4");
02065 GLADE_HOOKUP_OBJECT (pcb_gfpw, hbox4, "hbox4");
02066 GLADE_HOOKUP_OBJECT (pcb_gfpw, image4, "image4");
02067 GLADE_HOOKUP_OBJECT (pcb_gfpw, label6, "label6");
02068 GLADE_HOOKUP_OBJECT (pcb_gfpw, preview_button, "preview_button");
02069 GLADE_HOOKUP_OBJECT (pcb_gfpw, alignment1, "alignment1");
02070 GLADE_HOOKUP_OBJECT (pcb_gfpw, hbox1, "hbox1");
02071 GLADE_HOOKUP_OBJECT (pcb_gfpw, image1, "image1");
02072 GLADE_HOOKUP_OBJECT (pcb_gfpw, label3, "label3");
02073 GLADE_HOOKUP_OBJECT (pcb_gfpw, clear_button, "clear_button");
02074 GLADE_HOOKUP_OBJECT (pcb_gfpw, hbuttonbox1, "hbuttonbox1");
02075 GLADE_HOOKUP_OBJECT (pcb_gfpw, close_button, "close_button");
02076 GLADE_HOOKUP_OBJECT (pcb_gfpw, footprint_button, "footprint_button");
02077 GLADE_HOOKUP_OBJECT (pcb_gfpw, alignment3, "alignment3");
02078 GLADE_HOOKUP_OBJECT (pcb_gfpw, hbox3, "hbox3");
02079 GLADE_HOOKUP_OBJECT (pcb_gfpw, image3, "image3");
02080 GLADE_HOOKUP_OBJECT (pcb_gfpw, label5, "label5");
02081 GLADE_HOOKUP_OBJECT (pcb_gfpw, open_button, "open_button");
02082 GLADE_HOOKUP_OBJECT (pcb_gfpw, save_button, "save_button");
02083 GLADE_HOOKUP_OBJECT (pcb_gfpw, statusbar, "statusbar");
02084 GLADE_HOOKUP_OBJECT_NO_REF (pcb_gfpw, tooltips, "tooltips");
02085
02086 return pcb_gfpw;
02087 }
02088
02089 GtkWidget*
02090 create_filechooser_dialog (void)
02091 {
02092 GtkWidget *filechooser_dialog;
02093 GdkPixbuf *filechooser_dialog_icon_pixbuf;
02094 GtkWidget *filechooser_dialog_vbox;
02095 GtkWidget *filechooser_dialog_action_area;
02096 GtkWidget *filechooser_dialog_cancel_button;
02097 GtkWidget *filechooser_dialog_open_button;
02098
02099 filechooser_dialog = gtk_file_chooser_dialog_new (_("pcb-gfpw: choose a .fpw file"), NULL, GTK_FILE_CHOOSER_ACTION_OPEN, NULL);
02100 gtk_widget_set_name (filechooser_dialog, "filechooser_dialog");
02101 filechooser_dialog_icon_pixbuf = create_pixbuf ("gFootprintWizard.xpm");
02102 if (filechooser_dialog_icon_pixbuf)
02103 {
02104 gtk_window_set_icon (GTK_WINDOW (filechooser_dialog), filechooser_dialog_icon_pixbuf);
02105 gdk_pixbuf_unref (filechooser_dialog_icon_pixbuf);
02106 }
02107 gtk_window_set_type_hint (GTK_WINDOW (filechooser_dialog), GDK_WINDOW_TYPE_HINT_DIALOG);
02108
02109 filechooser_dialog_vbox = GTK_DIALOG (filechooser_dialog)->vbox;
02110 gtk_widget_set_name (filechooser_dialog_vbox, "filechooser_dialog_vbox");
02111 gtk_widget_show (filechooser_dialog_vbox);
02112
02113 filechooser_dialog_action_area = GTK_DIALOG (filechooser_dialog)->action_area;
02114 gtk_widget_set_name (filechooser_dialog_action_area, "filechooser_dialog_action_area");
02115 gtk_widget_show (filechooser_dialog_action_area);
02116 gtk_button_box_set_layout (GTK_BUTTON_BOX (filechooser_dialog_action_area), GTK_BUTTONBOX_END);
02117
02118 filechooser_dialog_cancel_button = gtk_button_new_from_stock ("gtk-cancel");
02119 gtk_widget_set_name (filechooser_dialog_cancel_button, "filechooser_dialog_cancel_button");
02120 gtk_widget_show (filechooser_dialog_cancel_button);
02121 gtk_dialog_add_action_widget (GTK_DIALOG (filechooser_dialog), filechooser_dialog_cancel_button, GTK_RESPONSE_CANCEL);
02122 GTK_WIDGET_SET_FLAGS (filechooser_dialog_cancel_button, GTK_CAN_DEFAULT);
02123
02124 filechooser_dialog_open_button = gtk_button_new_from_stock ("gtk-open");
02125 gtk_widget_set_name (filechooser_dialog_open_button, "filechooser_dialog_open_button");
02126 gtk_widget_show (filechooser_dialog_open_button);
02127 gtk_dialog_add_action_widget (GTK_DIALOG (filechooser_dialog), filechooser_dialog_open_button, GTK_RESPONSE_OK);
02128 GTK_WIDGET_SET_FLAGS (filechooser_dialog_open_button, GTK_CAN_DEFAULT);
02129
02130 g_signal_connect ((gpointer) filechooser_dialog, "selection_changed",
02131 G_CALLBACK (on_filechooser_dialog_selection_changed),
02132 NULL);
02133 g_signal_connect ((gpointer) filechooser_dialog, "close",
02134 G_CALLBACK (on_filechooser_dialog_close),
02135 NULL);
02136 g_signal_connect ((gpointer) filechooser_dialog, "current_folder_changed",
02137 G_CALLBACK (on_filechooser_dialog_current_folder_changed),
02138 NULL);
02139 g_signal_connect ((gpointer) filechooser_dialog, "update_preview",
02140 G_CALLBACK (on_filechooser_dialog_update_preview),
02141 NULL);
02142 g_signal_connect ((gpointer) filechooser_dialog_cancel_button, "clicked",
02143 G_CALLBACK (on_filechooser_dialog_cancel_button_clicked),
02144 NULL);
02145 g_signal_connect ((gpointer) filechooser_dialog_open_button, "clicked",
02146 G_CALLBACK (on_filechooser_dialog_open_button_clicked),
02147 NULL);
02148
02149
02150 GLADE_HOOKUP_OBJECT_NO_REF (filechooser_dialog, filechooser_dialog, "filechooser_dialog");
02151 GLADE_HOOKUP_OBJECT_NO_REF (filechooser_dialog, filechooser_dialog_vbox, "filechooser_dialog_vbox");
02152 GLADE_HOOKUP_OBJECT_NO_REF (filechooser_dialog, filechooser_dialog_action_area, "filechooser_dialog_action_area");
02153 GLADE_HOOKUP_OBJECT (filechooser_dialog, filechooser_dialog_cancel_button, "filechooser_dialog_cancel_button");
02154 GLADE_HOOKUP_OBJECT (filechooser_dialog, filechooser_dialog_open_button, "filechooser_dialog_open_button");
02155
02156 gtk_widget_grab_default (filechooser_dialog_open_button);
02157 return filechooser_dialog;
02158 }
02159