* rework export svg/pdf/ps functionality to export images with 1:1 scale. Previously...
[geda-gerbv.git] / src / callbacks.h
blobc5de096fd518215013502d285d56ab3976dd6f1c
1 /*
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)
7 * $Id$
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
24 /** \file callbacks.h
25 \brief Header info for the GUI callback functions
26 \ingroup gerbv
29 enum {
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;
41 void
42 callbacks_new_activate (GtkMenuItem *menuitem,
43 gpointer user_data);
45 void
46 callbacks_open_project_activate (GtkMenuItem *menuitem,
47 gpointer user_data);
49 void
50 callbacks_open_layer_activate (GtkMenuItem *menuitem,
51 gpointer user_data);
53 void
54 callbacks_revert_activate (GtkMenuItem *menuitem,
55 gpointer user_data);
57 void
58 callbacks_save_layer_activate (GtkMenuItem *menuitem,
59 gpointer user_data);
61 void
62 callbacks_save_project_activate (GtkMenuItem *menuitem,
63 gpointer user_data);
65 void
66 callbacks_generic_save_activate (GtkMenuItem *menuitem,
67 gpointer user_data);
69 void
70 callbacks_print_activate (GtkMenuItem *menuitem,
71 gpointer user_data);
73 void
74 callbacks_quit_activate (GtkMenuItem *menuitem,
75 gpointer user_data);
77 void
78 callbacks_zoom_in_activate (GtkMenuItem *menuitem,
79 gpointer user_data);
81 void
82 callbacks_zoom_out_activate (GtkMenuItem *menuitem,
83 gpointer user_data);
85 void
86 callbacks_fit_to_window_activate (GtkMenuItem *menuitem,
87 gpointer user_data);
89 void
90 callbacks_analyze_active_gerbers_activate (GtkMenuItem *menuitem,
91 gpointer user_data);
93 void
94 callbacks_analyze_active_drill_activate (GtkMenuItem *menuitem,
95 gpointer user_data);
97 void
98 callbacks_control_gerber_options_activate (GtkMenuItem *menuitem,
99 gpointer user_data);
101 void
102 callbacks_online_manual_activate (GtkMenuItem *menuitem,
103 gpointer user_data);
105 void
106 callbacks_about_activate (GtkMenuItem *menuitem,
107 gpointer user_data);
109 void
110 callbacks_bugs_activate (GtkMenuItem *menuitem,
111 gpointer user_data);
113 gboolean
114 callbacks_window_scroll_event(GtkWidget *widget, GdkEventScroll *event);
116 gboolean
117 callbacks_window_key_release_event (GtkWidget *widget, GdkEventKey *event);
119 gboolean
120 callbacks_window_key_press_event (GtkWidget *widget, GdkEventKey *event);
122 gboolean
123 callbacks_drawingarea_button_release_event (GtkWidget *widget, GdkEventButton *event);
125 gboolean
126 callbacks_drawingarea_button_press_event (GtkWidget *widget, GdkEventButton *event);
128 gboolean
129 callbacks_scrollbar_button_released (GtkWidget *widget, GdkEventButton *event);
131 gboolean
132 callbacks_scrollbar_button_pressed (GtkWidget *widget, GdkEventButton *event);
134 gboolean
135 callbacks_drawingarea_motion_notify_event (GtkWidget *widget, GdkEventMotion *event);
137 gboolean
138 callbacks_drawingarea_configure_event (GtkWidget *widget, GdkEventConfigure *event);
140 gboolean
141 callbacks_drawingarea_expose_event (GtkWidget *widget, GdkEventExpose *event);
143 void
144 callbacks_handle_log_messages(const gchar *log_domain,
145 GLogLevelFlags log_level,
146 const gchar *message,
147 gpointer user_data);
149 void
150 callbacks_clear_messages_button_clicked (GtkButton *button, gpointer user_data);
152 void
153 callbacks_statusbar_unit_combo_box_changed (GtkComboBox *widget, gpointer user_data);
155 void
156 callbacks_sidepane_render_type_combo_box_changed (GtkComboBox *widget, gpointer user_data);
158 void
159 callbacks_layer_tree_visibility_button_toggled (GtkCellRendererToggle *cell_renderer,
160 gchar *path,
161 gpointer user_data);
162 gboolean
163 callbacks_drawingarea_leave_notify_event (GtkWidget *widget, GdkEventCrossing *event,
164 gpointer user_data);
165 gboolean
166 callbacks_drawingarea_enter_notify_event (GtkWidget *widget, GdkEventCrossing *event,
167 gpointer user_data);
169 void
170 callbacks_update_statusbar(void);
172 void
173 callbacks_update_statusbar_measured_distance (gdouble dx, gdouble dy);
175 void
176 callbacks_update_layer_tree (void);
178 gboolean
179 callbacks_layer_tree_button_press (GtkWidget *widget, GdkEventButton *event,
180 gpointer user_data);
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);
192 void
193 callbacks_invert_layer_clicked (GtkButton *button, gpointer user_data);
195 void
196 callbacks_display_object_properties_clicked (GtkButton *button, gpointer user_data);
198 void
199 callbacks_benchmark_clicked (GtkButton *button, gpointer user_data);
201 void
202 callbacks_edit_object_properties_clicked (GtkButton *button, gpointer user_data);
204 void
205 callbacks_move_objects_clicked (GtkButton *button, gpointer user_data);
207 void
208 callbacks_reduce_object_area_clicked (GtkButton *button, gpointer user_data);
210 void
211 callbacks_delete_objects_clicked (GtkButton *button, gpointer user_data);
213 void
214 callbacks_change_layer_orientation_clicked (GtkButton *button, gpointer user_data);
216 void
217 callbacks_change_layer_color_clicked (GtkButton *button, gpointer user_data);
219 void
220 callbacks_change_background_color_clicked (GtkButton *button, gpointer user_data);
222 void
223 callbacks_reload_layer_clicked (GtkButton *button, gpointer user_data);
225 void
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,
233 gpointer user_data);
235 void callbacks_vadjustment_value_changed (GtkAdjustment *adjustment,
236 gpointer user_data);
238 void callbacks_force_expose_event_for_screen (void);
240 void
241 callbacks_change_tool (GtkButton *button, gpointer user_data);
243 void
244 callbacks_switch_to_correct_cursor (void);
246 void
247 callbacks_update_selected_object_message (gboolean userTriedToSelect);
249 cairo_surface_t *
250 callbacks_create_window_surface (GtkWidget *widget);