Remove the o_redraw_all_fast() function, as its not any faster now.
[geda-gaf/peter-b.git] / gschem / include / prototype.h
blob70763501df8c34c8d1b71b42ef4bea14f6b1098a
1 /* $Id$ */
3 /* gschem_toplevel.c */
4 GSCHEM_TOPLEVEL *gschem_toplevel_new();
5 /* a_pan.c */
6 void a_pan_general(GSCHEM_TOPLEVEL *w_current, double world_cx, double world_cy,
7 double relativ_zoom_factor, int flags);
8 void a_pan(GSCHEM_TOPLEVEL *w_current, int x, int y);
9 void a_pan_mouse(GSCHEM_TOPLEVEL *w_current, int diff_x, int diff_y);
10 /* a_zoom.c */
11 void a_zoom(GSCHEM_TOPLEVEL *w_current, int dir, int selected_from, int pan_flags);
12 void a_zoom_extents(GSCHEM_TOPLEVEL *w_current, OBJECT *o_current, int pan_flags);
13 void a_zoom_box(GSCHEM_TOPLEVEL *w_current, int pan_flags);
14 void a_zoom_box_start(GSCHEM_TOPLEVEL *w_current, int x, int y);
15 void a_zoom_box_end(GSCHEM_TOPLEVEL *w_current, int x, int y);
16 void a_zoom_box_rubberband(GSCHEM_TOPLEVEL *w_current, int x, int y);
17 void correct_aspect(GSCHEM_TOPLEVEL *w_current);
18 /* g_funcs.c */
19 SCM g_funcs_print(SCM filename);
20 SCM g_funcs_postscript(SCM filename);
21 SCM g_funcs_image(SCM filename);
22 SCM g_funcs_exit(void);
23 SCM g_funcs_log(SCM msg);
24 SCM g_funcs_msg(SCM msg);
25 SCM g_funcs_confirm(SCM msg);
26 SCM g_funcs_filesel(SCM msg, SCM templ, SCM flags);
27 SCM g_funcs_browse_wiki(SCM wikiname);
28 SCM g_funcs_use_rc_values(void);
29 SCM get_selected_component_attributes(GSCHEM_TOPLEVEL *w_current);
30 SCM get_selected_filename(GSCHEM_TOPLEVEL *w_current);
31 /* g_hook.c */
32 SCM g_make_attrib_smob_list(GSCHEM_TOPLEVEL *w_current, OBJECT *curr_object);
33 SCM g_set_attrib_value_x(SCM attrib_smob, SCM scm_value);
34 SCM g_add_attrib(SCM object, SCM attrib_name,
35 SCM attrib_value, SCM scm_vis, SCM scm_show);
36 SCM g_get_pin_ends(SCM object);
37 SCM
38 g_set_attrib_text_properties(SCM attrib_smob, SCM scm_colorname, SCM scm_size,
39 SCM scm_alignment, SCM scm_rotation, SCM scm_x,
40 SCM scm_y);
41 SCM g_get_object_bounds (SCM object_smob, SCM scm_exclude_attribs, SCM scm_exclude_object_type);
42 SCM g_get_object_pins (SCM object_smob);
43 SCM g_add_component(SCM page_smob, SCM scm_comp_name, SCM scm_x, SCM scm_y,
44 SCM scm_angle, SCM scm_selectable, SCM scm_mirror);
45 SCM g_get_objects_in_page(SCM page_smob);
46 /* g_keys.c */
47 int g_keys_execute(GSCHEM_TOPLEVEL *w_current, int state, int keyval);
48 GArray *g_keys_dump_keymap (void);
49 SCM g_keys_file_new(void);
50 SCM g_keys_file_new_window(void);
51 SCM g_keys_file_open(void);
52 SCM g_keys_file_script(void);
53 SCM g_keys_file_save(void);
54 SCM g_keys_file_save_as(void);
55 SCM g_keys_file_save_all(void);
56 SCM g_keys_file_print(void);
57 SCM g_keys_file_write_png(void);
58 SCM g_keys_file_close(void);
59 SCM g_keys_file_quit(void);
60 SCM g_keys_edit_undo(void);
61 SCM g_keys_edit_redo(void);
62 SCM g_keys_edit_select(void);
63 SCM g_keys_edit_copy(void);
64 SCM g_keys_edit_copy_hotkey(void);
65 SCM g_keys_edit_mcopy(void);
66 SCM g_keys_edit_mcopy_hotkey(void);
67 SCM g_keys_edit_move(void);
68 SCM g_keys_edit_move_hotkey(void);
69 SCM g_keys_edit_delete(void);
70 SCM g_keys_edit_rotate_90(void);
71 SCM g_keys_edit_rotate_90_hotkey(void);
72 SCM g_keys_edit_mirror(void);
73 SCM g_keys_edit_mirror_hotkey(void);
74 SCM g_keys_edit_slot(void);
75 SCM g_keys_edit_color(void);
76 SCM g_keys_edit_edit(void);
77 SCM g_keys_edit_text(void);
78 SCM g_keys_edit_lock(void);
79 SCM g_keys_edit_unlock(void);
80 SCM g_keys_edit_linetype(void);
81 SCM g_keys_edit_filltype(void);
82 SCM g_keys_edit_translate(void);
83 SCM g_keys_edit_embed(void);
84 SCM g_keys_edit_unembed(void);
85 SCM g_keys_edit_update(void);
86 SCM g_keys_edit_show_hidden(void);
87 SCM g_keys_edit_make_visible(void);
88 SCM g_keys_edit_find(void);
89 SCM g_keys_edit_show_text(void);
90 SCM g_keys_edit_hide_text(void);
91 SCM g_keys_edit_autonumber_text(void);
92 SCM g_keys_buffer_copy1(void);
93 SCM g_keys_buffer_copy2(void);
94 SCM g_keys_buffer_copy3(void);
95 SCM g_keys_buffer_copy4(void);
96 SCM g_keys_buffer_copy5(void);
97 SCM g_keys_buffer_cut1(void);
98 SCM g_keys_buffer_cut2(void);
99 SCM g_keys_buffer_cut3(void);
100 SCM g_keys_buffer_cut4(void);
101 SCM g_keys_buffer_cut5(void);
102 SCM g_keys_buffer_paste1(void);
103 SCM g_keys_buffer_paste2(void);
104 SCM g_keys_buffer_paste3(void);
105 SCM g_keys_buffer_paste4(void);
106 SCM g_keys_buffer_paste5(void);
107 SCM g_keys_buffer_paste1_hotkey(void);
108 SCM g_keys_buffer_paste2_hotkey(void);
109 SCM g_keys_buffer_paste3_hotkey(void);
110 SCM g_keys_buffer_paste4_hotkey(void);
111 SCM g_keys_buffer_paste5_hotkey(void);
112 SCM g_keys_view_redraw(void);
113 SCM g_keys_view_zoom_full(void);
114 SCM g_keys_view_zoom_extents(void);
115 SCM g_keys_view_zoom_in(void);
116 SCM g_keys_view_zoom_out(void);
117 SCM g_keys_view_zoom_in_hotkey(void);
118 SCM g_keys_view_zoom_out_hotkey(void);
119 SCM g_keys_view_zoom_box(void);
120 SCM g_keys_view_zoom_box_hotkey(void);
121 SCM g_keys_view_pan(void);
122 SCM g_keys_view_pan_left(void);
123 SCM g_keys_view_pan_right(void);
124 SCM g_keys_view_pan_up(void);
125 SCM g_keys_view_pan_down(void);
126 SCM g_keys_view_pan_hotkey(void);
127 SCM g_keys_view_update_cues(void);
128 SCM g_keys_page_manager(void);
129 SCM g_keys_page_next(void);
130 SCM g_keys_page_prev(void);
131 SCM g_keys_page_new(void);
132 SCM g_keys_page_close(void);
133 SCM g_keys_page_revert(void);
134 SCM g_keys_page_discard(void);
135 SCM g_keys_page_print(void);
136 SCM g_keys_add_component(void);
137 SCM g_keys_add_attribute(void);
138 SCM g_keys_add_attribute_hotkey(void);
139 SCM g_keys_add_net(void);
140 SCM g_keys_add_net_hotkey(void);
141 SCM g_keys_add_bus(void);
142 SCM g_keys_add_bus_hotkey(void);
143 SCM g_keys_add_text(void);
144 SCM g_keys_add_line(void);
145 SCM g_keys_add_line_hotkey(void);
146 SCM g_keys_add_box(void);
147 SCM g_keys_add_box_hotkey(void);
148 SCM g_keys_add_picture(void);
149 SCM g_keys_add_picture_hotkey(void);
150 SCM g_keys_add_circle(void);
151 SCM g_keys_add_circle_hotkey(void);
152 SCM g_keys_add_arc(void);
153 SCM g_keys_add_arc_hotkey(void);
154 SCM g_keys_add_pin(void);
155 SCM g_keys_add_pin_hotkey(void);
156 SCM g_keys_hierarchy_down_schematic(void);
157 SCM g_keys_hierarchy_down_symbol(void);
158 SCM g_keys_hierarchy_up(void);
159 SCM g_keys_hierarchy_documentation(void);
160 SCM g_keys_attributes_attach(void);
161 SCM g_keys_attributes_detach(void);
162 SCM g_keys_attributes_show_name(void);
163 SCM g_keys_attributes_show_value(void);
164 SCM g_keys_attributes_show_both(void);
165 SCM g_keys_attributes_visibility_toggle(void);
166 SCM g_keys_script_console(void);
167 SCM g_keys_options_text_size(void);
168 SCM g_keys_options_afeedback(void);
169 SCM g_keys_options_grid(void);
170 SCM g_keys_options_snap(void);
171 SCM g_keys_options_snap_size(void);
172 SCM g_keys_options_scale_up_snap_size(void);
173 SCM g_keys_options_scale_down_snap_size(void);
174 SCM g_keys_options_rubberband(void);
175 SCM g_keys_options_show_log_window(void);
176 SCM g_keys_options_show_coord_window(void);
177 SCM g_keys_misc(void);
178 SCM g_keys_misc2(void);
179 SCM g_keys_misc3(void);
180 SCM g_keys_help_about(void);
181 SCM g_keys_help_hotkeys(void);
182 SCM g_keys_cancel(void);
183 SCM g_get_selected_filename(void);
184 SCM g_get_selected_component_attributes(void);
185 /* g_rc.c */
186 void g_rc_parse_gtkrc();
187 SCM g_rc_gschem_version(SCM version);
188 SCM g_rc_override_net_color(SCM index, SCM color, SCM outline_color, SCM ps_color, SCM ir, SCM ig, SCM ib);
189 SCM g_rc_override_bus_color(SCM index, SCM color, SCM outline_color, SCM ps_color, SCM ir, SCM ig, SCM ib);
190 SCM g_rc_override_pin_color(SCM index, SCM color, SCM outline_color, SCM ps_color, SCM ir, SCM ig, SCM ib);
191 SCM g_rc_attribute_color(SCM index, SCM color, SCM outline_color, SCM ps_color, SCM ir, SCM ig, SCM ib);
192 SCM g_rc_detachedattr_color(SCM index, SCM color, SCM outline_color, SCM ps_color, SCM ir, SCM ig, SCM ib);
193 SCM g_rc_text_color(SCM index, SCM color, SCM outline_color, SCM ps_color, SCM ir, SCM ig, SCM ib);
194 SCM g_rc_net_color(SCM index, SCM color, SCM outline_color, SCM ps_color, SCM ir, SCM ig, SCM ib);
195 SCM g_rc_bus_color(SCM index, SCM color, SCM outline_color, SCM ps_color, SCM ir, SCM ig, SCM ib);
196 SCM g_rc_pin_color(SCM index, SCM color, SCM outline_color, SCM ps_color, SCM ir, SCM ig, SCM ib);
197 SCM g_rc_graphic_color(SCM index, SCM color, SCM outline_color, SCM ps_color, SCM ir, SCM ig, SCM ib);
198 SCM g_rc_grid_color(SCM index, SCM color, SCM outline_color, SCM ps_color, SCM ir, SCM ig, SCM ib);
199 SCM g_rc_background_color(SCM index, SCM color, SCM outline_color, SCM ps_color, SCM ir, SCM ig, SCM ib);
200 SCM g_rc_select_color(SCM index, SCM color, SCM outline_color, SCM ps_color, SCM ir, SCM ig, SCM ib);
201 SCM g_rc_boundingbox_color(SCM index, SCM color, SCM outline_color, SCM ps_color, SCM ir, SCM ig, SCM ib);
202 SCM g_rc_zoom_box_color(SCM index, SCM color, SCM outline_color, SCM ps_color, SCM ir, SCM ig, SCM ib);
203 SCM g_rc_net_endpoint_color(SCM index, SCM color, SCM outline_color, SCM ps_color, SCM ir, SCM ig, SCM ib);
204 SCM g_rc_junction_color(SCM index, SCM color, SCM outline_color, SCM ps_color, SCM ir, SCM ig, SCM ib);
205 SCM g_rc_logic_bubble_color(SCM index, SCM color, SCM outline_color, SCM ps_color, SCM ir, SCM ig, SCM ib);
206 SCM g_rc_lock_color(SCM index, SCM color, SCM outline_color, SCM ps_color, SCM ir, SCM ig, SCM ib);
207 SCM g_rc_output_color_background(SCM index, SCM color, SCM outline_color, SCM ps_color, SCM ir, SCM ig, SCM ib);
208 SCM g_rc_stroke_color(SCM index, SCM color, SCM outline_color, SCM ps_color, SCM ir, SCM ig, SCM ib);
209 SCM g_rc_freestyle_color(SCM index, SCM color, SCM outline_color, SCM ps_color, SCM ir, SCM ig, SCM ib);
210 SCM g_rc_net_endpoint_mode(SCM mode);
211 SCM g_rc_net_midpoint_mode(SCM mode);
212 SCM g_rc_net_style(SCM mode);
213 SCM g_rc_bus_style(SCM mode);
214 SCM g_rc_pin_style(SCM mode);
215 SCM g_rc_line_style(SCM mode);
216 SCM g_rc_action_feedback_mode(SCM mode);
217 SCM g_rc_zoom_with_pan(SCM mode);
218 SCM g_rc_text_feedback(SCM mode);
219 SCM g_rc_text_display_zoomfactor(SCM zoomfactor);
220 SCM g_rc_scrollbar_update(SCM mode);
221 SCM g_rc_object_clipping(SCM mode);
222 SCM g_rc_logging(SCM mode);
223 SCM g_rc_embed_components(SCM mode);
224 SCM g_rc_text_size(SCM size);
225 SCM g_rc_text_caps_style(SCM mode);
226 SCM g_rc_postscript_font_scale(SCM scale);
227 SCM g_rc_snap_size(SCM size);
228 SCM g_rc_logging_destination(SCM mode);
229 SCM g_rc_attribute_name(SCM path);
230 SCM g_rc_scrollbars(SCM mode);
231 SCM g_rc_paper_size(SCM width, SCM height);
232 SCM g_rc_paper_sizes(SCM papername, SCM scm_width, SCM scm_height);
233 SCM g_rc_output_text(SCM mode);
234 SCM g_rc_output_type(SCM mode);
235 SCM g_rc_output_orientation(SCM mode);
236 SCM g_rc_image_color(SCM mode);
237 SCM g_rc_image_size(SCM width, SCM height);
238 SCM g_rc_output_color(SCM mode);
239 SCM g_rc_output_capstyle(SCM mode);
240 SCM g_rc_log_window(SCM mode);
241 SCM g_rc_log_window_type(SCM mode);
242 SCM g_rc_third_button(SCM mode);
243 SCM g_rc_middle_button(SCM mode);
244 SCM g_rc_net_consolidate(SCM mode);
245 SCM g_rc_file_preview(SCM mode);
246 SCM g_rc_enforce_hierarchy(SCM mode);
247 SCM g_rc_text_origin_marker(SCM mode);
248 SCM g_rc_fast_mousepan(SCM mode);
249 SCM g_rc_raise_dialog_boxes_on_expose(SCM mode);
250 SCM g_rc_continue_component_place(SCM mode);
251 SCM g_rc_undo_levels(SCM levels);
252 SCM g_rc_undo_control(SCM mode);
253 SCM g_rc_undo_type(SCM mode);
254 SCM g_rc_undo_panzoom(SCM mode);
255 SCM g_rc_draw_grips(SCM mode);
256 SCM g_rc_netconn_rubberband(SCM mode);
257 SCM g_rc_sort_component_library(SCM mode);
258 SCM g_rc_add_menu(SCM menu_name, SCM menu_items);
259 SCM g_rc_window_size(SCM width, SCM height);
260 SCM g_rc_warp_cursor(SCM mode);
261 SCM g_rc_toolbars(SCM mode);
262 SCM g_rc_handleboxes(SCM mode);
263 SCM g_rc_setpagedevice_orientation(SCM mode);
264 SCM g_rc_setpagedevice_pagesize(SCM mode);
265 SCM g_rc_bus_ripper_size(SCM size);
266 SCM g_rc_bus_ripper_type(SCM mode);
267 SCM g_rc_bus_ripper_rotation(SCM mode);
268 SCM g_rc_force_boundingbox(SCM mode);
269 SCM g_rc_grid_dot_size(SCM dotsize);
270 SCM g_rc_grid_mode(SCM mode);
271 SCM g_rc_grid_fixed_threshold(SCM spacing);
272 SCM g_rc_output_vector_threshold(SCM numlines);
273 SCM g_rc_add_attribute_offset(SCM offset);
274 SCM g_rc_auto_save_interval(SCM seconds);
275 SCM g_rc_drag_can_move(SCM mode);
276 SCM g_rc_mousepan_gain(SCM mode);
277 SCM g_rc_keyboardpan_gain(SCM mode);
278 SCM g_rc_print_command(SCM mode);
279 SCM g_rc_select_slack_pixels(SCM pixels);
280 /* g_register.c */
281 void g_register_funcs(void);
282 /* globals.c */
283 /* gschem.c */
284 typedef void (*gschem_atexit_func)(gpointer data);
285 void gschem_atexit(gschem_atexit_func func, gpointer data);
286 void gschem_quit(void);
287 void main_prog(void *closure, int argc, char *argv[]);
288 int main(int argc, char *argv[]);
289 /* i_basic.c */
290 void i_show_state(GSCHEM_TOPLEVEL *w_current, const char *message);
291 void i_set_state(GSCHEM_TOPLEVEL *w_current, enum x_states newstate);
292 void i_set_state_msg(GSCHEM_TOPLEVEL *w_current, enum x_states newstate, const char *message);
293 void i_update_middle_button(GSCHEM_TOPLEVEL *w_current, void (*func_ptr)(gpointer, guint, GtkWidget*), const char *string);
294 void i_update_toolbar(GSCHEM_TOPLEVEL *w_current);
295 void i_update_menus(GSCHEM_TOPLEVEL *w_current);
296 void i_set_filename(GSCHEM_TOPLEVEL *w_current, const gchar *string);
297 void i_set_grid(GSCHEM_TOPLEVEL *w_current, int visible_grid);
298 /* i_callbacks.c */
299 void i_callback_file_new(gpointer data, guint callback_action, GtkWidget *widget);
300 void i_callback_toolbar_file_new(GtkWidget *widget, gpointer data);
301 void i_callback_file_new_window(gpointer data, guint callback_action, GtkWidget *widget);
302 void i_callback_file_open(gpointer data, guint callback_action, GtkWidget *widget);
303 void i_callback_toolbar_file_open(GtkWidget *widget, gpointer data);
304 void i_callback_file_script(gpointer data, guint callback_action, GtkWidget *widget);
305 void i_callback_file_save(gpointer data, guint callback_action, GtkWidget *widget);
306 void i_callback_toolbar_file_save(GtkWidget *widget, gpointer data);
307 void i_callback_file_save_all(gpointer data, guint callback_action, GtkWidget *widget);
308 void i_callback_file_save_as(gpointer data, guint callback_action, GtkWidget *widget);
309 void i_callback_file_print(gpointer data, guint callback_action, GtkWidget *widget);
310 void i_callback_file_write_png(gpointer data, guint callback_action, GtkWidget *widget);
311 void i_callback_file_close(gpointer data, guint callback_action, GtkWidget *widget);
312 int i_callback_close(gpointer data, guint callback_action, GtkWidget *widget);
313 void i_callback_file_quit(gpointer data, guint callback_action, GtkWidget *widget);
314 void i_callback_edit_undo(gpointer data, guint callback_action, GtkWidget *widget);
315 void i_callback_toolbar_edit_undo(GtkWidget *widget, gpointer data);
316 void i_callback_edit_redo(gpointer data, guint callback_action, GtkWidget *widget);
317 void i_callback_toolbar_edit_redo(GtkWidget *widget, gpointer data);
318 void i_callback_edit_select(gpointer data, guint callback_action, GtkWidget *widget);
319 void i_callback_toolbar_edit_select(GtkWidget *widget, gpointer data);
320 void i_callback_edit_copy(gpointer data, guint callback_action, GtkWidget *widget);
321 void i_callback_edit_copy_hotkey(gpointer data, guint callback_action, GtkWidget *widget);
322 void i_callback_edit_mcopy(gpointer data, guint callback_action, GtkWidget *widget);
323 void i_callback_edit_mcopy_hotkey(gpointer data, guint callback_action, GtkWidget *widget);
324 void i_callback_edit_move(gpointer data, guint callback_action, GtkWidget *widget);
325 void i_callback_edit_move_hotkey(gpointer data, guint callback_action, GtkWidget *widget);
326 void i_callback_edit_delete(gpointer data, guint callback_action, GtkWidget *widget);
327 void i_callback_edit_edit(gpointer data, guint callback_action, GtkWidget *widget);
328 void i_callback_edit_text(gpointer data, guint callback_action, GtkWidget *widget);
329 void i_callback_edit_slot(gpointer data, guint callback_action, GtkWidget *widget);
330 void i_callback_edit_color(gpointer data, guint callback_action, GtkWidget *widget);
331 void i_callback_edit_rotate_90(gpointer data, guint callback_action, GtkWidget *widget);
332 void i_callback_edit_rotate_90_hotkey(gpointer data, guint callback_action, GtkWidget *widget);
333 void i_callback_edit_mirror(gpointer data, guint callback_action, GtkWidget *widget);
334 void i_callback_edit_mirror_hotkey(gpointer data, guint callback_action, GtkWidget *widget);
335 void i_callback_edit_lock(gpointer data, guint callback_action, GtkWidget *widget);
336 void i_callback_edit_unlock(gpointer data, guint callback_action, GtkWidget *widget);
337 void i_callback_edit_translate(gpointer data, guint callback_action, GtkWidget *widget);
338 void i_callback_edit_embed(gpointer data, guint callback_action, GtkWidget *widget);
339 void i_callback_edit_unembed(gpointer data, guint callback_action, GtkWidget *widget);
340 void i_callback_edit_update(gpointer data, guint callback_action, GtkWidget *widget);
341 void i_callback_edit_show_hidden(gpointer data, guint callback_action, GtkWidget *widget);
342 void i_callback_edit_make_visible(gpointer data, guint callback_action, GtkWidget *widget);
343 void i_callback_edit_find(gpointer data, guint callback_action, GtkWidget *widget);
344 void i_callback_edit_hide_text(gpointer data, guint callback_action, GtkWidget *widget);
345 void i_callback_edit_show_text(gpointer data, guint callback_action, GtkWidget *widget);
346 void i_callback_edit_autonumber_text(gpointer data, guint callback_action, GtkWidget *widget);
347 void i_callback_edit_linetype(gpointer data, guint callback_action, GtkWidget *widget);
348 void i_callback_edit_filltype(gpointer data, guint callback_action, GtkWidget *widget);
349 void i_callback_view_redraw(gpointer data, guint callback_action, GtkWidget *widget);
350 void i_callback_view_zoom_full(gpointer data, guint callback_action, GtkWidget *widget);
351 void i_callback_view_zoom_extents(gpointer data, guint callback_action, GtkWidget *widget);
352 void i_callback_view_zoom_box(gpointer data, guint callback_action, GtkWidget *widget);
353 void i_callback_view_zoom_box_hotkey(gpointer data, guint callback_action, GtkWidget *widget);
354 void i_callback_view_zoom_in(gpointer data, guint callback_action, GtkWidget *widget);
355 void i_callback_view_zoom_out(gpointer data, guint callback_action, GtkWidget *widget);
356 void i_callback_view_zoom_in_hotkey(gpointer data, guint callback_action, GtkWidget *widget);
357 void i_callback_view_zoom_out_hotkey(gpointer data, guint callback_action, GtkWidget *widget);
358 void i_callback_view_pan(gpointer data, guint callback_action, GtkWidget *widget);
359 void i_callback_view_pan_left(gpointer data, guint callback_action, GtkWidget *widget);
360 void i_callback_view_pan_right(gpointer data, guint callback_action, GtkWidget *widget);
361 void i_callback_view_pan_up(gpointer data, guint callback_action, GtkWidget *widget);
362 void i_callback_view_pan_down(gpointer data, guint callback_action, GtkWidget *widget);
363 void i_callback_view_pan_hotkey(gpointer data, guint callback_action, GtkWidget *widget);
364 void i_callback_view_update_cues(gpointer data, guint callback_action, GtkWidget *widget);
365 void i_callback_page_manager(gpointer data, guint callback_action, GtkWidget *widget);
366 void i_callback_page_next(gpointer data, guint callback_action, GtkWidget *widget);
367 void i_callback_page_prev(gpointer data, guint callback_action, GtkWidget *widget);
368 void i_callback_page_new(gpointer data, guint callback_action, GtkWidget *widget);
369 void i_callback_page_close(gpointer data, guint callback_action, GtkWidget *widget);
370 void i_callback_page_revert(gpointer data, guint callback_action, GtkWidget *widget);
371 void i_callback_page_discard(gpointer data, guint callback_action, GtkWidget *widget);
372 void i_callback_page_print(gpointer data, guint callback_action, GtkWidget *widget);
373 void i_callback_buffer_copy1(gpointer data, guint callback_action, GtkWidget *widget);
374 void i_callback_buffer_copy2(gpointer data, guint callback_action, GtkWidget *widget);
375 void i_callback_buffer_copy3(gpointer data, guint callback_action, GtkWidget *widget);
376 void i_callback_buffer_copy4(gpointer data, guint callback_action, GtkWidget *widget);
377 void i_callback_buffer_copy5(gpointer data, guint callback_action, GtkWidget *widget);
378 void i_callback_buffer_cut1(gpointer data, guint callback_action, GtkWidget *widget);
379 void i_callback_buffer_cut2(gpointer data, guint callback_action, GtkWidget *widget);
380 void i_callback_buffer_cut3(gpointer data, guint callback_action, GtkWidget *widget);
381 void i_callback_buffer_cut4(gpointer data, guint callback_action, GtkWidget *widget);
382 void i_callback_buffer_cut5(gpointer data, guint callback_action, GtkWidget *widget);
383 void i_callback_buffer_paste1(gpointer data, guint callback_action, GtkWidget *widget);
384 void i_callback_buffer_paste2(gpointer data, guint callback_action, GtkWidget *widget);
385 void i_callback_buffer_paste3(gpointer data, guint callback_action, GtkWidget *widget);
386 void i_callback_buffer_paste4(gpointer data, guint callback_action, GtkWidget *widget);
387 void i_callback_buffer_paste5(gpointer data, guint callback_action, GtkWidget *widget);
388 void i_callback_buffer_paste1_hotkey(gpointer data, guint callback_action, GtkWidget *widget);
389 void i_callback_buffer_paste2_hotkey(gpointer data, guint callback_action, GtkWidget *widget);
390 void i_callback_buffer_paste3_hotkey(gpointer data, guint callback_action, GtkWidget *widget);
391 void i_callback_buffer_paste4_hotkey(gpointer data, guint callback_action, GtkWidget *widget);
392 void i_callback_buffer_paste5_hotkey(gpointer data, guint callback_action, GtkWidget *widget);
393 void i_callback_add_component(gpointer data, guint callback_action, GtkWidget *widget);
394 void i_callback_toolbar_add_component(GtkWidget *widget, gpointer data);
395 void i_callback_add_attribute(gpointer data, guint callback_action, GtkWidget *widget);
396 void i_callback_add_attribute_hotkey(gpointer data, guint callback_action, GtkWidget *widget);
397 void i_callback_add_net(gpointer data, guint callback_action, GtkWidget *widget);
398 void i_callback_add_net_hotkey(gpointer data, guint callback_action, GtkWidget *widget);
399 void i_callback_toolbar_add_net(GtkWidget *widget, gpointer data);
400 void i_callback_add_bus(gpointer data, guint callback_action, GtkWidget *widget);
401 void i_callback_add_bus_hotkey(gpointer data, guint callback_action, GtkWidget *widget);
402 void i_callback_toolbar_add_bus(GtkWidget *widget, gpointer data);
403 void i_callback_add_text(gpointer data, guint callback_action, GtkWidget *widget);
404 void i_callback_toolbar_add_text(GtkWidget *widget, gpointer data);
405 void i_callback_add_line(gpointer data, guint callback_action, GtkWidget *widget);
406 void i_callback_add_line_hotkey(gpointer data, guint callback_action, GtkWidget *widget);
407 void i_callback_add_box(gpointer data, guint callback_action, GtkWidget *widget);
408 void i_callback_add_box_hotkey(gpointer data, guint callback_action, GtkWidget *widget);
409 void i_callback_add_picture(gpointer data, guint callback_action, GtkWidget *widget);
410 void i_callback_add_picture_hotkey(gpointer data, guint callback_action, GtkWidget *widget);
411 void i_callback_add_circle(gpointer data, guint callback_action, GtkWidget *widget);
412 void i_callback_add_circle_hotkey(gpointer data, guint callback_action, GtkWidget *widget);
413 void i_callback_add_arc(gpointer data, guint callback_action, GtkWidget *widget);
414 void i_callback_add_arc_hotkey(gpointer data, guint callback_action, GtkWidget *widget);
415 void i_callback_add_pin(gpointer data, guint callback_action, GtkWidget *widget);
416 void i_callback_add_pin_hotkey(gpointer data, guint callback_action, GtkWidget *widget);
417 void i_callback_hierarchy_down_schematic(gpointer data, guint callback_action, GtkWidget *widget);
418 void i_callback_hierarchy_down_symbol(gpointer data, guint callback_action, GtkWidget *widget);
419 void i_callback_hierarchy_up(gpointer data, guint callback_action, GtkWidget *widget);
420 void i_callback_hierarchy_documentation(gpointer data, guint callback_action, GtkWidget *widget);
421 void i_callback_attributes_attach(gpointer data, guint callback_action, GtkWidget *widget);
422 void i_callback_attributes_detach(gpointer data, guint callback_action, GtkWidget *widget);
423 void i_callback_attributes_show_name(gpointer data, guint callback_action, GtkWidget *widget);
424 void i_callback_attributes_show_value(gpointer data, guint callback_action, GtkWidget *widget);
425 void i_callback_attributes_show_both(gpointer data, guint callback_action, GtkWidget *widget);
426 void i_callback_attributes_visibility_toggle(gpointer data, guint callback_action, GtkWidget *widget);
427 void i_callback_script_console(gpointer data, guint callback_action, GtkWidget *widget);
428 void i_callback_options_text_size(gpointer data, guint callback_action, GtkWidget *widget);
429 void i_callback_options_snap_size(gpointer data, guint callback_action, GtkWidget *widget);
430 void i_callback_options_scale_up_snap_size(gpointer data, guint callback_action, GtkWidget *widget);
431 void i_callback_options_scale_down_snap_size(gpointer data, guint callback_action, GtkWidget *widget);
432 void i_callback_options_afeedback(gpointer data, guint callback_action, GtkWidget *widget);
433 void i_callback_options_grid(gpointer data, guint callback_action, GtkWidget *widget);
434 void i_callback_options_snap(gpointer data, guint callback_action, GtkWidget *widget);
435 void i_callback_options_rubberband(gpointer data, guint callback_action, GtkWidget *widget);
436 void i_callback_options_show_log_window(gpointer data, guint callback_action, GtkWidget *widget);
437 void i_callback_misc(gpointer data, guint callback_action, GtkWidget *widget);
438 void i_callback_misc2(gpointer data, guint callback_action, GtkWidget *widget);
439 void i_callback_misc3(gpointer data, guint callback_action, GtkWidget *widget);
440 void i_callback_cancel(gpointer data, guint callback_action, GtkWidget *widget);
441 void i_callback_help_about(gpointer data, guint callback_action, GtkWidget *widget);
442 void i_callback_help_hotkeys(gpointer data, guint callback_action, GtkWidget *widget);
443 void i_callback_options_show_coord_window(gpointer data, guint callback_action, GtkWidget *widget);
444 gboolean i_callback_close_wm(GtkWidget *widget, GdkEvent *event, gpointer data);
445 /* i_vars.c */
446 void i_vars_set(GSCHEM_TOPLEVEL *w_current);
447 /* o_arc.c */
448 void o_arc_draw(GSCHEM_TOPLEVEL *w_current, OBJECT *o_current);
449 void o_arc_draw_solid(GdkWindow *w, GdkGC *gc, GdkColor *color, GdkCapStyle cap, gint x, gint y, gint radius, gint angle1, gint angle2, gint arc_width, gint length, gint space);
450 void o_arc_draw_dotted(GdkWindow *w, GdkGC *gc, GdkColor *color, GdkCapStyle cap, gint x, gint y, gint radius, gint angle1, gint angle2, gint arc_width, gint length, gint space);
451 void o_arc_draw_dashed(GdkWindow *w, GdkGC *gc, GdkColor *color, GdkCapStyle cap, gint x, gint y, gint radius, gint angle1, gint angle2, gint arc_width, gint length, gint space);
452 void o_arc_draw_center(GdkWindow *w, GdkGC *gc, GdkColor *color, GdkCapStyle cap, gint x, gint y, gint radius, gint angle1, gint angle2, gint arc_width, gint length, gint space);
453 void o_arc_draw_phantom(GdkWindow *w, GdkGC *gc, GdkColor *color, GdkCapStyle cap, gint x, gint y, gint radius, gint angle1, gint angle2, gint arc_width, gint length, gint space);
454 void o_arc_erase(GSCHEM_TOPLEVEL *w_current, OBJECT *o_current);
455 void o_arc_eraserubber(GSCHEM_TOPLEVEL *w_current);
456 void o_arc_draw_xor(GSCHEM_TOPLEVEL *w_current, int dx, int dy, OBJECT *o_current);
457 void o_arc_start(GSCHEM_TOPLEVEL *w_current, int x, int y);
458 void o_arc_end1(GSCHEM_TOPLEVEL *w_current, int x, int y);
459 void o_arc_end2(GSCHEM_TOPLEVEL *w_current, int x, int y);
460 void o_arc_end3(GSCHEM_TOPLEVEL *w_current, int x, int y);
461 void o_arc_end4(GSCHEM_TOPLEVEL *w_current, int start_angle, int end_angle);
462 void o_arc_rubberarc(GSCHEM_TOPLEVEL *w_current, int x, int y, int whichone);
463 void o_arc_rubberarc_xor(GSCHEM_TOPLEVEL *w_current);
464 void o_arc_draw_grips(GSCHEM_TOPLEVEL *w_current, OBJECT *o_current);
465 void o_arc_erase_grips(GSCHEM_TOPLEVEL *w_current, OBJECT *o_current);
466 /* o_attrib.c */
467 void o_attrib_add_selected(GSCHEM_TOPLEVEL *w_current, SELECTION *selection, OBJECT *selected);
468 void o_attrib_toggle_visibility(GSCHEM_TOPLEVEL *w_current, GList *list);
469 void o_attrib_toggle_show_name_value(GSCHEM_TOPLEVEL *w_current, GList *list, int new_show_name_value);
470 OBJECT *o_attrib_add_attrib(GSCHEM_TOPLEVEL *w_current, char *text_string, int visibility, int show_name_value, OBJECT *object);
471 /* o_basic.c */
472 void o_redraw_all(GSCHEM_TOPLEVEL *w_current);
473 void o_redraw(GSCHEM_TOPLEVEL *w_current, OBJECT *object_list, gboolean draw_selected);
474 void o_redraw_single(GSCHEM_TOPLEVEL *w_current, OBJECT *o_current);
475 void o_draw_list(GSCHEM_TOPLEVEL *w_current, GList *list);
476 void o_draw_selected(GSCHEM_TOPLEVEL *w_current);
477 void o_erase_selected(GSCHEM_TOPLEVEL *w_current);
478 void o_erase_single(GSCHEM_TOPLEVEL *w_current, OBJECT *object);
479 void o_erase_list(GSCHEM_TOPLEVEL *w_current, GList *list);
480 void o_drawbounding(GSCHEM_TOPLEVEL *w_current, GList *o_glist, GdkColor *color, int firsttime);
481 int o_erase_rubber(GSCHEM_TOPLEVEL *w_current);
482 int o_redraw_cleanstates(GSCHEM_TOPLEVEL *w_current);
483 /* o_box.c */
484 void o_box_draw(GSCHEM_TOPLEVEL *w_current, OBJECT *o_current);
485 void o_box_draw_solid(GdkDrawable *w, GdkGC *gc, GdkColor *color, GdkCapStyle cap, gint filled, gint x, gint y, gint width, gint height, gint line_width, gint length, gint space);
486 void o_box_draw_dotted(GdkDrawable *w, GdkGC *gc, GdkColor *color, GdkCapStyle cap, gint filled, gint x, gint y, gint width, gint height, gint line_width, gint length, gint space);
487 void o_box_draw_dashed(GdkDrawable *w, GdkGC *gc, GdkColor *color, GdkCapStyle cap, gint filled, gint x, gint y, gint width, gint height, gint line_width, gint length, gint space);
488 void o_box_draw_center(GdkDrawable *w, GdkGC *gc, GdkColor *color, GdkCapStyle cap, gint filled, gint x, gint y, gint width, gint height, gint line_width, gint length, gint space);
489 void o_box_draw_phantom(GdkDrawable *w, GdkGC *gc, GdkColor *color, GdkCapStyle cap, gint filled, gint x, gint y, gint width, gint height, gint line_width, gint length, gint space);
490 void o_box_fill_hollow(GdkDrawable *w, GdkGC *gc, GdkColor *color, gint x, gint y, gint width, gint height, gint fill_width, gint angle1, gint pitch1, gint angle2, gint pitch2);
491 void o_box_fill_fill(GdkDrawable *w, GdkGC *gc, GdkColor *color, gint x, gint y, gint width, gint height, gint fill_width, gint angle1, gint pitch1, gint angle2, gint pitch2);
492 void o_box_fill_hatch(GdkDrawable *w, GdkGC *gc, GdkColor *color, gint x, gint y, gint width, gint height, gint fill_width, gint angle1, gint pitch1, gint angle2, gint pitch2);
493 void o_box_fill_mesh(GdkDrawable *w, GdkGC *gc, GdkColor *color, gint x, gint y, gint width, gint height, gint fill_width, gint angle1, gint pitch1, gint angle2, gint pitch2);
494 void o_box_erase(GSCHEM_TOPLEVEL *w_current, OBJECT *o_current);
495 void o_box_eraserubber(GSCHEM_TOPLEVEL *w_current);
496 void o_box_draw_xor(GSCHEM_TOPLEVEL *w_current, int dx, int dy, OBJECT *o_current);
497 void o_box_start(GSCHEM_TOPLEVEL *w_current, int x, int y);
498 void o_box_end(GSCHEM_TOPLEVEL *w_current, int x, int y);
499 void o_box_rubberbox(GSCHEM_TOPLEVEL *w_current, int x, int y);
500 void o_box_rubberbox_xor(GSCHEM_TOPLEVEL *w_current);
501 void o_box_draw_grips(GSCHEM_TOPLEVEL *w_current, OBJECT *o_current);
502 void o_box_erase_grips(GSCHEM_TOPLEVEL *w_current, OBJECT *o_current);
503 /* o_buffer.c */
504 void o_buffer_copy(GSCHEM_TOPLEVEL *w_current, int buf_num);
505 void o_buffer_cut(GSCHEM_TOPLEVEL *w_current, int buf_num);
506 void o_buffer_paste_start(GSCHEM_TOPLEVEL *w_current, int screen_x, int screen_y, int buf_num);
507 void o_buffer_paste_end(GSCHEM_TOPLEVEL *w_current, int screen_x, int screen_y, int buf_num);
508 void o_buffer_paste_rubberpaste(GSCHEM_TOPLEVEL *w_current, int buf_num);
509 void o_buffer_init(void);
510 void o_buffer_free(GSCHEM_TOPLEVEL *w_current);
511 /* o_bus.c */
512 void o_bus_draw(GSCHEM_TOPLEVEL *w_current, OBJECT *o_current);
513 void o_bus_erase(GSCHEM_TOPLEVEL *w_current, OBJECT *o_current);
514 void o_bus_draw_xor(GSCHEM_TOPLEVEL *w_current, int dx, int dy, OBJECT *o_current);
515 void o_bus_draw_xor_single(GSCHEM_TOPLEVEL *w_current, int dx, int dy, int whichone, OBJECT *o_current);
516 void o_bus_start(GSCHEM_TOPLEVEL *w_current, int x, int y);
517 int o_bus_end(GSCHEM_TOPLEVEL *w_current, int x, int y);
518 void o_bus_rubberbus(GSCHEM_TOPLEVEL *w_current, int x, int y);
519 void o_bus_eraserubber(GSCHEM_TOPLEVEL *w_current);
520 void o_bus_xorrubber(GSCHEM_TOPLEVEL *w_current);
521 /* o_circle.c */
522 void o_circle_draw(GSCHEM_TOPLEVEL *w_current, OBJECT *o_current);
523 void o_circle_fill_hollow(GdkDrawable *w, GdkGC *gc, GdkColor *color, gint x, gint y, gint radius, gint width, gint angle1, gint pitch1, gint angle2, gint pitch2);
524 void o_circle_fill_fill(GdkDrawable *w, GdkGC *gc, GdkColor *color, gint x, gint y, gint radius, gint width, gint angle1, gint pitch1, gint angle2, gint pitch2);
525 void o_circle_fill_hatch(GdkDrawable *w, GdkGC *gc, GdkColor *color, gint x, gint y, gint radius, gint width, gint angle1, gint pitch1, gint angle2, gint pitch2);
526 void o_circle_fill_mesh(GdkDrawable *w, GdkGC *gc, GdkColor *color, gint x, gint y, gint radius, gint width, gint angle1, gint pitch1, gint angle2, gint pitch2);
527 void o_circle_erase(GSCHEM_TOPLEVEL *w_current, OBJECT *o_current);
528 void o_circle_eraserubber(GSCHEM_TOPLEVEL *w_current);
529 void o_circle_draw_xor(GSCHEM_TOPLEVEL *w_current, int dx, int dy, OBJECT *o_current);
530 void o_circle_start(GSCHEM_TOPLEVEL *w_current, int x, int y);
531 void o_circle_end(GSCHEM_TOPLEVEL *w_current, int x, int y);
532 void o_circle_rubbercircle(GSCHEM_TOPLEVEL *w_current, int x, int y);
533 void o_circle_rubbercircle_xor(GSCHEM_TOPLEVEL *w_current);
534 void o_circle_draw_grips(GSCHEM_TOPLEVEL *w_current, OBJECT *o_current);
535 void o_circle_erase_grips(GSCHEM_TOPLEVEL *w_current, OBJECT *o_current);
536 /* o_complex.c */
537 void o_complex_draw(GSCHEM_TOPLEVEL *w_current, OBJECT *o_current);
538 void o_complex_erase(GSCHEM_TOPLEVEL *w_current, OBJECT *o_current);
539 void o_complex_draw_xor(GSCHEM_TOPLEVEL *w_current, int dx, int dy, OBJECT *complex);
540 void o_complex_start(GSCHEM_TOPLEVEL *w_current, int screen_x, int screen_y);
541 void o_complex_place_changed_run_hook(GSCHEM_TOPLEVEL *w_current);
542 void o_complex_place_rotate(GSCHEM_TOPLEVEL *w_current);
543 void o_complex_end(GSCHEM_TOPLEVEL *w_current, int screen_x, int screen_y);
544 void o_complex_rubbercomplex(GSCHEM_TOPLEVEL *w_current);
545 void o_complex_translate_display_single_object(GSCHEM_TOPLEVEL *w_current,
546 int x1, int y1,
547 OBJECT *o_current);
548 void o_complex_translate_display_object_glist(GSCHEM_TOPLEVEL *w_current,
549 int x1, int y1,
550 GList *object_list);
551 void o_complex_translate_display(GSCHEM_TOPLEVEL *w_current, int x1, int y1, OBJECT *complex);
552 void o_complex_translate_all(GSCHEM_TOPLEVEL *w_current, int offset);
553 void o_complex_rotate_world(TOPLEVEL *toplevel, int centerx, int centery, int angle, OBJECT *object);
554 int o_complex_mirror_world(TOPLEVEL *toplevel, int centerx, int centery, OBJECT *object);
555 /* o_copy.c */
556 void o_copy_start(GSCHEM_TOPLEVEL *w_current, int x, int y);
557 void o_copy_end(GSCHEM_TOPLEVEL *w_current);
558 /* o_cue.c */
559 void o_cue_redraw_all(GSCHEM_TOPLEVEL *w_current, OBJECT *head, gboolean draw_selected);
560 void o_cue_draw_lowlevel(GSCHEM_TOPLEVEL *w_current, OBJECT *object, int whichone);
561 void o_cue_erase_lowlevel(GSCHEM_TOPLEVEL *w_current, OBJECT *object, int whichone);
562 void o_cue_draw_lowlevel_midpoints(GSCHEM_TOPLEVEL *w_current, OBJECT *object);
563 void o_cue_draw_single(GSCHEM_TOPLEVEL *w_current, OBJECT *object);
564 void o_cue_erase_single(GSCHEM_TOPLEVEL *w_current, OBJECT *object);
565 void o_cue_undraw(GSCHEM_TOPLEVEL *w_current, OBJECT *object);
566 void o_cue_undraw_complex(GSCHEM_TOPLEVEL *w_current, OBJECT *object);
567 void o_cue_draw_list(GSCHEM_TOPLEVEL *w_current, GList *object_list);
568 void o_cue_undraw_list(GSCHEM_TOPLEVEL *w_current, GList *object_list);
569 void o_cue_undraw_objects(GSCHEM_TOPLEVEL *w_current, OBJECT *list);
570 /* o_delete.c */
571 void o_delete_net(GSCHEM_TOPLEVEL *w_current, OBJECT *obj);
572 void o_delete_bus(GSCHEM_TOPLEVEL *w_current, OBJECT *obj);
573 void o_delete_complex(GSCHEM_TOPLEVEL *w_current, OBJECT *obj);
574 void o_delete_text(GSCHEM_TOPLEVEL *w_current, OBJECT *obj);
575 void o_delete(GSCHEM_TOPLEVEL *w_current);
576 /* o_find.c */
577 gboolean o_find_object(GSCHEM_TOPLEVEL *w_current, int screen_x, int screen_y,
578 gboolean deselect_afterwards);
579 gboolean o_find_selected_object(GSCHEM_TOPLEVEL *w_current, int screen_x, int screen_y);
580 /* o_grips.c */
581 OBJECT *o_grips_search_world(GSCHEM_TOPLEVEL *w_current, int x, int y, int *whichone);
582 OBJECT *o_grips_search_arc_world(GSCHEM_TOPLEVEL *w_current, OBJECT *o_current, int x, int y, int size, int *whichone);
583 OBJECT *o_grips_search_box_world(GSCHEM_TOPLEVEL *w_current, OBJECT *o_current, int x, int y, int size, int *whichone);
584 OBJECT *o_grips_search_picture_world(GSCHEM_TOPLEVEL *w_current, OBJECT *o_current, int x, int y, int size, int *whichone);
585 OBJECT *o_grips_search_circle_world(GSCHEM_TOPLEVEL *w_current, OBJECT *o_current, int x, int y, int size, int *whichone);
586 OBJECT *o_grips_search_line_world(GSCHEM_TOPLEVEL *w_current, OBJECT *o_current, int x, int y, int size, int *whichone);
587 int o_grips_start(GSCHEM_TOPLEVEL *w_current, int x, int y);
588 void o_grips_start_arc(GSCHEM_TOPLEVEL *w_current, OBJECT *o_current, int x, int y, int whichone);
589 void o_grips_start_box(GSCHEM_TOPLEVEL *w_current, OBJECT *o_current, int x, int y, int whichone);
590 void o_grips_start_picture(GSCHEM_TOPLEVEL *w_current, OBJECT *o_current, int x, int y, int whichone);
591 void o_grips_start_circle(GSCHEM_TOPLEVEL *w_current, OBJECT *o_current, int x, int y, int whichone);
592 void o_grips_start_line(GSCHEM_TOPLEVEL *w_current, OBJECT *o_current, int x, int y, int whichone);
593 void o_grips_motion(GSCHEM_TOPLEVEL *w_current, int x, int y);
594 void o_grips_motion_arc(GSCHEM_TOPLEVEL *w_current, int x, int y, int whichone);
595 void o_grips_motion_box(GSCHEM_TOPLEVEL *w_current, int x, int y, int whichone);
596 void o_grips_motion_picture(GSCHEM_TOPLEVEL *w_current, int x, int y, int whichone);
597 void o_grips_motion_circle(GSCHEM_TOPLEVEL *w_current, int x, int y, int whichone);
598 void o_grips_motion_line(GSCHEM_TOPLEVEL *w_current, int x, int y, int whichone);
599 void o_grips_end(GSCHEM_TOPLEVEL *w_current);
600 void o_grips_end_arc(GSCHEM_TOPLEVEL *w_current, OBJECT *o_current, int whichone);
601 void o_grips_end_box(GSCHEM_TOPLEVEL *w_current, OBJECT *o_current, int whichone);
602 void o_grips_end_picture(GSCHEM_TOPLEVEL *w_current, OBJECT *o_current, int whichone);
603 void o_grips_end_circle(GSCHEM_TOPLEVEL *w_current, OBJECT *o_current, int whichone);
604 void o_grips_end_line(GSCHEM_TOPLEVEL *w_current, OBJECT *o_current, int whichone);
605 int o_grips_size(GSCHEM_TOPLEVEL *w_current);
606 void o_grips_draw(GSCHEM_TOPLEVEL *w_current, int x, int y);
607 void o_grips_erase(GSCHEM_TOPLEVEL *w_current, int x, int y);
608 /* o_line.c */
609 void o_line_draw(GSCHEM_TOPLEVEL *w_current, OBJECT *o_current);
610 void o_line_draw_solid(GdkWindow *w, GdkGC *gc, GdkColor *color, GdkCapStyle cap, gint x1, gint y1, gint x2, gint y2, gint line_width, gint length, gint space);
611 void o_line_draw_dotted(GdkWindow *w, GdkGC *gc, GdkColor *color, GdkCapStyle cap, gint x1, gint y1, gint x2, gint y2, gint line_width, gint length, gint space);
612 void o_line_draw_dashed(GdkWindow *w, GdkGC *gc, GdkColor *color, GdkCapStyle cap, gint x1, gint y1, gint x2, gint y2, gint line_width, gint length, gint space);
613 void o_line_draw_center(GdkWindow *w, GdkGC *gc, GdkColor *color, GdkCapStyle cap, gint x1, gint y1, gint x2, gint y2, gint line_width, gint length, gint space);
614 void o_line_draw_phantom(GdkWindow *w, GdkGC *gc, GdkColor *color, GdkCapStyle cap, gint x1, gint y1, gint x2, gint y2, gint line_width, gint length, gint space);
615 void o_line_erase(GSCHEM_TOPLEVEL *w_current, OBJECT *o_current);
616 void o_line_eraserubber(GSCHEM_TOPLEVEL *w_current);
617 void o_line_draw_xor(GSCHEM_TOPLEVEL *w_current, int dx, int dy, OBJECT *o_current);
618 void o_line_start(GSCHEM_TOPLEVEL *w_current, int x, int y);
619 void o_line_end(GSCHEM_TOPLEVEL *w_current, int x, int y);
620 void o_line_rubberline(GSCHEM_TOPLEVEL *w_current, int x, int y);
621 void o_line_rubberline_xor(GSCHEM_TOPLEVEL *w_current);
622 void o_line_draw_grips(GSCHEM_TOPLEVEL *w_current, OBJECT *o_current);
623 void o_line_erase_grips(GSCHEM_TOPLEVEL *w_current, OBJECT *o_current);
624 /* o_misc.c */
625 void o_edit(GSCHEM_TOPLEVEL *w_current, GList *list);
626 void o_lock(GSCHEM_TOPLEVEL *w_current);
627 void o_unlock(GSCHEM_TOPLEVEL *w_current);
628 void o_rotate_90_world(GSCHEM_TOPLEVEL *w_current, GList *list, int centerx, int centery);
629 void o_mirror_world(GSCHEM_TOPLEVEL *w_current, GList *list, int centerx, int centery);
630 void o_edit_show_hidden_lowlevel(GSCHEM_TOPLEVEL *w_current, OBJECT *o_list);
631 void o_edit_show_hidden(GSCHEM_TOPLEVEL *w_current, OBJECT *o_list);
632 void o_edit_make_visible(GSCHEM_TOPLEVEL *w_current, OBJECT *o_list);
633 int o_edit_find_text(GSCHEM_TOPLEVEL *w_current, OBJECT *o_list, char *stext, int descend, int skip);
634 void o_edit_hide_specific_text(GSCHEM_TOPLEVEL *w_current, OBJECT *o_list, char *stext);
635 void o_edit_show_specific_text(GSCHEM_TOPLEVEL *w_current, OBJECT *o_list, char *stext);
636 void o_update_component(GSCHEM_TOPLEVEL *w_current, OBJECT *o_current);
637 void o_autosave_backups(GSCHEM_TOPLEVEL *w_current);
638 /* o_move.c */
639 void o_move_start(GSCHEM_TOPLEVEL *w_current, int x, int y);
640 void o_move_end_lowlevel(GSCHEM_TOPLEVEL *w_current, OBJECT *list, int type, int diff_x, int diff_y, GList **other_objects, GList **connected_objects);
641 void o_move_end(GSCHEM_TOPLEVEL *w_current);
642 int o_move_return_whichone(OBJECT *object, int x, int y);
643 void o_move_check_endpoint(GSCHEM_TOPLEVEL *w_current, OBJECT *object);
644 void o_move_prep_rubberband(GSCHEM_TOPLEVEL *w_current);
645 int o_move_zero_length(OBJECT *object);
646 void o_move_end_rubberband(GSCHEM_TOPLEVEL *w_current, int world_diff_x, int world_diff_y, GList **objects, GList **other_objects, GList **connected_objects);
647 void o_move_stretch_rubberband(GSCHEM_TOPLEVEL *w_current);
648 /* o_net.c */
649 void o_net_draw(GSCHEM_TOPLEVEL *w_current, OBJECT *o_current);
650 void o_net_erase(GSCHEM_TOPLEVEL *w_current, OBJECT *o_current);
651 void o_net_draw_xor(GSCHEM_TOPLEVEL *w_current, int dx, int dy, OBJECT *o_current);
652 void o_net_draw_xor_single(GSCHEM_TOPLEVEL *w_current, int dx, int dy, int whichone, OBJECT *o_current);
653 void o_net_start(GSCHEM_TOPLEVEL *w_current, int x, int y);
654 int o_net_end(GSCHEM_TOPLEVEL *w_current, int x, int y);
655 void o_net_rubbernet(GSCHEM_TOPLEVEL *w_current, int x, int y);
656 void o_net_eraserubber(GSCHEM_TOPLEVEL *w_current);
657 void o_net_xorrubber(GSCHEM_TOPLEVEL *w_current);
658 int o_net_add_busrippers(GSCHEM_TOPLEVEL *w_current, OBJECT *net_obj, GList *other_objects);
659 /* o_picture.c */
660 void o_picture_start(GSCHEM_TOPLEVEL *w_current, int x, int y);
661 void o_picture_end(GSCHEM_TOPLEVEL *w_current, int x, int y);
662 void picture_selection_dialog (GSCHEM_TOPLEVEL *w_current);
663 void o_picture_eraserubber(GSCHEM_TOPLEVEL *w_current);
664 void o_picture_rubberbox_xor(GSCHEM_TOPLEVEL *w_current);
665 void o_picture_rubberbox(GSCHEM_TOPLEVEL *w_current, int x, int y);
666 void o_picture_draw(GSCHEM_TOPLEVEL *w_current, OBJECT *o_current);
667 void o_picture_draw_grips(GSCHEM_TOPLEVEL *w_current, OBJECT *o_current);
668 void o_picture_erase_grips(GSCHEM_TOPLEVEL *w_current, OBJECT *o_current);
669 void o_picture_erase(GSCHEM_TOPLEVEL *w_current, OBJECT *o_current);
670 void o_picture_draw_xor(GSCHEM_TOPLEVEL *w_current, int dx, int dy, OBJECT *o_current);
671 void o_picture_exchange(GSCHEM_TOPLEVEL *w_current, GdkPixbuf *pixbuf, const gchar *filename);
672 void picture_change_filename_dialog (GSCHEM_TOPLEVEL *w_current);
673 void o_picture_set_pixbuf(GSCHEM_TOPLEVEL *w_current, GdkPixbuf *pixbuf, char *filename);
675 /* o_pin.c */
676 void o_pin_draw(GSCHEM_TOPLEVEL *w_current, OBJECT *o_current);
677 void o_pin_erase(GSCHEM_TOPLEVEL *w_current, OBJECT *o_current);
678 void o_pin_draw_xor(GSCHEM_TOPLEVEL *w_current, int dx, int dy, OBJECT *o_current);
679 void o_pin_start(GSCHEM_TOPLEVEL *w_current, int x, int y);
680 void o_pin_end(GSCHEM_TOPLEVEL *w_current, int x, int y);
681 void o_pin_rubberpin(GSCHEM_TOPLEVEL *w_current, int x, int y);
682 void o_pin_eraserubber(GSCHEM_TOPLEVEL *w_current);
683 /* o_select.c */
684 void o_select_run_hooks(GSCHEM_TOPLEVEL *w_current, OBJECT *o_current, int flag);
685 void o_select_object(GSCHEM_TOPLEVEL *w_current, OBJECT *o_current, int type, int count);
686 void o_select_box_start(GSCHEM_TOPLEVEL *w_current, int x, int y);
687 void o_select_box_end(GSCHEM_TOPLEVEL *w_current, int x, int y);
688 void o_select_box_rubberband(GSCHEM_TOPLEVEL *w_current, int x, int y);
689 void o_select_box_search(GSCHEM_TOPLEVEL *w_current);
690 OBJECT *o_select_return_first_object(GSCHEM_TOPLEVEL *w_current);
691 int o_select_selected(GSCHEM_TOPLEVEL *w_current);
692 void o_select_unselect_list(GSCHEM_TOPLEVEL *w_current, SELECTION *selection);
693 void o_select_unselect_all(GSCHEM_TOPLEVEL *w_current);
694 void o_select_move_to_place_list(GSCHEM_TOPLEVEL *w_current);
695 /* o_slot.c */
696 void o_slot_start(GSCHEM_TOPLEVEL *w_current, OBJECT *list);
697 void o_slot_end(GSCHEM_TOPLEVEL *w_current, char *string, int len);
698 /* o_text.c */
699 void o_text_draw_lowlevel(GSCHEM_TOPLEVEL *w_current, OBJECT *o_current);
700 void o_text_draw_rectangle(GSCHEM_TOPLEVEL *w_current, OBJECT *o_current);
701 void o_text_draw(GSCHEM_TOPLEVEL *w_current, OBJECT *o_current);
702 void o_text_erase(GSCHEM_TOPLEVEL *w_current, OBJECT *o_current);
703 void o_text_draw_xor(GSCHEM_TOPLEVEL *w_current, int dx, int dy, OBJECT *o_current);
704 void o_text_start(GSCHEM_TOPLEVEL *w_current, int screen_x, int screen_y);
705 void o_text_end(GSCHEM_TOPLEVEL *w_current);
706 void o_text_rubberattrib(GSCHEM_TOPLEVEL *w_current);
707 void o_text_edit(GSCHEM_TOPLEVEL *w_current, OBJECT *o_current);
708 void o_text_edit_end(GSCHEM_TOPLEVEL *w_current, char *string, int len, int text_size, int text_alignment);
709 void o_text_change(GSCHEM_TOPLEVEL *w_current, OBJECT *object, char *string, int visibility, int show);
710 void o_text_place_rotate(GSCHEM_TOPLEVEL *w_current);
711 /* o_undo.c */
712 void o_undo_init(void);
713 void o_undo_savestate(GSCHEM_TOPLEVEL *w_current, int flag);
714 char *o_undo_find_prev_filename(UNDO *start);
715 OBJECT *o_undo_find_prev_object_head(UNDO *start);
716 void o_undo_callback(GSCHEM_TOPLEVEL *w_current, int type);
717 void o_undo_cleanup(void);
718 void o_undo_remove_last_undo(GSCHEM_TOPLEVEL *w_current);
719 /* parsecmd.c */
720 void usage(char *cmd);
721 int parse_commandline(int argc, char *argv[]);
722 /* x_attribedit.c */
723 gint option_menu_get_history(GtkOptionMenu *option_menu);
724 void attrib_edit_dialog_ok(GtkWidget *w, GSCHEM_TOPLEVEL *w_current);
725 void attrib_edit_dialog(GSCHEM_TOPLEVEL *w_current, OBJECT *list, int flag);
726 /* x_autonumber.c */
727 void autonumber_text_dialog(GSCHEM_TOPLEVEL *w_current);
728 /* x_basic.c */
729 void x_repaint_background(GSCHEM_TOPLEVEL *w_current);
730 void x_hscrollbar_set_ranges(GSCHEM_TOPLEVEL *w_current);
731 void x_hscrollbar_update(GSCHEM_TOPLEVEL *w_current);
732 void x_vscrollbar_set_ranges(GSCHEM_TOPLEVEL *w_current);
733 void x_vscrollbar_update(GSCHEM_TOPLEVEL *w_current);
734 void x_scrollbars_update(GSCHEM_TOPLEVEL *w_current);
735 void x_basic_warp_cursor(GtkWidget *widget, gint x, gint y, gboolean relative);
736 /* x_color.c */
737 void x_color_allocate_all(void);
738 GdkColor *x_get_color(int color);
739 GdkColor *x_get_darkcolor(int color);
740 gchar *x_color_get_name(int index);
741 /* x_dialog.c */
742 int text_view_calculate_real_tab_width(GtkTextView *textview, int tab_size);
743 void select_all_text_in_textview(GtkTextView *textview);
744 void destroy_window(GtkWidget *widget, GtkWidget **window);
745 void text_input_dialog_apply(GtkWidget *w, GSCHEM_TOPLEVEL *w_current);
746 void text_input_dialog(GSCHEM_TOPLEVEL *w_current);
747 gint change_alignment(GtkWidget *w, GSCHEM_TOPLEVEL *w_current);
748 void text_edit_dialog_ok(GtkWidget *w, GSCHEM_TOPLEVEL *w_current);
749 void text_edit_dialog(GSCHEM_TOPLEVEL *w_current, char *string, int text_size, int text_alignment);
750 void line_type_dialog(GSCHEM_TOPLEVEL *w_current, GList *objects);
751 void fill_type_dialog(GSCHEM_TOPLEVEL *w_current, GList *objects);
752 void arc_angle_dialog(GSCHEM_TOPLEVEL *w_current);
753 void translate_dialog(GSCHEM_TOPLEVEL *w_current);
754 void text_size_dialog(GSCHEM_TOPLEVEL *w_current);
755 void snap_size_dialog(GSCHEM_TOPLEVEL *w_current);
756 void slot_edit_dialog(GSCHEM_TOPLEVEL *w_current, char *string);
757 void about_dialog(GSCHEM_TOPLEVEL *w_current);
758 void coord_display_update(GSCHEM_TOPLEVEL *w_current, int x, int y);
759 void coord_dialog(GSCHEM_TOPLEVEL *w_current, int x, int y);
760 gint color_set(GtkWidget *w, gpointer data);
761 char *index2functionstring(int index);
762 void color_edit_dialog_apply(GtkWidget *w, GSCHEM_TOPLEVEL *w_current);
763 void color_edit_dialog(GSCHEM_TOPLEVEL *w_current);
764 void x_dialog_hotkeys(GSCHEM_TOPLEVEL *w_current);
765 void x_dialog_raise_all(GSCHEM_TOPLEVEL *w_current);
767 void generic_msg_dialog(const char *);
768 int generic_confirm_dialog(const char *);
769 char * generic_filesel_dialog(const char *, const char *, gint);
771 void find_text_dialog(GSCHEM_TOPLEVEL *w_current);
772 void hide_text_dialog(GSCHEM_TOPLEVEL *w_current);
773 void show_text_dialog(GSCHEM_TOPLEVEL *w_current);
774 void major_changed_dialog(GSCHEM_TOPLEVEL* w_current);
775 void x_dialog_close_changed_page (GSCHEM_TOPLEVEL *w_current, PAGE *page);
776 gboolean x_dialog_close_window (GSCHEM_TOPLEVEL *w_current);
777 int x_dialog_validate_attribute(GtkWindow* parent, char *attribute);
778 /* x_event.c */
779 gint x_event_expose(GtkWidget *widget, GdkEventExpose *event, GSCHEM_TOPLEVEL *w_current);
780 gint x_event_button_pressed(GtkWidget *widget, GdkEventButton *event, GSCHEM_TOPLEVEL *w_current);
781 gint x_event_button_released(GtkWidget *widget, GdkEventButton *event, GSCHEM_TOPLEVEL *w_current);
782 gint x_event_motion(GtkWidget *widget, GdkEventMotion *event, GSCHEM_TOPLEVEL *w_current);
783 gboolean x_event_configure (GtkWidget *widget, GdkEventConfigure *event, gpointer user_data);
784 void x_manual_resize(GSCHEM_TOPLEVEL *w_current);
785 void x_event_hschanged(GtkAdjustment *adj, GSCHEM_TOPLEVEL *w_current);
786 void x_event_vschanged(GtkAdjustment *adj, GSCHEM_TOPLEVEL *w_current);
787 gint x_event_enter(GtkWidget *widget, GdkEventCrossing *event, GSCHEM_TOPLEVEL *w_current);
788 gboolean x_event_key_press(GtkWidget *widget, GdkEventKey *event, GSCHEM_TOPLEVEL *w_current);
789 gint x_event_scroll(GtkWidget *widget, GdkEventScroll *event, GSCHEM_TOPLEVEL *w_current);
790 /* x_compselect.c */
791 void x_compselect_open (GSCHEM_TOPLEVEL *w_current);
792 void x_compselect_close (GSCHEM_TOPLEVEL *w_current);
793 /* x_fileselect.c */
794 void x_fileselect_open(GSCHEM_TOPLEVEL *w_current);
795 void x_fileselect_save(GSCHEM_TOPLEVEL *w_current);
796 int x_fileselect_load_backup(TOPLEVEL *toplevel, GString *message);
797 /* x_grid.c */
798 void x_grid_draw(GSCHEM_TOPLEVEL *w_current);
799 void x_draw_tiles(GSCHEM_TOPLEVEL *w_current);
800 /* x_image.c */
801 void x_image_lowlevel(GSCHEM_TOPLEVEL *w_current, const char* filename,
802 int desired_width, int desired_height, char *filetype);
803 void x_image_setup(GSCHEM_TOPLEVEL *w_current);
804 GdkPixbuf *x_image_get_pixbuf (GSCHEM_TOPLEVEL *w_current);
805 /* x_log.c */
806 void x_log_open ();
807 void x_log_close ();
808 void x_log_message (const gchar *message);
809 /* x_menus.c */
810 void get_main_menu(GtkWidget **menubar);
811 GtkWidget *get_main_popup(GSCHEM_TOPLEVEL *w_current);
812 gint do_popup(GSCHEM_TOPLEVEL *w_current, GdkEventButton *event);
813 void x_menus_sensitivity(GSCHEM_TOPLEVEL *w_current, const char *buf, int flag);
814 void x_menus_popup_sensitivity(GSCHEM_TOPLEVEL *w_current, const char *buf, int flag);
815 void x_menu_attach_recent_files_submenu(GSCHEM_TOPLEVEL *w_current);
816 void recent_files_load();
817 void recent_files_save(gpointer user_data);
818 void recent_files_add(const char *filename);
819 #if !GLIB_CHECK_VERSION(2,8,0)
820 gboolean g_file_set_contents(const gchar *filename, const gchar *contents,
821 gssize length, GError **error);
822 #endif
823 /* x_multiattrib.c */
824 void x_multiattrib_open (GSCHEM_TOPLEVEL *w_current);
825 void x_multiattrib_close (GSCHEM_TOPLEVEL *w_current);
826 void x_multiattrib_update (GSCHEM_TOPLEVEL *w_current);
827 /* x_multimulti.c */
828 /* x_pagesel.c */
829 void x_pagesel_open (GSCHEM_TOPLEVEL *w_current);
830 void x_pagesel_close (GSCHEM_TOPLEVEL *w_current);
831 void x_pagesel_update (GSCHEM_TOPLEVEL *w_current);
832 /* x_preview.c */
833 /* x_print.c */
834 void x_print_setup(GSCHEM_TOPLEVEL *w_current, char *filename);
835 /* x_script.c */
836 void setup_script_selector(GSCHEM_TOPLEVEL *w_current);
837 /* x_stroke.c */
838 void x_stroke_add_point(GSCHEM_TOPLEVEL *w_current, int x, int y);
839 void x_stroke_erase_all(GSCHEM_TOPLEVEL *w_current);
840 void x_stroke_free_all(void);
841 int x_stroke_search_execute(char *sequence);
842 /* x_window.c */
843 void x_window_setup (GSCHEM_TOPLEVEL *w_current);
844 void x_window_setup_colors(void);
845 void x_window_free_colors();
846 void x_window_setup_gc(GSCHEM_TOPLEVEL *w_current);
847 void x_window_free_gc(GSCHEM_TOPLEVEL *w_current);
848 void x_window_create_drawing(GtkWidget *drawbox, GSCHEM_TOPLEVEL *w_current);
849 void x_window_setup_draw_events(GSCHEM_TOPLEVEL *w_current);
850 void x_window_create_main(GSCHEM_TOPLEVEL *w_current);
851 void x_window_close(GSCHEM_TOPLEVEL *w_current);
852 void x_window_close_all(GSCHEM_TOPLEVEL *w_current);
853 PAGE *x_window_open_untitled_page (GSCHEM_TOPLEVEL *w_current);
854 PAGE *x_window_open_page (GSCHEM_TOPLEVEL *w_current, const gchar *filename);
855 void x_window_set_current_page (GSCHEM_TOPLEVEL *w_current, PAGE *page);
856 gint x_window_save_page (GSCHEM_TOPLEVEL *w_current, PAGE *page, const gchar *filename);
857 void x_window_close_page (GSCHEM_TOPLEVEL *w_current, PAGE *page);