2 * gEDA - GNU Electronic Design Automation
3 * This file is a part of gerbv.
5 * Copyright (C) 2000-2003 Stefan Petersen (spe@stacken.kth.se)
9 * This program is free software; you can redistribute it and/or modify
10 * it under the terms of the GNU General Public License as published by
11 * the Free Software Foundation; either version 2 of the License, or
12 * (at your option) any later version.
14 * This program is distributed in the hope that it will be useful,
15 * but WITHOUT ANY WARRANTY; without even the implied warranty of
16 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17 * GNU General Public License for more details.
19 * You should have received a copy of the GNU General Public License
20 * along with this program; if not, write to the Free Software
21 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111 USA
25 \brief Header info for the GUI callback functions
30 CALLBACKS_SAVE_PROJECT_AS
,
31 CALLBACKS_SAVE_FILE_PS
,
32 CALLBACKS_SAVE_FILE_PDF
,
33 CALLBACKS_SAVE_FILE_SVG
,
34 CALLBACKS_SAVE_FILE_PNG
,
35 CALLBACKS_SAVE_FILE_RS274X
,
36 CALLBACKS_SAVE_FILE_DRILL
,
37 CALLBACKS_SAVE_LAYER_AS
,
39 } CALLBACKS_SAVE_FILE_TYPE
;
42 callbacks_new_activate (GtkMenuItem
*menuitem
,
46 callbacks_open_project_activate (GtkMenuItem
*menuitem
,
50 callbacks_open_layer_activate (GtkMenuItem
*menuitem
,
54 callbacks_revert_activate (GtkMenuItem
*menuitem
,
58 callbacks_save_layer_activate (GtkMenuItem
*menuitem
,
62 callbacks_save_project_activate (GtkMenuItem
*menuitem
,
66 callbacks_generic_save_activate (GtkMenuItem
*menuitem
,
70 callbacks_print_activate (GtkMenuItem
*menuitem
,
74 callbacks_quit_activate (GtkMenuItem
*menuitem
,
78 callbacks_zoom_in_activate (GtkMenuItem
*menuitem
,
82 callbacks_zoom_out_activate (GtkMenuItem
*menuitem
,
86 callbacks_fit_to_window_activate (GtkMenuItem
*menuitem
,
90 callbacks_analyze_active_gerbers_activate (GtkMenuItem
*menuitem
,
94 callbacks_analyze_active_drill_activate (GtkMenuItem
*menuitem
,
98 callbacks_control_gerber_options_activate (GtkMenuItem
*menuitem
,
102 callbacks_online_manual_activate (GtkMenuItem
*menuitem
,
106 callbacks_about_activate (GtkMenuItem
*menuitem
,
110 callbacks_bugs_activate (GtkMenuItem
*menuitem
,
114 callbacks_window_scroll_event(GtkWidget
*widget
, GdkEventScroll
*event
);
117 callbacks_window_key_release_event (GtkWidget
*widget
, GdkEventKey
*event
);
120 callbacks_window_key_press_event (GtkWidget
*widget
, GdkEventKey
*event
);
123 callbacks_drawingarea_button_release_event (GtkWidget
*widget
, GdkEventButton
*event
);
126 callbacks_drawingarea_button_press_event (GtkWidget
*widget
, GdkEventButton
*event
);
129 callbacks_scrollbar_button_released (GtkWidget
*widget
, GdkEventButton
*event
);
132 callbacks_scrollbar_button_pressed (GtkWidget
*widget
, GdkEventButton
*event
);
135 callbacks_drawingarea_motion_notify_event (GtkWidget
*widget
, GdkEventMotion
*event
);
138 callbacks_drawingarea_configure_event (GtkWidget
*widget
, GdkEventConfigure
*event
);
141 callbacks_drawingarea_expose_event (GtkWidget
*widget
, GdkEventExpose
*event
);
144 callbacks_handle_log_messages(const gchar
*log_domain
,
145 GLogLevelFlags log_level
,
146 const gchar
*message
,
150 callbacks_clear_messages_button_clicked (GtkButton
*button
, gpointer user_data
);
153 callbacks_statusbar_unit_combo_box_changed (GtkComboBox
*widget
, gpointer user_data
);
156 callbacks_sidepane_render_type_combo_box_changed (GtkComboBox
*widget
, gpointer user_data
);
159 callbacks_layer_tree_visibility_button_toggled (GtkCellRendererToggle
*cell_renderer
,
163 callbacks_drawingarea_leave_notify_event (GtkWidget
*widget
, GdkEventCrossing
*event
,
166 callbacks_drawingarea_enter_notify_event (GtkWidget
*widget
, GdkEventCrossing
*event
,
170 callbacks_update_statusbar(void);
173 callbacks_update_statusbar_measured_distance (gdouble dx
, gdouble dy
);
176 callbacks_update_layer_tree (void);
179 callbacks_layer_tree_button_press (GtkWidget
*widget
, GdkEventButton
*event
,
182 void callbacks_add_layer_button_clicked (GtkButton
*button
, gpointer user_data
);
184 void callbacks_remove_layer_button_clicked (GtkButton
*button
, gpointer user_data
);
186 void callbacks_move_layer_down_button_clicked (GtkButton
*button
, gpointer user_data
);
188 void callbacks_move_layer_up_clicked (GtkButton
*button
, gpointer user_data
);
190 void callbacks_layer_tree_row_inserted (GtkTreeModel
*tree_model
, GtkTreePath
*path
,
191 GtkTreeIter
*oIter
, gpointer user_data
);
193 callbacks_invert_layer_clicked (GtkButton
*button
, gpointer user_data
);
196 callbacks_display_object_properties_clicked (GtkButton
*button
, gpointer user_data
);
199 callbacks_benchmark_clicked (GtkButton
*button
, gpointer user_data
);
202 callbacks_edit_object_properties_clicked (GtkButton
*button
, gpointer user_data
);
205 callbacks_move_objects_clicked (GtkButton
*button
, gpointer user_data
);
208 callbacks_reduce_object_area_clicked (GtkButton
*button
, gpointer user_data
);
211 callbacks_delete_objects_clicked (GtkButton
*button
, gpointer user_data
);
214 callbacks_change_layer_orientation_clicked (GtkButton
*button
, gpointer user_data
);
217 callbacks_change_layer_color_clicked (GtkButton
*button
, gpointer user_data
);
220 callbacks_change_background_color_clicked (GtkButton
*button
, gpointer user_data
);
223 callbacks_reload_layer_clicked (GtkButton
*button
, gpointer user_data
);
226 callbacks_change_layer_format_clicked (GtkButton
*button
, gpointer user_data
);
228 void callbacks_update_scrollbar_limits (void);
230 void callbacks_update_scrollbar_positions (void);
232 void callbacks_hadjustment_value_changed (GtkAdjustment
*adjustment
,
235 void callbacks_vadjustment_value_changed (GtkAdjustment
*adjustment
,
238 void callbacks_force_expose_event_for_screen (void);
241 callbacks_change_tool (GtkButton
*button
, gpointer user_data
);
244 callbacks_switch_to_correct_cursor (void);
247 callbacks_update_selected_object_message (gboolean userTriedToSelect
);
250 callbacks_create_window_surface (GtkWidget
*widget
);