gschem

prototype.h File Reference

This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Typedefs

typedef void(* gschem_atexit_func )(gpointer data)

Functions

GSCHEM_TOPLEVELgschem_toplevel_new ()
void gschem_toplevel_alloc_libgeda_toplevel (GSCHEM_TOPLEVEL *w_current)
void a_pan_general (GSCHEM_TOPLEVEL *w_current, double world_cx, double world_cy, double relativ_zoom_factor, int flags)
void a_pan (GSCHEM_TOPLEVEL *w_current, int x, int y)
void a_pan_mouse (GSCHEM_TOPLEVEL *w_current, int diff_x, int diff_y)
void a_zoom (GSCHEM_TOPLEVEL *w_current, int dir, int selected_from, int pan_flags)
void a_zoom_extents (GSCHEM_TOPLEVEL *w_current, const GList *list, int pan_flags)
void a_zoom_box (GSCHEM_TOPLEVEL *w_current, int pan_flags)
void a_zoom_box_start (GSCHEM_TOPLEVEL *w_current, int x, int y)
void a_zoom_box_end (GSCHEM_TOPLEVEL *w_current, int x, int y)
void a_zoom_box_motion (GSCHEM_TOPLEVEL *w_current, int x, int y)
void a_zoom_box_invalidate_rubber (GSCHEM_TOPLEVEL *w_current)
void a_zoom_box_draw_rubber (GSCHEM_TOPLEVEL *w_current)
void correct_aspect (GSCHEM_TOPLEVEL *w_current)
void g_init_attrib ()
 Initialise the gschem attribute procedures.
SCM g_funcs_print (SCM filename)
SCM g_funcs_postscript (SCM filename)
SCM g_funcs_image (SCM filename)
SCM g_funcs_exit (void)
SCM g_funcs_log (SCM msg)
SCM g_funcs_msg (SCM msg)
SCM g_funcs_confirm (SCM msg)
SCM g_funcs_filesel (SCM msg, SCM templ, SCM flags)
SCM g_funcs_use_rc_values (void)
SCM get_selected_component_attributes (GSCHEM_TOPLEVEL *w_current)
void g_init_hook ()
 Initialise the gschem hooks.
void g_run_hook_object (GSCHEM_TOPLEVEL *w_current, const char *name, OBJECT *obj)
 Runs a object hook with a single OBJECT.
void g_run_hook_object_list (GSCHEM_TOPLEVEL *w_current, const char *name, GList *obj_lst)
 Runs a object hook for a list of objects.
void g_run_hook_page (GSCHEM_TOPLEVEL *w_current, const char *name, PAGE *page)
 Runs a page hook.
void g_keys_reset (GSCHEM_TOPLEVEL *w_current)
 Reset the current key sequence.
int g_keys_execute (GSCHEM_TOPLEVEL *w_current, GdkEventKey *event)
 Evaluate a user keystroke.
GtkListStore * g_keys_to_list_store (void)
 Exports the keymap in Scheme to a GtkListStore.
SCM g_keys_file_new (SCM rest)
 test-comment test-comment
SCM g_keys_file_new_window (SCM rest)
SCM g_keys_file_open (SCM rest)
SCM g_keys_file_script (SCM rest)
SCM g_keys_file_save (SCM rest)
SCM g_keys_file_save_as (SCM rest)
SCM g_keys_file_save_all (SCM rest)
SCM g_keys_file_print (SCM rest)
SCM g_keys_file_write_png (SCM rest)
SCM g_keys_file_close (SCM rest)
SCM g_keys_file_quit (SCM rest)
SCM g_keys_edit_undo (SCM rest)
SCM g_keys_edit_redo (SCM rest)
SCM g_keys_edit_select (SCM rest)
SCM g_keys_edit_select_all (SCM rest)
SCM g_keys_edit_deselect (SCM rest)
SCM g_keys_edit_copy (SCM rest)
SCM g_keys_edit_copy_hotkey (SCM rest)
SCM g_keys_edit_mcopy (SCM rest)
SCM g_keys_edit_mcopy_hotkey (SCM rest)
SCM g_keys_edit_move (SCM rest)
SCM g_keys_edit_move_hotkey (SCM rest)
SCM g_keys_edit_delete (SCM rest)
SCM g_keys_edit_rotate_90 (SCM rest)
SCM g_keys_edit_rotate_90_hotkey (SCM rest)
SCM g_keys_edit_mirror (SCM rest)
SCM g_keys_edit_mirror_hotkey (SCM rest)
SCM g_keys_edit_slot (SCM rest)
SCM g_keys_edit_color (SCM rest)
SCM g_keys_edit_edit (SCM rest)
SCM g_keys_edit_pin_type (SCM rest)
SCM g_keys_edit_text (SCM rest)
SCM g_keys_edit_lock (SCM rest)
SCM g_keys_edit_unlock (SCM rest)
SCM g_keys_edit_linetype (SCM rest)
SCM g_keys_edit_filltype (SCM rest)
SCM g_keys_edit_translate (SCM rest)
SCM g_keys_edit_invoke_macro (SCM rest)
SCM g_keys_edit_embed (SCM rest)
SCM g_keys_edit_unembed (SCM rest)
SCM g_keys_edit_update (SCM rest)
SCM g_keys_edit_show_hidden (SCM rest)
SCM g_keys_edit_find (SCM rest)
SCM g_keys_edit_show_text (SCM rest)
SCM g_keys_edit_hide_text (SCM rest)
SCM g_keys_edit_autonumber_text (SCM rest)
SCM g_keys_clipboard_copy (SCM rest)
SCM g_keys_clipboard_cut (SCM rest)
SCM g_keys_clipboard_paste (SCM rest)
SCM g_keys_clipboard_paste_hotkey (SCM rest)
SCM g_keys_buffer_copy1 (SCM rest)
SCM g_keys_buffer_copy2 (SCM rest)
SCM g_keys_buffer_copy3 (SCM rest)
SCM g_keys_buffer_copy4 (SCM rest)
SCM g_keys_buffer_copy5 (SCM rest)
SCM g_keys_buffer_cut1 (SCM rest)
SCM g_keys_buffer_cut2 (SCM rest)
SCM g_keys_buffer_cut3 (SCM rest)
SCM g_keys_buffer_cut4 (SCM rest)
SCM g_keys_buffer_cut5 (SCM rest)
SCM g_keys_buffer_paste1 (SCM rest)
SCM g_keys_buffer_paste2 (SCM rest)
SCM g_keys_buffer_paste3 (SCM rest)
SCM g_keys_buffer_paste4 (SCM rest)
SCM g_keys_buffer_paste5 (SCM rest)
SCM g_keys_buffer_paste1_hotkey (SCM rest)
SCM g_keys_buffer_paste2_hotkey (SCM rest)
SCM g_keys_buffer_paste3_hotkey (SCM rest)
SCM g_keys_buffer_paste4_hotkey (SCM rest)
SCM g_keys_buffer_paste5_hotkey (SCM rest)
SCM g_keys_view_redraw (SCM rest)
SCM g_keys_view_zoom_full (SCM rest)
SCM g_keys_view_zoom_extents (SCM rest)
SCM g_keys_view_zoom_in (SCM rest)
SCM g_keys_view_zoom_out (SCM rest)
SCM g_keys_view_zoom_in_hotkey (SCM rest)
SCM g_keys_view_zoom_out_hotkey (SCM rest)
SCM g_keys_view_zoom_box (SCM rest)
SCM g_keys_view_zoom_box_hotkey (SCM rest)
SCM g_keys_view_pan (SCM rest)
SCM g_keys_view_pan_left (SCM rest)
SCM g_keys_view_pan_right (SCM rest)
SCM g_keys_view_pan_up (SCM rest)
SCM g_keys_view_pan_down (SCM rest)
SCM g_keys_view_pan_hotkey (SCM rest)
SCM g_keys_view_dark_colors (SCM rest)
SCM g_keys_view_light_colors (SCM rest)
SCM g_keys_view_bw_colors (SCM rest)
SCM g_keys_page_manager (SCM rest)
SCM g_keys_page_next (SCM rest)
SCM g_keys_page_prev (SCM rest)
SCM g_keys_page_new (SCM rest)
SCM g_keys_page_close (SCM rest)
SCM g_keys_page_revert (SCM rest)
SCM g_keys_page_discard (SCM rest)
SCM g_keys_page_print (SCM rest)
SCM g_keys_add_component (SCM rest)
SCM g_keys_add_attribute (SCM rest)
SCM g_keys_add_attribute_hotkey (SCM rest)
SCM g_keys_add_net (SCM rest)
SCM g_keys_add_net_hotkey (SCM rest)
SCM g_keys_add_bus (SCM rest)
SCM g_keys_add_bus_hotkey (SCM rest)
SCM g_keys_add_text (SCM rest)
SCM g_keys_add_line (SCM rest)
SCM g_keys_add_line_hotkey (SCM rest)
SCM g_keys_add_box (SCM rest)
SCM g_keys_add_box_hotkey (SCM rest)
SCM g_keys_add_picture (SCM rest)
SCM g_keys_add_picture_hotkey (SCM rest)
SCM g_keys_add_circle (SCM rest)
SCM g_keys_add_circle_hotkey (SCM rest)
SCM g_keys_add_arc (SCM rest)
SCM g_keys_add_arc_hotkey (SCM rest)
SCM g_keys_add_pin (SCM rest)
SCM g_keys_add_pin_hotkey (SCM rest)
SCM g_keys_hierarchy_down_schematic (SCM rest)
SCM g_keys_hierarchy_down_symbol (SCM rest)
SCM g_keys_hierarchy_up (SCM rest)
SCM g_keys_attributes_attach (SCM rest)
SCM g_keys_attributes_detach (SCM rest)
SCM g_keys_attributes_show_name (SCM rest)
SCM g_keys_attributes_show_value (SCM rest)
SCM g_keys_attributes_show_both (SCM rest)
SCM g_keys_attributes_visibility_toggle (SCM rest)
SCM g_keys_script_console (SCM rest)
SCM g_keys_options_text_size (SCM rest)
SCM g_keys_options_afeedback (SCM rest)
SCM g_keys_options_grid (SCM rest)
SCM g_keys_options_snap (SCM rest)
SCM g_keys_options_snap_size (SCM rest)
SCM g_keys_options_scale_up_snap_size (SCM rest)
SCM g_keys_options_scale_down_snap_size (SCM rest)
SCM g_keys_options_rubberband (SCM rest)
SCM g_keys_options_magneticnet (SCM rest)
SCM g_keys_options_show_log_window (SCM rest)
SCM g_keys_options_show_coord_window (SCM rest)
SCM g_keys_misc (SCM rest)
SCM g_keys_misc2 (SCM rest)
SCM g_keys_misc3 (SCM rest)
SCM g_keys_help_about (SCM rest)
SCM g_keys_help_hotkeys (SCM rest)
SCM g_keys_cancel (SCM rest)
void g_init_keys ()
 Initialise the key combination procedures.
void g_rc_parse_gtkrc ()
SCM g_rc_gschem_version (SCM version)
 Verify the version of the RC file under evaluation.
SCM g_rc_net_endpoint_mode (SCM mode)
SCM g_rc_net_midpoint_mode (SCM mode)
SCM g_rc_net_direction_mode (SCM mode)
SCM g_rc_net_selection_mode (SCM mode)
SCM g_rc_net_style (SCM mode)
SCM g_rc_bus_style (SCM mode)
SCM g_rc_pin_style (SCM mode)
SCM g_rc_line_style (SCM mode)
SCM g_rc_action_feedback_mode (SCM mode)
SCM g_rc_zoom_with_pan (SCM mode)
SCM g_rc_text_feedback (SCM mode)
SCM g_rc_text_display_zoomfactor (SCM zoomfactor)
SCM g_rc_scrollbar_update (SCM mode)
SCM g_rc_object_clipping (SCM mode)
SCM g_rc_logging (SCM mode)
SCM g_rc_embed_components (SCM mode)
SCM g_rc_component_dialog_attributes (SCM stringlist)
 read the configuration string list for the component dialog
SCM g_rc_text_size (SCM size)
SCM g_rc_text_caps_style (SCM mode)
SCM g_rc_snap_size (SCM size)
SCM g_rc_logging_destination (SCM mode)
SCM g_rc_attribute_name (SCM path)
SCM g_rc_scrollbars (SCM mode)
SCM g_rc_paper_size (SCM width, SCM height)
SCM g_rc_paper_sizes (SCM papername, SCM scm_width, SCM scm_height)
SCM g_rc_output_type (SCM mode)
SCM g_rc_output_orientation (SCM mode)
SCM g_rc_image_color (SCM mode)
SCM g_rc_image_size (SCM width, SCM height)
SCM g_rc_output_color (SCM mode)
SCM g_rc_output_capstyle (SCM mode)
SCM g_rc_log_window (SCM mode)
SCM g_rc_log_window_type (SCM mode)
SCM g_rc_third_button (SCM mode)
SCM g_rc_middle_button (SCM mode)
SCM g_rc_scroll_wheel (SCM mode)
SCM g_rc_net_consolidate (SCM mode)
SCM g_rc_file_preview (SCM mode)
SCM g_rc_enforce_hierarchy (SCM mode)
SCM g_rc_text_origin_marker (SCM mode)
SCM g_rc_fast_mousepan (SCM mode)
SCM g_rc_raise_dialog_boxes_on_expose (SCM mode)
SCM g_rc_continue_component_place (SCM mode)
SCM g_rc_undo_levels (SCM levels)
SCM g_rc_undo_control (SCM mode)
SCM g_rc_undo_type (SCM mode)
SCM g_rc_undo_panzoom (SCM mode)
SCM g_rc_draw_grips (SCM mode)
SCM g_rc_netconn_rubberband (SCM mode)
SCM g_rc_magnetic_net_mode (SCM mode)
SCM g_rc_sort_component_library (SCM mode)
SCM g_rc_add_menu (SCM menu_name, SCM menu_items)
SCM g_rc_window_size (SCM width, SCM height)
SCM g_rc_warp_cursor (SCM mode)
SCM g_rc_toolbars (SCM mode)
SCM g_rc_handleboxes (SCM mode)
SCM g_rc_setpagedevice_orientation (SCM mode)
SCM g_rc_setpagedevice_pagesize (SCM mode)
SCM g_rc_bus_ripper_size (SCM size)
SCM g_rc_bus_ripper_type (SCM mode)
SCM g_rc_bus_ripper_rotation (SCM mode)
SCM g_rc_force_boundingbox (SCM mode)
SCM g_rc_dots_grid_dot_size (SCM dotsize)
SCM g_rc_dots_grid_mode (SCM mode)
SCM g_rc_dots_grid_fixed_threshold (SCM spacing)
SCM g_rc_mesh_grid_display_threshold (SCM spacing)
SCM g_rc_add_attribute_offset (SCM offset)
SCM g_rc_auto_save_interval (SCM seconds)
SCM g_rc_mousepan_gain (SCM mode)
SCM g_rc_keyboardpan_gain (SCM mode)
 Scheme function for setting the step for keyboard pan.
SCM g_rc_print_command (SCM mode)
SCM g_rc_select_slack_pixels (SCM pixels)
SCM g_rc_zoom_gain (SCM gain)
SCM g_rc_scrollpan_steps (SCM steps)
SCM g_rc_display_color_map (SCM scm_map)
SCM g_rc_display_outline_color_map (SCM scm_map)
void g_register_funcs (void)
 Register function with Scheme.
void g_init_select ()
 Initialise the selection manipulation procedures.
void g_init_util ()
 Initialise miscellaneous gschem utility procedures.
GSCHEM_TOPLEVELg_current_window ()
 Get the value of the GSCHEM_TOPLEVEL fluid.
void g_dynwind_window (GSCHEM_TOPLEVEL *w_current)
 Set the GSCHEM_TOPLEVEL fluid in the current dynamic context.
void g_init_window ()
 Initialise the GSCHEM_TOPLEVEL manipulation procedures.
void gschem_atexit (gschem_atexit_func func, gpointer data)
 Register a function to be called on program exit.
void gschem_quit (void)
 Cleanup gSchem on exit.
void main_prog (void *closure, int argc, char *argv[])
 Main Scheme(GUILE) program function.
int main (int argc, char *argv[])
 Main executable entrance point.
void gschem_cairo_line (GSCHEM_TOPLEVEL *w_current, int line_end, int line_width, int x1, int y1, int x2, int y2)
void gschem_cairo_box (GSCHEM_TOPLEVEL *w_current, int line_width, int x1, int y1, int x2, int y2)
void gschem_cairo_center_box (GSCHEM_TOPLEVEL *w_current, int center_width, int line_width, int x1, int y1, int x2, int y2)
void gschem_cairo_arc (GSCHEM_TOPLEVEL *w_current, int line_width, int x, int y, int radius, int start_angle, int end_angle)
void gschem_cairo_center_arc (GSCHEM_TOPLEVEL *w_current, int center_width, int line_width, int x, int y, int radius, int start_angle, int end_angle)
void gschem_cairo_stroke (GSCHEM_TOPLEVEL *w_current, int line_type, int line_end, int width, int length, int space)
void gschem_cairo_set_source_color (GSCHEM_TOPLEVEL *w_current, COLOR *color)
void i_show_state (GSCHEM_TOPLEVEL *w_current, const char *message)
 Show state field.
void i_set_state (GSCHEM_TOPLEVEL *w_current, enum x_states newstate)
 Set new state, then show state field.
void i_set_state_msg (GSCHEM_TOPLEVEL *w_current, enum x_states newstate, const char *message)
 Set new state, then show state field including some message.
void i_update_middle_button (GSCHEM_TOPLEVEL *w_current, void(*func_ptr)(), const char *string)
void i_update_toolbar (GSCHEM_TOPLEVEL *w_current)
void i_update_menus (GSCHEM_TOPLEVEL *w_current)
 Update sensitivity of relevant menu items.
void i_set_filename (GSCHEM_TOPLEVEL *w_current, const gchar *string)
 Set filename as gschem window title.
void i_update_grid_info (GSCHEM_TOPLEVEL *w_current)
 Write the grid settings to the gschem status bar.
void i_callback_file_new (gpointer data, guint callback_action, GtkWidget *widget)
void i_callback_toolbar_file_new (GtkWidget *widget, gpointer data)
void i_callback_file_new_window (gpointer data, guint callback_action, GtkWidget *widget)
void i_callback_file_open (gpointer data, guint callback_action, GtkWidget *widget)
void i_callback_toolbar_file_open (GtkWidget *widget, gpointer data)
void i_callback_file_script (gpointer data, guint callback_action, GtkWidget *widget)
void i_callback_file_save (gpointer data, guint callback_action, GtkWidget *widget)
void i_callback_toolbar_file_save (GtkWidget *widget, gpointer data)
void i_callback_file_save_all (gpointer data, guint callback_action, GtkWidget *widget)
void i_callback_file_save_as (gpointer data, guint callback_action, GtkWidget *widget)
void i_callback_file_print (gpointer data, guint callback_action, GtkWidget *widget)
void i_callback_file_write_png (gpointer data, guint callback_action, GtkWidget *widget)
void i_callback_file_close (gpointer data, guint callback_action, GtkWidget *widget)
int i_callback_close (gpointer data, guint callback_action, GtkWidget *widget)
void i_callback_file_quit (gpointer data, guint callback_action, GtkWidget *widget)
void i_callback_edit_undo (gpointer data, guint callback_action, GtkWidget *widget)
void i_callback_toolbar_edit_undo (GtkWidget *widget, gpointer data)
void i_callback_edit_redo (gpointer data, guint callback_action, GtkWidget *widget)
void i_callback_toolbar_edit_redo (GtkWidget *widget, gpointer data)
void i_callback_edit_select (gpointer data, guint callback_action, GtkWidget *widget)
void i_callback_toolbar_edit_select (GtkWidget *widget, gpointer data)
void i_callback_edit_select_all (gpointer data, guint callback_action, GtkWidget *widget)
 Select all objects on page.
void i_callback_edit_deselect (gpointer data, guint callback_action, GtkWidget *widget)
 Deselect all objects on page.
void i_callback_edit_copy (gpointer data, guint callback_action, GtkWidget *widget)
void i_callback_edit_copy_hotkey (gpointer data, guint callback_action, GtkWidget *widget)
void i_callback_edit_mcopy (gpointer data, guint callback_action, GtkWidget *widget)
void i_callback_edit_mcopy_hotkey (gpointer data, guint callback_action, GtkWidget *widget)
void i_callback_edit_move (gpointer data, guint callback_action, GtkWidget *widget)
void i_callback_edit_move_hotkey (gpointer data, guint callback_action, GtkWidget *widget)
void i_callback_edit_delete (gpointer data, guint callback_action, GtkWidget *widget)
void i_callback_edit_edit (gpointer data, guint callback_action, GtkWidget *widget)
void i_callback_edit_pin_type (gpointer data, guint callback_action, GtkWidget *widget)
void i_callback_edit_text (gpointer data, guint callback_action, GtkWidget *widget)
void i_callback_edit_slot (gpointer data, guint callback_action, GtkWidget *widget)
void i_callback_edit_color (gpointer data, guint callback_action, GtkWidget *widget)
void i_callback_edit_rotate_90 (gpointer data, guint callback_action, GtkWidget *widget)
void i_callback_edit_rotate_90_hotkey (gpointer data, guint callback_action, GtkWidget *widget)
void i_callback_edit_mirror (gpointer data, guint callback_action, GtkWidget *widget)
void i_callback_edit_mirror_hotkey (gpointer data, guint callback_action, GtkWidget *widget)
void i_callback_edit_lock (gpointer data, guint callback_action, GtkWidget *widget)
void i_callback_edit_unlock (gpointer data, guint callback_action, GtkWidget *widget)
void i_callback_edit_translate (gpointer data, guint callback_action, GtkWidget *widget)
void i_callback_edit_invoke_macro (gpointer data, guint callback_action, GtkWidget *widget)
void i_callback_edit_embed (gpointer data, guint callback_action, GtkWidget *widget)
void i_callback_edit_unembed (gpointer data, guint callback_action, GtkWidget *widget)
void i_callback_edit_update (gpointer data, guint callback_action, GtkWidget *widget)
void i_callback_edit_show_hidden (gpointer data, guint callback_action, GtkWidget *widget)
void i_callback_edit_find (gpointer data, guint callback_action, GtkWidget *widget)
void i_callback_edit_hide_text (gpointer data, guint callback_action, GtkWidget *widget)
void i_callback_edit_show_text (gpointer data, guint callback_action, GtkWidget *widget)
void i_callback_edit_autonumber_text (gpointer data, guint callback_action, GtkWidget *widget)
void i_callback_edit_linetype (gpointer data, guint callback_action, GtkWidget *widget)
void i_callback_edit_filltype (gpointer data, guint callback_action, GtkWidget *widget)
void i_callback_view_redraw (gpointer data, guint callback_action, GtkWidget *widget)
void i_callback_view_zoom_full (gpointer data, guint callback_action, GtkWidget *widget)
void i_callback_view_zoom_extents (gpointer data, guint callback_action, GtkWidget *widget)
void i_callback_view_zoom_box (gpointer data, guint callback_action, GtkWidget *widget)
void i_callback_view_zoom_box_hotkey (gpointer data, guint callback_action, GtkWidget *widget)
void i_callback_view_zoom_in (gpointer data, guint callback_action, GtkWidget *widget)
void i_callback_view_zoom_out (gpointer data, guint callback_action, GtkWidget *widget)
void i_callback_view_zoom_in_hotkey (gpointer data, guint callback_action, GtkWidget *widget)
void i_callback_view_zoom_out_hotkey (gpointer data, guint callback_action, GtkWidget *widget)
void i_callback_view_pan (gpointer data, guint callback_action, GtkWidget *widget)
void i_callback_view_pan_left (gpointer data, guint callback_action, GtkWidget *widget)
 Scheme callback function that moves the viewport to the left.
void i_callback_view_pan_right (gpointer data, guint callback_action, GtkWidget *widget)
 Scheme callback function that moves the viewport to the right.
void i_callback_view_pan_up (gpointer data, guint callback_action, GtkWidget *widget)
 Scheme callback function that moves the viewport up.
void i_callback_view_pan_down (gpointer data, guint callback_action, GtkWidget *widget)
 Scheme callback function that moves the viewport down.
void i_callback_view_pan_hotkey (gpointer data, guint callback_action, GtkWidget *widget)
void i_callback_view_dark_colors (gpointer data, guint callback_action, GtkWidget *widget)
void i_callback_view_light_colors (gpointer data, guint callback_action, GtkWidget *widget)
void i_callback_view_bw_colors (gpointer data, guint callback_action, GtkWidget *widget)
void i_callback_page_manager (gpointer data, guint callback_action, GtkWidget *widget)
void i_callback_page_next (gpointer data, guint callback_action, GtkWidget *widget)
void i_callback_page_prev (gpointer data, guint callback_action, GtkWidget *widget)
void i_callback_page_new (gpointer data, guint callback_action, GtkWidget *widget)
void i_callback_page_close (gpointer data, guint callback_action, GtkWidget *widget)
void i_callback_page_revert (gpointer data, guint callback_action, GtkWidget *widget)
void i_callback_page_discard (gpointer data, guint callback_action, GtkWidget *widget)
void i_callback_page_print (gpointer data, guint callback_action, GtkWidget *widget)
void i_callback_clipboard_copy (gpointer data, guint callback_action, GtkWidget *widget)
 Copy selection to clipboard.
void i_callback_clipboard_cut (gpointer data, guint callback_action, GtkWidget *widget)
 Cut selection to clipboard.
void i_callback_clipboard_paste (gpointer data, guint callback_action, GtkWidget *widget)
 Start pasting clipboard contents.
void i_callback_clipboard_paste_hotkey (gpointer data, guint callback_action, GtkWidget *widget)
 Start pasting clipboard contents (hotkey version)
void i_callback_buffer_copy1 (gpointer data, guint callback_action, GtkWidget *widget)
void i_callback_buffer_copy2 (gpointer data, guint callback_action, GtkWidget *widget)
void i_callback_buffer_copy3 (gpointer data, guint callback_action, GtkWidget *widget)
void i_callback_buffer_copy4 (gpointer data, guint callback_action, GtkWidget *widget)
void i_callback_buffer_copy5 (gpointer data, guint callback_action, GtkWidget *widget)
void i_callback_buffer_cut1 (gpointer data, guint callback_action, GtkWidget *widget)
void i_callback_buffer_cut2 (gpointer data, guint callback_action, GtkWidget *widget)
void i_callback_buffer_cut3 (gpointer data, guint callback_action, GtkWidget *widget)
void i_callback_buffer_cut4 (gpointer data, guint callback_action, GtkWidget *widget)
void i_callback_buffer_cut5 (gpointer data, guint callback_action, GtkWidget *widget)
void i_callback_buffer_paste1 (gpointer data, guint callback_action, GtkWidget *widget)
void i_callback_buffer_paste2 (gpointer data, guint callback_action, GtkWidget *widget)
void i_callback_buffer_paste3 (gpointer data, guint callback_action, GtkWidget *widget)
void i_callback_buffer_paste4 (gpointer data, guint callback_action, GtkWidget *widget)
void i_callback_buffer_paste5 (gpointer data, guint callback_action, GtkWidget *widget)
void i_callback_buffer_paste1_hotkey (gpointer data, guint callback_action, GtkWidget *widget)
void i_callback_buffer_paste2_hotkey (gpointer data, guint callback_action, GtkWidget *widget)
void i_callback_buffer_paste3_hotkey (gpointer data, guint callback_action, GtkWidget *widget)
void i_callback_buffer_paste4_hotkey (gpointer data, guint callback_action, GtkWidget *widget)
void i_callback_buffer_paste5_hotkey (gpointer data, guint callback_action, GtkWidget *widget)
void i_callback_add_component (gpointer data, guint callback_action, GtkWidget *widget)
void i_callback_toolbar_add_component (GtkWidget *widget, gpointer data)
void i_callback_add_attribute (gpointer data, guint callback_action, GtkWidget *widget)
void i_callback_add_attribute_hotkey (gpointer data, guint callback_action, GtkWidget *widget)
void i_callback_add_net (gpointer data, guint callback_action, GtkWidget *widget)
void i_callback_add_net_hotkey (gpointer data, guint callback_action, GtkWidget *widget)
void i_callback_toolbar_add_net (GtkWidget *widget, gpointer data)
void i_callback_add_bus (gpointer data, guint callback_action, GtkWidget *widget)
void i_callback_add_bus_hotkey (gpointer data, guint callback_action, GtkWidget *widget)
void i_callback_toolbar_add_bus (GtkWidget *widget, gpointer data)
void i_callback_add_text (gpointer data, guint callback_action, GtkWidget *widget)
void i_callback_toolbar_add_text (GtkWidget *widget, gpointer data)
void i_callback_add_line (gpointer data, guint callback_action, GtkWidget *widget)
void i_callback_add_line_hotkey (gpointer data, guint callback_action, GtkWidget *widget)
void i_callback_add_box (gpointer data, guint callback_action, GtkWidget *widget)
void i_callback_add_box_hotkey (gpointer data, guint callback_action, GtkWidget *widget)
void i_callback_add_picture (gpointer data, guint callback_action, GtkWidget *widget)
void i_callback_add_picture_hotkey (gpointer data, guint callback_action, GtkWidget *widget)
void i_callback_add_circle (gpointer data, guint callback_action, GtkWidget *widget)
void i_callback_add_circle_hotkey (gpointer data, guint callback_action, GtkWidget *widget)
void i_callback_add_arc (gpointer data, guint callback_action, GtkWidget *widget)
void i_callback_add_arc_hotkey (gpointer data, guint callback_action, GtkWidget *widget)
void i_callback_add_pin (gpointer data, guint callback_action, GtkWidget *widget)
void i_callback_add_pin_hotkey (gpointer data, guint callback_action, GtkWidget *widget)
void i_callback_hierarchy_down_schematic (gpointer data, guint callback_action, GtkWidget *widget)
void i_callback_hierarchy_down_symbol (gpointer data, guint callback_action, GtkWidget *widget)
void i_callback_hierarchy_up (gpointer data, guint callback_action, GtkWidget *widget)
void i_callback_attributes_attach (gpointer data, guint callback_action, GtkWidget *widget)
void i_callback_attributes_detach (gpointer data, guint callback_action, GtkWidget *widget)
void i_callback_attributes_show_name (gpointer data, guint callback_action, GtkWidget *widget)
void i_callback_attributes_show_value (gpointer data, guint callback_action, GtkWidget *widget)
void i_callback_attributes_show_both (gpointer data, guint callback_action, GtkWidget *widget)
void i_callback_attributes_visibility_toggle (gpointer data, guint callback_action, GtkWidget *widget)
void i_callback_script_console (gpointer data, guint callback_action, GtkWidget *widget)
void i_callback_options_text_size (gpointer data, guint callback_action, GtkWidget *widget)
void i_callback_options_snap_size (gpointer data, guint callback_action, GtkWidget *widget)
void i_callback_options_scale_up_snap_size (gpointer data, guint callback_action, GtkWidget *widget)
 Multiply by two the snap grid size.
void i_callback_options_scale_down_snap_size (gpointer data, guint callback_action, GtkWidget *widget)
 Divide by two the snap grid size.
void i_callback_options_afeedback (gpointer data, guint callback_action, GtkWidget *widget)
void i_callback_options_grid (gpointer data, guint callback_action, GtkWidget *widget)
void i_callback_options_snap (gpointer data, guint callback_action, GtkWidget *widget)
void i_callback_options_rubberband (gpointer data, guint callback_action, GtkWidget *widget)
void i_callback_options_magneticnet (gpointer data, guint callback_action, GtkWidget *widget)
 callback function for setting the magnetic net option
void i_callback_options_show_log_window (gpointer data, guint callback_action, GtkWidget *widget)
void i_callback_misc (gpointer data, guint callback_action, GtkWidget *widget)
void i_callback_misc2 (gpointer data, guint callback_action, GtkWidget *widget)
void i_callback_misc3 (gpointer data, guint callback_action, GtkWidget *widget)
void i_callback_cancel (gpointer data, guint callback_action, GtkWidget *widget)
void i_callback_help_about (gpointer data, guint callback_action, GtkWidget *widget)
void i_callback_help_hotkeys (gpointer data, guint callback_action, GtkWidget *widget)
void i_callback_options_show_coord_window (gpointer data, guint callback_action, GtkWidget *widget)
gboolean i_callback_close_wm (GtkWidget *widget, GdkEvent *event, gpointer data)
void i_vars_set (GSCHEM_TOPLEVEL *w_current)
void i_vars_freenames ()
 Free default names.
int mil_x (GSCHEM_TOPLEVEL *w_current, int val)
 Convert a x coordinate to mils.
int mil_y (GSCHEM_TOPLEVEL *w_current, int val)
 Convert a y coordinate to mils.
int pix_x (GSCHEM_TOPLEVEL *w_current, int val)
 Convert a x coordinate to pixels.
int pix_y (GSCHEM_TOPLEVEL *w_current, int val)
 Convert a y coordinate to pixels.
void WORLDtoSCREEN (GSCHEM_TOPLEVEL *w_current, int x, int y, int *px, int *py)
 Transform WORLD coordinates to SCREEN coordinates.
void SCREENtoWORLD (GSCHEM_TOPLEVEL *w_current, int mx, int my, int *x, int *y)
 Transform WORLD coordinates to WORLD coordinates.
int snap_grid (GSCHEM_TOPLEVEL *w_current, int input)
 Find the closest grid coordinate.
int SCREENabs (GSCHEM_TOPLEVEL *w_current, int val)
 Get absolute SCREEN coordinate.
int WORLDabs (GSCHEM_TOPLEVEL *w_current, int val)
 Get absolute WORLD coordinate.
int WORLDclip_change (GSCHEM_TOPLEVEL *w_current, int *x1, int *y1, int *x2, int *y2)
 Calculate the cliping region for a set of coordinates.
int clip_nochange (GSCHEM_TOPLEVEL *w_current, int x1, int y1, int x2, int y2)
 Check if a set of coordinates are within a clipping region.
int visible (GSCHEM_TOPLEVEL *w_current, int wleft, int wtop, int wright, int wbottom)
 Check if a bounding box is visible on the screen.
double round_5_2_1 (double unrounded)
 Rounds numbers by a power of 10.
void o_arc_draw (GSCHEM_TOPLEVEL *w_current, OBJECT *o_current)
 Draw an arc on the screen.
void o_arc_invalidate_rubber (GSCHEM_TOPLEVEL *w_current)
void o_arc_draw_place (GSCHEM_TOPLEVEL *w_current, int dx, int dy, OBJECT *o_current)
 Draw an arc described by OBJECT with translation.
void o_arc_start (GSCHEM_TOPLEVEL *w_current, int x, int y)
 Start process to input a new arc.
void o_arc_end1 (GSCHEM_TOPLEVEL *w_current, int x, int y)
 End the input of an arc.
void o_arc_end4 (GSCHEM_TOPLEVEL *w_current, int radius, int start_angle, int end_angle)
 Ends the process of arc input.
void o_arc_motion (GSCHEM_TOPLEVEL *w_current, int x, int y, int whichone)
 Draw an arc using one angle modification.
void o_arc_draw_rubber (GSCHEM_TOPLEVEL *w_current)
 Draw arc from GSCHEM_TOPLEVEL object.
void o_arc_draw_grips (GSCHEM_TOPLEVEL *w_current, OBJECT *o_current)
 Draw grip marks on arc.
void o_attrib_add_selected (GSCHEM_TOPLEVEL *w_current, SELECTION *selection, OBJECT *selected)
void o_attrib_deselect_invisible (GSCHEM_TOPLEVEL *w_current, SELECTION *selection, OBJECT *selected)
 Remove invisible attributes of an object from the selection list.
void o_attrib_select_invisible (GSCHEM_TOPLEVEL *w_current, SELECTION *selection, OBJECT *selected)
 Add invisible attributes of an object to the selection list.
void o_attrib_toggle_visibility (GSCHEM_TOPLEVEL *w_current, OBJECT *object)
 Change visibility status of attribute object.
void o_attrib_toggle_show_name_value (GSCHEM_TOPLEVEL *w_current, OBJECT *object, int new_show_name_value)
 Set what part of an attribute is shown.
OBJECT * o_attrib_add_attrib (GSCHEM_TOPLEVEL *w_current, const char *text_string, int visibility, int show_name_value, OBJECT *object)
void o_redraw_rects (GSCHEM_TOPLEVEL *w_current, GdkRectangle *rectangles, int n_rectangles)
void o_redraw (GSCHEM_TOPLEVEL *w_current, GList *object_list, gboolean draw_selected)
void o_redraw_single (GSCHEM_TOPLEVEL *w_current, OBJECT *o_current)
 Redraw an object on the screen.
int o_invalidate_rubber (GSCHEM_TOPLEVEL *w_current)
int o_redraw_cleanstates (GSCHEM_TOPLEVEL *w_current)
void o_draw_place (GSCHEM_TOPLEVEL *w_current, int dx, int dy, OBJECT *object)
void o_glist_draw_place (GSCHEM_TOPLEVEL *w_current, int dx, int dy, GList *list)
void o_invalidate_rect (GSCHEM_TOPLEVEL *w_current, int x1, int y1, int x2, int y2)
 Invalidates a rectangular region of the on screen drawing area.
void o_invalidate_all (GSCHEM_TOPLEVEL *w_current)
 Invalidate the whole on-screen area.
void o_invalidate (GSCHEM_TOPLEVEL *w_current, OBJECT *object)
 Invalidate on-screen area for an object.
void o_invalidate_glist (GSCHEM_TOPLEVEL *w_current, GList *list)
 Invalidate on-screen area for a GList of objects.
COLOR * o_drawing_color (GSCHEM_TOPLEVEL *w_current, OBJECT *object)
 Returns the color an object should be drawn in.
void o_box_draw (GSCHEM_TOPLEVEL *w_current, OBJECT *o_current)
 Draw a box on the screen.
void o_box_invalidate_rubber (GSCHEM_TOPLEVEL *w_current)
void o_box_draw_place (GSCHEM_TOPLEVEL *w_current, int dx, int dy, OBJECT *o_current)
 Draw a box described by OBJECT with translation.
void o_box_start (GSCHEM_TOPLEVEL *w_current, int x, int y)
 Start process to input a new box.
void o_box_end (GSCHEM_TOPLEVEL *w_current, int x, int y)
 End the input of a box.
void o_box_motion (GSCHEM_TOPLEVEL *w_current, int x, int y)
 Draw temporary box while dragging edge.
void o_box_draw_rubber (GSCHEM_TOPLEVEL *w_current)
 Draw box from GSCHEM_TOPLEVEL object.
void o_box_draw_grips (GSCHEM_TOPLEVEL *w_current, OBJECT *o_current)
 Draw grip marks on box.
void o_buffer_copy (GSCHEM_TOPLEVEL *w_current, int buf_num)
void o_buffer_cut (GSCHEM_TOPLEVEL *w_current, int buf_num)
void o_buffer_paste_start (GSCHEM_TOPLEVEL *w_current, int x, int y, int buf_num)
void o_buffer_init (void)
void o_buffer_free (GSCHEM_TOPLEVEL *w_current)
void o_bus_draw (GSCHEM_TOPLEVEL *w_current, OBJECT *o_current)
void o_bus_draw_place (GSCHEM_TOPLEVEL *w_current, int dx, int dy, OBJECT *o_current)
void o_bus_draw_stretch (GSCHEM_TOPLEVEL *w_current, int dx, int dy, int whichone, OBJECT *o_current)
void o_bus_start (GSCHEM_TOPLEVEL *w_current, int x, int y)
 set the start point of a new bus
int o_bus_end (GSCHEM_TOPLEVEL *w_current, int x, int y)
 finish a bus drawing action
void o_bus_motion (GSCHEM_TOPLEVEL *w_current, int x, int y)
 draw the bus rubber when creating a bus
void o_bus_draw_rubber (GSCHEM_TOPLEVEL *w_current)
 draw a rubberbus segment
void o_bus_invalidate_rubber (GSCHEM_TOPLEVEL *w_current)
void o_circle_draw (GSCHEM_TOPLEVEL *w_current, OBJECT *o_current)
 Draw a circle on the screen.
void o_circle_invalidate_rubber (GSCHEM_TOPLEVEL *w_current)
void o_circle_draw_place (GSCHEM_TOPLEVEL *w_current, int dx, int dy, OBJECT *o_current)
 Draw a circle described by OBJECT with translation.
void o_circle_start (GSCHEM_TOPLEVEL *w_current, int x, int y)
 Start process to input a new circle.
void o_circle_end (GSCHEM_TOPLEVEL *w_current, int x, int y)
 End the input of a circle.
void o_circle_motion (GSCHEM_TOPLEVEL *w_current, int x, int y)
 Draw temporary circle while dragging edge.
void o_circle_draw_rubber (GSCHEM_TOPLEVEL *w_current)
 Draw circle from GSCHEM_TOPLEVEL object.
void o_circle_draw_grips (GSCHEM_TOPLEVEL *w_current, OBJECT *o_current)
 Draw grip marks on circle.
void o_complex_draw (GSCHEM_TOPLEVEL *w_current, OBJECT *o_current)
void o_complex_draw_place (GSCHEM_TOPLEVEL *w_current, int dx, int dy, OBJECT *complex)
void o_complex_prepare_place (GSCHEM_TOPLEVEL *w_current, const CLibSymbol *sym)
void o_complex_place_changed_run_hook (GSCHEM_TOPLEVEL *w_current)
 Run the complex place list changed hook.
void o_complex_translate_all (GSCHEM_TOPLEVEL *w_current, int offset)
void o_copy_start (GSCHEM_TOPLEVEL *w_current, int x, int y)
void o_copy_end (GSCHEM_TOPLEVEL *w_current)
void o_copy_multiple_end (GSCHEM_TOPLEVEL *w_current)
void o_cue_redraw_all (GSCHEM_TOPLEVEL *w_current, GList *list, gboolean draw_selected)
void o_cue_draw_lowlevel (GSCHEM_TOPLEVEL *w_current, OBJECT *object, int whichone)
void o_cue_draw_lowlevel_midpoints (GSCHEM_TOPLEVEL *w_current, OBJECT *object)
void o_cue_draw_single (GSCHEM_TOPLEVEL *w_current, OBJECT *object)
void o_cue_draw_list (GSCHEM_TOPLEVEL *w_current, GList *object_list)
void o_delete (GSCHEM_TOPLEVEL *w_current, OBJECT *object)
 Delete an object.
void o_delete_selected (GSCHEM_TOPLEVEL *w_current)
 Delete objects from the selection.
gboolean o_find_object (GSCHEM_TOPLEVEL *w_current, int x, int y, gboolean deselect_afterwards)
 Find an OBJECT at a given set of coordinates.
gboolean o_find_selected_object (GSCHEM_TOPLEVEL *w_current, int x, int y)
OBJECT * o_grips_search_world (GSCHEM_TOPLEVEL *w_current, int x, int y, int *whichone)
 Check if point is inside grip.
OBJECT * o_grips_search_arc_world (GSCHEM_TOPLEVEL *w_current, OBJECT *o_current, int x, int y, int size, int *whichone)
 Check if pointer is inside arc grip.
OBJECT * o_grips_search_box_world (GSCHEM_TOPLEVEL *w_current, OBJECT *o_current, int x, int y, int size, int *whichone)
 Check if pointer is inside box grip.
OBJECT * o_grips_search_path_world (GSCHEM_TOPLEVEL *w_current, OBJECT *o_current, int x, int y, int size, int *whichone)
 Check if pointer is inside path grip.
OBJECT * o_grips_search_picture_world (GSCHEM_TOPLEVEL *w_current, OBJECT *o_current, int x, int y, int size, int *whichone)
 Check if pointer is inside picture grip.
OBJECT * o_grips_search_circle_world (GSCHEM_TOPLEVEL *w_current, OBJECT *o_current, int x, int y, int size, int *whichone)
 Check if pointer is inside circle grip.
OBJECT * o_grips_search_line_world (GSCHEM_TOPLEVEL *w_current, OBJECT *o_current, int x, int y, int size, int *whichone)
 Check if pointer is inside line grip.
int o_grips_start (GSCHEM_TOPLEVEL *w_current, int x, int y)
 Start process of modifiying one grip.
void o_grips_motion (GSCHEM_TOPLEVEL *w_current, int x, int y)
 Modify previously selected object according to mouse position.
void o_grips_end (GSCHEM_TOPLEVEL *w_current)
 End process of modifying object with grip.
void o_grips_cancel (GSCHEM_TOPLEVEL *w_current)
 Cancel process of modifying object with grip.
int o_grips_size (GSCHEM_TOPLEVEL *w_current)
 Get half the width and height of grip in screen units.
void o_grips_draw (GSCHEM_TOPLEVEL *w_current, int x, int y)
 Draw grip centered at x, y
void o_grips_draw_rubber (GSCHEM_TOPLEVEL *w_current)
 Draw objects being grip maniuplated from GSCHEM_TOPLEVEL object.
void o_line_draw (GSCHEM_TOPLEVEL *w_current, OBJECT *o_current)
 Draw a line on screen.
void o_line_invalidate_rubber (GSCHEM_TOPLEVEL *w_current)
void o_line_draw_place (GSCHEM_TOPLEVEL *w_current, int dx, int dy, OBJECT *o_current)
 Draw a line object after applying translation.
void o_line_start (GSCHEM_TOPLEVEL *w_current, int x, int y)
 Start process to input a new line.
void o_line_end (GSCHEM_TOPLEVEL *w_current, int x, int y)
 End the input of a line.
void o_line_motion (GSCHEM_TOPLEVEL *w_current, int x, int y)
 Draw temporary line while dragging end.
void o_line_draw_rubber (GSCHEM_TOPLEVEL *w_current)
 Draw line from GSCHEM_TOPLEVEL object.
void o_line_draw_grips (GSCHEM_TOPLEVEL *w_current, OBJECT *o_current)
 Draw grip marks on line.
int o_line_visible (GSCHEM_TOPLEVEL *w_current, LINE *line, int *x1, int *y1, int *x2, int *y2)
void o_edit (GSCHEM_TOPLEVEL *w_current, GList *list)
void o_lock (GSCHEM_TOPLEVEL *w_current)
void o_unlock (GSCHEM_TOPLEVEL *w_current)
void o_rotate_world_update (GSCHEM_TOPLEVEL *w_current, int centerx, int centery, int angle, GList *list)
 Rotate all objects in list.
void o_mirror_world_update (GSCHEM_TOPLEVEL *w_current, int centerx, int centery, GList *list)
void o_edit_show_hidden_lowlevel (GSCHEM_TOPLEVEL *w_current, const GList *o_list)
void o_edit_show_hidden (GSCHEM_TOPLEVEL *w_current, const GList *o_list)
int o_edit_find_text (GSCHEM_TOPLEVEL *w_current, const GList *o_list, char *stext, int descend, int skip)
void o_edit_hide_specific_text (GSCHEM_TOPLEVEL *w_current, const GList *o_list, char *stext)
void o_edit_show_specific_text (GSCHEM_TOPLEVEL *w_current, const GList *o_list, char *stext)
OBJECT * o_update_component (GSCHEM_TOPLEVEL *w_current, OBJECT *o_current)
 Update a component.
void o_autosave_backups (GSCHEM_TOPLEVEL *w_current)
 Do autosave on all pages that are marked.
void o_move_start (GSCHEM_TOPLEVEL *w_current, int x, int y)
void o_move_end_lowlevel (GSCHEM_TOPLEVEL *w_current, OBJECT *object, int diff_x, int diff_y)
void o_move_end (GSCHEM_TOPLEVEL *w_current)
void o_move_cancel (GSCHEM_TOPLEVEL *w_current)
void o_move_motion (GSCHEM_TOPLEVEL *w_current, int x, int y)
void o_move_invalidate_rubber (GSCHEM_TOPLEVEL *w_current, int drawing)
void o_move_draw_rubber (GSCHEM_TOPLEVEL *w_current, int drawing)
int o_move_return_whichone (OBJECT *object, int x, int y)
void o_move_check_endpoint (GSCHEM_TOPLEVEL *w_current, OBJECT *object)
void o_move_prep_rubberband (GSCHEM_TOPLEVEL *w_current)
int o_move_zero_length (OBJECT *object)
void o_move_end_rubberband (GSCHEM_TOPLEVEL *w_current, int world_diff_x, int world_diff_y, GList **objects)
void o_net_reset (GSCHEM_TOPLEVEL *w_current)
 Reset all variables used for net drawing.
void o_net_draw (GSCHEM_TOPLEVEL *w_current, OBJECT *o_current)
void o_net_draw_place (GSCHEM_TOPLEVEL *w_current, int dx, int dy, OBJECT *o_current)
void o_net_draw_stretch (GSCHEM_TOPLEVEL *w_current, int dx, int dy, int whichone, OBJECT *o_current)
void o_net_guess_direction (GSCHEM_TOPLEVEL *w_current, int x, int y)
 guess the best direction for the next net drawing action
void o_net_find_magnetic (GSCHEM_TOPLEVEL *w_current, int event_x, int event_y)
 find the closest possible location to connect to
void o_net_finishmagnetic (GSCHEM_TOPLEVEL *w_current)
 calcutates the net route to the magnetic marker
void o_net_start_magnetic (GSCHEM_TOPLEVEL *w_current, int x, int y)
 callback function to draw a net marker in magnetic mode
void o_net_start (GSCHEM_TOPLEVEL *w_current, int x, int y)
 set the start point of a new net
int o_net_end (GSCHEM_TOPLEVEL *w_current, int x, int y)
 finish a net drawing action
void o_net_motion (GSCHEM_TOPLEVEL *w_current, int x, int y)
 erase and redraw the rubber lines when drawing a net
void o_net_draw_rubber (GSCHEM_TOPLEVEL *w_current)
 draw rubbernet lines to the gc
void o_net_invalidate_rubber (GSCHEM_TOPLEVEL *w_current)
int o_net_add_busrippers (GSCHEM_TOPLEVEL *w_current, OBJECT *net_obj, GList *other_objects)
void o_picture_start (GSCHEM_TOPLEVEL *w_current, int x, int y)
 Start process to input a new picture.
void o_picture_end (GSCHEM_TOPLEVEL *w_current, int x, int y)
 End the input of a circle.
void o_picture_motion (GSCHEM_TOPLEVEL *w_current, int x, int y)
 Draw temporary picture while dragging edge.
void picture_selection_dialog (GSCHEM_TOPLEVEL *w_current)
 Creates the add image dialog.
void o_picture_invalidate_rubber (GSCHEM_TOPLEVEL *w_current)
void o_picture_draw_rubber (GSCHEM_TOPLEVEL *w_current)
 Draw picture from GSCHEM_TOPLEVEL object.
void o_picture_draw (GSCHEM_TOPLEVEL *w_current, OBJECT *o_current)
 Draw a picture on the screen.
void o_picture_draw_grips (GSCHEM_TOPLEVEL *w_current, OBJECT *o_current)
 Draw grip marks on picture.
void o_picture_draw_place (GSCHEM_TOPLEVEL *w_current, int dx, int dy, OBJECT *o_current)
 Draw a picture described by OBJECT with translation.
gboolean o_picture_exchange (GSCHEM_TOPLEVEL *w_current, const gchar *filename, GError **error)
 Replace all selected pictures with a new picture.
void picture_change_filename_dialog (GSCHEM_TOPLEVEL *w_current)
 Create dialog to exchange picture objects.
void o_picture_set_pixbuf (GSCHEM_TOPLEVEL *w_current, GdkPixbuf *pixbuf, char *filename)
void o_path_draw (GSCHEM_TOPLEVEL *w_current, OBJECT *o_current)
 Draw a path on screen.
void o_path_invalidate_rubber (GSCHEM_TOPLEVEL *w_current)
void o_path_draw_place (GSCHEM_TOPLEVEL *w_current, int dx, int dy, OBJECT *o_current)
 Draw a path object after applying translation.
void o_path_start (GSCHEM_TOPLEVEL *w_current, int x, int y)
 Start process to input a new path.
void o_path_end (GSCHEM_TOPLEVEL *w_current, int x, int y)
 End the input of a path.
void o_path_motion (GSCHEM_TOPLEVEL *w_current, int x, int y)
 Draw temporary path while dragging end.
void o_path_draw_rubber (GSCHEM_TOPLEVEL *w_current)
 Draw path from GSCHEM_TOPLEVEL object.
void o_path_draw_grips (GSCHEM_TOPLEVEL *w_current, OBJECT *o_current)
 Draw grip marks on path.
void o_pin_draw (GSCHEM_TOPLEVEL *w_current, OBJECT *o_current)
void o_pin_draw_place (GSCHEM_TOPLEVEL *w_current, int dx, int dy, OBJECT *o_current)
void o_pin_start (GSCHEM_TOPLEVEL *w_current, int x, int y)
void o_pin_end (GSCHEM_TOPLEVEL *w_current, int x, int y)
void o_pin_motion (GSCHEM_TOPLEVEL *w_current, int x, int y)
void o_pin_draw_rubber (GSCHEM_TOPLEVEL *w_current)
void o_pin_invalidate_rubber (GSCHEM_TOPLEVEL *w_current)
void o_place_start (GSCHEM_TOPLEVEL *w_current, int x, int y)
void o_place_end (GSCHEM_TOPLEVEL *w_current, int x, int y, int continue_placing, GList **ret_new_objects, const char *hook_name)
void o_place_motion (GSCHEM_TOPLEVEL *w_current, int x, int y)
void o_place_invalidate_rubber (GSCHEM_TOPLEVEL *w_current, int drawing)
 Invalidate bounding box or outline for OBJECT placement.
void o_place_draw_rubber (GSCHEM_TOPLEVEL *w_current, int drawing)
 Draw a bounding box or outline for OBJECT placement.
void o_place_rotate (GSCHEM_TOPLEVEL *w_current)
void o_select_run_hooks (GSCHEM_TOPLEVEL *w_current, OBJECT *o_current, int flag)
void o_select_object (GSCHEM_TOPLEVEL *w_current, OBJECT *o_current, int type, int count)
int o_select_box_start (GSCHEM_TOPLEVEL *w_current, int x, int y)
void o_select_box_end (GSCHEM_TOPLEVEL *w_current, int x, int y)
void o_select_box_motion (GSCHEM_TOPLEVEL *w_current, int x, int y)
void o_select_box_invalidate_rubber (GSCHEM_TOPLEVEL *w_current)
void o_select_box_draw_rubber (GSCHEM_TOPLEVEL *w_current)
void o_select_box_search (GSCHEM_TOPLEVEL *w_current)
void o_select_connected_nets (GSCHEM_TOPLEVEL *w_current, OBJECT *o_current)
 Select all nets connected to the current net.
OBJECT * o_select_return_first_object (GSCHEM_TOPLEVEL *w_current)
int o_select_selected (GSCHEM_TOPLEVEL *w_current)
void o_select_unselect_all (GSCHEM_TOPLEVEL *w_current)
void o_select_visible_unlocked (GSCHEM_TOPLEVEL *w_current)
 Selects all visible objects on the current page.
void o_select_move_to_place_list (GSCHEM_TOPLEVEL *w_current)
void o_slot_start (GSCHEM_TOPLEVEL *w_current, OBJECT *object)
 Change slot of selected component.
void o_slot_end (GSCHEM_TOPLEVEL *w_current, OBJECT *object, const char *string)
int o_text_get_rendered_bounds (void *user_data, OBJECT *object, int *min_x, int *min_y, int *max_x, int *max_y)
void o_text_draw (GSCHEM_TOPLEVEL *w_current, OBJECT *o_current)
void o_text_draw_place (GSCHEM_TOPLEVEL *w_current, int dx, int dy, OBJECT *o_current)
void o_text_prepare_place (GSCHEM_TOPLEVEL *w_current, char *text)
void o_text_edit (GSCHEM_TOPLEVEL *w_current, OBJECT *o_current)
void o_text_edit_end (GSCHEM_TOPLEVEL *w_current, char *string, int len, int text_size, int text_alignment)
void o_text_change (GSCHEM_TOPLEVEL *w_current, OBJECT *object, char *string, int visibility, int show)
void o_undo_init (void)
void o_undo_savestate (GSCHEM_TOPLEVEL *w_current, int flag)
char * o_undo_find_prev_filename (UNDO *start)
GList * o_undo_find_prev_object_head (UNDO *start)
void o_undo_callback (GSCHEM_TOPLEVEL *w_current, int type)
void o_undo_cleanup (void)
void o_undo_remove_last_undo (GSCHEM_TOPLEVEL *w_current)
int parse_commandline (int argc, char *argv[])
 Parse gschem command-line options.
GList * s_stretch_add (GList *list, OBJECT *object, int whichone)
GList * s_stretch_remove (GList *list, OBJECT *object)
void s_stretch_print_all (GList *list)
void s_stretch_destroy_all (GList *list)
gint option_menu_get_history (GtkOptionMenu *option_menu)
void attrib_edit_dialog_ok (GtkWidget *w, GSCHEM_TOPLEVEL *w_current)
void attrib_edit_dialog (GSCHEM_TOPLEVEL *w_current, OBJECT *attr_obj, int flag)
 Create the attribute add/edit dialog.
void autonumber_text_dialog (GSCHEM_TOPLEVEL *w_current)
 Create or restore the autonumber text dialog.
void x_repaint_background_region (GSCHEM_TOPLEVEL *w_current, int x, int y, int width, int height)
void x_hscrollbar_set_ranges (GSCHEM_TOPLEVEL *w_current)
void x_hscrollbar_update (GSCHEM_TOPLEVEL *w_current)
void x_vscrollbar_set_ranges (GSCHEM_TOPLEVEL *w_current)
void x_vscrollbar_update (GSCHEM_TOPLEVEL *w_current)
void x_scrollbars_update (GSCHEM_TOPLEVEL *w_current)
void x_basic_warp_cursor (GtkWidget *widget, gint x, gint y)
void x_clipboard_init (GSCHEM_TOPLEVEL *w_current)
void x_clipboard_finish (GSCHEM_TOPLEVEL *w_current)
void x_clipboard_query_usable (GSCHEM_TOPLEVEL *w_current, void(*callback)(int, void *), void *userdata)
gboolean x_clipboard_set (GSCHEM_TOPLEVEL *w_current, const GList *object_list)
GList * x_clipboard_get (GSCHEM_TOPLEVEL *w_current)
void x_color_init (void)
 Initializes the color system for the application.
void x_color_free (void)
 Frees memory used by the color system.
void x_color_allocate (void)
GdkColor * x_get_color (int color)
GdkColor * x_get_darkcolor (int color)
COLOR * x_color_lookup (int color)
COLOR * x_color_lookup_dark (int color)
gchar * x_color_get_name (int index)
gboolean x_color_display_enabled (int index)
int text_view_calculate_real_tab_width (GtkTextView *textview, int tab_size)
void select_all_text_in_textview (GtkTextView *textview)
 Selects all text in a TextView widget.
void destroy_window (GtkWidget *widget, GtkWidget **window)
void text_input_dialog_apply (GtkWidget *w, GSCHEM_TOPLEVEL *w_current)
 worker function for the text entry dialog
void text_input_dialog (GSCHEM_TOPLEVEL *w_current)
 create or present the text entry dialog
gint change_alignment (GtkComboBox *w, GSCHEM_TOPLEVEL *w_current)
 CAllback for a text aligment change.
void text_edit_dialog_ok (GtkWidget *w, GSCHEM_TOPLEVEL *w_current)
 Apply the settings from the text property dialog.
void text_edit_dialog (GSCHEM_TOPLEVEL *w_current, const char *string, int text_size, int text_alignment)
 Create the edit text properties dialog.
void line_type_dialog (GSCHEM_TOPLEVEL *w_current)
 Creates the line type and width dialog.
void fill_type_dialog (GSCHEM_TOPLEVEL *w_current)
 Creates the fill type dialog.
void arc_angle_dialog (GSCHEM_TOPLEVEL *w_current, OBJECT *arc_object)
 Creates the arc angle dialog.
void translate_dialog (GSCHEM_TOPLEVEL *w_current)
 Create the translate dialog.
void text_size_dialog (GSCHEM_TOPLEVEL *w_current)
 Create the text size dialog.
void snap_size_dialog (GSCHEM_TOPLEVEL *w_current)
 Create the snap size dialog.
void slot_edit_dialog (GSCHEM_TOPLEVEL *w_current, const char *string)
 Create the slot entry dialog.
void about_dialog (GSCHEM_TOPLEVEL *w_current)
 Create the about dialog and show it.
void coord_display_update (GSCHEM_TOPLEVEL *w_current, int x, int y)
 Update the coordinates in the coord dialog box.
void coord_dialog (GSCHEM_TOPLEVEL *w_current, int x, int y)
 Create the coord dialog.
gint color_set (GtkWidget *w, gpointer data)
char * index2functionstring (int index)
void color_edit_dialog_apply (GtkWidget *w, GSCHEM_TOPLEVEL *w_current)
 Apply a color change to selected objects.
void color_edit_dialog (GSCHEM_TOPLEVEL *w_current)
 Create the color edit dialog.
void x_dialog_hotkeys (GSCHEM_TOPLEVEL *w_current)
 Creates the hotkeys dialog.
void x_dialog_raise_all (GSCHEM_TOPLEVEL *w_current)
void generic_msg_dialog (const char *)
int generic_confirm_dialog (const char *)
char * generic_filesel_dialog (const char *, const char *, gint)
void find_text_dialog (GSCHEM_TOPLEVEL *w_current)
 Create the text find dialog.
void hide_text_dialog (GSCHEM_TOPLEVEL *w_current)
 Creates the hide text dialog.
void show_text_dialog (GSCHEM_TOPLEVEL *w_current)
 Create the show text dialog.
void major_changed_dialog (GSCHEM_TOPLEVEL *w_current)
void x_dialog_close_changed_page (GSCHEM_TOPLEVEL *w_current, PAGE *page)
 Asks for confirmation before closing a changed page.
gboolean x_dialog_close_window (GSCHEM_TOPLEVEL *w_current)
 Asks for confirmation before closing a window.
int x_dialog_validate_attribute (GtkWindow *parent, char *attribute)
 Validate the input attribute.
void x_dialog_edit_pin_type (GSCHEM_TOPLEVEL *w_current, const GList *obj_list)
 Edit the type of a pin (bus or net)
gint x_event_expose (GtkWidget *widget, GdkEventExpose *event, GSCHEM_TOPLEVEL *w_current)
gint x_event_button_pressed (GtkWidget *widget, GdkEventButton *event, GSCHEM_TOPLEVEL *w_current)
gint x_event_button_released (GtkWidget *widget, GdkEventButton *event, GSCHEM_TOPLEVEL *w_current)
gint x_event_motion (GtkWidget *widget, GdkEventMotion *event, GSCHEM_TOPLEVEL *w_current)
gboolean x_event_configure (GtkWidget *widget, GdkEventConfigure *event, gpointer user_data)
 Updates the GSCHEM_TOPLEVEL and display when drawing area is configured.
void x_manual_resize (GSCHEM_TOPLEVEL *w_current)
void x_event_hschanged (GtkAdjustment *adj, GSCHEM_TOPLEVEL *w_current)
void x_event_vschanged (GtkAdjustment *adj, GSCHEM_TOPLEVEL *w_current)
gint x_event_enter (GtkWidget *widget, GdkEventCrossing *event, GSCHEM_TOPLEVEL *w_current)
gboolean x_event_key (GtkWidget *widget, GdkEventKey *event, GSCHEM_TOPLEVEL *w_current)
gint x_event_scroll (GtkWidget *widget, GdkEventScroll *event, GSCHEM_TOPLEVEL *w_current)
gboolean x_event_get_pointer_position (GSCHEM_TOPLEVEL *w_current, gboolean snapped, gint *wx, gint *wy)
 get the pointer position of a given GSCHEM_TOPLEVEL
void x_compselect_open (GSCHEM_TOPLEVEL *w_current)
 Opens a component selection dialog.
void x_compselect_close (GSCHEM_TOPLEVEL *w_current)
 Closes the component selection dialog.
void x_compselect_deselect (GSCHEM_TOPLEVEL *w_current)
void x_fileselect_open (GSCHEM_TOPLEVEL *w_current)
 Opens a file chooser for opening one or more schematics.
void x_fileselect_save (GSCHEM_TOPLEVEL *w_current)
 Opens a file chooser for saving the current page.
int x_fileselect_load_backup (void *user_data, GString *message)
 Load/Backup selection dialog.
void x_grid_draw_region (GSCHEM_TOPLEVEL *w_current, int x, int y, int width, int height)
 Draw an area of the screen with the current grid pattern.
int x_grid_query_drawn_spacing (GSCHEM_TOPLEVEL *w_current)
 Query the spacing in world coordinates at which the grid is drawn.
void x_draw_tiles (GSCHEM_TOPLEVEL *w_current)
void x_image_lowlevel (GSCHEM_TOPLEVEL *w_current, const char *filename, int desired_width, int desired_height, char *filetype)
 Write the image file, with the desired options.
void x_image_setup (GSCHEM_TOPLEVEL *w_current)
 Display the image file selection dialog.
GdkPixbuf * x_image_get_pixbuf (GSCHEM_TOPLEVEL *w_current)
void x_log_open ()
 Open the Log window.
void x_log_close ()
 Close the Log window.
void x_log_message (const gchar *log_domain, GLogLevelFlags log_level, const gchar *message)
 Add a message to the Log window.
gboolean x_show_uri (GSCHEM_TOPLEVEL *w_current, const gchar *buf, GError **err)
 Launch default application for a URI.
GtkWidget * get_main_menu (GSCHEM_TOPLEVEL *w_current)
GtkWidget * get_main_popup (GSCHEM_TOPLEVEL *w_current)
gint do_popup (GSCHEM_TOPLEVEL *w_current, GdkEventButton *event)
void x_menus_sensitivity (GSCHEM_TOPLEVEL *w_current, const char *buf, int flag)
void x_menus_popup_sensitivity (GSCHEM_TOPLEVEL *w_current, const char *buf, int flag)
void x_menu_attach_recent_files_submenu (GSCHEM_TOPLEVEL *w_current)
 Attach a submenu with filenames to the 'Open Recent' menu item.
void x_multiattrib_open (GSCHEM_TOPLEVEL *w_current)
 Open multiple attribute editor dialog.
void x_multiattrib_close (GSCHEM_TOPLEVEL *w_current)
 Close the multiattrib dialog.
void x_multiattrib_update (GSCHEM_TOPLEVEL *w_current)
 Update the multiattrib editor dialog for a GSCHEM_TOPLEVEL.
void x_pagesel_open (GSCHEM_TOPLEVEL *w_current)
 Open the page manager dialog.
void x_pagesel_close (GSCHEM_TOPLEVEL *w_current)
 Close the page manager dialog.
void x_pagesel_update (GSCHEM_TOPLEVEL *w_current)
 Update the list and status of toplevel's pages.
void x_print_setup (GSCHEM_TOPLEVEL *w_current, char *filename)
void x_rc_parse_gschem (GSCHEM_TOPLEVEL *w_current, const gchar *rcfile)
 Load gschem configuration files and display error dialogs.
void setup_script_selector (GSCHEM_TOPLEVEL *w_current)
 Select a script and execute it.
void x_stroke_init (void)
void x_stroke_free (void)
void x_stroke_record (GSCHEM_TOPLEVEL *w_current, gint x, gint y)
gint x_stroke_translate_and_execute (GSCHEM_TOPLEVEL *w_current)
void x_window_setup (GSCHEM_TOPLEVEL *w_current)
void x_window_setup_gc (GSCHEM_TOPLEVEL *w_current)
void x_window_free_gc (GSCHEM_TOPLEVEL *w_current)
void x_window_create_drawing (GtkWidget *drawbox, GSCHEM_TOPLEVEL *w_current)
void x_window_setup_draw_events (GSCHEM_TOPLEVEL *w_current)
void x_window_create_main (GSCHEM_TOPLEVEL *w_current)
void x_window_close (GSCHEM_TOPLEVEL *w_current)
void x_window_close_all (GSCHEM_TOPLEVEL *w_current)
PAGE * x_window_open_page (GSCHEM_TOPLEVEL *w_current, const gchar *filename)
 Opens a new page from a file.
void x_window_set_current_page (GSCHEM_TOPLEVEL *w_current, PAGE *page)
 Changes the current page.
gint x_window_save_page (GSCHEM_TOPLEVEL *w_current, PAGE *page, const gchar *filename)
 Saves a page to a file.
void x_window_close_page (GSCHEM_TOPLEVEL *w_current, PAGE *page)
 Closes a page.
void x_window_set_default_icon (void)
 Setup default icon for GTK windows.

Typedef Documentation

typedef void(* gschem_atexit_func)(gpointer data)

Definition at line 279 of file prototype.h.


Function Documentation

GSCHEM_TOPLEVEL* gschem_toplevel_new ( )

Definition at line 24 of file gschem_toplevel.c.

void gschem_toplevel_alloc_libgeda_toplevel ( GSCHEM_TOPLEVEL w_current)

Definition at line 211 of file gschem_toplevel.c.

Here is the call graph for this function:

void a_pan_general ( GSCHEM_TOPLEVEL w_current,
double  world_cx,
double  world_cy,
double  relativ_zoom_factor,
int  flags 
)
Todo:
Finish function documentation!!!
Function Description

Definition at line 37 of file a_pan.c.

Here is the call graph for this function:

void a_pan ( GSCHEM_TOPLEVEL w_current,
int  w_x,
int  w_y 
)
Todo:
Finish function documentation!!!
Function Description

Bug:
FIXME? This call will trigger a motion event (x_event_motion()), even if the user doesn't move the mouse Not ready for prime time, maybe there is another way to trigger the motion event without changing the cursor position (Werner)

Definition at line 175 of file a_pan.c.

Here is the call graph for this function:

void a_pan_mouse ( GSCHEM_TOPLEVEL w_current,
int  diff_x,
int  diff_y 
)
Todo:
Finish function documentation!!!
Function Description

Definition at line 195 of file a_pan.c.

Here is the call graph for this function:

void a_zoom ( GSCHEM_TOPLEVEL w_current,
int  dir,
int  selected_from,
int  pan_flags 
)
Todo:
Finish function documentation!!!
Function Description

Definition at line 56 of file a_zoom.c.

Here is the call graph for this function:

void a_zoom_extents ( GSCHEM_TOPLEVEL w_current,
const GList *  list,
int  pan_flags 
)
Todo:
Finish function documentation!!!
Function Description

Bug:
FIXME? trigger a x_event_motion() call without moving the cursor this will redraw rubberband lines after zooming removed!, it has side effects in the preview of the part dialog need to find another way to trigger x_event_motion() (Werner)

Definition at line 149 of file a_zoom.c.

Here is the call graph for this function:

void a_zoom_box ( GSCHEM_TOPLEVEL w_current,
int  pan_flags 
)
Todo:
Finish function documentation!!!
Function Description

Definition at line 203 of file a_zoom.c.

Here is the call graph for this function:

void a_zoom_box_start ( GSCHEM_TOPLEVEL w_current,
int  w_x,
int  w_y 
)
Todo:
Finish function documentation!!!
Function Description

Definition at line 238 of file a_zoom.c.

void a_zoom_box_end ( GSCHEM_TOPLEVEL w_current,
int  x,
int  y 
)
Todo:
Finish function documentation!!!
Function Description

Definition at line 249 of file a_zoom.c.

Here is the call graph for this function:

void a_zoom_box_motion ( GSCHEM_TOPLEVEL w_current,
int  w_x,
int  w_y 
)
Todo:
Finish function documentation!!!
Function Description

Definition at line 268 of file a_zoom.c.

Here is the call graph for this function:

void a_zoom_box_invalidate_rubber ( GSCHEM_TOPLEVEL w_current)
Todo:
Finish function documentation!!!
Function Description

Definition at line 286 of file a_zoom.c.

Here is the call graph for this function:

void a_zoom_box_draw_rubber ( GSCHEM_TOPLEVEL w_current)
Todo:
Finish function documentation!!!
Function Description

Definition at line 304 of file a_zoom.c.

Here is the call graph for this function:

void correct_aspect ( GSCHEM_TOPLEVEL w_current)
Todo:
Finish function documentation!!!
Function Description

Definition at line 319 of file a_zoom.c.

void g_init_attrib ( )
Function Description

Registers some Scheme procedures for working with attributes. Should only be called by main_prog().

Definition at line 161 of file g_attrib.c.

Here is the call graph for this function:

SCM g_funcs_print ( SCM  scm_filename)
Todo:
Finish function documentation!!!
Function Description

Definition at line 47 of file g_funcs.c.

SCM g_funcs_postscript ( SCM  scm_filename)
Todo:
Finish function documentation!!!
Function Description

Definition at line 76 of file g_funcs.c.

SCM g_funcs_image ( SCM  scm_filename)
Todo:
Finish function documentation!!!
Function Description

Definition at line 105 of file g_funcs.c.

Here is the call graph for this function:

SCM g_funcs_exit ( void  )
Todo:
Finish function documentation!!!
Function Description

Definition at line 136 of file g_funcs.c.

SCM g_funcs_log ( SCM  scm_msg)
Todo:
Finish function documentation!!!
Function Description

Definition at line 146 of file g_funcs.c.

SCM g_funcs_msg ( SCM  scm_msg)
Todo:
Finish function documentation!!!
Function Description

Definition at line 165 of file g_funcs.c.

Here is the call graph for this function:

SCM g_funcs_confirm ( SCM  scm_msg)
Todo:
Finish function documentation!!!
Function Description

Definition at line 184 of file g_funcs.c.

Here is the call graph for this function:

SCM g_funcs_filesel ( SCM  scm_msg,
SCM  scm_templ,
SCM  scm_flags 
)
Todo:
Finish function documentation!!!
Function Description

Bug:
FIXME -- figure out the magic SCM_ASSERT for the flags
Bug:
FIXME -- how to deal with conflicting flags? Should I throw a scheme error? Just deal in the c code?

Definition at line 207 of file g_funcs.c.

Here is the call graph for this function:

SCM g_funcs_use_rc_values ( void  )
Todo:
Finish function documentation!!!
Function Description

Definition at line 271 of file g_funcs.c.

Here is the call graph for this function:

SCM get_selected_component_attributes ( GSCHEM_TOPLEVEL w_current)
void g_init_hook ( )
Function Description

Registers gschem's Guile hooks for various events.. Should only be called by main_prog().

Definition at line 180 of file g_hook.c.

Here is the call graph for this function:

void g_run_hook_object ( GSCHEM_TOPLEVEL w_current,
const char *  name,
OBJECT *  obj 
)
Function Description
Runs a hook called name, which should expect a list of #OBJECT smobs as its argument, with a single-element list containing only obj.
See also:
g_run_hook_object_list()
Parameters:
namename of hook to run.
obj#OBJECT argument for hook.

Definition at line 103 of file g_hook.c.

Here is the call graph for this function:

void g_run_hook_object_list ( GSCHEM_TOPLEVEL w_current,
const char *  name,
GList *  obj_lst 
)
Function Description
Runs a hook called name, which should expect a list of #OBJECT smobs as its argument, with obj_lst as the argument list.
See also:
g_run_hook_object()
Parameters:
namename of hook to run.
obj_lstlist of #OBJECT smobs as hook argument.

Definition at line 70 of file g_hook.c.

Here is the call graph for this function:

void g_run_hook_page ( GSCHEM_TOPLEVEL w_current,
const char *  name,
PAGE *  page 
)
Function Description
Runs a hook called name, which should expect the single #PAGE page as its argument.
Parameters:
namename of hook to run
page#PAGE argument for hook.

Definition at line 126 of file g_hook.c.

Here is the call graph for this function:

void g_keys_reset ( GSCHEM_TOPLEVEL w_current)
Function Description
If any prefix keys are stored in the current key sequence, clears them.
Parameters:
w_currentThe active GSCHEM_TOPLEVEL context.

Definition at line 499 of file g_keys.c.

Here is the call graph for this function:

int g_keys_execute ( GSCHEM_TOPLEVEL w_current,
GdkEventKey *  event 
)
Function Description
Evaluates the key combination specified by event using the current keymap. Updates the gschem status bar with the current key sequence.
Parameters:
w_currentThe active GSCHEM_TOPLEVEL context.
eventA GdkEventKey structure.
Returns:
1 if a binding was found for the keystroke, 0 otherwise.

Definition at line 527 of file g_keys.c.

Here is the call graph for this function:

GtkListStore* g_keys_to_list_store ( void  )
Function Description
This function converts the list of key sequence/action pairs returned by the Scheme function dump-global-keymap into a GtkListStore with two columns. The first column contains the name of the action executed by the keybinding as a string, and the second contains the keybinding itself as a string suitable for display.

The returned value must be freed by caller.

Returns:
A GtkListStore containing keymap data.

Definition at line 631 of file g_keys.c.

SCM g_keys_file_new ( SCM  rest)

Definition at line 56 of file g_keys.c.

SCM g_keys_file_new_window ( SCM  rest)

Definition at line 58 of file g_keys.c.

SCM g_keys_file_open ( SCM  rest)

Definition at line 63 of file g_keys.c.

SCM g_keys_file_script ( SCM  rest)

Definition at line 67 of file g_keys.c.

SCM g_keys_file_save ( SCM  rest)

Definition at line 71 of file g_keys.c.

SCM g_keys_file_save_as ( SCM  rest)

Definition at line 72 of file g_keys.c.

SCM g_keys_file_save_all ( SCM  rest)

Definition at line 73 of file g_keys.c.

SCM g_keys_file_print ( SCM  rest)

Definition at line 74 of file g_keys.c.

SCM g_keys_file_write_png ( SCM  rest)

Definition at line 75 of file g_keys.c.

SCM g_keys_file_close ( SCM  rest)

Definition at line 80 of file g_keys.c.

SCM g_keys_file_quit ( SCM  rest)

Definition at line 81 of file g_keys.c.

SCM g_keys_edit_undo ( SCM  rest)

Definition at line 84 of file g_keys.c.

SCM g_keys_edit_redo ( SCM  rest)

Definition at line 85 of file g_keys.c.

SCM g_keys_edit_select ( SCM  rest)

Definition at line 86 of file g_keys.c.

SCM g_keys_edit_select_all ( SCM  rest)

Definition at line 87 of file g_keys.c.

SCM g_keys_edit_deselect ( SCM  rest)

Definition at line 88 of file g_keys.c.

SCM g_keys_edit_copy ( SCM  rest)

Definition at line 89 of file g_keys.c.

SCM g_keys_edit_copy_hotkey ( SCM  rest)

Definition at line 90 of file g_keys.c.

SCM g_keys_edit_mcopy ( SCM  rest)

Definition at line 91 of file g_keys.c.

SCM g_keys_edit_mcopy_hotkey ( SCM  rest)

Definition at line 92 of file g_keys.c.

SCM g_keys_edit_move ( SCM  rest)

Definition at line 93 of file g_keys.c.

SCM g_keys_edit_move_hotkey ( SCM  rest)

Definition at line 94 of file g_keys.c.

SCM g_keys_edit_delete ( SCM  rest)

Definition at line 95 of file g_keys.c.

SCM g_keys_edit_rotate_90 ( SCM  rest)

Definition at line 96 of file g_keys.c.

SCM g_keys_edit_rotate_90_hotkey ( SCM  rest)

Definition at line 97 of file g_keys.c.

SCM g_keys_edit_mirror ( SCM  rest)

Definition at line 98 of file g_keys.c.

SCM g_keys_edit_mirror_hotkey ( SCM  rest)

Definition at line 99 of file g_keys.c.

SCM g_keys_edit_slot ( SCM  rest)

Definition at line 100 of file g_keys.c.

SCM g_keys_edit_color ( SCM  rest)

Definition at line 101 of file g_keys.c.

SCM g_keys_edit_edit ( SCM  rest)

Definition at line 102 of file g_keys.c.

SCM g_keys_edit_pin_type ( SCM  rest)

Definition at line 103 of file g_keys.c.

SCM g_keys_edit_text ( SCM  rest)

Definition at line 104 of file g_keys.c.

SCM g_keys_edit_lock ( SCM  rest)

Definition at line 105 of file g_keys.c.

SCM g_keys_edit_unlock ( SCM  rest)

Definition at line 106 of file g_keys.c.

SCM g_keys_edit_linetype ( SCM  rest)

Definition at line 107 of file g_keys.c.

SCM g_keys_edit_filltype ( SCM  rest)

Definition at line 108 of file g_keys.c.

SCM g_keys_edit_translate ( SCM  rest)

Definition at line 109 of file g_keys.c.

SCM g_keys_edit_invoke_macro ( SCM  rest)

Definition at line 110 of file g_keys.c.

SCM g_keys_edit_embed ( SCM  rest)

Definition at line 111 of file g_keys.c.

SCM g_keys_edit_unembed ( SCM  rest)

Definition at line 112 of file g_keys.c.

SCM g_keys_edit_update ( SCM  rest)

Definition at line 113 of file g_keys.c.

SCM g_keys_edit_show_hidden ( SCM  rest)

Definition at line 114 of file g_keys.c.

SCM g_keys_edit_find ( SCM  rest)

Definition at line 115 of file g_keys.c.

SCM g_keys_edit_show_text ( SCM  rest)

Definition at line 116 of file g_keys.c.

SCM g_keys_edit_hide_text ( SCM  rest)

Definition at line 117 of file g_keys.c.

SCM g_keys_edit_autonumber_text ( SCM  rest)

Definition at line 118 of file g_keys.c.

SCM g_keys_clipboard_copy ( SCM  rest)

Definition at line 120 of file g_keys.c.

SCM g_keys_clipboard_cut ( SCM  rest)

Definition at line 121 of file g_keys.c.

SCM g_keys_clipboard_paste ( SCM  rest)

Definition at line 122 of file g_keys.c.

SCM g_keys_clipboard_paste_hotkey ( SCM  rest)

Definition at line 123 of file g_keys.c.

SCM g_keys_buffer_copy1 ( SCM  rest)

Definition at line 125 of file g_keys.c.

SCM g_keys_buffer_copy2 ( SCM  rest)

Definition at line 126 of file g_keys.c.

SCM g_keys_buffer_copy3 ( SCM  rest)

Definition at line 127 of file g_keys.c.

SCM g_keys_buffer_copy4 ( SCM  rest)

Definition at line 128 of file g_keys.c.

SCM g_keys_buffer_copy5 ( SCM  rest)

Definition at line 129 of file g_keys.c.

SCM g_keys_buffer_cut1 ( SCM  rest)

Definition at line 130 of file g_keys.c.

SCM g_keys_buffer_cut2 ( SCM  rest)

Definition at line 131 of file g_keys.c.

SCM g_keys_buffer_cut3 ( SCM  rest)

Definition at line 132 of file g_keys.c.

SCM g_keys_buffer_cut4 ( SCM  rest)

Definition at line 133 of file g_keys.c.

SCM g_keys_buffer_cut5 ( SCM  rest)

Definition at line 134 of file g_keys.c.

SCM g_keys_buffer_paste1 ( SCM  rest)

Definition at line 135 of file g_keys.c.

SCM g_keys_buffer_paste2 ( SCM  rest)

Definition at line 136 of file g_keys.c.

SCM g_keys_buffer_paste3 ( SCM  rest)

Definition at line 137 of file g_keys.c.

SCM g_keys_buffer_paste4 ( SCM  rest)

Definition at line 138 of file g_keys.c.

SCM g_keys_buffer_paste5 ( SCM  rest)

Definition at line 139 of file g_keys.c.

SCM g_keys_buffer_paste1_hotkey ( SCM  rest)

Definition at line 140 of file g_keys.c.

SCM g_keys_buffer_paste2_hotkey ( SCM  rest)

Definition at line 141 of file g_keys.c.

SCM g_keys_buffer_paste3_hotkey ( SCM  rest)

Definition at line 142 of file g_keys.c.

SCM g_keys_buffer_paste4_hotkey ( SCM  rest)

Definition at line 143 of file g_keys.c.

SCM g_keys_buffer_paste5_hotkey ( SCM  rest)

Definition at line 144 of file g_keys.c.

SCM g_keys_view_redraw ( SCM  rest)

Definition at line 148 of file g_keys.c.

SCM g_keys_view_zoom_full ( SCM  rest)

Definition at line 152 of file g_keys.c.

SCM g_keys_view_zoom_extents ( SCM  rest)

Definition at line 153 of file g_keys.c.

SCM g_keys_view_zoom_in ( SCM  rest)

Definition at line 154 of file g_keys.c.

SCM g_keys_view_zoom_out ( SCM  rest)

Definition at line 155 of file g_keys.c.

SCM g_keys_view_zoom_in_hotkey ( SCM  rest)

Definition at line 156 of file g_keys.c.

SCM g_keys_view_zoom_out_hotkey ( SCM  rest)

Definition at line 157 of file g_keys.c.

SCM g_keys_view_zoom_box ( SCM  rest)

Definition at line 159 of file g_keys.c.

SCM g_keys_view_zoom_box_hotkey ( SCM  rest)

Definition at line 160 of file g_keys.c.

SCM g_keys_view_pan ( SCM  rest)

Definition at line 161 of file g_keys.c.

SCM g_keys_view_pan_left ( SCM  rest)

Definition at line 162 of file g_keys.c.

SCM g_keys_view_pan_right ( SCM  rest)

Definition at line 163 of file g_keys.c.

SCM g_keys_view_pan_up ( SCM  rest)

Definition at line 164 of file g_keys.c.

SCM g_keys_view_pan_down ( SCM  rest)

Definition at line 165 of file g_keys.c.

SCM g_keys_view_pan_hotkey ( SCM  rest)

Definition at line 166 of file g_keys.c.

SCM g_keys_view_dark_colors ( SCM  rest)

Definition at line 167 of file g_keys.c.

SCM g_keys_view_light_colors ( SCM  rest)

Definition at line 168 of file g_keys.c.

SCM g_keys_view_bw_colors ( SCM  rest)

Definition at line 169 of file g_keys.c.

SCM g_keys_page_manager ( SCM  rest)

Definition at line 170 of file g_keys.c.

SCM g_keys_page_next ( SCM  rest)

Definition at line 171 of file g_keys.c.

SCM g_keys_page_prev ( SCM  rest)

Definition at line 172 of file g_keys.c.

SCM g_keys_page_new ( SCM  rest)

Definition at line 173 of file g_keys.c.

SCM g_keys_page_close ( SCM  rest)

Definition at line 174 of file g_keys.c.

SCM g_keys_page_revert ( SCM  rest)

Definition at line 175 of file g_keys.c.

SCM g_keys_page_discard ( SCM  rest)

Definition at line 176 of file g_keys.c.

SCM g_keys_page_print ( SCM  rest)

Definition at line 177 of file g_keys.c.

SCM g_keys_add_component ( SCM  rest)

Definition at line 178 of file g_keys.c.

SCM g_keys_add_attribute ( SCM  rest)

Definition at line 179 of file g_keys.c.

SCM g_keys_add_attribute_hotkey ( SCM  rest)

Definition at line 180 of file g_keys.c.

SCM g_keys_add_net ( SCM  rest)

Definition at line 181 of file g_keys.c.

SCM g_keys_add_net_hotkey ( SCM  rest)

Definition at line 182 of file g_keys.c.

SCM g_keys_add_bus ( SCM  rest)

Definition at line 183 of file g_keys.c.

SCM g_keys_add_bus_hotkey ( SCM  rest)

Definition at line 184 of file g_keys.c.

SCM g_keys_add_text ( SCM  rest)

Definition at line 185 of file g_keys.c.

SCM g_keys_add_line ( SCM  rest)

Definition at line 186 of file g_keys.c.

SCM g_keys_add_line_hotkey ( SCM  rest)

Definition at line 187 of file g_keys.c.

SCM g_keys_add_box ( SCM  rest)

Definition at line 188 of file g_keys.c.

SCM g_keys_add_box_hotkey ( SCM  rest)

Definition at line 189 of file g_keys.c.

SCM g_keys_add_picture ( SCM  rest)

Definition at line 190 of file g_keys.c.

SCM g_keys_add_picture_hotkey ( SCM  rest)

Definition at line 191 of file g_keys.c.

SCM g_keys_add_circle ( SCM  rest)

Definition at line 192 of file g_keys.c.

SCM g_keys_add_circle_hotkey ( SCM  rest)

Definition at line 193 of file g_keys.c.

SCM g_keys_add_arc ( SCM  rest)

Definition at line 194 of file g_keys.c.

SCM g_keys_add_arc_hotkey ( SCM  rest)

Definition at line 195 of file g_keys.c.

SCM g_keys_add_pin ( SCM  rest)

Definition at line 196 of file g_keys.c.

SCM g_keys_add_pin_hotkey ( SCM  rest)

Definition at line 197 of file g_keys.c.

SCM g_keys_hierarchy_down_schematic ( SCM  rest)

Definition at line 198 of file g_keys.c.

SCM g_keys_hierarchy_down_symbol ( SCM  rest)

Definition at line 199 of file g_keys.c.

SCM g_keys_hierarchy_up ( SCM  rest)

Definition at line 200 of file g_keys.c.

SCM g_keys_attributes_attach ( SCM  rest)

Definition at line 201 of file g_keys.c.

SCM g_keys_attributes_detach ( SCM  rest)

Definition at line 202 of file g_keys.c.

SCM g_keys_attributes_show_name ( SCM  rest)

Definition at line 203 of file g_keys.c.

SCM g_keys_attributes_show_value ( SCM  rest)

Definition at line 204 of file g_keys.c.

SCM g_keys_attributes_show_both ( SCM  rest)

Definition at line 205 of file g_keys.c.

SCM g_keys_attributes_visibility_toggle ( SCM  rest)

Definition at line 206 of file g_keys.c.

SCM g_keys_script_console ( SCM  rest)

Definition at line 209 of file g_keys.c.

SCM g_keys_options_text_size ( SCM  rest)

Definition at line 213 of file g_keys.c.

SCM g_keys_options_afeedback ( SCM  rest)

Definition at line 217 of file g_keys.c.

SCM g_keys_options_grid ( SCM  rest)

Definition at line 218 of file g_keys.c.

SCM g_keys_options_snap ( SCM  rest)

Definition at line 219 of file g_keys.c.

SCM g_keys_options_snap_size ( SCM  rest)

Definition at line 220 of file g_keys.c.

SCM g_keys_options_scale_up_snap_size ( SCM  rest)

Definition at line 221 of file g_keys.c.

SCM g_keys_options_scale_down_snap_size ( SCM  rest)

Definition at line 222 of file g_keys.c.

SCM g_keys_options_rubberband ( SCM  rest)

Definition at line 223 of file g_keys.c.

SCM g_keys_options_magneticnet ( SCM  rest)

Definition at line 224 of file g_keys.c.

SCM g_keys_options_show_log_window ( SCM  rest)

Definition at line 225 of file g_keys.c.

SCM g_keys_options_show_coord_window ( SCM  rest)

Definition at line 226 of file g_keys.c.

SCM g_keys_misc ( SCM  rest)

Definition at line 227 of file g_keys.c.

SCM g_keys_misc2 ( SCM  rest)

Definition at line 228 of file g_keys.c.

SCM g_keys_misc3 ( SCM  rest)

Definition at line 229 of file g_keys.c.

SCM g_keys_help_about ( SCM  rest)

Definition at line 231 of file g_keys.c.

SCM g_keys_help_hotkeys ( SCM  rest)

Definition at line 232 of file g_keys.c.

SCM g_keys_cancel ( SCM  rest)

Definition at line 237 of file g_keys.c.

void g_init_keys ( )
Function Description
Registers some Scheme procedures for working with key combinations. Should only be called by main_prog().

Definition at line 697 of file g_keys.c.

Here is the call graph for this function:

void g_rc_parse_gtkrc ( )
Todo:
Finish function documentation!!!
Function Description

Definition at line 48 of file g_rc.c.

SCM g_rc_gschem_version ( SCM  scm_version)
Function Description

Implements the Scheme function "gschem-version". Tests the version string in the argument against the version of the application itself.

Parameters:
[in]scm_versionScheme object containing RC file version string
Returns:
#t if the version of the RC file matches the application, else #f.

Definition at line 73 of file g_rc.c.

Here is the call graph for this function:

SCM g_rc_net_endpoint_mode ( SCM  mode)
Todo:
Finish function documentation!!!
Function Description

Definition at line 116 of file g_rc.c.

SCM g_rc_net_midpoint_mode ( SCM  mode)
Todo:
Finish function documentation!!!
Function Description

Definition at line 132 of file g_rc.c.

SCM g_rc_net_direction_mode ( SCM  mode)
Todo:
Finish function documentation!!!
Function Description

Definition at line 148 of file g_rc.c.

SCM g_rc_net_selection_mode ( SCM  mode)
Todo:
Finish function documentation!!!
Function Description

Definition at line 165 of file g_rc.c.

SCM g_rc_net_style ( SCM  mode)
Todo:
Finish function documentation!!!
Function Description

Definition at line 183 of file g_rc.c.

SCM g_rc_bus_style ( SCM  mode)
Todo:
Finish function documentation!!!
Function Description

Definition at line 200 of file g_rc.c.

SCM g_rc_pin_style ( SCM  mode)
Todo:
Finish function documentation!!!
Function Description

Definition at line 217 of file g_rc.c.

SCM g_rc_line_style ( SCM  mode)
Todo:
Finish function documentation!!!
Function Description

Definition at line 234 of file g_rc.c.

SCM g_rc_action_feedback_mode ( SCM  mode)
Todo:
Finish function documentation!!!
Function Description

Definition at line 251 of file g_rc.c.

SCM g_rc_zoom_with_pan ( SCM  mode)
Todo:
Finish function documentation!!!
Function Description

Definition at line 268 of file g_rc.c.

SCM g_rc_text_feedback ( SCM  mode)
Todo:
Finish function documentation!!!
Function Description

Definition at line 285 of file g_rc.c.

SCM g_rc_text_display_zoomfactor ( SCM  zoomfactor)
Todo:
Finish function documentation!!!
Function Description

Definition at line 302 of file g_rc.c.

SCM g_rc_scrollbar_update ( SCM  scmmode)
Todo:
Finish function documentation!!!
Function Description

Definition at line 328 of file g_rc.c.

SCM g_rc_object_clipping ( SCM  mode)
Todo:
Finish function documentation!!!
Function Description

Definition at line 343 of file g_rc.c.

SCM g_rc_logging ( SCM  mode)
Todo:
Finish function documentation!!!
Function Description

Definition at line 360 of file g_rc.c.

SCM g_rc_embed_components ( SCM  mode)
Todo:
Finish function documentation!!!
Function Description

Definition at line 377 of file g_rc.c.

SCM g_rc_component_dialog_attributes ( SCM  stringlist)
Function Description
This function reads the string list from the component-dialog-attributes configuration parameter and converts the list into a GList. The GList is stored in the global default_component_select_attrlist variable.

Definition at line 406 of file g_rc.c.

Here is the call graph for this function:

SCM g_rc_text_size ( SCM  size)
Todo:
Finish function documentation!!!
Function Description

Definition at line 449 of file g_rc.c.

SCM g_rc_text_caps_style ( SCM  mode)
Todo:
Finish function documentation!!!
Function Description
Todo:
inconsistant naming with keyword name and variable to hold variable

Definition at line 475 of file g_rc.c.

SCM g_rc_snap_size ( SCM  size)
Todo:
Finish function documentation!!!
Function Description

Definition at line 493 of file g_rc.c.

SCM g_rc_logging_destination ( SCM  mode)
Todo:
Finish function documentation!!!
Function Description

Definition at line 516 of file g_rc.c.

SCM g_rc_attribute_name ( SCM  scm_path)
Todo:
Finish function documentation!!!
Function Description

Definition at line 534 of file g_rc.c.

SCM g_rc_scrollbars ( SCM  mode)
Todo:
Finish function documentation!!!
Function Description

Definition at line 561 of file g_rc.c.

SCM g_rc_paper_size ( SCM  width,
SCM  height 
)
Todo:
Finish function documentation!!!
Function Description

Definition at line 578 of file g_rc.c.

SCM g_rc_paper_sizes ( SCM  scm_papername,
SCM  scm_width,
SCM  scm_height 
)
Todo:
Finish function documentation!!!
Function Description

Definition at line 599 of file g_rc.c.

SCM g_rc_output_type ( SCM  mode)
Todo:
Finish function documentation!!!
Function Description
Todo:
this keyword needs a better name ...

Definition at line 636 of file g_rc.c.

SCM g_rc_output_orientation ( SCM  mode)
Todo:
Finish function documentation!!!
Function Description

Definition at line 655 of file g_rc.c.

SCM g_rc_image_color ( SCM  mode)
Todo:
Finish function documentation!!!
Function Description

Definition at line 672 of file g_rc.c.

SCM g_rc_image_size ( SCM  width,
SCM  height 
)
Todo:
Finish function documentation!!!
Function Description

Definition at line 689 of file g_rc.c.

SCM g_rc_output_color ( SCM  mode)
Todo:
Finish function documentation!!!
Function Description

Definition at line 706 of file g_rc.c.

SCM g_rc_output_capstyle ( SCM  mode)
Todo:
Finish function documentation!!!
Function Description

Definition at line 724 of file g_rc.c.

SCM g_rc_log_window ( SCM  mode)
Todo:
Finish function documentation!!!
Function Description

Definition at line 742 of file g_rc.c.

SCM g_rc_log_window_type ( SCM  mode)
Todo:
Finish function documentation!!!
Function Description

Definition at line 759 of file g_rc.c.

SCM g_rc_third_button ( SCM  mode)
Todo:
Finish function documentation!!!
Function Description

Definition at line 776 of file g_rc.c.

SCM g_rc_middle_button ( SCM  mode)
Todo:
Finish function documentation!!!
Function Description

Definition at line 793 of file g_rc.c.

SCM g_rc_scroll_wheel ( SCM  mode)
Todo:
Finish function documentation!!!
Function Description

Definition at line 812 of file g_rc.c.

SCM g_rc_net_consolidate ( SCM  mode)
Todo:
Finish function documentation!!!
Function Description

Definition at line 829 of file g_rc.c.

SCM g_rc_file_preview ( SCM  mode)
Todo:
Finish function documentation!!!
Function Description

Definition at line 846 of file g_rc.c.

SCM g_rc_enforce_hierarchy ( SCM  mode)
Todo:
Finish function documentation!!!
Function Description

Definition at line 864 of file g_rc.c.

SCM g_rc_text_origin_marker ( SCM  mode)
Todo:
Finish function documentation!!!
Function Description

Definition at line 881 of file g_rc.c.

SCM g_rc_fast_mousepan ( SCM  mode)
Todo:
Finish function documentation!!!
Function Description

Definition at line 898 of file g_rc.c.

SCM g_rc_raise_dialog_boxes_on_expose ( SCM  mode)
Todo:
Finish function documentation!!!
Function Description

Definition at line 915 of file g_rc.c.

SCM g_rc_continue_component_place ( SCM  mode)
Todo:
Finish function documentation!!!
Function Description

Definition at line 932 of file g_rc.c.

SCM g_rc_undo_levels ( SCM  levels)
Todo:
Finish function documentation!!!
Function Description

Definition at line 949 of file g_rc.c.

SCM g_rc_undo_control ( SCM  mode)
Todo:
Finish function documentation!!!
Function Description

Definition at line 973 of file g_rc.c.

SCM g_rc_undo_type ( SCM  mode)
Todo:
Finish function documentation!!!
Function Description

Definition at line 988 of file g_rc.c.

SCM g_rc_undo_panzoom ( SCM  mode)
Todo:
Finish function documentation!!!
Function Description

Definition at line 1005 of file g_rc.c.

SCM g_rc_draw_grips ( SCM  mode)
Todo:
Finish function documentation!!!
Function Description

Definition at line 1020 of file g_rc.c.

SCM g_rc_netconn_rubberband ( SCM  mode)
Todo:
Finish function documentation!!!
Function Description

Definition at line 1037 of file g_rc.c.

SCM g_rc_magnetic_net_mode ( SCM  mode)
Todo:
Finish function documentation!!!
Function Description

Definition at line 1055 of file g_rc.c.

SCM g_rc_sort_component_library ( SCM  mode)
Todo:
Finish function documentation!!!
Function Description

Definition at line 1072 of file g_rc.c.

SCM g_rc_add_menu ( SCM  scm_menu_name,
SCM  scm_menu_items 
)
Todo:
Finish function documentation!!!
Function Description

Definition at line 1089 of file g_rc.c.

SCM g_rc_window_size ( SCM  width,
SCM  height 
)
Todo:
Finish function documentation!!!
Function Description

Definition at line 1110 of file g_rc.c.

SCM g_rc_warp_cursor ( SCM  mode)
Todo:
Finish function documentation!!!
Function Description

Definition at line 1126 of file g_rc.c.

SCM g_rc_toolbars ( SCM  mode)
Todo:
Finish function documentation!!!
Function Description

Definition at line 1143 of file g_rc.c.

SCM g_rc_handleboxes ( SCM  mode)
Todo:
Finish function documentation!!!
Function Description

Definition at line 1160 of file g_rc.c.

SCM g_rc_setpagedevice_orientation ( SCM  mode)
Todo:
Finish function documentation!!!
Function Description

Definition at line 1177 of file g_rc.c.

SCM g_rc_setpagedevice_pagesize ( SCM  mode)
Todo:
Finish function documentation!!!
Function Description

Definition at line 1194 of file g_rc.c.

SCM g_rc_bus_ripper_size ( SCM  size)
Todo:
Finish function documentation!!!
Function Description

Definition at line 1211 of file g_rc.c.

SCM g_rc_bus_ripper_type ( SCM  mode)
Todo:
Finish function documentation!!!
Function Description

Definition at line 1235 of file g_rc.c.

SCM g_rc_bus_ripper_rotation ( SCM  mode)
Todo:
Finish function documentation!!!
Function Description

Definition at line 1252 of file g_rc.c.

SCM g_rc_force_boundingbox ( SCM  mode)
Todo:
Finish function documentation!!!
Function Description

Definition at line 1269 of file g_rc.c.

SCM g_rc_dots_grid_dot_size ( SCM  dotsize)
Todo:
Finish function documentation!!!
Function Description

Definition at line 1286 of file g_rc.c.

SCM g_rc_dots_grid_mode ( SCM  mode)
Todo:
Finish function documentation!!!
Function Description

Definition at line 1310 of file g_rc.c.

SCM g_rc_dots_grid_fixed_threshold ( SCM  spacing)
Todo:
Finish function documentation!!!
Function Description

Definition at line 1327 of file g_rc.c.

SCM g_rc_mesh_grid_display_threshold ( SCM  spacing)
Todo:
Finish function documentation!!!
Function Description

Definition at line 1352 of file g_rc.c.

SCM g_rc_add_attribute_offset ( SCM  offset)
Todo:
Finish function documentation!!!
Function Description

Definition at line 1377 of file g_rc.c.

SCM g_rc_auto_save_interval ( SCM  seconds)
Todo:
Finish function documentation!!!
Function Description

Definition at line 1402 of file g_rc.c.

SCM g_rc_mousepan_gain ( SCM  gain)
Todo:
Finish function documentation!!!
Function Description

Definition at line 1426 of file g_rc.c.

SCM g_rc_keyboardpan_gain ( SCM  gain)

Default setting is 20.

Definition at line 1449 of file g_rc.c.

SCM g_rc_print_command ( SCM  scm_command)
Todo:
Finish function documentation!!!
Function Description

Definition at line 1473 of file g_rc.c.

SCM g_rc_select_slack_pixels ( SCM  pixels)
Todo:
Finish function documentation!!!
Function Description

Definition at line 1496 of file g_rc.c.

SCM g_rc_zoom_gain ( SCM  gain)
Todo:
Finish function documentation!!!
Function Description

Definition at line 1520 of file g_rc.c.

SCM g_rc_scrollpan_steps ( SCM  steps)
Todo:
Finish function documentation!!!
Function Description

Definition at line 1545 of file g_rc.c.

SCM g_rc_display_color_map ( SCM  scm_map)

Definition at line 1569 of file g_rc.c.

SCM g_rc_display_outline_color_map ( SCM  scm_map)

Definition at line 1582 of file g_rc.c.

void g_register_funcs ( void  )
Function Description
Creates subr objects to make g_rc_* functions that are defined * #g_rc.c, #g_keys.c and #g_funcs.c visible to Scheme.

Definition at line 319 of file g_register.c.

Here is the call graph for this function:

void g_init_select ( )
Function Description
Registers some Scheme procedures for working with the selection. Should only be called by main_prog().

Definition at line 180 of file g_select.c.

Here is the call graph for this function:

void g_init_util ( )
Function Description
Registers some Scheme utility procedures for e.g. accessing miscellaneous system services. Should only be called by main_prog().

Definition at line 88 of file g_util.c.

Here is the call graph for this function:

GSCHEM_TOPLEVEL* g_current_window ( )
Function Description
Return the value of the GSCHEM_TOPLEVEL fluid in the current dynamic context.

Definition at line 130 of file g_window.c.

void g_dynwind_window ( GSCHEM_TOPLEVEL w_current)
Function Description

This function must be used inside a pair of calls to scm_dynwind_begin() and scm_dynwind_end(). During the dynwind context, the GSCHEM_TOPLEVEL fluid is set to w_current.

Parameters:
[in]w_currentThe new GSCHEM_TOPLEVEL pointer.

Definition at line 103 of file g_window.c.

Here is the call graph for this function:

void g_init_window ( )
Function Description

Registers some Scheme procedures for working with GSCHEM_TOPLEVEL smobs and creates the GSCHEM_TOPLEVEL fluid. Should only be called by main_prog().

Definition at line 324 of file g_window.c.

Here is the call graph for this function:

void gschem_atexit ( gschem_atexit_func  func,
gpointer  data 
)
Function Description
This function registers a function to be called on program exit. Multiple functions will be executed in the order they are registered.
Parameters:
[in]funca pointer to the function to be registered
[in]dataan arbitrary argument provided to the function when it is called

Definition at line 66 of file gschem.c.

void gschem_quit ( void  )
Function Description
This function cleans up all memory objects allocated during the gSchem runtime.

Definition at line 81 of file gschem.c.

Here is the call graph for this function:

void main_prog ( void *  closure,
int  argc,
char *  argv[] 
)
Function Description
This function is the main program called from scm_boot_guile. It handles initializing all libraries and gSchem variables and passes control to the gtk main loop.

Todo:
These two messages are the same. Should be integrated.

Definition at line 129 of file gschem.c.

Here is the call graph for this function:

int main ( int  argc,
char *  argv[] 
)
Function Description
This is the main function for gSchem. It sets up the Scheme(GUILE) environment and passes control to via scm_boot_guile to the main_prog function.

Definition at line 339 of file gschem.c.

Here is the call graph for this function:

void gschem_cairo_line ( GSCHEM_TOPLEVEL w_current,
int  line_end,
int  line_width,
int  x1,
int  y1,
int  x2,
int  y2 
)

Definition at line 43 of file gschem_cairo.c.

Here is the call graph for this function:

void gschem_cairo_box ( GSCHEM_TOPLEVEL w_current,
int  line_width,
int  x1,
int  y1,
int  x2,
int  y2 
)

Definition at line 101 of file gschem_cairo.c.

Here is the call graph for this function:

void gschem_cairo_center_box ( GSCHEM_TOPLEVEL w_current,
int  center_width,
int  line_width,
int  x1,
int  y1,
int  x2,
int  y2 
)

Definition at line 128 of file gschem_cairo.c.

Here is the call graph for this function:

void gschem_cairo_arc ( GSCHEM_TOPLEVEL w_current,
int  line_width,
int  x,
int  y,
int  radius,
int  start_angle,
int  end_angle 
)

Definition at line 209 of file gschem_cairo.c.

Here is the call graph for this function:

void gschem_cairo_center_arc ( GSCHEM_TOPLEVEL w_current,
int  center_width,
int  line_width,
int  x,
int  y,
int  radius,
int  start_angle,
int  end_angle 
)

Definition at line 241 of file gschem_cairo.c.

Here is the call graph for this function:

void gschem_cairo_stroke ( GSCHEM_TOPLEVEL w_current,
int  line_type,
int  line_end,
int  width,
int  length,
int  space 
)

Definition at line 284 of file gschem_cairo.c.

Here is the call graph for this function:

void gschem_cairo_set_source_color ( GSCHEM_TOPLEVEL w_current,
COLOR *  color 
)

Definition at line 392 of file gschem_cairo.c.

void i_show_state ( GSCHEM_TOPLEVEL w_current,
const char *  message 
)
Function Description
Show state field on screen, possibly with the addition of an extra message
Parameters:
[in]w_currentGSCHEM_TOPLEVEL structure
[in]messageThe string to be displayed

Definition at line 157 of file i_basic.c.

Here is the call graph for this function:

void i_set_state ( GSCHEM_TOPLEVEL w_current,
enum x_states  newstate 
)
Function Description
Set new state, then show state field.
Parameters:
[in]w_currentGSCHEM_TOPLEVEL structure
[in]newstateThe new state *EK* Egil Kvaleberg

Definition at line 205 of file i_basic.c.

Here is the call graph for this function:

void i_set_state_msg ( GSCHEM_TOPLEVEL w_current,
enum x_states  newstate,
const char *  message 
)
Function Description
Set new state, then show state field including some message.
Parameters:
[in]w_currentGSCHEM_TOPLEVEL structure
[in]newstateThe new state
[in]messageMessage to be shown *EK* Egil Kvaleberg

Definition at line 222 of file i_basic.c.

Here is the call graph for this function:

void i_update_middle_button ( GSCHEM_TOPLEVEL w_current,
void(*)()  func_ptr,
const char *  string 
)
Todo:
Finish function documentation!!!
Function Description

Definition at line 234 of file i_basic.c.

void i_update_toolbar ( GSCHEM_TOPLEVEL w_current)
Todo:
Finish function documentation!!!
Parameters:
[in]w_currentGSCHEM_TOPLEVEL structure

Todo:
Todo:
Todo:
Todo:
Todo:
Todo:
Todo:
Todo:
Todo:
Todo:
Todo:
Todo:
Todo:
Todo:
Todo:
Todo:
Todo:
Todo:
Todo:
Todo:
Todo:
Todo:
Todo:
Todo:
Todo:
Todo:
Todo:
Todo:
Todo:
Todo:
Todo:
Todo:
Todo:
Todo:
Todo:
Todo:

Definition at line 287 of file i_basic.c.

void i_update_menus ( GSCHEM_TOPLEVEL w_current)
Function Description
Update sensitivity of relevant menu items.
Parameters:
[in]w_currentGSCHEM_TOPLEVEL structure

Definition at line 394 of file i_basic.c.

Here is the call graph for this function:

void i_set_filename ( GSCHEM_TOPLEVEL w_current,
const gchar *  string 
)
Function Description
Set filename as gschem window title using the gnome HID format style.
Parameters:
[in]w_currentGSCHEM_TOPLEVEL structure
[in]stringThe filename

Definition at line 524 of file i_basic.c.

void i_update_grid_info ( GSCHEM_TOPLEVEL w_current)
Function Description
Write the grid settings to the gschem status bar. The function takes the current grid paramters of gschem and prints it to the status bar. The format is "Grid([SnapGridSize],[CurrentGridSize])"
Parameters:
[in]w_currentGSCHEM_TOPLEVEL structure

Definition at line 555 of file i_basic.c.

Here is the call graph for this function:

void i_callback_file_new ( gpointer  data,
guint  callback_action,
GtkWidget *  widget 
)

Callback Functions

right now, all callbacks except for the ones on the File menu have the middle button shortcut. Let me (Ales) know if we should also shortcut the File button

Definition at line 66 of file i_callbacks.c.

Here is the call graph for this function:

void i_callback_toolbar_file_new ( GtkWidget *  widget,
gpointer  data 
)
Todo:
Finish function documentation!!!
Function Description
Note:
don't use the widget parameter on this function, or do some checking... since there is a call: widget = NULL, data = 0 (will be w_current hack)

Definition at line 87 of file i_callbacks.c.

Here is the call graph for this function:

void i_callback_file_new_window ( gpointer  data,
guint  callback_action,
GtkWidget *  widget 
)
Todo:
Finish function documentation!!!
Function Description

Definition at line 101 of file i_callbacks.c.

Here is the call graph for this function:

void i_callback_file_open ( gpointer  data,
guint  callback_action,
GtkWidget *  widget 
)
Todo:
Finish function documentation!!!
Function Description
Note:
don't use the widget parameter on this function, or do some checking... since there is a call: widget = NULL, data = 0 (will be w_current)
Todo:
This should be renamed to page_open perhaps...

Definition at line 137 of file i_callbacks.c.

Here is the call graph for this function:

void i_callback_toolbar_file_open ( GtkWidget *  widget,
gpointer  data 
)
Todo:
Finish function documentation!!!
Function Description
Note:
don't use the widget parameter on this function, or do some checking... since there is a call: widget = NULL, data = 0 (will be w_current)
Todo:
This should be renamed to page_open perhaps...

Definition at line 156 of file i_callbacks.c.

Here is the call graph for this function:

void i_callback_file_script ( gpointer  data,
guint  callback_action,
GtkWidget *  widget 
)
Todo:
Finish function documentation!!!
Function Description

Definition at line 170 of file i_callbacks.c.

Here is the call graph for this function:

void i_callback_file_save ( gpointer  data,
guint  callback_action,
GtkWidget *  widget 
)
Todo:
Finish function documentation!!!
Function Description
Note:
don't use the widget parameter on this function, or do some checking... since there is a call: widget = NULL, data = 0 (will be w_current)

Todo:
probably there should be a flag that says whether page_filename is derived from untitled_name or specified by a user. Some twisted people might name their files like untitled_name. :-)

Definition at line 187 of file i_callbacks.c.

Here is the call graph for this function:

void i_callback_toolbar_file_save ( GtkWidget *  widget,
gpointer  data 
)
Todo:
Finish function documentation!!!
Function Description
Note:
don't use the widget parameter on this function, or do some checking... since there is a call: widget = NULL, data = 0 (will be w_current)
Todo:
This should be renamed to page_open perhaps...

Definition at line 218 of file i_callbacks.c.

Here is the call graph for this function:

void i_callback_file_save_all ( gpointer  data,
guint  callback_action,
GtkWidget *  widget 
)
Todo:
Finish function documentation!!!
Function Description
Note:
don't use the widget parameter on this function, or do some checking... since there is a call: widget = NULL, data = 0 (will be w_current)

Definition at line 235 of file i_callbacks.c.

Here is the call graph for this function:

void i_callback_file_save_as ( gpointer  data,
guint  callback_action,
GtkWidget *  widget 
)
Todo:
Finish function documentation!!!
Function Description

Definition at line 257 of file i_callbacks.c.

Here is the call graph for this function:

void i_callback_file_print ( gpointer  data,
guint  callback_action,
GtkWidget *  widget 
)
Todo:
Finish function documentation!!!
Function Description

Definition at line 270 of file i_callbacks.c.

Here is the call graph for this function:

void i_callback_file_write_png ( gpointer  data,
guint  callback_action,
GtkWidget *  widget 
)
Todo:
Finish function documentation!!!
Function Description

Definition at line 309 of file i_callbacks.c.

Here is the call graph for this function:

void i_callback_file_close ( gpointer  data,
guint  callback_action,
GtkWidget *  widget 
)
Todo:
Finish function documentation!!!
Function Description
Note:
don't use the widget parameter on this function, or do some checking... since there is a call: widget = NULL, data = 0 (will be w_current) this function closes a window

Definition at line 328 of file i_callbacks.c.

Here is the call graph for this function:

int i_callback_close ( gpointer  data,
guint  callback_action,
GtkWidget *  widget 
)
Todo:
Finish function documentation!!!
Function Description
This function is called when you send a delete event to gschem
Note:
Also DON'T ref the widget parameter since they can be null
Todo:
Need a cleaner way of doing this. This routine is used by the delete event signals

Definition at line 348 of file i_callbacks.c.

Here is the call graph for this function:

void i_callback_file_quit ( gpointer  data,
guint  callback_action,
GtkWidget *  widget 
)
Todo:
Finish function documentation!!!
Function Description

Definition at line 362 of file i_callbacks.c.

Here is the call graph for this function:

void i_callback_edit_undo ( gpointer  data,
guint  callback_action,
GtkWidget *  widget 
)

Definition at line 376 of file i_callbacks.c.

Here is the call graph for this function:

void i_callback_toolbar_edit_undo ( GtkWidget *  widget,
gpointer  data 
)
Todo:
Finish function documentation!!!
Function Description
Note:
don't use the widget parameter on this function, or do some checking... since there is a call: widget = NULL, data = 0 (will be w_current hack)

Definition at line 406 of file i_callbacks.c.

Here is the call graph for this function:

void i_callback_edit_redo ( gpointer  data,
guint  callback_action,
GtkWidget *  widget 
)
Todo:
Finish function documentation!!!
Function Description

Definition at line 420 of file i_callbacks.c.

Here is the call graph for this function:

void i_callback_toolbar_edit_redo ( GtkWidget *  widget,
gpointer  data 
)
Todo:
Finish function documentation!!!
Function Description
Note:
don't use the widget parameter on this function, or do some checking... since there is a call: widget = NULL, data = 0 (will be w_current hack)

Definition at line 435 of file i_callbacks.c.

Here is the call graph for this function:

void i_callback_edit_select ( gpointer  data,
guint  callback_action,
GtkWidget *  widget 
)
Todo:
Finish function documentation!!!
Function Description
Note:
Select also does not update the middle button shortcut.

Definition at line 451 of file i_callbacks.c.

Here is the call graph for this function:

void i_callback_toolbar_edit_select ( GtkWidget *  widget,
gpointer  data 
)
Todo:
Finish function documentation!!!
Function Description
Note:
don't use the widget parameter on this function, or do some checking... since there is a call: widget = NULL, data = 0 (will be w_current hack)

Definition at line 470 of file i_callbacks.c.

Here is the call graph for this function:

void i_callback_edit_select_all ( gpointer  data,
guint  callback_action,
GtkWidget *  widget 
)
Function Description
Sets all objects on page as selected.

Definition at line 488 of file i_callbacks.c.

Here is the call graph for this function:

void i_callback_edit_deselect ( gpointer  data,
guint  callback_action,
GtkWidget *  widget 
)
Function Description
Sets all objects on page as deselected.

Definition at line 505 of file i_callbacks.c.

Here is the call graph for this function:

void i_callback_edit_copy ( gpointer  data,
guint  callback_action,
GtkWidget *  widget 
)
Todo:
Finish function documentation!!!
Function Description

Definition at line 523 of file i_callbacks.c.

Here is the call graph for this function:

void i_callback_edit_copy_hotkey ( gpointer  data,
guint  callback_action,
GtkWidget *  widget 
)
Todo:
Finish function documentation!!!
Function Description

Definition at line 543 of file i_callbacks.c.

Here is the call graph for this function:

void i_callback_edit_mcopy ( gpointer  data,
guint  callback_action,
GtkWidget *  widget 
)
Todo:
Finish function documentation!!!
Function Description

Definition at line 568 of file i_callbacks.c.

Here is the call graph for this function:

void i_callback_edit_mcopy_hotkey ( gpointer  data,
guint  callback_action,
GtkWidget *  widget 
)
Todo:
Finish function documentation!!!
Function Description

Definition at line 588 of file i_callbacks.c.

Here is the call graph for this function:

void i_callback_edit_move ( gpointer  data,
guint  callback_action,
GtkWidget *  widget 
)
Todo:
Finish function documentation!!!
Function Description

Definition at line 613 of file i_callbacks.c.

Here is the call graph for this function:

void i_callback_edit_move_hotkey ( gpointer  data,
guint  callback_action,
GtkWidget *  widget 
)
Todo:
Finish function documentation!!!
Function Description

Definition at line 633 of file i_callbacks.c.

Here is the call graph for this function:

void i_callback_edit_delete ( gpointer  data,
guint  callback_action,
GtkWidget *  widget 
)
Todo:
Finish function documentation!!!
Function Description

Definition at line 657 of file i_callbacks.c.

Here is the call graph for this function:

void i_callback_edit_edit ( gpointer  data,
guint  callback_action,
GtkWidget *  widget 
)
Todo:
Finish function documentation!!!
Function Description

Definition at line 682 of file i_callbacks.c.

Here is the call graph for this function:

void i_callback_edit_pin_type ( gpointer  data,
guint  callback_action,
GtkWidget *  widget 
)
Todo:
Finish function documentation!!!
Function Description

Definition at line 697 of file i_callbacks.c.

Here is the call graph for this function:

void i_callback_edit_text ( gpointer  data,
guint  callback_action,
GtkWidget *  widget 
)
Todo:
Finish function documentation!!!
Function Description

Definition at line 715 of file i_callbacks.c.

Here is the call graph for this function:

void i_callback_edit_slot ( gpointer  data,
guint  callback_action,
GtkWidget *  widget 
)
Todo:
Finish function documentation!!!
Function Description

Definition at line 736 of file i_callbacks.c.

Here is the call graph for this function:

void i_callback_edit_color ( gpointer  data,
guint  callback_action,
GtkWidget *  widget 
)
Todo:
Finish function documentation!!!
Function Description

Definition at line 756 of file i_callbacks.c.

Here is the call graph for this function:

void i_callback_edit_rotate_90 ( gpointer  data,
guint  callback_action,
GtkWidget *  widget 
)
Todo:
Finish function documentation!!!
Function Description
This function rotate all objects in the selection list by 90 degrees.

Definition at line 773 of file i_callbacks.c.

Here is the call graph for this function:

void i_callback_edit_rotate_90_hotkey ( gpointer  data,
guint  callback_action,
GtkWidget *  widget 
)
Todo:
Finish function documentation!!!
Function Description
This function rotate all objects in the selection list by 90 degrees.

Definition at line 808 of file i_callbacks.c.

Here is the call graph for this function:

void i_callback_edit_mirror ( gpointer  data,
guint  callback_action,
GtkWidget *  widget 
)
Todo:
Finish function documentation!!!
Function Description

Definition at line 859 of file i_callbacks.c.

Here is the call graph for this function:

void i_callback_edit_mirror_hotkey ( gpointer  data,
guint  callback_action,
GtkWidget *  widget 
)
Todo:
Finish function documentation!!!
Function Description

Definition at line 874 of file i_callbacks.c.

Here is the call graph for this function:

void i_callback_edit_lock ( gpointer  data,
guint  callback_action,
GtkWidget *  widget 
)
Todo:
Finish function documentation!!!
Function Description
This function locks all objects in selection list.

Definition at line 906 of file i_callbacks.c.

Here is the call graph for this function:

void i_callback_edit_unlock ( gpointer  data,
guint  callback_action,
GtkWidget *  widget 
)
Todo:
Finish function documentation!!!
Function Description
Thus function unlocks all objects in selection list.

Definition at line 924 of file i_callbacks.c.

Here is the call graph for this function:

void i_callback_edit_translate ( gpointer  data,
guint  callback_action,
GtkWidget *  widget 
)
Todo:
Finish function documentation!!!
Function Description

Definition at line 941 of file i_callbacks.c.

Here is the call graph for this function:

void i_callback_edit_invoke_macro ( gpointer  data,
guint  callback_action,
GtkWidget *  widget 
)

Definition at line 969 of file i_callbacks.c.

void i_callback_edit_embed ( gpointer  data,
guint  callback_action,
GtkWidget *  widget 
)
Todo:
Finish function documentation!!!
Function Description
This function embedds all objects in selection list

Definition at line 985 of file i_callbacks.c.

Here is the call graph for this function:

void i_callback_edit_unembed ( gpointer  data,
guint  callback_action,
GtkWidget *  widget 
)
Todo:
Finish function documentation!!!
Function Description
This function unembedds all objects in selection list.

Definition at line 1024 of file i_callbacks.c.

Here is the call graph for this function:

void i_callback_edit_update ( gpointer  data,
guint  callback_action,
GtkWidget *  widget 
)
Todo:
Finish function documentation!!!
Function Description
This function updates components

Definition at line 1063 of file i_callbacks.c.

Here is the call graph for this function:

void i_callback_edit_show_hidden ( gpointer  data,
guint  callback_action,
GtkWidget *  widget 
)
Todo:
Finish function documentation!!!
Function Description

Definition at line 1107 of file i_callbacks.c.

Here is the call graph for this function:

void i_callback_edit_find ( gpointer  data,
guint  callback_action,
GtkWidget *  widget 
)
Todo:
Finish function documentation!!!
Function Description

Definition at line 1131 of file i_callbacks.c.

Here is the call graph for this function:

void i_callback_edit_hide_text ( gpointer  data,
guint  callback_action,
GtkWidget *  widget 
)
Todo:
Finish function documentation!!!
Function Description

Definition at line 1150 of file i_callbacks.c.

Here is the call graph for this function:

void i_callback_edit_show_text ( gpointer  data,
guint  callback_action,
GtkWidget *  widget 
)
Todo:
Finish function documentation!!!
Function Description

Definition at line 1169 of file i_callbacks.c.

Here is the call graph for this function:

void i_callback_edit_autonumber_text ( gpointer  data,
guint  callback_action,
GtkWidget *  widget 
)
Todo:
Finish function documentation!!!
Function Description

Definition at line 1188 of file i_callbacks.c.

Here is the call graph for this function:

void i_callback_edit_linetype ( gpointer  data,
guint  callback_action,
GtkWidget *  widget 
)
Todo:
Finish function documentation!!!
Function Description

Definition at line 1207 of file i_callbacks.c.

Here is the call graph for this function:

void i_callback_edit_filltype ( gpointer  data,
guint  callback_action,
GtkWidget *  widget 
)
Todo:
Finish function documentation!!!
Function Description

Definition at line 1221 of file i_callbacks.c.

Here is the call graph for this function:

void i_callback_view_redraw ( gpointer  data,
guint  callback_action,
GtkWidget *  widget 
)

Definition at line 1239 of file i_callbacks.c.

Here is the call graph for this function:

void i_callback_view_zoom_full ( gpointer  data,
guint  callback_action,
GtkWidget *  widget 
)
Todo:
Finish function documentation!!!
Function Description
Note:
repeat middle shortcut would get into the way of what user is try to do

Definition at line 1254 of file i_callbacks.c.

Here is the call graph for this function:

void i_callback_view_zoom_extents ( gpointer  data,
guint  callback_action,
GtkWidget *  widget 
)
Todo:
Finish function documentation!!!
Function Description
Note:
repeat middle shortcut would get into the way of what user is try to do

Definition at line 1275 of file i_callbacks.c.

Here is the call graph for this function:

void i_callback_view_zoom_box ( gpointer  data,
guint  callback_action,
GtkWidget *  widget 
)
Todo:
Finish function documentation!!!
Function Description
Note:
repeat middle shortcut would get into the way of what user is try to do

Definition at line 1296 of file i_callbacks.c.

Here is the call graph for this function:

void i_callback_view_zoom_box_hotkey ( gpointer  data,
guint  callback_action,
GtkWidget *  widget 
)
Todo:
Finish function documentation!!!
Function Description

Definition at line 1312 of file i_callbacks.c.

Here is the call graph for this function:

void i_callback_view_zoom_in ( gpointer  data,
guint  callback_action,
GtkWidget *  widget 
)
Todo:
Finish function documentation!!!
Function Description
Note:
repeat middle shortcut would get into the way of what user is try to do

Definition at line 1336 of file i_callbacks.c.

Here is the call graph for this function:

void i_callback_view_zoom_out ( gpointer  data,
guint  callback_action,
GtkWidget *  widget 
)
Todo:
Finish function documentation!!!
Function Description
Note:
repeat middle shortcut would get into the way of what user is try to do

Definition at line 1356 of file i_callbacks.c.

Here is the call graph for this function:

void i_callback_view_zoom_in_hotkey ( gpointer  data,
guint  callback_action,
GtkWidget *  widget 
)
Todo:
Finish function documentation!!!
Function Description
Note:
repeat middle shortcut would get into the way of what user is try to do

Definition at line 1377 of file i_callbacks.c.

Here is the call graph for this function:

void i_callback_view_zoom_out_hotkey ( gpointer  data,
guint  callback_action,
GtkWidget *  widget 
)
Todo:
Finish function documentation!!!
Function Description
Note:
repeat middle shortcut would get into the way of what user is try to do

Definition at line 1397 of file i_callbacks.c.

Here is the call graph for this function:

void i_callback_view_pan ( gpointer  data,
guint  callback_action,
GtkWidget *  widget 
)
Todo:
Finish function documentation!!!
Function Description

Definition at line 1415 of file i_callbacks.c.

Here is the call graph for this function:

void i_callback_view_pan_left ( gpointer  data,
guint  callback_action,
GtkWidget *  widget 
)

The distance can be set with "keyboardpan-gain" scheme callback.

Definition at line 1433 of file i_callbacks.c.

Here is the call graph for this function:

void i_callback_view_pan_right ( gpointer  data,
guint  callback_action,
GtkWidget *  widget 
)

The distance can be set with "keyboardpan-gain" scheme callback.

Definition at line 1446 of file i_callbacks.c.

Here is the call graph for this function:

void i_callback_view_pan_up ( gpointer  data,
guint  callback_action,
GtkWidget *  widget 
)

The distance can be set with "keyboardpan-gain" scheme callback.

Definition at line 1460 of file i_callbacks.c.

Here is the call graph for this function:

void i_callback_view_pan_down ( gpointer  data,
guint  callback_action,
GtkWidget *  widget 
)

The distance can be set with "keyboardpan-gain" scheme callback.

Definition at line 1473 of file i_callbacks.c.

Here is the call graph for this function:

void i_callback_view_pan_hotkey ( gpointer  data,
guint  callback_action,
GtkWidget *  widget 
)
Todo:
Finish function documentation!!!
Function Description

Definition at line 1488 of file i_callbacks.c.

Here is the call graph for this function:

void i_callback_view_dark_colors ( gpointer  data,
guint  callback_action,
GtkWidget *  widget 
)
Todo:
Finish function documentation!!!
Function Description

Definition at line 1512 of file i_callbacks.c.

Here is the call graph for this function:

void i_callback_view_light_colors ( gpointer  data,
guint  callback_action,
GtkWidget *  widget 
)
Todo:
Finish function documentation!!!
Function Description

Definition at line 1529 of file i_callbacks.c.

Here is the call graph for this function:

void i_callback_view_bw_colors ( gpointer  data,
guint  callback_action,
GtkWidget *  widget 
)
Todo:
Finish function documentation!!!
Function Description

Definition at line 1546 of file i_callbacks.c.

Here is the call graph for this function:

void i_callback_page_manager ( gpointer  data,
guint  callback_action,
GtkWidget *  widget 
)

Definition at line 1564 of file i_callbacks.c.

Here is the call graph for this function:

void i_callback_page_next ( gpointer  data,
guint  callback_action,
GtkWidget *  widget 
)
Todo:
Finish function documentation!!!
Function Description

Definition at line 1578 of file i_callbacks.c.

Here is the call graph for this function:

void i_callback_page_prev ( gpointer  data,
guint  callback_action,
GtkWidget *  widget 
)
Todo:
Finish function documentation!!!
Function Description

Definition at line 1613 of file i_callbacks.c.

Here is the call graph for this function:

void i_callback_page_new ( gpointer  data,
guint  callback_action,
GtkWidget *  widget 
)
Todo:
Finish function documentation!!!
Function Description

Definition at line 1649 of file i_callbacks.c.

Here is the call graph for this function:

void i_callback_page_close ( gpointer  data,
guint  callback_action,
GtkWidget *  widget 
)
Todo:
Finish function documentation!!!
Function Description

Definition at line 1667 of file i_callbacks.c.

Here is the call graph for this function:

void i_callback_page_revert ( gpointer  data,
guint  callback_action,
GtkWidget *  widget 
)
Todo:
Finish function documentation!!!
Function Description
Bug:
may have memory leak?

Definition at line 1687 of file i_callbacks.c.

Here is the call graph for this function:

void i_callback_page_discard ( gpointer  data,
guint  callback_action,
GtkWidget *  widget 
)
Todo:
Finish function documentation!!!
Function Description

Definition at line 1739 of file i_callbacks.c.

Here is the call graph for this function:

void i_callback_page_print ( gpointer  data,
guint  callback_action,
GtkWidget *  widget 
)
Todo:
Finish function documentation!!!
Function Description

Definition at line 1753 of file i_callbacks.c.

void i_callback_clipboard_copy ( gpointer  data,
guint  callback_action,
GtkWidget *  widget 
)

Definition at line 1765 of file i_callbacks.c.

Here is the call graph for this function:

void i_callback_clipboard_cut ( gpointer  data,
guint  callback_action,
GtkWidget *  widget 
)
Function Description
Cut the current selection to the clipboard, via buffer 0.

Definition at line 1783 of file i_callbacks.c.

Here is the call graph for this function:

void i_callback_clipboard_paste ( gpointer  data,
guint  callback_action,
GtkWidget *  widget 
)
Function Description
Cut the current selection to the clipboard, via buffer 0.

Definition at line 1801 of file i_callbacks.c.

Here is the call graph for this function:

void i_callback_clipboard_paste_hotkey ( gpointer  data,
guint  callback_action,
GtkWidget *  widget 
)
Function Description
It's not entirely clear what the difference is between this and i_callback_clipboard_paste()...

Definition at line 1830 of file i_callbacks.c.

Here is the call graph for this function:

void i_callback_buffer_copy1 ( gpointer  data,
guint  callback_action,
GtkWidget *  widget 
)

Definition at line 1857 of file i_callbacks.c.

Here is the call graph for this function:

void i_callback_buffer_copy2 ( gpointer  data,
guint  callback_action,
GtkWidget *  widget 
)
Todo:
Finish function documentation!!!
Function Description

Definition at line 1876 of file i_callbacks.c.

Here is the call graph for this function:

void i_callback_buffer_copy3 ( gpointer  data,
guint  callback_action,
GtkWidget *  widget 
)
Todo:
Finish function documentation!!!
Function Description

Definition at line 1895 of file i_callbacks.c.

Here is the call graph for this function:

void i_callback_buffer_copy4 ( gpointer  data,
guint  callback_action,
GtkWidget *  widget 
)
Todo:
Finish function documentation!!!
Function Description

Definition at line 1914 of file i_callbacks.c.

Here is the call graph for this function:

void i_callback_buffer_copy5 ( gpointer  data,
guint  callback_action,
GtkWidget *  widget 
)
Todo:
Finish function documentation!!!
Function Description

Definition at line 1933 of file i_callbacks.c.

Here is the call graph for this function:

void i_callback_buffer_cut1 ( gpointer  data,
guint  callback_action,
GtkWidget *  widget 
)
Todo:
Finish function documentation!!!
Function Description

Definition at line 1952 of file i_callbacks.c.

Here is the call graph for this function:

void i_callback_buffer_cut2 ( gpointer  data,
guint  callback_action,
GtkWidget *  widget 
)
Todo:
Finish function documentation!!!
Function Description

Definition at line 1971 of file i_callbacks.c.

Here is the call graph for this function:

void i_callback_buffer_cut3 ( gpointer  data,
guint  callback_action,
GtkWidget *  widget 
)
Todo:
Finish function documentation!!!
Function Description

Definition at line 1990 of file i_callbacks.c.

Here is the call graph for this function:

void i_callback_buffer_cut4 ( gpointer  data,
guint  callback_action,
GtkWidget *  widget 
)
Todo:
Finish function documentation!!!
Function Description

Definition at line 2009 of file i_callbacks.c.

Here is the call graph for this function:

void i_callback_buffer_cut5 ( gpointer  data,
guint  callback_action,
GtkWidget *  widget 
)
Todo:
Finish function documentation!!!
Function Description

Definition at line 2028 of file i_callbacks.c.

Here is the call graph for this function:

void i_callback_buffer_paste1 ( gpointer  data,
guint  callback_action,
GtkWidget *  widget 
)
Todo:
Finish function documentation!!!
Function Description

Definition at line 2047 of file i_callbacks.c.

Here is the call graph for this function:

void i_callback_buffer_paste2 ( gpointer  data,
guint  callback_action,
GtkWidget *  widget 
)
Todo:
Finish function documentation!!!
Function Description

Definition at line 2069 of file i_callbacks.c.

Here is the call graph for this function:

void i_callback_buffer_paste3 ( gpointer  data,
guint  callback_action,
GtkWidget *  widget 
)
Todo:
Finish function documentation!!!
Function Description

Definition at line 2091 of file i_callbacks.c.

Here is the call graph for this function:

void i_callback_buffer_paste4 ( gpointer  data,
guint  callback_action,
GtkWidget *  widget 
)
Todo:
Finish function documentation!!!
Function Description

Definition at line 2113 of file i_callbacks.c.

Here is the call graph for this function:

void i_callback_buffer_paste5 ( gpointer  data,
guint  callback_action,
GtkWidget *  widget 
)
Todo:
Finish function documentation!!!
Function Description

Definition at line 2135 of file i_callbacks.c.

Here is the call graph for this function:

void i_callback_buffer_paste1_hotkey ( gpointer  data,
guint  callback_action,
GtkWidget *  widget 
)
Todo:
Finish function documentation!!!
Function Description

Definition at line 2157 of file i_callbacks.c.

Here is the call graph for this function:

void i_callback_buffer_paste2_hotkey ( gpointer  data,
guint  callback_action,
GtkWidget *  widget 
)
Todo:
Finish function documentation!!!
Function Description

Definition at line 2179 of file i_callbacks.c.

Here is the call graph for this function:

void i_callback_buffer_paste3_hotkey ( gpointer  data,
guint  callback_action,
GtkWidget *  widget 
)
Todo:
Finish function documentation!!!
Function Description

Definition at line 2201 of file i_callbacks.c.

Here is the call graph for this function:

void i_callback_buffer_paste4_hotkey ( gpointer  data,
guint  callback_action,
GtkWidget *  widget 
)
Todo:
Finish function documentation!!!
Function Description

Definition at line 2223 of file i_callbacks.c.

Here is the call graph for this function:

void i_callback_buffer_paste5_hotkey ( gpointer  data,
guint  callback_action,
GtkWidget *  widget 
)
Todo:
Finish function documentation!!!
Function Description

Definition at line 2245 of file i_callbacks.c.

Here is the call graph for this function:

void i_callback_add_component ( gpointer  data,
guint  callback_action,
GtkWidget *  widget 
)

Definition at line 2268 of file i_callbacks.c.

Here is the call graph for this function:

void i_callback_toolbar_add_component ( GtkWidget *  widget,
gpointer  data 
)
Todo:
Finish function documentation!!!
Function Description
Note:
don't use the widget parameter on this function, or do some checking... since there is a call: widget = NULL, data = 0 (will be w_current hack)

Definition at line 2292 of file i_callbacks.c.

Here is the call graph for this function:

void i_callback_add_attribute ( gpointer  data,
guint  callback_action,
GtkWidget *  widget 
)
Todo:
Finish function documentation!!!
Function Description

Definition at line 2306 of file i_callbacks.c.

Here is the call graph for this function:

void i_callback_add_attribute_hotkey ( gpointer  data,
guint  callback_action,
GtkWidget *  widget 
)
Todo:
Finish function documentation!!!
Function Description

Definition at line 2325 of file i_callbacks.c.

Here is the call graph for this function:

void i_callback_add_net ( gpointer  data,
guint  callback_action,
GtkWidget *  widget 
)
Todo:
Finish function documentation!!!
Function Description

Definition at line 2344 of file i_callbacks.c.

Here is the call graph for this function:

void i_callback_add_net_hotkey ( gpointer  data,
guint  callback_action,
GtkWidget *  widget 
)
Todo:
Finish function documentation!!!
Function Description

Definition at line 2367 of file i_callbacks.c.

Here is the call graph for this function:

void i_callback_toolbar_add_net ( GtkWidget *  widget,
gpointer  data 
)
Todo:
Finish function documentation!!!
Function Description
Note:
don't use the widget parameter on this function, or do some checking... since there is a call: widget = NULL, data = 0 (will be w_current hack)

Definition at line 2400 of file i_callbacks.c.

Here is the call graph for this function:

void i_callback_add_bus ( gpointer  data,
guint  callback_action,
GtkWidget *  widget 
)
Todo:
Finish function documentation!!!
Function Description

Definition at line 2416 of file i_callbacks.c.

Here is the call graph for this function:

void i_callback_add_bus_hotkey ( gpointer  data,
guint  callback_action,
GtkWidget *  widget 
)
Todo:
Finish function documentation!!!
Function Description

Definition at line 2439 of file i_callbacks.c.

Here is the call graph for this function:

void i_callback_toolbar_add_bus ( GtkWidget *  widget,
gpointer  data 
)
Todo:
Finish function documentation!!!
Function Description
Note:
don't use the widget parameter on this function, or do some checking... since there is a call: widget = NULL, data = 0 (will be w_current hack)

Definition at line 2471 of file i_callbacks.c.

Here is the call graph for this function:

void i_callback_add_text ( gpointer  data,
guint  callback_action,
GtkWidget *  widget 
)
Todo:
Finish function documentation!!!
Function Description

Definition at line 2487 of file i_callbacks.c.

Here is the call graph for this function:

void i_callback_toolbar_add_text ( GtkWidget *  widget,
gpointer  data 
)
Todo:
Finish function documentation!!!
Function Description
Note:
don't use the widget parameter on this function, or do some checking... since there is a call: widget = NULL, data = 0 (will be w_current hack)

Definition at line 2511 of file i_callbacks.c.

Here is the call graph for this function:

void i_callback_add_line ( gpointer  data,
guint  callback_action,
GtkWidget *  widget 
)
Todo:
Finish function documentation!!!
Function Description

Definition at line 2525 of file i_callbacks.c.

Here is the call graph for this function:

void i_callback_add_line_hotkey ( gpointer  data,
guint  callback_action,
GtkWidget *  widget 
)
Todo:
Finish function documentation!!!
Function Description

Definition at line 2544 of file i_callbacks.c.

Here is the call graph for this function:

void i_callback_add_box ( gpointer  data,
guint  callback_action,
GtkWidget *  widget 
)
Todo:
Finish function documentation!!!
Function Description

Definition at line 2570 of file i_callbacks.c.

Here is the call graph for this function:

void i_callback_add_box_hotkey ( gpointer  data,
guint  callback_action,
GtkWidget *  widget 
)
Todo:
Finish function documentation!!!
Function Description

Definition at line 2589 of file i_callbacks.c.

Here is the call graph for this function:

void i_callback_add_picture ( gpointer  data,
guint  callback_action,
GtkWidget *  widget 
)
Todo:
Finish function documentation!!!
Function Description

Definition at line 2615 of file i_callbacks.c.

Here is the call graph for this function:

void i_callback_add_picture_hotkey ( gpointer  data,
guint  callback_action,
GtkWidget *  widget 
)
Todo:
Finish function documentation!!!
Function Description

Definition at line 2636 of file i_callbacks.c.

Here is the call graph for this function:

void i_callback_add_circle ( gpointer  data,
guint  callback_action,
GtkWidget *  widget 
)
Todo:
Finish function documentation!!!
Function Description

Definition at line 2649 of file i_callbacks.c.

Here is the call graph for this function:

void i_callback_add_circle_hotkey ( gpointer  data,
guint  callback_action,
GtkWidget *  widget 
)
Todo:
Finish function documentation!!!
Function Description

Definition at line 2668 of file i_callbacks.c.

Here is the call graph for this function:

void i_callback_add_arc ( gpointer  data,
guint  callback_action,
GtkWidget *  widget 
)
Todo:
Finish function documentation!!!
Function Description

Definition at line 2695 of file i_callbacks.c.

Here is the call graph for this function:

void i_callback_add_arc_hotkey ( gpointer  data,
guint  callback_action,
GtkWidget *  widget 
)
Todo:
Finish function documentation!!!
Function Description

Definition at line 2714 of file i_callbacks.c.

Here is the call graph for this function:

void i_callback_add_pin ( gpointer  data,
guint  callback_action,
GtkWidget *  widget 
)
Todo:
Finish function documentation!!!
Function Description

Definition at line 2740 of file i_callbacks.c.

Here is the call graph for this function:

void i_callback_add_pin_hotkey ( gpointer  data,
guint  callback_action,
GtkWidget *  widget 
)
Todo:
Finish function documentation!!!
Function Description

Definition at line 2759 of file i_callbacks.c.

Here is the call graph for this function:

void i_callback_hierarchy_down_schematic ( gpointer  data,
guint  callback_action,
GtkWidget *  widget 
)

Definition at line 2786 of file i_callbacks.c.

Here is the call graph for this function:

void i_callback_hierarchy_down_symbol ( gpointer  data,
guint  callback_action,
GtkWidget *  widget 
)
Todo:
Finish function documentation!!!
Function Description
Bug:
may cause problems with non-directory symbols

Definition at line 2906 of file i_callbacks.c.

Here is the call graph for this function:

void i_callback_hierarchy_up ( gpointer  data,
guint  callback_action,
GtkWidget *  widget 
)
Todo:
Finish function documentation!!!
Function Description

Definition at line 2945 of file i_callbacks.c.

Here is the call graph for this function:

void i_callback_attributes_attach ( gpointer  data,
guint  callback_action,
GtkWidget *  widget 
)

Definition at line 2967 of file i_callbacks.c.

Here is the call graph for this function:

void i_callback_attributes_detach ( gpointer  data,
guint  callback_action,
GtkWidget *  widget 
)
Todo:
Finish function documentation!!!
Function Description

Definition at line 3024 of file i_callbacks.c.

Here is the call graph for this function:

void i_callback_attributes_show_name ( gpointer  data,
guint  callback_action,
GtkWidget *  widget 
)
Todo:
Finish function documentation!!!
Function Description

Definition at line 3071 of file i_callbacks.c.

Here is the call graph for this function:

void i_callback_attributes_show_value ( gpointer  data,
guint  callback_action,
GtkWidget *  widget 
)
Todo:
Finish function documentation!!!
Function Description

Definition at line 3108 of file i_callbacks.c.

Here is the call graph for this function:

void i_callback_attributes_show_both ( gpointer  data,
guint  callback_action,
GtkWidget *  widget 
)
Todo:
Finish function documentation!!!
Function Description

Definition at line 3145 of file i_callbacks.c.

Here is the call graph for this function:

void i_callback_attributes_visibility_toggle ( gpointer  data,
guint  callback_action,
GtkWidget *  widget 
)
Todo:
Finish function documentation!!!
Function Description

Definition at line 3182 of file i_callbacks.c.

Here is the call graph for this function:

void i_callback_script_console ( gpointer  data,
guint  callback_action,
GtkWidget *  widget 
)

Definition at line 3223 of file i_callbacks.c.

void i_callback_options_text_size ( gpointer  data,
guint  callback_action,
GtkWidget *  widget 
)

Definition at line 3241 of file i_callbacks.c.

Here is the call graph for this function:

void i_callback_options_snap_size ( gpointer  data,
guint  callback_action,
GtkWidget *  widget 
)
Todo:
Finish function documentation!!!
Function Description

Definition at line 3254 of file i_callbacks.c.

Here is the call graph for this function:

void i_callback_options_scale_up_snap_size ( gpointer  data,
guint  callback_action,
GtkWidget *  widget 
)
Function Description
Callback function for the scale-up snap grid size hotkey. Multiply by two the snap grid size.

Definition at line 3267 of file i_callbacks.c.

Here is the call graph for this function:

void i_callback_options_scale_down_snap_size ( gpointer  data,
guint  callback_action,
GtkWidget *  widget 
)
Function Description
Callback function for the scale-down snap grid size hotkey. Divide by two the snap grid size (if it's and even number).

Definition at line 3286 of file i_callbacks.c.

Here is the call graph for this function:

void i_callback_options_afeedback ( gpointer  data,
guint  callback_action,
GtkWidget *  widget 
)
Todo:
Finish function documentation!!!
Function Description
Note:
repeat last command doesn't make sense on options either??? (does it?)

Definition at line 3310 of file i_callbacks.c.

Here is the call graph for this function:

void i_callback_options_grid ( gpointer  data,
guint  callback_action,
GtkWidget *  widget 
)
Todo:
Finish function documentation!!!
Function Description

Definition at line 3333 of file i_callbacks.c.

Here is the call graph for this function:

void i_callback_options_snap ( gpointer  data,
guint  callback_action,
GtkWidget *  widget 
)
Todo:
Finish function documentation!!!
Function Description

Definition at line 3360 of file i_callbacks.c.

Here is the call graph for this function:

void i_callback_options_rubberband ( gpointer  data,
guint  callback_action,
GtkWidget *  widget 
)
Todo:
Finish function documentation!!!
Function Description
Note:
Rubber band is cool ! Added on/off option from the pull down menu Chris Ellec - January 2001

Definition at line 3395 of file i_callbacks.c.

void i_callback_options_magneticnet ( gpointer  data,
guint  callback_action,
GtkWidget *  widget 
)
Function Description
This function just toggles a variable to switch the magnetic net mode ON and OFF

Definition at line 3414 of file i_callbacks.c.

Here is the call graph for this function:

void i_callback_options_show_log_window ( gpointer  data,
guint  callback_action,
GtkWidget *  widget 
)
Todo:
Finish function documentation!!!
Function Description

Definition at line 3433 of file i_callbacks.c.

Here is the call graph for this function:

void i_callback_misc ( gpointer  data,
guint  callback_action,
GtkWidget *  widget 
)
Todo:
Finish function documentation!!!
Function Description
Note:
this is Ales' catch all misc callback

Definition at line 3448 of file i_callbacks.c.

void i_callback_misc2 ( gpointer  data,
guint  callback_action,
GtkWidget *  widget 
)
Todo:
Finish function documentation!!!
Function Description
Note:
this is Ales' second catch all misc callback

Definition at line 3459 of file i_callbacks.c.

void i_callback_misc3 ( gpointer  data,
guint  callback_action,
GtkWidget *  widget 
)
Todo:
Finish function documentation!!!
Function Description
Note:
this is Ales' third catch all misc callback

Definition at line 3470 of file i_callbacks.c.

void i_callback_cancel ( gpointer  data,
guint  callback_action,
GtkWidget *  widget 
)
Todo:
Finish function documentation!!!
Function Description
Note:
HACK: be sure that you don't use the widget parameter in this one, since it is being called with a null, I suppose we should call it with the right param.

Definition at line 3483 of file i_callbacks.c.

Here is the call graph for this function:

void i_callback_help_about ( gpointer  data,
guint  callback_action,
GtkWidget *  widget 
)

Definition at line 3549 of file i_callbacks.c.

Here is the call graph for this function:

void i_callback_help_hotkeys ( gpointer  data,
guint  callback_action,
GtkWidget *  widget 
)
Todo:
Finish function documentation!!!
Function Description

Definition at line 3562 of file i_callbacks.c.

Here is the call graph for this function:

void i_callback_options_show_coord_window ( gpointer  data,
guint  callback_action,
GtkWidget *  widget 
)
Todo:
Finish function documentation!!!
Function Description

Definition at line 3575 of file i_callbacks.c.

Here is the call graph for this function:

gboolean i_callback_close_wm ( GtkWidget *  widget,
GdkEvent *  event,
gpointer  data 
)
Todo:
Finish function documentation!!!
Function Description
Note:
When invoked (via signal delete_event), closes the current window if this is the last window, quit gschem used when you click the close button on the window which sends a DELETE signal to the app

Definition at line 3596 of file i_callbacks.c.

Here is the call graph for this function:

void i_vars_set ( GSCHEM_TOPLEVEL w_current)
Todo:
Finish function documentation!!!
Function Description

Definition at line 138 of file i_vars.c.

void i_vars_freenames ( )
Function Description
This function will free all of the default variables for gschem.

Definition at line 253 of file i_vars.c.

int mil_x ( GSCHEM_TOPLEVEL w_current,
int  val 
)
Function Description
Convert a x coordinate to mils.
Parameters:
[in]w_currentThe GSCHEM_TOPLEVEL object
[in]valThe x coordinate to convert
Returns:
The coordinate value in mils.

Definition at line 40 of file m_basic.c.

int mil_y ( GSCHEM_TOPLEVEL w_current,
int  val 
)
Function Description
Convert a y coordinate to mils
Parameters:
[in]w_currentThe GSCHEM_TOPLEVEL object.
[in]valThe y coordinate to convert.
Returns:
The coordinate value in mils.

Definition at line 67 of file m_basic.c.

int pix_x ( GSCHEM_TOPLEVEL w_current,
int  val 
)
Function Description
Convert a x coordinate to pixels.
Parameters:
[in]w_currentThe GSCHEM_TOPLEVEL object
[in]valThe x coordinate to convert
Returns:
The coordinate value in pixels.

Definition at line 94 of file m_basic.c.

int pix_y ( GSCHEM_TOPLEVEL w_current,
int  val 
)
Function Description
Convert a y coordinate to pixels.
Parameters:
[in]w_currentThe GSCHEM_TOPLEVEL object
[in]valThe y coordinate to convert
Returns:
The coordinate value in pixels.

Definition at line 129 of file m_basic.c.

void WORLDtoSCREEN ( GSCHEM_TOPLEVEL w_current,
int  x,
int  y,
int *  px,
int *  py 
)
Function Description
This function takes in WORLD x/y coordinates and transforms them to SCREEN x/y coordinates.
Parameters:
[in]w_currentThe GSCHEM_TOPLEVEL object.
[in]xThe x coordinate in WORLD units.
[in]yThe y coordinate in WORLD units.
[out]pxThe x coordinate in SCREEN units.
[out]pyThe y coordinate in SCREEN units.

Definition at line 167 of file m_basic.c.

Here is the call graph for this function:

void SCREENtoWORLD ( GSCHEM_TOPLEVEL w_current,
int  mx,
int  my,
int *  x,
int *  y 
)
Function Description
This function takes in SCREEN x/y coordinates and transforms them to WORLD x/y coordinates.
Parameters:
[in]w_currentThe GSCHEM_TOPLEVEL object.
[in]mxThe x coordinate in SCREEN units.
[in]myThe y coordinate in SCREEN units.
[out]xThe x coordinate in WORLD units.
[out]yThe y coordinate in WORLD units.
Note:
Question: why are we returning in x and y if this is SCREEN to WORLD shouldn't WORLD coordinates be returned in mx and my?

Definition at line 187 of file m_basic.c.

Here is the call graph for this function:

int snap_grid ( GSCHEM_TOPLEVEL w_current,
int  input 
)
Function Description
This function snaps the current input coordinate to the closest grid coordinate.
Parameters:
[in]w_currentThe GSCHEM_TOPLEVEL object.
[in]inputThe coordinate to snap.
Returns:
The closest grid coordinate to the input.

Definition at line 202 of file m_basic.c.

Here is the call graph for this function:

int SCREENabs ( GSCHEM_TOPLEVEL w_current,
int  val 
)
Function Description
Get absolute SCREEN coordinate.
Parameters:
[in]w_currentThe GSCHEM_TOPLEVEL object.
[in]valThe coordinate to convert.
Returns:
The converted SCREEN coordinate.

Definition at line 243 of file m_basic.c.

int WORLDabs ( GSCHEM_TOPLEVEL w_current,
int  val 
)
Function Description
Get absolute WORLD coordinate.
Parameters:
[in]w_currentThe GSCHEM_TOPLEVEL object.
[in]valThe coordinate to convert.
Returns:
The converted WORLD coordinate.

Definition at line 273 of file m_basic.c.

int WORLDclip_change ( GSCHEM_TOPLEVEL w_current,
int *  x1,
int *  y1,
int *  x2,
int *  y2 
)
Function Description
This function will check the provided set of coordinates to see if they fall within a clipping region. If they do the coordinates will be changed to reflect only the region no covered by the clipping window. All coordinates should be in WORLD units.
Parameters:
[in]w_currentThe GSCHEM_TOPLEVEL object.
[in,out]x1x coordinate of the first screen point.
[in,out]y1y coordinate of the first screen point.
[in,out]x2x coordinate of the second screen point.
[in,out]y2y coordinate of the second screen point.
Returns:
TRUE if coordinates are now visible, FALSE otherwise.

Definition at line 346 of file m_basic.c.

Here is the call graph for this function:

int clip_nochange ( GSCHEM_TOPLEVEL w_current,
int  x1,
int  y1,
int  x2,
int  y2 
)
Function Description
This function will check if the given set of coordinates are within a clipping region. No action will be taken to change the coordinates.
Parameters:
[in]w_currentThe GSCHEM_TOPLEVEL object.
[in,out]x1x coordinate of the first screen point.
[in,out]y1y coordinate of the first screen point.
[in,out]x2x coordinate of the second screen point.
[in,out]y2y coordinate of the second screen point.
Returns:
TRUE if coordinates are now visible, FALSE otherwise.

Definition at line 477 of file m_basic.c.

Here is the call graph for this function:

int visible ( GSCHEM_TOPLEVEL w_current,
int  wleft,
int  wtop,
int  wright,
int  wbottom 
)
Function Description
This function checks if a given bounding box is visible on the screen.

WARNING: top and bottom are mis-named in world-coords, top is the smallest "y" value, and bottom is the largest. Be careful! This doesn't correspond to what you'd expect.

Parameters:
[in]w_currentThe GSCHEM_TOPLEVEL object.
[in]wleftLeft coordinate of the bounding box.
[in]wtopTop coordinate of the bounding box.
[in]wrightRight coordinate of the bounding box.
[in]wbottomBottom coordinate of the bounding box.
Returns:
TRUE if bounding box is visible, FALSE otherwise

Definition at line 606 of file m_basic.c.

Here is the call graph for this function:

double round_5_2_1 ( double  unrounded)
Function Description
This function will round numbers using a power of 10 method. For example: 1235 rounds to 1000 670 rounds to 500 0.234 rounds to 0.2 integer values would be enough if there are no numbers smaller than 1 (hw)
Parameters:
[in]unroundedThe number to be rounded.
Returns:
The rounded number.

Definition at line 693 of file m_basic.c.

void o_arc_draw ( GSCHEM_TOPLEVEL w_current,
OBJECT *  o_current 
)
Function Description
This function is used to draw an arc on screen. The arc is described in the object which is referred by o_current. The arc is displayed according to the current state, described in the GSCHEM_TOPLEVEL object pointed by w_current.

It first checkes if the object is valid or not. If not it returns and do not output anything. That should never happen though.

Parameters:
[in]w_currentThe GSCHEM_TOPLEVEL object.
[in]o_currentThe arc OBJECT to draw.

Definition at line 44 of file o_arc.c.

Here is the call graph for this function:

void o_arc_invalidate_rubber ( GSCHEM_TOPLEVEL w_current)
Todo:
Finish function documentation!!!
Function Description

Definition at line 75 of file o_arc.c.

Here is the call graph for this function:

void o_arc_draw_place ( GSCHEM_TOPLEVEL w_current,
int  dx,
int  dy,
OBJECT *  o_current 
)
Function Description
This function draws the arc object described by *o_current translated by the vector (dx,dy). The translation vector is in screen unit.

The arc is displayed with the color of the object.

Parameters:
[in]w_currentThe GSCHEM_TOPLEVEL object.
[in]dxDelta x coordinate for arc.
[in]dyDelta y coordinate for arc.
[in]o_currentArc OBJECT to draw.

Definition at line 100 of file o_arc.c.

Here is the call graph for this function:

void o_arc_start ( GSCHEM_TOPLEVEL w_current,
int  w_x,
int  w_y 
)
Function Description
This function starts the process to input a new arc. Parameters for this arc are put into/extracted from the w_current toplevel structure. w_x and w_y are current coordinates of the pointer in screen unit.

First step of the arc input is to set the radius of the arc. The center of the arc is kept in (w_current->first_wx,w_current->first_wy). The radius of the arc is in w_current->distance.

Parameters:
[in]w_currentThe GSCHEM_TOPLEVEL object.
[in]w_xCurrent x coordinate of pointer in world units.
[in]w_yCurrent y coordinate of pointer in world units.

Definition at line 129 of file o_arc.c.

Here is the call graph for this function:

void o_arc_end1 ( GSCHEM_TOPLEVEL w_current,
int  w_x,
int  w_y 
)
Function Description
This function ends the input of the radius of the arc. The (w_x,w_y) point is taken as the other end of the radius segment. The distance between this point and the center is the radius of the arc. w_x and w_y are in world coords.

At the end of this function, the center of the arc is at (w_current->first_wx,w_current->first_wy) and its radius is w_current->distance.

The two angles needs to be input to fully define the arc.

Parameters:
[in]w_currentThe GSCHEM_TOPLEVEL object.
[in]w_x(unused)
[in]w_y(unused)

Definition at line 163 of file o_arc.c.

Here is the call graph for this function:

void o_arc_end4 ( GSCHEM_TOPLEVEL w_current,
int  radius,
int  start_angle,
int  end_angle 
)
Function Description
The o_arc_end4() function ends the process of the input of an arc. start_angle and end_angle are the start and end angle of the arc in degrees. The partial internal representation of the arc, i.e. the center and the radius of the arc, are converted in world units. A new object is created and linked to the object list.
Parameters:
[in]w_currentThe GSCHEM_TOPLEVEL object.
[in]radiusRadius of the arc
[in]start_angleStart of angle in degrees.
[in]end_angleEnd of angle in degrees.

Definition at line 197 of file o_arc.c.

Here is the call graph for this function:

void o_arc_motion ( GSCHEM_TOPLEVEL w_current,
int  w_x,
int  w_y,
int  whichone 
)
Function Description
This function draws an arc according to its internal representation and allows the modification of one of its angle. The start or end angle of the arc is updated according to whichone with the angle that the current pointer and the arc center are making with the horizontal.

The previous temporary arc is erased, the angle is then computed and updated and finally a new temporary arc with the new angle is drawn.

The arc is internally described by :

*
(w_current->first_wx,w_current->first_wy) as its center.
*
w_current->distance as its radius.
*
w_current->second_wx and w_current->second_wx as its start and end angle respectively.
Parameters:
[in]w_currentThe GSCHEM_TOPLEVEL object.
[in]w_xCurrent x coordinate of pointer in world units.
[in]w_yCurrent y coordinate of pointer in world units.
[in]whichoneWhich angle to change.

whichone can have one of the following values:

ARC_RADIUS
at the center of the arc. This grip is used to modify the radius of the arc.
ARC_START_ANGLE
at one end of the arc. It corresponds to the starting angle of the arc.
ARC_END_ANGLE
at the other end of the arc. It corresponds to the ending angle of the arc.

Definition at line 258 of file o_arc.c.

Here is the call graph for this function:

void o_arc_draw_rubber ( GSCHEM_TOPLEVEL w_current)
Function Description
This function draws the arc from the variables in the GSCHEM_TOPLEVEL structure *w_current. The center of the arc is at (w_current->first_wx, w_current->first_wy), its radius equal to w_current->distance, and the start and end angle are given by w_current->second_wx and w_current->second_wy.
Parameters:
[in]w_currentThe GSCHEM_TOPLEVEL object.

Definition at line 318 of file o_arc.c.

Here is the call graph for this function:

void o_arc_draw_grips ( GSCHEM_TOPLEVEL w_current,
OBJECT *  o_current 
)
Function Description
This function draws three grips on the center and on the ends of the arc object described by *o_current.
Parameters:
[in]w_currentThe GSCHE_TOPLEVEL object.
[in]o_currentArc OBJECT to draw grip points on.

Definition at line 353 of file o_arc.c.

Here is the call graph for this function:

void o_attrib_add_selected ( GSCHEM_TOPLEVEL w_current,
SELECTION *  selection,
OBJECT *  selected 
)
Todo:
Finish function documentation!!!
Function Description
Copy all attributes select to the selection list.
Todo:
get a better name

Definition at line 52 of file o_attrib.c.

Here is the call graph for this function:

void o_attrib_deselect_invisible ( GSCHEM_TOPLEVEL w_current,
SELECTION *  selection,
OBJECT *  selected 
)
Function Description

Remove all invisible attributes attached to the given object from the selection list. If hidden text is being shown, this function returns immediately.

Parameters:
[in]w_currentThe GSCHEM_TOPLEVEL object.
[in,out]selectionThe SELECTION list to remove from.
[in]objectThe OBJECT whose invisible attributes to remove.

Definition at line 91 of file o_attrib.c.

void o_attrib_select_invisible ( GSCHEM_TOPLEVEL w_current,
SELECTION *  selection,
OBJECT *  selected 
)
Function Description

Add all invisible attributes attached to the given object to the selection list. If hidden text is being shown, this function returns immediately.

Parameters:
[in]w_currentThe GSCHEM_TOPLEVEL object.
[in,out]selectionThe SELECTION list to add to.
[in]objectThe OBJECT whose invisible attributes to add.

Definition at line 125 of file o_attrib.c.

void o_attrib_toggle_visibility ( GSCHEM_TOPLEVEL w_current,
OBJECT *  object 
)
Function Description
This function toggles the visibility status of the attribute object and updates it. The object is erased or redrawn if necessary.
Parameters:
[in]w_currentThe GSCHEM_TOPLEVEL object.
[in]objectThe attribute object.

Definition at line 157 of file o_attrib.c.

Here is the call graph for this function:

void o_attrib_toggle_show_name_value ( GSCHEM_TOPLEVEL w_current,
OBJECT *  object,
int  show_name_value 
)
Function Description
This function changes what part (name, value or both) of an attribute is shown by its attribute object. The attribute object is erased, updated and finally redrawn.
Parameters:
[in]w_currentThe GSCHEM_TOPLEVEL object.
[in]objectThe attribute object.
[in]show_name_valueThe new display flag for attribute.

Definition at line 200 of file o_attrib.c.

Here is the call graph for this function:

OBJECT* o_attrib_add_attrib ( GSCHEM_TOPLEVEL w_current,
const char *  text_string,
int  visibility,
int  show_name_value,
OBJECT *  object 
)
Todo:
Finish function documentation!!!
Function Description

Definition at line 222 of file o_attrib.c.

Here is the call graph for this function:

void o_redraw_rects ( GSCHEM_TOPLEVEL w_current,
GdkRectangle *  rectangles,
int  n_rectangles 
)
Todo:
Lots of Gross code... needs lots of cleanup - mainly readability issues
Todo:
Finish function documentation!!!
Function Description

Definition at line 40 of file o_basic.c.

Here is the call graph for this function:

void o_redraw ( GSCHEM_TOPLEVEL w_current,
GList *  object_list,
gboolean  draw_selected 
)
Todo:
Finish function documentation!!!
Function Description

Definition at line 190 of file o_basic.c.

Here is the call graph for this function:

void o_redraw_single ( GSCHEM_TOPLEVEL w_current,
OBJECT *  o_current 
)
Function Description
This function will redraw a single object on the screen.
Parameters:
[in]w_currentThe GSCHEM_TOPLEVEL object.
[in]o_currentThe OBJECT to redraw.

Definition at line 214 of file o_basic.c.

Here is the call graph for this function:

int o_invalidate_rubber ( GSCHEM_TOPLEVEL w_current)
Todo:
Finish function documentation!!!
Function Description

Definition at line 249 of file o_basic.c.

Here is the call graph for this function:

int o_redraw_cleanstates ( GSCHEM_TOPLEVEL w_current)
Todo:
Finish function documentation!!!
Function Description
This function is neccesary to make jumps between event_states. If we are inside an drawing action that created something on the dc, e.g. if we are drawing a box and then jump to line drawing without leaving the box drawing mode, there will remain some rubberbands on the screen. Usually a intermediate select state would clean (redraw) the screen.

Definition at line 319 of file o_basic.c.

Here is the call graph for this function:

void o_draw_place ( GSCHEM_TOPLEVEL w_current,
int  dx,
int  dy,
OBJECT *  object 
)
Todo:
Finish function documentation!!!
Function Description

Definition at line 422 of file o_basic.c.

Here is the call graph for this function:

void o_glist_draw_place ( GSCHEM_TOPLEVEL w_current,
int  dx,
int  dy,
GList *  list 
)
Todo:
Finish function documentation!!!
Function Description

Definition at line 454 of file o_basic.c.

Here is the call graph for this function:

void o_invalidate_rect ( GSCHEM_TOPLEVEL w_current,
int  x1,
int  y1,
int  x2,
int  y2 
)
Function Description

Given a pair of (x,y) coordinates in SCREEN units, invalidate the rectangular on-screen drawing area which has those two coordinate pairs as opposite corners of its region. This will cause that region to be blitted from the back-buffer once the mainloop reaches idle.

A margin, INVALIDATE_MARGIN is added to the invalidated region as a hacky workaround for rounding errors which may occur in the WORLD -> SCREEN coordinate transform. This margin may also be used to expand the invalidated region if anti-aliased drawing is ever used.

A further, larger margin is added to account for invalidating the size occupied by an object's grips.

If the GSCHEM_TOPLEVEL in question is not rendering to a GDK_WINDOW, (e.g. image export), this function call is a no-op. A test is used: GDK_IS_WINDOW(), which should be safe since in either case, w_current->window is a GObject. This is really a _HACK_, and should be fixed with a re-worked drawing model.

Parameters:
[in]w_currentThe GSCHEM_TOPLEVEL who's drawing area is being invalidated.
[in]x1X coord for corner 1 (SCREEN units)
[in]y1Y coord for corner 1 (SCREEN units)
[in]x2X coord for corner 2 (SCREEN units)
[in]y2Y coord for corner 2 (SCREEN units)

Definition at line 494 of file o_basic.c.

Here is the call graph for this function:

void o_invalidate_all ( GSCHEM_TOPLEVEL w_current)
Function Description
This function calls gdk_window_invalidate_rect() with a rect of NULL, causing the entire drawing area to be invalidated.
Parameters:
[in]w_currentThe GSCHEM_TOPLEVEL object.

Definition at line 527 of file o_basic.c.

void o_invalidate ( GSCHEM_TOPLEVEL w_current,
OBJECT *  object 
)
Function Description
This function calls o_invalidate_rect() with the bounds of the passed OBJECT, converted to screen coordinates.
Parameters:
[in]w_currentThe GSCHEM_TOPLEVEL object.
[in]objectThe OBJECT invalidated on screen.

Definition at line 542 of file o_basic.c.

Here is the call graph for this function:

void o_invalidate_glist ( GSCHEM_TOPLEVEL w_current,
GList *  list 
)
Function Description
This function calls o_invalidate_rect() with the bounds of the passed GList, converted to screen coordinates.
Parameters:
[in]w_currentThe GSCHEM_TOPLEVEL object.
[in]listThe glist objects invalidated on screen.

Definition at line 565 of file o_basic.c.

Here is the call graph for this function:

COLOR* o_drawing_color ( GSCHEM_TOPLEVEL w_current,
OBJECT *  object 
)
Function Description
This function looks up and returns either the SELECT_COLOR, or the OBJECT's natural colour, as appropriate. If toplevel->override_color is set, that takes precedence.

The parent field of the OBJECT structure is used to recurse down and check whether the OBJECT being drawn is a prim_obj belonging to some selected OBJECT. If so, SELECT_COLOR is used.

As a convenience, the appropriate color index is looked up using x_color_lookup(), so that code is not duplicated in each drawing function.

Parameters:
[in]w_currentThe GSCHEM_TOPLEVEL object.
[in]objectThe OBJECT whos color to return.

Definition at line 597 of file o_basic.c.

Here is the call graph for this function:

void o_box_draw ( GSCHEM_TOPLEVEL w_current,
OBJECT *  o_current 
)
Function Description
This function is used to draw a box on screen. The box is described in the OBJECT which is referred by o_current. The box is displayed according to the current state, described in the GSCHEM_TOPLEVEL object pointed by w_current.

It first checks if the OBJECT pointed is valid or not. If not it returns and do not output anything. That should never happen though.

Parameters:
[in]w_currentThe GSCHEM_TOPLEVEL object.
[in]o_currentBOX OBJECT to draw.

Definition at line 200 of file o_box.c.

Here is the call graph for this function:

void o_box_invalidate_rubber ( GSCHEM_TOPLEVEL w_current)
Todo:
Finish function documentation!!!
Function Description

Definition at line 327 of file o_box.c.

Here is the call graph for this function:

void o_box_draw_place ( GSCHEM_TOPLEVEL w_current,
int  dx,
int  dy,
OBJECT *  o_current 
)
Function Description
This function daws the box object described by *o_current translated by the vector (dx,dy). The translation vector is in world unit.

The box is displayed with the color of the object.

Parameters:
[in]w_currentThe GSCHEM_TOPLEVEL object.
[in]dxDelta x coordinate for box.
[in]dyDelta y coordinate for box.
[in]o_currentBox OBJECT to draw.

Definition at line 353 of file o_box.c.

Here is the call graph for this function:

void o_box_start ( GSCHEM_TOPLEVEL w_current,
int  w_x,
int  w_y 
)
Function Description
This function starts the process to input a new box. Parameters for this box are put into/extracted from the w_current toplevel structure. w_x and w_y are current coordinates of the pointer in world coordinates.

The first step is to input one corner of the box. This corner is (w_x,w_y) snapped to the grid and saved in w_current->first_wx and w_current->first_wy.

The other corner will be saved in (w_current->second_wx, w_current->second_wy).

Parameters:
[in]w_currentThe GSCHEM_TOPLEVEL object.
[in]w_xCurrent x coordinate of pointer in world.
[in]w_yCurrent y coordinate of pointer in world.

Definition at line 386 of file o_box.c.

Here is the call graph for this function:

void o_box_end ( GSCHEM_TOPLEVEL w_current,
int  w_x,
int  w_y 
)
Function Description
This function ends the input of the second corner of a box. The (w_x,w_y) point is set to be this second corner. The box is then defined by (w_current->first_wx,w_current->first_wy and (w_current->second_wx,w_current->second_wy. w_x and w_y are in screen unit.

The temporary box is erased ; a new box object is allocated, initialized and linked to the object list ; The object is finally drawn on the current sheet.

Parameters:
[in]w_currentThe GSCHEM_TOPLEVEL object.
[in]w_xCurrent x coordinate of pointer in world units.
[in]w_yCurrent y coordinate of pointer in world units.

Definition at line 412 of file o_box.c.

Here is the call graph for this function:

void o_box_motion ( GSCHEM_TOPLEVEL w_current,
int  w_x,
int  w_y 
)
Function Description
This function is used to draw the box while dragging one of its edge or angle. It erases the previous temporary box drawn before, and draws a new updated one. w_x and w_y are the new position of the mobile point, ie the mouse.

The old values are inside the w_current pointed structure. Old width, height and left and top values are recomputed by the corresponding macros.

Parameters:
[in]w_currentThe GSCHEM_TOPLEVEL object.
[in]w_xCurrent x coordinate of pointer in world units.
[in]w_yCurrent y coordinate of pointer in world units.

Definition at line 481 of file o_box.c.

Here is the call graph for this function:

void o_box_draw_rubber ( GSCHEM_TOPLEVEL w_current)
Function Description
This function draws the box from the variables in the GSCHEM_TOPLEVEL structure *w_current. One corner of the box is at (w_current->first_wx, w_current->first_wy) and the second corner is at (w_current->second_wx,w_current->second_wy.
Parameters:
[in]w_currentThe GSCHEM_TOPLEVEL object.

Definition at line 515 of file o_box.c.

Here is the call graph for this function:

void o_box_draw_grips ( GSCHEM_TOPLEVEL w_current,
OBJECT *  o_current 
)
Function Description
This function draws four grips on the corners of the box described by *o_current.
Parameters:
[in]w_currentThe GSCHEM_TOPLEVEL object.
[in]o_currentBox OBJECT to draw grip points on.

Definition at line 532 of file o_box.c.

Here is the call graph for this function:

void o_buffer_copy ( GSCHEM_TOPLEVEL w_current,
int  buf_num 
)
Todo:
Finish function documentation!!!
Function Description

Definition at line 51 of file o_buffer.c.

Here is the call graph for this function:

void o_buffer_cut ( GSCHEM_TOPLEVEL w_current,
int  buf_num 
)
Todo:
Finish function documentation!!!
Function Description

Definition at line 66 of file o_buffer.c.

Here is the call graph for this function:

void o_buffer_paste_start ( GSCHEM_TOPLEVEL w_current,
int  w_x,
int  w_y,
int  buf_num 
)
Todo:
Finish function documentation!!!
Function Description

Definition at line 82 of file o_buffer.c.

Here is the call graph for this function:

void o_buffer_init ( void  )
Todo:
Finish function documentation!!!
Function Description

Definition at line 136 of file o_buffer.c.

void o_buffer_free ( GSCHEM_TOPLEVEL w_current)
Todo:
Finish function documentation!!!
Function Description

Definition at line 150 of file o_buffer.c.

void o_bus_draw ( GSCHEM_TOPLEVEL w_current,
OBJECT *  o_current 
)
Todo:
Finish function documentation!!!
Function Description

Definition at line 35 of file o_bus.c.

Here is the call graph for this function:

void o_bus_draw_place ( GSCHEM_TOPLEVEL w_current,
int  dx,
int  dy,
OBJECT *  o_current 
)
Todo:
Finish function documentation!!!
Function Description

Definition at line 74 of file o_bus.c.

Here is the call graph for this function:

void o_bus_draw_stretch ( GSCHEM_TOPLEVEL w_current,
int  dx,
int  dy,
int  whichone,
OBJECT *  o_current 
)
Todo:
Finish function documentation!!!
Function Description

Definition at line 99 of file o_bus.c.

Here is the call graph for this function:

void o_bus_start ( GSCHEM_TOPLEVEL w_current,
int  w_x,
int  w_y 
)
Function Description
This function sets the start point (w_x,w_y) of a new bus in the GSCHEM_TOPLEVEL structure.

The start point is stored in first_wx, first_wy.

Parameters:
[in]w_currentThe GSCHEM_TOPLEVEL object.
[in]w_xthe x position in world coords
[in]w_ythe y position in world coords

Definition at line 140 of file o_bus.c.

int o_bus_end ( GSCHEM_TOPLEVEL w_current,
int  w_x,
int  w_y 
)
Function Description
This function finishes a net drawing action. The function draws a bus from the point (first_wx,first_wy) to (second_wx,second_wy). Both points are taken from the GSCHEM_TOPLEVEL structure.

The function returns TRUE if a bus object has been created and FALSE if no bus object has been created.

Parameters:
[in]w_currentThe GSCHEM_TOPLEVEL object.
[in]w_x(unused)
[in]w_y(unused)

Definition at line 160 of file o_bus.c.

Here is the call graph for this function:

void o_bus_motion ( GSCHEM_TOPLEVEL w_current,
int  w_x,
int  w_y 
)
Function Description
This function draws a bus rubber from the point (first_wx,first_wy) from the GSCHEM_TOPLEVEL structure to the input parameter (w_x, w_y).

The function stores creates an non-orthogonal bus segment if the CONTROLKEY is pressed. The coordinates of the second rubberbus point is stored as (second_wx,second_wy) in the GSCHEM_TOPLEVEL structure.

Parameters:
[in]w_currentThe GSCHEM_TOPLEVEL object.
[in]w_xcurrent x position in world units
[in]w_ycurrent y position in world units

Definition at line 222 of file o_bus.c.

Here is the call graph for this function:

void o_bus_draw_rubber ( GSCHEM_TOPLEVEL w_current)
Function Description
This function draws a bus segment from the point (first_wx,first_wy) to the point (second_wx,second_wy) from the GSCHEM_TOPLEVEL structure.

The function can be used to draw or erase the rubberbus on the screen.

Parameters:
[in]w_currentThe GSCHEM_TOPLEVEL object

Definition at line 288 of file o_bus.c.

Here is the call graph for this function:

void o_bus_invalidate_rubber ( GSCHEM_TOPLEVEL w_current)
Todo:
Finish function documentation!!!
Function Description

Definition at line 255 of file o_bus.c.

Here is the call graph for this function:

void o_circle_draw ( GSCHEM_TOPLEVEL w_current,
OBJECT *  o_current 
)
Function Description
This function is used to draw a circle on screen. The circle is described by the OBJECT which is referred by o_current. The display is done according to the current state, given by the GSCHEM_TOPLEVEL object pointed by w_current.

It first checks if the OBJECT pointed is valid or not. If not it returns and do not output anything. That should never happen though.

Parameters:
[in]w_currentThe GSCHEM_TOPLEVEL object.
[in]o_currentCircle OBJECT to draw.

Definition at line 208 of file o_circle.c.

Here is the call graph for this function:

void o_circle_invalidate_rubber ( GSCHEM_TOPLEVEL w_current)
Todo:
Finish function documentation!!!
Function Description

Definition at line 319 of file o_circle.c.

Here is the call graph for this function:

void o_circle_draw_place ( GSCHEM_TOPLEVEL w_current,
int  dx,
int  dy,
OBJECT *  o_current 
)
Function Description
This function draws the circle object described by *o_current translated by the vector (dx,dy). The translation vector is in world unit.

The circle is displayed with the color of the object.

Parameters:
[in]w_currentThe GSCHEM_TOPLEVEL object.
[in]dxDelta x coordinate for circle.
[in]dyDelta y coordinate for circle.
[in]o_currentCircle OBJECT to draw.
Todo:
add in offsets, get rid of global diffs_x,y

Definition at line 346 of file o_circle.c.

Here is the call graph for this function:

void o_circle_start ( GSCHEM_TOPLEVEL w_current,
int  w_x,
int  w_y 
)
Function Description
This function starts the process to input a new circle. Parameters for this circle are pu into/extracted from the w_current toplevel structure. w_x and w_y are current coordinates of the mouse pointer in world units.

The first step of the circle input is to set the center of the arc. This center is kept in (w_current->first_wx,w_current->first_wy).

Parameters:
[in]w_currentThe GSCHEM_TOPLEVEL object.
[in]w_xCurrent x coordinate of pointer in world units.
[in]w_yCurrent y coordinate of pointer in world units.

Definition at line 374 of file o_circle.c.

Here is the call graph for this function:

void o_circle_end ( GSCHEM_TOPLEVEL w_current,
int  w_x,
int  w_y 
)
Function Description
This function ends the input of the radius of the circle. The (w_x,w_y) point is taken as the other end of the radius segment, i.e. on the circle. The distance between this point and the center is the radius of the circle. w_x and w_y are in world coords.

The center has previously been input and saved as (w_current->first_wx,w_current->first_wy).

The temporary circle drawn during the input of the radius is erased. A new object is allocated, initialized and linked in the object list. This new object is finally drawn.

Parameters:
[in]w_currentThe GSCHEM_TOPLEVEL object.
[in]w_x(unused)
[in]w_y(unused)

Definition at line 407 of file o_circle.c.

Here is the call graph for this function:

void o_circle_motion ( GSCHEM_TOPLEVEL w_current,
int  w_x,
int  w_y 
)
Function Description
This function draws a circle according to its internal representation and allows the modification of its radius. The radius is updated according to the current mouse position in w_x and w_y. It draws a full circle and the horizontal segment of the radius in the right half of the circle.

The previous temporary circle is erased, the radius is then computed and updated and finally a new temporary circle is drawn.

The arc is internally described by :

*
(w_current->first_wx,w_current->first_wy) as its center ;
*
w_current->distance as its radius.
Parameters:
[in]w_currentThe GSCHEM_TOPLEVEL object.
[in]w_xCurrent x coordinate of pointer in world units.
[in]w_yCurrent y coordinate of pointer in world units.

Definition at line 459 of file o_circle.c.

Here is the call graph for this function:

void o_circle_draw_rubber ( GSCHEM_TOPLEVEL w_current)
Function Description
This function draws the circle from the variables in the GSCHEM_TOPLEVEL structure *w_current. The center of the circle is at (w_current->first_wx, w_current->first_wy) and its radius is in w_current->distance.

It draws a horizontal radius segment on the right half of the circle and the circle with the selection color.

Parameters:
[in]w_currentThe GSCHEM_TOPLEVEL object.

Definition at line 494 of file o_circle.c.

Here is the call graph for this function:

void o_circle_draw_grips ( GSCHEM_TOPLEVEL w_current,
OBJECT *  o_current 
)
Function Description
This function draws the grip that match the circle object *o_current.
Parameters:
[in]w_currentThe GSCHEM_TOPLEVEL object.
[in]o_currentCircle OBJECT to draw grip points on.

Definition at line 518 of file o_circle.c.

Here is the call graph for this function:

void o_complex_draw ( GSCHEM_TOPLEVEL w_current,
OBJECT *  o_current 
)
Todo:
Finish function documentation!!!
Function Description

Definition at line 40 of file o_complex.c.

Here is the call graph for this function:

void o_complex_draw_place ( GSCHEM_TOPLEVEL w_current,
int  dx,
int  dy,
OBJECT *  object 
)
Todo:
Finish function documentation!!!
Function Description

Definition at line 54 of file o_complex.c.

Here is the call graph for this function:

void o_complex_prepare_place ( GSCHEM_TOPLEVEL w_current,
const CLibSymbol *  sym 
)
Todo:
Finish function documentation!!!
Function Description

Definition at line 68 of file o_complex.c.

Here is the call graph for this function:

void o_complex_place_changed_run_hook ( GSCHEM_TOPLEVEL w_current)
Function Description
The complex place list is usually used when placing new components in the schematic. This function should be called whenever that list is modified.
Parameters:
[in]w_currentGSCHEM_TOPLEVEL structure.

Definition at line 160 of file o_complex.c.

Here is the call graph for this function:

void o_complex_translate_all ( GSCHEM_TOPLEVEL w_current,
int  offset 
)
Todo:
Finish function documentation!!!
Function Description
Note:
don't know if this belongs yet

Todo:
do we want snap grid here?

Definition at line 190 of file o_complex.c.

Here is the call graph for this function:

void o_copy_start ( GSCHEM_TOPLEVEL w_current,
int  w_x,
int  w_y 
)
Todo:
Finish function documentation!!!
Function Description

Definition at line 37 of file o_copy.c.

Here is the call graph for this function:

void o_copy_end ( GSCHEM_TOPLEVEL w_current)
Todo:
Finish function documentation!!!
Function Description

Definition at line 72 of file o_copy.c.

Here is the call graph for this function:

void o_copy_multiple_end ( GSCHEM_TOPLEVEL w_current)
Todo:
Finish function documentation!!!
Function Description

Definition at line 84 of file o_copy.c.

Here is the call graph for this function:

void o_cue_redraw_all ( GSCHEM_TOPLEVEL w_current,
GList *  list,
gboolean  draw_selected 
)
Todo:
Finish function documentation!!!
Function Description

Definition at line 37 of file o_cue.c.

Here is the call graph for this function:

void o_cue_draw_lowlevel ( GSCHEM_TOPLEVEL w_current,
OBJECT *  object,
int  whichone 
)
Todo:
Finish function documentation!!!
Function Description

Definition at line 126 of file o_cue.c.

Here is the call graph for this function:

void o_cue_draw_lowlevel_midpoints ( GSCHEM_TOPLEVEL w_current,
OBJECT *  object 
)
Todo:
Finish function documentation!!!
Function Description

Definition at line 249 of file o_cue.c.

Here is the call graph for this function:

void o_cue_draw_single ( GSCHEM_TOPLEVEL w_current,
OBJECT *  object 
)
Todo:
Finish function documentation!!!
Function Description

Definition at line 272 of file o_cue.c.

Here is the call graph for this function:

void o_cue_draw_list ( GSCHEM_TOPLEVEL w_current,
GList *  object_list 
)
Todo:
Finish function documentation!!!
Function Description

Definition at line 298 of file o_cue.c.

Here is the call graph for this function:

void o_delete ( GSCHEM_TOPLEVEL w_current,
OBJECT *  object 
)
Function Description
This function erases the object object before deleting it. It deals with connection and object connected to it.
Parameters:
[in]w_currentThe GSCHEM_TOPLEVEL object.
[in]objectThe object to delete.

Definition at line 38 of file o_delete.c.

Here is the call graph for this function:

void o_delete_selected ( GSCHEM_TOPLEVEL w_current)
Function Description
This function deletes the objects selected on the current page of toplevel w_current.
Parameters:
[in]w_currentThe GSCHEM_TOPLEVEL object.

Definition at line 59 of file o_delete.c.

Here is the call graph for this function:

gboolean o_find_object ( GSCHEM_TOPLEVEL w_current,
int  w_x,
int  w_y,
gboolean  change_selection 
)
Function Description
Tests for OBJECTS hit at a given set of coordinates. If change_selection is TRUE, it updates the page's selection.

Find operations resume searching after the last object which was found, so multiple find operations at the same point will cycle through any objects on top of each other at this location.

Parameters:
[in]w_currentThe GSCHEM_TOPLEVEL object.
[in]w_xThe X coordinate to test (in world coords).
[in]w_yThe Y coordinate to test (in world coords).
[in]change_selectionWhether to select the found object or not.
Returns:
TRUE if the object was hit at the given coordinates, otherwise FALSE.

Definition at line 127 of file o_find.c.

Here is the call graph for this function:

gboolean o_find_selected_object ( GSCHEM_TOPLEVEL w_current,
int  w_x,
int  w_y 
)
Todo:
Finish function documentation!!!
Function Description

Definition at line 190 of file o_find.c.

Here is the call graph for this function:

OBJECT* o_grips_search_world ( GSCHEM_TOPLEVEL w_current,
int  x,
int  y,
int *  whichone 
)
Function Description
This function is used to determine if the (x,y) point is inside a grip of one of the selected object on the current sheet. The selected object are in a list starting at w_current->toplevel->page_current->selection2_head. The x and y parameters are in world units. If the point is inside one grip, a pointer on the object it belongs to is returned and *whichone is set according to the position of the grip on the object. Else, *whichone is unchanged and the function returns NULL.

A specific search function is provided for every kind of graphical object. The list of selected object is covered : each object is tested with the appropriate function.

Parameters:
[in]w_currentThe GSCHEM_TOPLEVEL object.
[in]xCurrent x coordinate of pointer in world units.
[in]yCurrent y coordinate of pointer in world units.
[out]whichoneWhich grip point is selected.
Returns:
Pointer to OBJECT the grip is on, NULL otherwise.

Definition at line 67 of file o_grips.c.

Here is the call graph for this function:

OBJECT* o_grips_search_arc_world ( GSCHEM_TOPLEVEL w_current,
OBJECT *  o_current,
int  x,
int  y,
int  size,
int *  whichone 
)
Function Description
This function checks if the pointer event occuring at (x,y) is inside one of the grips of an o_current pointed arc object. If so the whichone pointed integer is set to the number of this grip and the return pointer is a pointer on this object. If the point is not inside a grip the function returns a NULL pointer and the whichone pointed integer is unset.

An arc object has three grips :

*
one at the center of the arc. This grip is used to modify the radius of the arc. If this one is selected, the whichone pointed integer is set to ARC_RADIUS.
*
one at one end of the arc. It corresponds to the starting angle of the arc. If this one is selected, the whichone pointed integer is set to ARC_START_ANGLE.
*
one at the other end of the arc. It corresponds to the ending angle of the arc. If this one is selected, the whichone pointed integer is set to ARC_END_ANGLE.

The x and y parameters are in world units.

The size parameter is the width (and height) of the square representing a grip in world units.

Parameters:
[in]w_currentThe GSCHEM_TOPLEVEL object.
[in]o_currentArc OBJECT to check.
[in]xCurrent x coordinate of pointer in world units.
[in]yCurrent y coordinate of pointer in world units.
[in]sizeHalf the width of the grip square in world units.
[out]whichoneWhich grip point is selected.
Returns:
Pointer to OBJECT the grip is on, NULL otherwise.

Definition at line 206 of file o_grips.c.

Here is the call graph for this function:

OBJECT* o_grips_search_box_world ( GSCHEM_TOPLEVEL w_current,
OBJECT *  o_current,
int  x,
int  y,
int  size,
int *  whichone 
)
Function Description
This function checks if the pointer event occuring at (x,y) is inside one of the grips of the o_current pointed box object. If so, the whichone pointed integer is set to the identifier of this grip and the returned pointer is a pointer on this object. If the point is not inside a grip the function returns a NULL pointer and the whichone pointed integer is unset.

A box object has four grips : one at each corner of the box. The identifiers of each corner are BOX_UPPER_LEFT, BOX_UPPER_RIGHT, BOX_LOWER_LEFT and BOX_LOWER_RIGHT.

The x and y parameters are in world units.

The size parameter is half the width (and half the height) of the square representing a grip in world units.

Parameters:
[in]w_currentThe GSCHEM_TOPLEVEL object.
[in]o_currentBox OBJECT to check.
[in]xCurrent x coordinate of pointer in world units.
[in]yCurrent y coordinate of pointer in world units.
[in]sizeHalf the width of the grip square in world units.
[out]whichoneWhich grip point is selected.
Returns:
Pointer to OBJECT the grip is on, NULL otherwise.

Definition at line 271 of file o_grips.c.

Here is the call graph for this function:

OBJECT* o_grips_search_path_world ( GSCHEM_TOPLEVEL w_current,
OBJECT *  o_current,
int  x,
int  y,
int  size,
int *  whichone 
)
Function Description
This function checks if the pointer event occuring at (x,y) is inside one of the grips of the o_current pointed path object. If so, the whichone pointed integer is set to the identifier of this grip and the returned pointer is a pointer on this object. If the point is not inside a grip the function returns a NULL pointer and the whichone pointed integer is unset.

A path object has four grips : one at each corner of the path. The identifiers of each corner are #PICTURE_UPPER_LEFT, #PICTURE_UPPER_RIGHT, #PICTURE_LOWER_LEFT and #PICTURE_LOWER_RIGHT.

The x and y parameters are in world units.

The size parameter is half the width (and half the height) of the square representing a grip in world units.

Parameters:
[in]w_currentThe GSCHEM_TOPLEVEL object.
[in]o_currentPicture OBJECT to check.
[in]xCurrent x coordinate of pointer in world units.
[in]yCurrent y coordinate of pointer in world units.
[in]sizeHalf the width of the grip square in world units.
[out]whichoneWhich grip point is selected.
Returns:
Pointer to OBJECT the grip is on, NULL otherwise.

Definition at line 336 of file o_grips.c.

Here is the call graph for this function:

OBJECT* o_grips_search_picture_world ( GSCHEM_TOPLEVEL w_current,
OBJECT *  o_current,
int  x,
int  y,
int  size,
int *  whichone 
)
Function Description
This function checks if the pointer event occuring at (x,y) is inside one of the grips of the o_current pointed picture object. If so, the whichone pointed integer is set to the identifier of this grip and the returned pointer is a pointer on this object. If the point is not inside a grip the function returns a NULL pointer and the whichone pointed integer is unset.

A picture object has four grips : one at each corner of the picture. The identifiers of each corner are #PICTURE_UPPER_LEFT, #PICTURE_UPPER_RIGHT, #PICTURE_LOWER_LEFT and #PICTURE_LOWER_RIGHT.

The x and y parameters are in world units.

The size parameter is half the width (and half the height) of the square representing a grip in world units.

Parameters:
[in]w_currentThe GSCHEM_TOPLEVEL object.
[in]o_currentPicture OBJECT to check.
[in]xCurrent x coordinate of pointer in world units.
[in]yCurrent y coordinate of pointer in world units.
[in]sizeHalf the width of the grip square in world units.
[out]whichoneWhich grip point is selected.
Returns:
Pointer to OBJECT the grip is on, NULL otherwise.

Definition at line 406 of file o_grips.c.

Here is the call graph for this function:

OBJECT* o_grips_search_circle_world ( GSCHEM_TOPLEVEL w_current,
OBJECT *  o_current,
int  x,
int  y,
int  size,
int *  whichone 
)
Function Description
This function determines if the (x,y) point is inside one of the grip of the circle object o_current. It computes the area covered by each grip and check if (x,y) is in one of these areas. If the event occured in one of the grip, a pointer on the object is returned and *whichone is set to the identifier of the grip. If not, the function returns a NULL pointer and *whichone is unchanged.

The parameter size is half the size of the grip in world units.

A circle has only one grip on the lower right corner of the box it is inscribed in. Moving this grip change the radius of the circle. The identifier of this grip is CIRCLE_RADIUS.

Parameters:
[in]w_currentThe GSCHEM_TOPLEVEL object.
[in]o_currentCircle OBJECT to check.
[in]xCurrent x coordinate of pointer in world units.
[in]yCurrent y coordinate of pointer in world units.
[in]sizeHalf the width of the grip square in world units.
[out]whichoneWhich grip point is selected.
Returns:
Pointer to OBJECT the grip is on, NULL otherwise.

Definition at line 469 of file o_grips.c.

Here is the call graph for this function:

OBJECT* o_grips_search_line_world ( GSCHEM_TOPLEVEL w_current,
OBJECT *  o_current,
int  x,
int  y,
int  size,
int *  whichone 
)
Function Description
This function determines if the (x,y) point is inside one of the grip of the line object o_current. It computes the area covered by each grip and check if (x,y) is in one of these areas. If the event occured in one of its grip, a pointer on the object is returned and *whichone is set to the identifier of the grip. If not, the function returns NULL pointer and *whichone is unchanged.

The parameter size is half the size of the grip in world units.

Parameters:
[in]w_currentThe GSCHEM_TOPLEVEL object.
[in]o_currentLine OBJECT to check.
[in]xCurrent x coordinate of pointer in world units.
[in]yCurrent y coordinate of pointer in world units.
[in]sizeHalf the width of the grip square in world units.
[out]whichoneWhich grip point is selected.
Returns:
Pointer to OBJECT the grip is on, NULL otherwise.

Definition at line 504 of file o_grips.c.

Here is the call graph for this function:

int o_grips_start ( GSCHEM_TOPLEVEL w_current,
int  w_x,
int  w_y 
)
Function Description
This function starts the process of modifying one grip of an object on the current sheet. The event occured in (w_x,w_y) in world unit. If this position is related to a grip of an object, the function prepares the modification of this grip thanks to the user input.

The function returns FALSE if an error occured or if no grip have been found under (w_x,w_y). It returns TRUE if a grip has been found and modification of the object has been started.

If a grip has been found, this function modifies the GSCHEM_TOPLEVEL variables which_grip and which_object with the identifier of the grip and the object it belongs to respectively.

Parameters:
[in]w_currentThe GSCHEM_TOPLEVEL object.
[in]w_xCurrent x coordinate of pointer in world units.
[in]w_yCurrent y coordinate of pointer in world units.
Returns:
FALSE if an error occurred or no grip was found, TRUE otherwise.

Definition at line 862 of file o_grips.c.

Here is the call graph for this function:

void o_grips_motion ( GSCHEM_TOPLEVEL w_current,
int  w_x,
int  w_y 
)
Function Description
This function modify the previously selected object according to the mouse position in w_x and w_y. The grip under modification is updated and the temporary object displayed.

The object under modification is w_current->which_object and the grip concerned is w_current->which_grip.

Depending on the object type, a specific function is used. It erases the temporary object, updates its internal representation, and draws it again.

Parameters:
[in]w_currentThe GSCHEM_TOPLEVEL object.
[in]w_xCurrent x coordinate of pointer in world units.
[in]w_yCurrent y coordinate of pointer in world units.

Definition at line 945 of file o_grips.c.

Here is the call graph for this function:

void o_grips_end ( GSCHEM_TOPLEVEL w_current)
Function Description
This function ends the process of modifying a parameter of an object with a grip. The temporary representation of the object is erased, the object is modified and finally drawn.

The object under modification is w_current->which_object and the grip concerned is w_current->which_grip.

Depending on the object type, a specific function is used. It erases the temporary object, updates the object and draws the modified object normally.

Parameters:
[in,out]w_currentThe GSCHEM_TOPLEVEL object.

Definition at line 1347 of file o_grips.c.

Here is the call graph for this function:

void o_grips_cancel ( GSCHEM_TOPLEVEL w_current)
Function Description
This function cancels the process of modifying a parameter of an object with a grip. It's main utility is to reset the dont_redraw flag on the object which was being modified.
Parameters:
[in,out]w_currentThe GSCHEM_TOPLEVEL object.

Definition at line 995 of file o_grips.c.

int o_grips_size ( GSCHEM_TOPLEVEL w_current)
Function Description
According to the current zoom level, the function returns half the width and height of a grip in screen units.

GRIP_SIZE1 and GRIP_SIZE2 and GRIP_SIZE3 are macros defined in gschem_defines.h. They are the half width/height of a grip in world unit for a determined range of zoom factors.

Parameters:
[in]w_currentThe GSCHEM_TOPLEVEL object.
Returns:
Half grip size in screen units.

Definition at line 1441 of file o_grips.c.

Here is the call graph for this function:

void o_grips_draw ( GSCHEM_TOPLEVEL w_current,
int  wx,
int  wy 
)
Function Description
This function draws a grip centered at (x,y). Its color is either the selection color or the overriding color from toplevel->override_color.

The size of the grip depends on the current zoom factor.

x and y are in screen unit.

Parameters:
[in]w_currentThe GSCHEM_TOPLEVEL object.
[in]wxCenter x world coordinate for drawing grip.
[in]wyCenter y world coordinate for drawing grip.

Definition at line 1475 of file o_grips.c.

Here is the call graph for this function:

void o_grips_draw_rubber ( GSCHEM_TOPLEVEL w_current)
Function Description
This function draws the objects being grip manipulated.
Parameters:
[in]w_currentThe GSCHEM_TOPLEVEL object.

Definition at line 1522 of file o_grips.c.

Here is the call graph for this function:

void o_line_draw ( GSCHEM_TOPLEVEL w_current,
OBJECT *  o_current 
)
Function Description
This function is used to draw a line on screen. The line is described in the object which is referred by o_current. The line is displayed according to the current state, described in the GSCHEM_TOPLEVEL object pointed by w_current.

It first checks if the object is valid or not. If not it returns and do not output anything. That should never happen though.

Parameters:
[in]w_currentThe GSCHEM_TOPLEVEL object.
[in]o_currentThe line OBJECT to draw.

Definition at line 44 of file o_line.c.

Here is the call graph for this function:

void o_line_invalidate_rubber ( GSCHEM_TOPLEVEL w_current)
Todo:
Finish function documentation
Function Description

Definition at line 78 of file o_line.c.

Here is the call graph for this function:

void o_line_draw_place ( GSCHEM_TOPLEVEL w_current,
int  dx,
int  dy,
OBJECT *  o_current 
)
Function Description
This function is used to draw the line object described by *o_current after applying a translation on the two directions of dx and dy in world units.
Parameters:
[in]w_currentThe GSCHEM_TOPLEVEL object.
[in]dxDelta x coordinate for line.
[in]dyDelta y coordinate for line.
[in]o_currentLine OBJECT to draw.

Definition at line 99 of file o_line.c.

Here is the call graph for this function:

void o_line_start ( GSCHEM_TOPLEVEL w_current,
int  w_x,
int  w_y 
)
Function Description
This function starts the process of interactively adding a line to the current sheet.

During all the process, the line is internally represented by the two ends of the line as (w_current->first_wx,w_current->first_wy) and (w_current->second_wx,w_current->second_wy).

A temporary line is drawn during the process with the selection color and changed according to the position of the mouse pointer.

Parameters:
[in]w_currentThe GSCHEM_TOPLEVEL object.
[in]w_xCurrent x coordinate of pointer in world units.
[in]w_yCurrent y coordinate of pointer in world units.

Definition at line 129 of file o_line.c.

Here is the call graph for this function:

void o_line_end ( GSCHEM_TOPLEVEL w_current,
int  w_x,
int  w_y 
)
Function Description
This function ends the process of interactively adding a line to the current sheet.

It first erases the last temporary line displayed, calculates the corresponding world coordinates of the two ends of the line and finally adds a new initialized line object to the list of object of the current sheet.

Parameters:
[in]w_currentThe GSCHEM_TOPLEVEL object.
[in]w_x(unused)
[in]w_y(unused)

Definition at line 153 of file o_line.c.

Here is the call graph for this function:

void o_line_motion ( GSCHEM_TOPLEVEL w_current,
int  w_x,
int  w_y 
)
Function Description
This function manages the erase/update/draw process of temporary line when modifying one end of the line. The line is described by four *w_current variables : the first end of the line is (first_wx,first_wy), the second end is (second_wx,second_wy). The first end is constant. The second end is updated to the (w_x,w_y).
Parameters:
[in]w_currentThe GSCHEM_TOPLEVEL object.
[in]w_xCurrent x coordinate of pointer in world units.
[in]w_yCurrent y coordinate of pointer in world units.

Definition at line 196 of file o_line.c.

Here is the call graph for this function:

void o_line_draw_rubber ( GSCHEM_TOPLEVEL w_current)
Function Description
This function draws a line with an exclusive or function over the sheet. The color of the box is SELECT_COLOR. The line is described by the two points (w_current->first_wx, w_current->first_wy) and (w_current->second_wx,w_current->second_wy).
Parameters:
[in]w_currentThe GSCHEM_TOPLEVEL object.

Definition at line 238 of file o_line.c.

Here is the call graph for this function:

void o_line_draw_grips ( GSCHEM_TOPLEVEL w_current,
OBJECT *  o_current 
)
Function Description
This function draws the grips on the line object o_current.

A line has a grip at each end.

Parameters:
[in]w_currentThe GSCHEM_TOPLEVEL object.
[in]o_currentLine OBJECT to draw grip points on.

Definition at line 258 of file o_line.c.

Here is the call graph for this function:

int o_line_visible ( GSCHEM_TOPLEVEL w_current,
LINE *  line,
int *  x1,
int *  y1,
int *  x2,
int *  y2 
)
Function Description
Parameters:
[in]w_currentThe TOPLEVEL object.
[in]line
[in]x1
[in]y1
[in]x2
[in]y2
Returns:
int

Definition at line 282 of file o_line.c.

Here is the call graph for this function:

void o_edit ( GSCHEM_TOPLEVEL w_current,
GList *  list 
)
Todo:
probably should go back and do the same for o_copy o_move o_delete...
Todo:
Finish function documentation!!!
Function Description

Definition at line 48 of file o_misc.c.

Here is the call graph for this function:

void o_lock ( GSCHEM_TOPLEVEL w_current)
Todo:
Finish function documentation!!!
Function Description

Definition at line 107 of file o_misc.c.

Here is the call graph for this function:

void o_unlock ( GSCHEM_TOPLEVEL w_current)
Todo:
Finish function documentation!!!
Function Description

Definition at line 146 of file o_misc.c.

Here is the call graph for this function:

void o_rotate_world_update ( GSCHEM_TOPLEVEL w_current,
int  centerx,
int  centery,
int  angle,
GList *  list 
)
Function Description
Given an object list, and the center of rotation (centerx,centery, this function traverses all the selection list, rotating each object through angle angle. The list contains a given object and all its attributes (refdes, pinname, pinlabel, ...). There is a second pass to run the rotate hooks of non-simple objects, like pin or complex objects, for example.
Parameters:
[in]w_currentThe GSCHEM_TOPLEVEL object.
[in]centerxCenter x coordinate of rotation.
[in]centeryCenter y coordinate of rotation.
[in]angleAngle to rotate the objects through.
[in]listThe list of objects to rotate.

Definition at line 188 of file o_misc.c.

Here is the call graph for this function:

void o_mirror_world_update ( GSCHEM_TOPLEVEL w_current,
int  centerx,
int  centery,
GList *  list 
)
Todo:
Finish function documentation!!!
Function Description

Definition at line 244 of file o_misc.c.

Here is the call graph for this function:

void o_edit_show_hidden_lowlevel ( GSCHEM_TOPLEVEL w_current,
const GList *  o_list 
)
Todo:
Finish function documentation!!!
Function Description

Definition at line 294 of file o_misc.c.

Here is the call graph for this function:

void o_edit_show_hidden ( GSCHEM_TOPLEVEL w_current,
const GList *  o_list 
)
Todo:
Finish function documentation!!!
Function Description

Definition at line 324 of file o_misc.c.

Here is the call graph for this function:

int o_edit_find_text ( GSCHEM_TOPLEVEL w_current,
const GList *  o_list,
char *  stext,
int  descend,
int  skip 
)
Todo:
Finish function documentation!!!
Function Description
Todo:
Only descends into the first source schematic

Definition at line 357 of file o_misc.c.

Here is the call graph for this function:

void o_edit_hide_specific_text ( GSCHEM_TOPLEVEL w_current,
const GList *  o_list,
char *  stext 
)
Todo:
Finish function documentation!!!
Function Description

Definition at line 469 of file o_misc.c.

Here is the call graph for this function:

void o_edit_show_specific_text ( GSCHEM_TOPLEVEL w_current,
const GList *  o_list,
char *  stext 
)
Todo:
Finish function documentation!!!
Function Description

Definition at line 503 of file o_misc.c.

Here is the call graph for this function:

OBJECT* o_update_component ( GSCHEM_TOPLEVEL w_current,
OBJECT *  o_current 
)
Function Description
Updates o_current to the latest version of the symbol available in the symbol library, while preserving any attributes set in the current schematic. On success, returns the new OBJECT which replaces o_current on the page; o_current is deleted. On failure, returns NULL, and o_current is left unchanged.
Parameters:
[in]w_currentThe GSCHEM_TOPLEVEL object.
[in,out]o_currentThe OBJECT to be updated.
Returns:
the new OBJECT that replaces o_current.

Definition at line 547 of file o_misc.c.

Here is the call graph for this function:

void o_autosave_backups ( GSCHEM_TOPLEVEL w_current)
Function Description
Looks for pages with the do_autosave_backup flag activated and autosaves them.
Parameters:
[in]w_currentThe GSCHEM_TOPLEVEL object to search for autosave's.

Definition at line 650 of file o_misc.c.

void o_move_start ( GSCHEM_TOPLEVEL w_current,
int  w_x,
int  w_y 
)
Todo:
Finish function documentation!!!
Function Description

Definition at line 35 of file o_move.c.

Here is the call graph for this function:

void o_move_end_lowlevel ( GSCHEM_TOPLEVEL w_current,
OBJECT *  object,
int  diff_x,
int  diff_y 
)
Todo:
Finish function documentation!!!
Function Description

Definition at line 103 of file o_move.c.

void o_move_end ( GSCHEM_TOPLEVEL w_current)
Todo:
Finish function documentation!!!
Function Description

Definition at line 130 of file o_move.c.

Here is the call graph for this function:

void o_move_cancel ( GSCHEM_TOPLEVEL w_current)
Todo:
Finish function documentation!!!
Function Description

Definition at line 245 of file o_move.c.

Here is the call graph for this function:

void o_move_motion ( GSCHEM_TOPLEVEL w_current,
int  w_x,
int  w_y 
)
Todo:
Finish function documentation!!!
Function Description

Definition at line 274 of file o_move.c.

Here is the call graph for this function:

void o_move_invalidate_rubber ( GSCHEM_TOPLEVEL w_current,
int  drawing 
)
Todo:
Finish function documentation!!!
Function Description

Definition at line 339 of file o_move.c.

Here is the call graph for this function:

void o_move_draw_rubber ( GSCHEM_TOPLEVEL w_current,
int  drawing 
)
Todo:
Finish function documentation!!!
Function Description

Definition at line 383 of file o_move.c.

Here is the call graph for this function:

int o_move_return_whichone ( OBJECT *  object,
int  x,
int  y 
)
Todo:
Finish function documentation!!!
Function Description

Definition at line 420 of file o_move.c.

void o_move_check_endpoint ( GSCHEM_TOPLEVEL w_current,
OBJECT *  object 
)
Todo:
Finish function documentation!!!
Function Description

Definition at line 440 of file o_move.c.

Here is the call graph for this function:

void o_move_prep_rubberband ( GSCHEM_TOPLEVEL w_current)
Todo:
Finish function documentation!!!
Function Description

Definition at line 530 of file o_move.c.

Here is the call graph for this function:

int o_move_zero_length ( OBJECT *  object)
Todo:
Finish function documentation!!!
Function Description

Definition at line 572 of file o_move.c.

void o_move_end_rubberband ( GSCHEM_TOPLEVEL w_current,
int  w_dx,
int  w_dy,
GList **  objects 
)
Todo:
Finish function documentation!!!
Function Description

Definition at line 593 of file o_move.c.

Here is the call graph for this function:

void o_net_reset ( GSCHEM_TOPLEVEL w_current)
Function Description
This function resets all variables from GSCHEM_TOPLEVEL that are used for net drawing. This function should be called when escaping from a net drawing action or before entering it.

Definition at line 59 of file o_net.c.

void o_net_draw ( GSCHEM_TOPLEVEL w_current,
OBJECT *  o_current 
)
Todo:
Finish function documentation!!!
Function Description

Definition at line 73 of file o_net.c.

Here is the call graph for this function:

void o_net_draw_place ( GSCHEM_TOPLEVEL w_current,
int  dx,
int  dy,
OBJECT *  o_current 
)
Todo:
Finish function documentation!!!
Function Description

Definition at line 116 of file o_net.c.

Here is the call graph for this function:

void o_net_draw_stretch ( GSCHEM_TOPLEVEL w_current,
int  dx,
int  dy,
int  whichone,
OBJECT *  o_current 
)
Todo:
Finish function documentation!!!
Function Description

Definition at line 140 of file o_net.c.

Here is the call graph for this function:

void o_net_guess_direction ( GSCHEM_TOPLEVEL w_current,
int  wx,
int  wy 
)
Function Description
This function checks all connectable objects at a starting point. It determines the best drawing direction for each quadrant of the possible net endpoint.

The directions are stored in the GSCHEM_TOPLEVEL->net_direction variable as a bitfield.

Definition at line 180 of file o_net.c.

void o_net_find_magnetic ( GSCHEM_TOPLEVEL w_current,
int  w_x,
int  w_y 
)
Function Description
This function calculates the distance to all connectable objects and searches the closest connection point. It searches for pins, nets and busses.

The connection point is stored in GSCHEM_TOPLEVEL->magnetic_wx and GSCHEM_TOPLEVEL->magnetic_wy. If no connection is found. Both variables are set to -1.

Definition at line 303 of file o_net.c.

Here is the call graph for this function:

void o_net_finishmagnetic ( GSCHEM_TOPLEVEL w_current)
Function Description
Depending on the two rubbernet lines from start to last and from last to second, the 3 coordinates are manipulated to find a way to the magnetic marker.

Definition at line 438 of file o_net.c.

void o_net_start_magnetic ( GSCHEM_TOPLEVEL w_current,
int  w_x,
int  w_y 
)
Function Description
If the mouse is moved, this function is called to update the position of the magnetic marker. If the controllkey is pressed the magnetic marker follows the mouse.

Definition at line 498 of file o_net.c.

Here is the call graph for this function:

void o_net_start ( GSCHEM_TOPLEVEL w_current,
int  w_x,
int  w_y 
)
Function Description
This function sets the start point of a new net at the position of the cursor. If we have a visible magnetic marker, we use that instead of the cursor position

Definition at line 521 of file o_net.c.

Here is the call graph for this function:

int o_net_end ( GSCHEM_TOPLEVEL w_current,
int  w_x,
int  w_y 
)
Function Description
This function finishes the drawing of a net. If we have a visible magnetic marker, we use that instead of the current cursor position.

The rubber nets are removed, the nets and cues are drawn and the net is added to the TOPLEVEL structure.

The function returns TRUE if it has drawn a net, FALSE otherwise.

Definition at line 554 of file o_net.c.

Here is the call graph for this function:

void o_net_motion ( GSCHEM_TOPLEVEL w_current,
int  w_x,
int  w_y 
)
Function Description
This function draws the rubbernet lines when drawing a net.

Definition at line 676 of file o_net.c.

Here is the call graph for this function:

void o_net_draw_rubber ( GSCHEM_TOPLEVEL w_current)
Function Description
This function draws the rubbernets to the graphic context

Definition at line 743 of file o_net.c.

Here is the call graph for this function:

void o_net_invalidate_rubber ( GSCHEM_TOPLEVEL w_current)
Todo:
Finish function documentation!!!
Function Description

Definition at line 782 of file o_net.c.

Here is the call graph for this function:

int o_net_add_busrippers ( GSCHEM_TOPLEVEL w_current,
OBJECT *  net_obj,
GList *  prev_conn_objects 
)
Todo:
Finish function documentation!!!
Function Description

Definition at line 836 of file o_net.c.

void o_picture_start ( GSCHEM_TOPLEVEL w_current,
int  w_x,
int  w_y 
)
Function Description
This function starts the process to input a new picture. Parameters for this picture are put into/extracted from the w_current toplevel structure. w_x and w_y are current coordinates of the pointer in world coordinates.

The first step is to input one corner of the picture. This corner is (w_x,w_y) snapped to the grid and saved in w_current->first_wx and w_current->first_wy.

The other corner will be saved in (w_current->second_wx, w_current->second_wy).

Parameters:
[in]w_currentThe GSCHEM_TOPLEVEL object.
[in]w_xCurrent x coordinate of pointer in world units.
[in]w_yCurrent y coordinate of pointer in world units.

Definition at line 56 of file o_picture.c.

Here is the call graph for this function:

void o_picture_end ( GSCHEM_TOPLEVEL w_current,
int  w_x,
int  w_y 
)
Function Description
This function ends the input of the second corner of a picture. The picture is defined by (w_current->first_wx,w_current->first_wy and (w_current->second_wx,w_current->second_wy.

The temporary picture frame is erased ; a new picture object is allocated, initialized and linked to the object list ; The object is finally drawn on the current sheet.

Parameters:
[in]w_currentThe GSCHEM_TOPLEVEL object.
[in]w_x(unused)
[in]w_y(unused)

Definition at line 81 of file o_picture.c.

Here is the call graph for this function:

void o_picture_motion ( GSCHEM_TOPLEVEL w_current,
int  w_x,
int  w_y 
)
Function Description
This function is used to draw the box while dragging one of its edge or angle. It erases the previous temporary box drawn before, and draws a new updated one. w_x and w_y are the new position of the mobile point, ie the mouse.

The old values are inside the w_current pointed structure. Old width, height and left and top values are recomputed by the corresponding macros.

Parameters:
[in]w_currentThe GSCHEM_TOPLEVEL object.
[in]w_xCurrent x coordinate of pointer in world units.
[in]w_yCurrent y coordinate of pointer in world units.

Definition at line 236 of file o_picture.c.

Here is the call graph for this function:

void picture_selection_dialog ( GSCHEM_TOPLEVEL w_current)
Function Description
This function creates the add image dialog and loads the selected picture.

Definition at line 126 of file o_picture.c.

Here is the call graph for this function:

void o_picture_invalidate_rubber ( GSCHEM_TOPLEVEL w_current)
Todo:
Finish function documentation!!!
Function Description
Note:
used in button cancel code in x_events.c

Definition at line 205 of file o_picture.c.

Here is the call graph for this function:

void o_picture_draw_rubber ( GSCHEM_TOPLEVEL w_current)
Function Description
This function draws the box from the variables in the GSCHEM_TOPLEVEL structure *w_current. One corner of the box is at (w_current->first_wx, w_current->first_wy) and the second corner is at (w_current->second_wx,w_current->second_wy.
Parameters:
[in]w_currentThe GSCHEM_TOPLEVEL object.

Definition at line 272 of file o_picture.c.

Here is the call graph for this function:

void o_picture_draw ( GSCHEM_TOPLEVEL w_current,
OBJECT *  o_current 
)
Function Description
This function is used to draw a picture on screen. The picture is described in the OBJECT which is referred by o_current. The picture is displayed according to the current state, described in the GSCHEM_TOPLEVEL object pointed by w_current.

It first checks if the OBJECT pointed is valid or not. If not it returns and do not output anything. That should never happen though.

Parameters:
[in]w_currentThe GSCHEM_TOPLEVEL object.
[in]o_currentPicture OBJECT to draw.

Definition at line 302 of file o_picture.c.

Here is the call graph for this function:

void o_picture_draw_grips ( GSCHEM_TOPLEVEL w_current,
OBJECT *  o_current 
)
Function Description
This function draws four grips on the corners of the picture described by *o_current.
Parameters:
[in]w_currentThe GSCHEM_TOPLEVEL object.
[in]o_currentPicture OBJECT to draw grip points on.

Definition at line 395 of file o_picture.c.

Here is the call graph for this function:

void o_picture_draw_place ( GSCHEM_TOPLEVEL w_current,
int  dx,
int  dy,
OBJECT *  o_current 
)
Function Description
This function daws the picture object described by *o_current translated by the vector (dx,dy). The translation vector is in world unit.

The picture is displayed with the color of the object.

Parameters:
[in]w_currentThe GSCHEM_TOPLEVEL object.
[in]dxDelta x coordinate for picture.
[in]dyDelta y coordinate for picture.
[in]o_currentPicture OBJECT to draw.

Definition at line 440 of file o_picture.c.

Here is the call graph for this function:

gboolean o_picture_exchange ( GSCHEM_TOPLEVEL w_current,
const gchar *  filename,
GError **  error 
)
Function Description
Replaces all pictures in the current selection with a new image.
Parameters:
[in]w_currentThe GSCHEM_TOPLEVEL object
[in]filenameThe filename of the new picture
[out]errorThe location to return error information.
Returns:
TRUE on success, FALSE on failure.

Definition at line 466 of file o_picture.c.

Here is the call graph for this function:

void picture_change_filename_dialog ( GSCHEM_TOPLEVEL w_current)
Function Description
This function opens a file chooser and replaces all pictures of the selections with the new picture.
Todo:
Maybe merge this dialog function with picture_selection_dialog()

Definition at line 502 of file o_picture.c.

Here is the call graph for this function:

void o_picture_set_pixbuf ( GSCHEM_TOPLEVEL w_current,
GdkPixbuf *  pixbuf,
char *  filename 
)
Todo:
Finish function documentation!!!
Function Description
Parameters:
[in]w_currentThe GSCHEM_TOPLEVEL object.
[in]pixbuf
[in]filename

Definition at line 572 of file o_picture.c.

void o_path_draw ( GSCHEM_TOPLEVEL w_current,
OBJECT *  o_current 
)
Function Description
This function is used to draw a path on screen. The path is described in the object which is referred by o_current. The path is displayed according to the current state, described in the GSCHEM_TOPLEVEL object pointed by w_current.
Parameters:
[in]w_currentThe GSCHEM_TOPLEVEL object.
[in]o_currentThe path OBJECT to draw.

Definition at line 292 of file o_path.c.

Here is the call graph for this function:

void o_path_invalidate_rubber ( GSCHEM_TOPLEVEL w_current)
Todo:
Finish function documentation
Function Description

Definition at line 374 of file o_path.c.

Here is the call graph for this function:

void o_path_draw_place ( GSCHEM_TOPLEVEL w_current,
int  dx,
int  dy,
OBJECT *  o_current 
)
Function Description
This function is used to draw the path object described by *o_current after applying a translation on the two directions of dx and dy in world units.
Parameters:
[in]w_currentThe GSCHEM_TOPLEVEL object.
[in]dxDelta x coordinate for path.
[in]dyDelta y coordinate for path.
[in]o_currentLine OBJECT to draw.

Definition at line 442 of file o_path.c.

Here is the call graph for this function:

void o_path_start ( GSCHEM_TOPLEVEL w_current,
int  w_x,
int  w_y 
)
Function Description
This function starts the process of interactively adding a path to the current sheet.

During all the process, the path is internally represented by the two ends of the path as (w_current->first_wx,w_current->first_wy) and (w_current->second_wx,w_current->second_wy).

Parameters:
[in]w_currentThe GSCHEM_TOPLEVEL object.
[in]w_xCurrent x coordinate of pointer in world units.
[in]w_yCurrent y coordinate of pointer in world units.

Definition at line 474 of file o_path.c.

void o_path_end ( GSCHEM_TOPLEVEL w_current,
int  w_x,
int  w_y 
)
Function Description
This function ends the process of interactively adding a path to the current sheet.

It first erases the last temporary path displayed, calculates the corresponding world coordinates of the two ends of the path and finally adds a new initialized path object to the list of object of the current sheet.

Parameters:
[in]w_currentThe GSCHEM_TOPLEVEL object.
[in]w_x(unused)
[in]w_y(unused)

Definition at line 494 of file o_path.c.

void o_path_motion ( GSCHEM_TOPLEVEL w_current,
int  w_x,
int  w_y 
)
Function Description
This function manages the erase/update/draw process of temporary path when modifying one end of the path. The path is described by four *w_current variables : the first end of the path is (first_wx,first_wy), the second end is (second_wx,second_wy). The first end is constant. The second end is updated to the (w_x,w_y).
Parameters:
[in]w_currentThe GSCHEM_TOPLEVEL object.
[in]w_xCurrent x coordinate of pointer in world units.
[in]w_yCurrent y coordinate of pointer in world units.

Definition at line 513 of file o_path.c.

Here is the call graph for this function:

void o_path_draw_rubber ( GSCHEM_TOPLEVEL w_current)
Function Description
This function draws a path with an exclusive or function over the sheet. The color of the box is SELECT_COLOR. The path is described by the two points (w_current->first_wx, w_current->first_wy) and (w_current->second_wx,w_current->second_wy).
Parameters:
[in]w_currentThe GSCHEM_TOPLEVEL object.

Definition at line 535 of file o_path.c.

Here is the call graph for this function:

void o_path_draw_grips ( GSCHEM_TOPLEVEL w_current,
OBJECT *  o_current 
)
Function Description
This function draws the grips on the path object o_current.

A path has a grip at each end.

Parameters:
[in]w_currentThe GSCHEM_TOPLEVEL object.
[in]o_currentLine OBJECT to draw grip points on.

Definition at line 626 of file o_path.c.

Here is the call graph for this function:

void o_pin_draw ( GSCHEM_TOPLEVEL w_current,
OBJECT *  o_current 
)
Todo:
Finish function documentation!!!
Function Description

Definition at line 36 of file o_pin.c.

Here is the call graph for this function:

void o_pin_draw_place ( GSCHEM_TOPLEVEL w_current,
int  dx,
int  dy,
OBJECT *  o_current 
)
Todo:
Finish function documentation!!!
Function Description

Definition at line 78 of file o_pin.c.

Here is the call graph for this function:

void o_pin_start ( GSCHEM_TOPLEVEL w_current,
int  w_x,
int  w_y 
)
Todo:
Finish function documentation!!!
Function Description

Definition at line 104 of file o_pin.c.

void o_pin_end ( GSCHEM_TOPLEVEL w_current,
int  x,
int  y 
)
Todo:
Finish function documentation!!!
Function Description

Definition at line 115 of file o_pin.c.

Here is the call graph for this function:

void o_pin_motion ( GSCHEM_TOPLEVEL w_current,
int  w_x,
int  w_y 
)
Todo:
Finish function documentation!!!
Function Description

Definition at line 157 of file o_pin.c.

Here is the call graph for this function:

void o_pin_draw_rubber ( GSCHEM_TOPLEVEL w_current)
Todo:
Finish function documentation!!!
Function Description

Definition at line 213 of file o_pin.c.

Here is the call graph for this function:

void o_pin_invalidate_rubber ( GSCHEM_TOPLEVEL w_current)
Todo:
Finish function documentation!!!
Function Description

Definition at line 184 of file o_pin.c.

Here is the call graph for this function:

void o_place_start ( GSCHEM_TOPLEVEL w_current,
int  w_x,
int  w_y 
)
Todo:
Finish function documentation!!!
Function Description

Definition at line 34 of file o_place.c.

Here is the call graph for this function:

void o_place_end ( GSCHEM_TOPLEVEL w_current,
int  w_x,
int  w_y,
int  continue_placing,
GList **  ret_new_objects,
const char *  hook_name 
)
Todo:
Finish function documentation!!!
Function Description

Definition at line 48 of file o_place.c.

Here is the call graph for this function:

void o_place_motion ( GSCHEM_TOPLEVEL w_current,
int  w_x,
int  w_y 
)
Todo:
Finish function documentation!!!
Function Description

Definition at line 125 of file o_place.c.

Here is the call graph for this function:

void o_place_invalidate_rubber ( GSCHEM_TOPLEVEL w_current,
int  drawing 
)
Function Description
This function invalidates the bounding box where objects would be drawn by o_place_draw_rubber()

The function applies manhatten mode constraints to the coordinates before drawing if the CONTROL key is recording as being pressed in the w_current structure.

The "drawing" parameter is used to indicate if this drawing should immediately use the selected feedback mode and positioning constraints.

With drawing=TRUE, the selected conditions are used immediately, otherwise the conditions from the last drawing operation are used, saving the new state for next time.

This function should be called with drawing=TRUE when starting a rubberbanding operation and when otherwise refreshing the rubberbanded outline (e.g. after a screen redraw). For any undraw operation, should be called with drawing=FALSE, ensuring that the undraw XOR matches the mode and constraints of the corresponding "draw" operation.

If any mode / constraint changes are made between a undraw, redraw XOR pair, the latter (draw) operation must be called with drawing=TRUE. If no mode / constraint changes were made between the pair, it is not harmful to call the draw operation with "drawing=FALSE".

Parameters:
[in]w_currentGSCHEM_TOPLEVEL which we're drawing for.
[in]drawingSet to FALSE for undraw operations to ensure matching conditions to a previous draw operation.

Definition at line 168 of file o_place.c.

Here is the call graph for this function:

void o_place_draw_rubber ( GSCHEM_TOPLEVEL w_current,
int  drawing 
)
Function Description
This function draws either the OBJECTS in the place list or a rectangle around their bounding box, depending upon the currently selected w_current->actionfeedback_mode. This takes the value BOUNDINGBOX or OUTLINE.

The function applies manhatten mode constraints to the coordinates before drawing if the CONTROL key is recording as being pressed in the w_current structure.

The "drawing" parameter is used to indicate if this drawing should immediately use the selected feedback mode and positioning constraints.

With drawing=TRUE, the selected conditions are used immediately, otherwise the conditions from the last drawing operation are used, saving the new state for next time.

This function should be called with drawing=TRUE when starting a rubberbanding operation and when otherwise refreshing the rubberbanded outline (e.g. after a screen redraw). For any undraw operation, should be called with drawing=FALSE, ensuring that the undraw XOR matches the mode and constraints of the corresponding "draw" operation.

If any mode / constraint changes are made between a undraw, redraw XOR pair, the latter (draw) operation must be called with drawing=TRUE. If no mode / constraint changes were made between the pair, it is not harmful to call the draw operation with "drawing=FALSE".

Parameters:
[in]w_currentGSCHEM_TOPLEVEL which we're drawing for.
[in]drawingSet to FALSE for undraw operations to ensure matching conditions to a previous draw operation.

Definition at line 252 of file o_place.c.

Here is the call graph for this function:

void o_place_rotate ( GSCHEM_TOPLEVEL w_current)
Todo:
Finish function documentation!!!
Function Description

Definition at line 315 of file o_place.c.

Here is the call graph for this function:

void o_select_run_hooks ( GSCHEM_TOPLEVEL w_current,
OBJECT *  o_current,
int  flag 
)

The code in this file is sometimes not obvious, especially o_select_object (which implements the selection of objects either when doing a single or multi select)

Also, there are cases where it looks like there is redundant code, which could be removed/merged, but I purposely didn't do so to keep the code readable

the count == 0 stuff really only applies to when you are coming from a multi select case

Todo:
Finish function documentation!!!
Function Description

Definition at line 50 of file o_select.c.

Here is the call graph for this function:

void o_select_object ( GSCHEM_TOPLEVEL w_current,
OBJECT *  o_current,
int  type,
int  count 
)
Todo:
Finish function documentation!!!
Function Description
Note:
type can be either SINGLE meaning selection is a single mouse click or it can be MULTIPLE meaning selection is a selection box

Definition at line 74 of file o_select.c.

Here is the call graph for this function:

int o_select_box_start ( GSCHEM_TOPLEVEL w_current,
int  w_x,
int  w_y 
)
Todo:
Finish function documentation!!!
Function Description

Definition at line 207 of file o_select.c.

Here is the call graph for this function:

void o_select_box_end ( GSCHEM_TOPLEVEL w_current,
int  w_x,
int  w_y 
)
Todo:
Finish function documentation!!!
Function Description

Definition at line 230 of file o_select.c.

Here is the call graph for this function:

void o_select_box_motion ( GSCHEM_TOPLEVEL w_current,
int  w_x,
int  w_y 
)
Todo:
Finish function documentation!!!
Function Description

Definition at line 243 of file o_select.c.

Here is the call graph for this function:

void o_select_box_invalidate_rubber ( GSCHEM_TOPLEVEL w_current)
Todo:
Finish function documentation!!!
Function Description

Definition at line 259 of file o_select.c.

Here is the call graph for this function:

void o_select_box_draw_rubber ( GSCHEM_TOPLEVEL w_current)
Todo:
Finish function documentation!!!
Function Description

Definition at line 277 of file o_select.c.

Here is the call graph for this function:

void o_select_box_search ( GSCHEM_TOPLEVEL w_current)
Todo:
Finish function documentation!!!
Function Description

Definition at line 293 of file o_select.c.

Here is the call graph for this function:

void o_select_connected_nets ( GSCHEM_TOPLEVEL w_current,
OBJECT *  o_net 
)
Depending on the state of the w_current->net_selection_mode variable
and the net_selection_state of the current net this function will either select the single net, all directly connected nets or all nets connected with netname labels.
Parameters:
[in]w_currentGSCHEM_TOPLEVEL struct.
[in]o_netPointer to a single net object

Definition at line 343 of file o_select.c.

Here is the call graph for this function:

OBJECT* o_select_return_first_object ( GSCHEM_TOPLEVEL w_current)

Definition at line 430 of file o_select.c.

int o_select_selected ( GSCHEM_TOPLEVEL w_current)
Todo:
Finish function documentation!!!
Function Description
Returns:
TRUE if the selection list is not empty, otherwise false. also make sure item is valid

Definition at line 446 of file o_select.c.

void o_select_unselect_all ( GSCHEM_TOPLEVEL w_current)
Todo:
Finish function documentation!!!
Function Description

Definition at line 461 of file o_select.c.

Here is the call graph for this function:

void o_select_visible_unlocked ( GSCHEM_TOPLEVEL w_current)
Function Description
Clears any existing selection, then selects everything visible and unlocked on the current page, and any attached attributes whether visible or invisible..
Parameters:
w_currentThe current GSCHEM_TOPLEVEL structure.

Bug:
We can't call o_select_object() because it behaves differently depending on the state of w_current->SHIFTKEY and w_current->CONTROLKEY, which may well be set if this function is called via a keystroke (e.g. Ctrl-A).

Definition at line 488 of file o_select.c.

Here is the call graph for this function:

void o_select_move_to_place_list ( GSCHEM_TOPLEVEL w_current)
Todo:
Finish function documentation!!!
Function Description

Definition at line 533 of file o_select.c.

void o_slot_start ( GSCHEM_TOPLEVEL w_current,
OBJECT *  object 
)
Todo:
Finish function documentation!!!
Function Description

Definition at line 40 of file o_slot.c.

Here is the call graph for this function:

void o_slot_end ( GSCHEM_TOPLEVEL w_current,
OBJECT *  object,
const char *  string 
)
Todo:
Finish function documentation!!!
Function Description

Definition at line 65 of file o_slot.c.

Here is the call graph for this function:

int o_text_get_rendered_bounds ( void *  user_data,
OBJECT *  o_current,
int *  min_x,
int *  min_y,
int *  max_x,
int *  max_y 
)
Todo:
Finish function documentation!!!
Function Description

Definition at line 221 of file o_text.c.

Here is the call graph for this function:

void o_text_draw ( GSCHEM_TOPLEVEL w_current,
OBJECT *  o_current 
)

Definition at line 438 of file o_text.c.

Here is the call graph for this function:

void o_text_draw_place ( GSCHEM_TOPLEVEL w_current,
int  dx,
int  dy,
OBJECT *  o_current 
)
Todo:
Finish function documentation!!!
Function Description

Definition at line 529 of file o_text.c.

Here is the call graph for this function:

void o_text_prepare_place ( GSCHEM_TOPLEVEL w_current,
char *  text 
)
Todo:
Finish function documentation!!!
Function Description

Definition at line 566 of file o_text.c.

Here is the call graph for this function:

void o_text_edit ( GSCHEM_TOPLEVEL w_current,
OBJECT *  o_current 
)
Todo:
Finish function documentation!!!
Function Description

Definition at line 603 of file o_text.c.

Here is the call graph for this function:

void o_text_edit_end ( GSCHEM_TOPLEVEL w_current,
char *  string,
int  len,
int  text_size,
int  text_alignment 
)
Todo:
Finish function documentation!!!
Function Description

Definition at line 617 of file o_text.c.

Here is the call graph for this function:

void o_text_change ( GSCHEM_TOPLEVEL w_current,
OBJECT *  object,
char *  string,
int  visibility,
int  show 
)
Todo:
Finish function documentation!!!
Function Description
Note:
The object passed in should be the REAL object, NOT any copy in any selection list

Definition at line 670 of file o_text.c.

Here is the call graph for this function:

void o_undo_init ( void  )
Todo:
Finish function documentation!!!
Function Description

Definition at line 52 of file o_undo.c.

void o_undo_savestate ( GSCHEM_TOPLEVEL w_current,
int  flag 
)
Todo:
Finish function documentation!!!
Function Description

flag can be one of the following values:

*
UNDO_ALL
*
UNDO_VIEWPORT_ONLY

Definition at line 76 of file o_undo.c.

Here is the call graph for this function:

char* o_undo_find_prev_filename ( UNDO *  start)
Todo:
Finish function documentation!!!
Function Description

Definition at line 246 of file o_undo.c.

GList* o_undo_find_prev_object_head ( UNDO *  start)
Todo:
Finish function documentation!!!
Function Description

Definition at line 267 of file o_undo.c.

void o_undo_callback ( GSCHEM_TOPLEVEL w_current,
int  type 
)
Todo:
Finish function documentation!!!
Function Description

type can be one of the following values:

*
UNDO_ACTION
*
REDO_ACTION

Definition at line 293 of file o_undo.c.

Here is the call graph for this function:

void o_undo_cleanup ( void  )
Todo:
Finish function documentation!!!
Function Description

Definition at line 459 of file o_undo.c.

void o_undo_remove_last_undo ( GSCHEM_TOPLEVEL w_current)
Todo:
Finish function documentation!!!
Function Description

Definition at line 480 of file o_undo.c.

int parse_commandline ( int  argc,
char *  argv[] 
)
Function Description
Parse command line options, displaying usage message or version information as required.
Parameters:
argcNumber of command-line arguments.
argvArray of command-line arguments.
Returns:
index into argv of first non-option argument.

Definition at line 136 of file parsecmd.c.

Here is the call graph for this function:

GList* s_stretch_add ( GList *  list,
OBJECT *  object,
int  whichone 
)
Todo:
Finish function documentation!!!
Function Description

Definition at line 36 of file s_stretch.c.

GList* s_stretch_remove ( GList *  list,
OBJECT *  object 
)
Todo:
Finish function documentation!!!
Function Description

Definition at line 78 of file s_stretch.c.

Here is the call graph for this function:

void s_stretch_print_all ( GList *  list)
Todo:
Finish function documentation!!!
Function Description

Definition at line 96 of file s_stretch.c.

void s_stretch_destroy_all ( GList *  list)
Todo:
Finish function documentation!!!
Function Description

Definition at line 120 of file s_stretch.c.

gint option_menu_get_history ( GtkOptionMenu *  option_menu)
Todo:
STILL NEED to clean up line lengths in aa and tr

Definition at line 46 of file x_attribedit.c.

void attrib_edit_dialog_ok ( GtkWidget *  w,
GSCHEM_TOPLEVEL w_current 
)
Todo:
Finish function documentation!!!
Function Documentation

Definition at line 66 of file x_attribedit.c.

Here is the call graph for this function:

void attrib_edit_dialog ( GSCHEM_TOPLEVEL w_current,
OBJECT *  attr_obj,
int  flag 
)
Function Description
This function creates the single attribute edit dialog.

Definition at line 288 of file x_attribedit.c.

Here is the call graph for this function:

void autonumber_text_dialog ( GSCHEM_TOPLEVEL w_current)

If the function is called the first time the dialog is created. If the dialog is only in background it is moved to the foreground.

Parameters:
w_currentPointer to the top level struct

Definition at line 1373 of file x_autonumber.c.

Here is the call graph for this function:

void x_repaint_background_region ( GSCHEM_TOPLEVEL w_current,
int  x,
int  y,
int  width,
int  height 
)
Todo:
Finish function documentation!!!
Function Description

Definition at line 36 of file x_basic.c.

Here is the call graph for this function:

void x_hscrollbar_set_ranges ( GSCHEM_TOPLEVEL w_current)
Todo:
Finish function documentation!!!
Function Description

Definition at line 55 of file x_basic.c.

void x_hscrollbar_update ( GSCHEM_TOPLEVEL w_current)
Todo:
Finish function documentation!!!
Function Description

Definition at line 77 of file x_basic.c.

void x_vscrollbar_set_ranges ( GSCHEM_TOPLEVEL w_current)
Todo:
Finish function documentation!!!
Function Description

Definition at line 114 of file x_basic.c.

void x_vscrollbar_update ( GSCHEM_TOPLEVEL w_current)
Todo:
Finish function documentation!!!
Function Description

Definition at line 135 of file x_basic.c.

void x_scrollbars_update ( GSCHEM_TOPLEVEL w_current)
Todo:
Finish function documentation!!!
Function Description

Definition at line 173 of file x_basic.c.

Here is the call graph for this function:

void x_basic_warp_cursor ( GtkWidget *  widget,
gint  x,
gint  y 
)
Todo:
Finish function documentation!!!
Function Description

Definition at line 189 of file x_basic.c.

void x_clipboard_init ( GSCHEM_TOPLEVEL w_current)

Definition at line 88 of file x_clipboard.c.

Here is the call graph for this function:

void x_clipboard_finish ( GSCHEM_TOPLEVEL w_current)

Definition at line 103 of file x_clipboard.c.

Here is the call graph for this function:

void x_clipboard_query_usable ( GSCHEM_TOPLEVEL w_current,
void(*)(int, void *)  callback,
void *  userdata 
)

Definition at line 158 of file x_clipboard.c.

Here is the call graph for this function:

gboolean x_clipboard_set ( GSCHEM_TOPLEVEL w_current,
const GList *  object_list 
)

Definition at line 182 of file x_clipboard.c.

Here is the call graph for this function:

GList* x_clipboard_get ( GSCHEM_TOPLEVEL w_current)

Definition at line 219 of file x_clipboard.c.

void x_color_init ( void  )
Function Documentation

Initialises the color maps to defaults.

Definition at line 48 of file x_color.c.

void x_color_free ( void  )
Function Documentation
This function frees the colors from colormap along with black and white.

Definition at line 63 of file x_color.c.

void x_color_allocate ( void  )
Todo:
Finish function documentation!!!
Function Documentation

Definition at line 83 of file x_color.c.

GdkColor* x_get_color ( int  color)
Todo:
Finish function documentation!!!
Function Documentation

Definition at line 160 of file x_color.c.

GdkColor* x_get_darkcolor ( int  color)
Todo:
Finish function documentation!!!
Function Documentation
Todo:
this has to change... to the right code

Definition at line 177 of file x_color.c.

COLOR* x_color_lookup ( int  color)
Todo:
Finish function documentation!!!
Function Documentation

Definition at line 193 of file x_color.c.

COLOR* x_color_lookup_dark ( int  color)
Todo:
Finish function documentation!!!
Function Documentation
Todo:
this has to change... to the right code

Definition at line 210 of file x_color.c.

gchar* x_color_get_name ( int  index)
Todo:
Finish function documentation!!!
Function Documentation

Definition at line 227 of file x_color.c.

gboolean x_color_display_enabled ( int  index)

Definition at line 245 of file x_color.c.

int text_view_calculate_real_tab_width ( GtkTextView *  textview,
int  tab_size 
)
Todo:
Finish function documentation!!!
Function Description

Definition at line 3262 of file x_dialog.c.

void select_all_text_in_textview ( GtkTextView *  textview)
Function Description
The function selects all the text in a TextView widget.

Definition at line 3247 of file x_dialog.c.

void destroy_window ( GtkWidget *  widget,
GtkWidget **  window 
)
Todo:
Finish function documentation!!!
Function Description

Definition at line 79 of file x_dialog.c.

void text_input_dialog_apply ( GtkWidget *  w,
GSCHEM_TOPLEVEL w_current 
)
Function Description
This function applies the text from the text entry dialog.

Definition at line 95 of file x_dialog.c.

Here is the call graph for this function:

void text_input_dialog ( GSCHEM_TOPLEVEL w_current)
Function Description
This function creates or raises the modal text entry dialog

Bug:
FIXME: This doesn't work. Why?

Definition at line 165 of file x_dialog.c.

Here is the call graph for this function:

gint change_alignment ( GtkComboBox *  w,
GSCHEM_TOPLEVEL w_current 
)
Function Description
This function stores a change of the text alignment in the GSCHEM_TOPLEVEL struct.
Todo:
Remove that function. Only the OK-Button should set any properties in the GSCHEM_TOPLEVEL struct.

Definition at line 269 of file x_dialog.c.

void text_edit_dialog_ok ( GtkWidget *  w,
GSCHEM_TOPLEVEL w_current 
)
Function Description
This function applies the user settings to the selected text objects and closes the dialog

Definition at line 341 of file x_dialog.c.

Here is the call graph for this function:

void text_edit_dialog ( GSCHEM_TOPLEVEL w_current,
const char *  string,
int  text_size,
int  text_alignment 
)
Function Description
This Function creates the dialog to edit text properties.
Todo:

Check why there's no color in the calling parameters

If more than one text element is selected, add an unchanged option

Bug:
FIXME: Set tab's width in the textview widget.

Definition at line 415 of file x_dialog.c.

Here is the call graph for this function:

void line_type_dialog ( GSCHEM_TOPLEVEL w_current)
Function Description
This function creates and sets up a dialog for manipulating the line width and the line type setting of objects.

Definition at line 892 of file x_dialog.c.

Here is the call graph for this function:

void fill_type_dialog ( GSCHEM_TOPLEVEL w_current)
Function Description
This function creates the fill type dialog. It uses the selection to set it's initial values.

Definition at line 1386 of file x_dialog.c.

Here is the call graph for this function:

void arc_angle_dialog ( GSCHEM_TOPLEVEL w_current,
OBJECT *  arc_object 
)
Function Description
This function creates the arc angle dialog. Depending on the arc_object the entries are filled with the arc OBJECT properties or with some standard values.
Parameters:
[in]w_currentThe GSCHEM_TOPLEVEL object
[in]arc_objectan arc OBJECT if used to modify an arc or NULL to create a new arc.

Definition at line 1594 of file x_dialog.c.

Here is the call graph for this function:

void translate_dialog ( GSCHEM_TOPLEVEL w_current)
Function Description
Create the dialog to translate symbols.

Definition at line 1739 of file x_dialog.c.

Here is the call graph for this function:

void text_size_dialog ( GSCHEM_TOPLEVEL w_current)
Function Description
This function creates the text size dialog.

Definition at line 1838 of file x_dialog.c.

Here is the call graph for this function:

void snap_size_dialog ( GSCHEM_TOPLEVEL w_current)
Function Description
This function creates the snap size dialog.

Definition at line 1944 of file x_dialog.c.

Here is the call graph for this function:

void slot_edit_dialog ( GSCHEM_TOPLEVEL w_current,
const char *  string 
)
Function Description
This function creates the slot edit dialog.

Definition at line 2051 of file x_dialog.c.

Here is the call graph for this function:

void about_dialog ( GSCHEM_TOPLEVEL w_current)
Function Description
This function creates the about dialog.

Definition at line 2123 of file x_dialog.c.

void coord_display_update ( GSCHEM_TOPLEVEL w_current,
int  x,
int  y 
)
Function Description
This function takes the screen coordinates and prints the screen and the world coordinates in the coord dialog.

Definition at line 2186 of file x_dialog.c.

Here is the call graph for this function:

void coord_dialog ( GSCHEM_TOPLEVEL w_current,
int  x,
int  y 
)
Function Description
This function creates the coord dialog box.

Definition at line 2208 of file x_dialog.c.

Here is the call graph for this function:

gint color_set ( GtkWidget *  w,
gpointer  data 
)
char* index2functionstring ( int  index)
Todo:
Finish function documentation!!!
Function Description
Warning:
Caller must g_free returned character string.

Definition at line 2277 of file x_dialog.c.

void color_edit_dialog_apply ( GtkWidget *  w,
GSCHEM_TOPLEVEL w_current 
)
Function Description
This function applies a color change to the currently selected objects.

Definition at line 2483 of file x_dialog.c.

Here is the call graph for this function:

void color_edit_dialog ( GSCHEM_TOPLEVEL w_current)
Function Description
This function creates the color edit dialog

Definition at line 2531 of file x_dialog.c.

Here is the call graph for this function:

void x_dialog_hotkeys ( GSCHEM_TOPLEVEL w_current)
Function Description
This function creates the hotkey dialog and puts the list of hotkeys into it.

Definition at line 2613 of file x_dialog.c.

Here is the call graph for this function:

void x_dialog_raise_all ( GSCHEM_TOPLEVEL w_current)
Todo:
Finish function documentation!!!
Function Description

Definition at line 2695 of file x_dialog.c.

void generic_msg_dialog ( const char *  msg)
Todo:
Finish function documentation!!!
Function Description

Definition at line 2751 of file x_dialog.c.

int generic_confirm_dialog ( const char *  msg)
Todo:
Finish function documentation!!!
Function Description

Definition at line 2776 of file x_dialog.c.

char* generic_filesel_dialog ( const char *  msg,
const char *  templ,
gint  flags 
)
Todo:
Finish function documentation!!!
Function Description
Warning:
Caller must g_free returned character string.

Bug:
FIXME if (folder && path) { dup_string (path, folder); g_free (folder); }

Definition at line 2807 of file x_dialog.c.

void find_text_dialog ( GSCHEM_TOPLEVEL w_current)
Function Description
This function creates the text find dialog.

Definition at line 2957 of file x_dialog.c.

Here is the call graph for this function:

void hide_text_dialog ( GSCHEM_TOPLEVEL w_current)
Function Description
This function creates the hide text dialog.

Definition at line 3077 of file x_dialog.c.

Here is the call graph for this function:

void show_text_dialog ( GSCHEM_TOPLEVEL w_current)
Function Description
This function creates the show text dialog.

Definition at line 3178 of file x_dialog.c.

Here is the call graph for this function:

void major_changed_dialog ( GSCHEM_TOPLEVEL w_current)
Todo:
Finish function documentation!!!
Function Description

Definition at line 3297 of file x_dialog.c.

void x_dialog_close_changed_page ( GSCHEM_TOPLEVEL w_current,
PAGE *  page 
)
Function Description
This function asks the user to confirm its closing order for page page while it still has unsaved changes.

It displays a message dialog inviting the user to cancel the closing, or to discard the changes or to save the changes to a file.

Parameters:
[in]w_currentThe toplevel environment.
[in]pageThe page to close.

Definition at line 3989 of file x_dialog.c.

Here is the call graph for this function:

gboolean x_dialog_close_window ( GSCHEM_TOPLEVEL w_current)
Function Description
This function asks the user to confirm its closing order for the given window.

The user is given the possibility to save the pages that currently have unsaved changes, if any.

It returns TRUE if the user really accepts the close of the window. Otherwise the user has somehow cancelled and the window must not be closed.

Parameters:
[in]w_currentThe toplevel environment.
Returns:
TRUE if the window can be closed, FALSE otherwise.

Definition at line 4059 of file x_dialog.c.

Here is the call graph for this function:

int x_dialog_validate_attribute ( GtkWindow *  parent,
char *  attribute 
)
Function Description
This function validates the attribute and if it isn't valid pops up an error message box.
Parameters:
parentThe parent window which spawned this dialog box.
attributeThe attribute to be validated.
Returns:
TRUE if the attribute is valid, FALSE otherwise.

Definition at line 4151 of file x_dialog.c.

void x_dialog_edit_pin_type ( GSCHEM_TOPLEVEL w_current,
const GList *  obj_list 
)
Function Description
This function presents an app modal dialog to edit the type of a pin

Definition at line 4177 of file x_dialog.c.

Here is the call graph for this function:

gint x_event_expose ( GtkWidget *  widget,
GdkEventExpose *  event,
GSCHEM_TOPLEVEL w_current 
)
Todo:
Finish function documentation!!!
Function Description

Definition at line 50 of file x_event.c.

Here is the call graph for this function:

gint x_event_button_pressed ( GtkWidget *  widget,
GdkEventButton *  event,
GSCHEM_TOPLEVEL w_current 
)
Todo:
Finish function documentation!!!
Function Description

Todo:
change state name?

Definition at line 93 of file x_event.c.

Here is the call graph for this function:

gint x_event_button_released ( GtkWidget *  widget,
GdkEventButton *  event,
GSCHEM_TOPLEVEL w_current 
)
Todo:
Finish function documentation!!!
Function Description

Definition at line 525 of file x_event.c.

Here is the call graph for this function:

gint x_event_motion ( GtkWidget *  widget,
GdkEventMotion *  event,
GSCHEM_TOPLEVEL w_current 
)
Todo:
Finish function documentation!!!
Function Description

Definition at line 727 of file x_event.c.

Here is the call graph for this function:

gboolean x_event_configure ( GtkWidget *  widget,
GdkEventConfigure *  event,
gpointer  user_data 
)
Function Description
This is the callback function connected to the configure event of the drawing area of the main window.

It updates the size of the backingstore for the associated toplevel structure (creates a new pixmap) and re-pans each of its pages to keep their contents centered in the drawing area.

When the window is maximised, the zoom of every page is changed to best fit the previously displayed area of the page in the new area. Otherwise the current zoom level is left unchanged.

Parameters:
[in]widgetThe drawing area which received the signal.
[in]eventThe event structure of signal configure-event.
[in]user_dataThe toplevel environment as user data.
Returns:
FALSE to propagate the event further.

Definition at line 933 of file x_event.c.

Here is the call graph for this function:

void x_manual_resize ( GSCHEM_TOPLEVEL w_current)
Todo:
Finish function documentation!!!
Function Description
Note:
this is used during an open command to setup the correct sizes

Definition at line 1022 of file x_event.c.

void x_event_hschanged ( GtkAdjustment *  adj,
GSCHEM_TOPLEVEL w_current 
)
Todo:
Finish function documentation!!!
Function Description

Definition at line 1058 of file x_event.c.

Here is the call graph for this function:

void x_event_vschanged ( GtkAdjustment *  adj,
GSCHEM_TOPLEVEL w_current 
)
Todo:
Finish function documentation!!!
Function Description

Definition at line 1090 of file x_event.c.

Here is the call graph for this function:

gint x_event_enter ( GtkWidget *  widget,
GdkEventCrossing *  event,
GSCHEM_TOPLEVEL w_current 
)
Todo:
Finish function documentation!!!
Function Description

Definition at line 1129 of file x_event.c.

gboolean x_event_key ( GtkWidget *  widget,
GdkEventKey *  event,
GSCHEM_TOPLEVEL w_current 
)
Todo:
Finish function documentation!!!
Function Description

Definition at line 1163 of file x_event.c.

Here is the call graph for this function:

gint x_event_scroll ( GtkWidget *  widget,
GdkEventScroll *  event,
GSCHEM_TOPLEVEL w_current 
)
Todo:
Finish function documentation!!!
Function Description

Todo:
Change "HOTKEY" TO new "MOUSE" specifier?

Definition at line 1270 of file x_event.c.

Here is the call graph for this function:

gboolean x_event_get_pointer_position ( GSCHEM_TOPLEVEL w_current,
gboolean  snapped,
gint *  wx,
gint *  wy 
)
Function Description
This function gets the pointer position of the drawing area of the current workspace GSCHEM_TOPLEVEL. The flag snapped specifies whether the pointer position should be snapped to the current grid.
Parameters:
[in]w_currentThe GSCHEM_TOPLEVEL object.
[in]snappedAn option flag to specify the wished coords
[out]wxsnapped/unsnapped world x coordinate
[out]wysnapped/unsnapped world y coordinate
Returns:
Returns TRUE if the pointer position is inside the drawing area.

Definition at line 1369 of file x_event.c.

Here is the call graph for this function:

void x_compselect_open ( GSCHEM_TOPLEVEL w_current)
Function Description
This function opens the component chooser dialog for toplevel if it is not already. In this last case, it only raises the dialog.
Parameters:
[in]w_currentThe GSCHEM_TOPLEVEL environment.

Definition at line 207 of file x_compselect.c.

Here is the call graph for this function:

void x_compselect_close ( GSCHEM_TOPLEVEL w_current)
Function Description
This function closes the component chooser dialog associated with toplevel.
Parameters:
[in]w_currentThe GSCHEM_TOPLEVEL environment.

Definition at line 254 of file x_compselect.c.

void x_compselect_deselect ( GSCHEM_TOPLEVEL w_current)

Definition at line 265 of file x_compselect.c.

Here is the call graph for this function:

void x_fileselect_open ( GSCHEM_TOPLEVEL w_current)
Function Description
This function opens a file chooser dialog and wait for the user to select at least one file to load as w_current's new pages.

The function updates the user interface.

At the end of the function, the w_current->toplevel's current page is set to the page of the last loaded page.

Parameters:
[in]w_currentThe GSCHEM_TOPLEVEL environment.

Definition at line 166 of file x_fileselect.c.

Here is the call graph for this function:

void x_fileselect_save ( GSCHEM_TOPLEVEL w_current)
Function Description
This function opens a file chooser dialog and wait for the user to select a file where the toplevel's current page will be saved.

If the user cancels the operation (with the cancel button), the page is not saved.

The function updates the user interface.

Parameters:
[in]w_currentThe GSCHEM_TOPLEVEL environment.

Definition at line 226 of file x_fileselect.c.

Here is the call graph for this function:

int x_fileselect_load_backup ( void *  user_data,
GString *  message 
)
Function Description
This function opens a message dialog and wait for the user to choose if load the backup or the original file.
Todo:
Make this a registered callback function with user data, as we'd rather be passed a GSCHEM_TOPLEVEL than a TOPLEVEL.
Parameters:
[in]user_dataThe TOPLEVEL object.
[in]messageMessage to display to user.
Returns:
TRUE if the user wants to load the backup file, FALSE otherwise.

Definition at line 320 of file x_fileselect.c.

void x_grid_draw_region ( GSCHEM_TOPLEVEL w_current,
int  x,
int  y,
int  width,
int  height 
)
Function Description
Draws the desired grid pattern over a given region of the screen.
Parameters:
[in]w_currentThe GSCHEM_TOPLEVEL.
[in]xThe left screen coordinate for the drawing.
[in]yThe top screen coordinate for the drawing.
[in]widthThe width of the region to draw.
[in]heightThe height of the region to draw.

Definition at line 301 of file x_grid.c.

Here is the call graph for this function:

int x_grid_query_drawn_spacing ( GSCHEM_TOPLEVEL w_current)
Function Description
Returns the world spacing of the rendered grid, taking into account where the grid drawing code may drop elelments which are too densly packed for a given zoom level.
Parameters:
[in]w_currentThe GSCHEM_TOPLEVEL.
Returns:
The grid spacing in world units of the grid as rendered, or -1 if there are no items drawn.

Definition at line 335 of file x_grid.c.

Here is the call graph for this function:

void x_draw_tiles ( GSCHEM_TOPLEVEL w_current)
Todo:
Finish function documentation!!!
Function Description

Definition at line 351 of file x_grid.c.

Here is the call graph for this function:

void x_image_lowlevel ( GSCHEM_TOPLEVEL w_current,
const char *  filename,
int  desired_width,
int  desired_height,
char *  filetype 
)
This function writes the image file, with the options set in the
dialog by the user.
Parameters:
w_current[in] the GSCHEM_TOPLEVEL structure.
filename[in] the image filename.
desired_width[in] the image width chosen by the user.
desired_height[in] the image height chosen by the user.
filetype[in] image filetype.
Returns:
nothing

Definition at line 317 of file x_image.c.

Here is the call graph for this function:

void x_image_setup ( GSCHEM_TOPLEVEL w_current)
Display the image file selection dialog, allowing the user to
set several options, like image size and image type. When the user hits "ok", then it writes the image file.
Parameters:
w_current[in] the GSCHEM_TOPLEVEL structure.
Returns:
nothing

Definition at line 438 of file x_image.c.

Here is the call graph for this function:

GdkPixbuf* x_image_get_pixbuf ( GSCHEM_TOPLEVEL w_current)
Todo:
Finish function documentation!!!
Function Description

Definition at line 625 of file x_image.c.

Here is the call graph for this function:

void x_log_open ( )
Function Description
If the log dialog instance doesn't exist, create it, and read the current log file contents (if they exist) and insert them into the log dialog.

If the log dialog instance does exist, present it to the user.

Definition at line 72 of file x_log.c.

Here is the call graph for this function:

void x_log_close ( )
Function Description
If the log window exists, destroy it.

Definition at line 120 of file x_log.c.

void x_log_message ( const gchar *  log_domain,
GLogLevelFlags  log_level,
const gchar *  message 
)
Function Description
Add a message to the Log window. Calls log_message() to do the actual logging.
Parameters:
[in]log_domain
[in]log_levelThe severity of the message
[in]messageThe message to be displayed

Definition at line 140 of file x_log.c.

Here is the call graph for this function:

gboolean x_show_uri ( GSCHEM_TOPLEVEL w_current,
const gchar *  uri,
GError **  error 
)
Function Description
Launches the default application associated with uri on the host platform.

Depending on the way gEDA was configured, this may occur by one of the following three methods:

  1. Calling gtk_show_uri() to use the GIO library (default on Linux)
  2. Calling the ShellExecute() Windows API call (default on Windows)
  3. Running an appropriate external tool.
Parameters:
w_currentCurrent GSCHEM_TOPLEVEL structure.
uriURI to launch viewer for.
errorLocation to return error information.
Returns:
TRUE on success, FALSE on failure.

Definition at line 114 of file x_misc.c.

GtkWidget* get_main_menu ( GSCHEM_TOPLEVEL w_current)
Todo:
Finish function documentation!!!
Function Description

Bug:
This function may leak memory if there is a non-local exit in Guile code. At some point, unwind handlers need to be added to clean up heap-allocated strings.

Definition at line 91 of file x_menus.c.

Here is the call graph for this function:

GtkWidget* get_main_popup ( GSCHEM_TOPLEVEL w_current)

Definition at line 266 of file x_menus.c.

Here is the call graph for this function:

gint do_popup ( GSCHEM_TOPLEVEL w_current,
GdkEventButton *  event 
)
Todo:
Finish function documentation!!!
Function Description
Note:
need to look at this... here and the setup

Definition at line 307 of file x_menus.c.

void x_menus_sensitivity ( GSCHEM_TOPLEVEL w_current,
const char *  buf,
int  flag 
)
Todo:
Finish function documentation!!!
Function Description

Definition at line 330 of file x_menus.c.

void x_menus_popup_sensitivity ( GSCHEM_TOPLEVEL w_current,
const char *  buf,
int  flag 
)
Todo:
Finish function documentation!!!
Function Description
This function sets the sensitivity of the items in the right button popup.
Note:
1.9.2005 -- SDB.

Definition at line 362 of file x_menus.c.

void x_menu_attach_recent_files_submenu ( GSCHEM_TOPLEVEL w_current)

Called from x_window_setup().

Definition at line 416 of file x_menus.c.

Here is the call graph for this function:

void x_multiattrib_open ( GSCHEM_TOPLEVEL w_current)
Function Description
Opens the multiple attribute editor dialog for objects in this toplevel.
Parameters:
[in]w_currentThe GSCHEM_TOPLEVEL object.

Definition at line 211 of file x_multiattrib.c.

Here is the call graph for this function:

void x_multiattrib_close ( GSCHEM_TOPLEVEL w_current)
Function Description

Closes the multiattrib dialog associated with w_current.

Parameters:
[in]w_currentThe GSCHEM_TOPLEVEL object.

Definition at line 248 of file x_multiattrib.c.

Here is the call graph for this function:

void x_multiattrib_update ( GSCHEM_TOPLEVEL w_current)
Function Description

If the GSCHEM_TOPLEVEL has an open multiattrib dialog, switch to watching the current page's SELECTION object for changes.

Parameters:
[in]w_currentThe GSCHEM_TOPLEVEL object.

Definition at line 267 of file x_multiattrib.c.

Here is the call graph for this function:

void x_pagesel_open ( GSCHEM_TOPLEVEL w_current)
Function Description
Opens the page manager dialog for toplevel if it is not already. In this last case, it raises the dialog.
Parameters:
[in]w_currentThe GSCHEM_TOPLEVEL object to open page manager for.

Definition at line 50 of file x_pagesel.c.

Here is the call graph for this function:

void x_pagesel_close ( GSCHEM_TOPLEVEL w_current)
Function Description
Closes the page manager dialog associated with toplevel.
Parameters:
[in]w_currentThe GSCHEM_TOPLEVEL object to close page manager for.

Definition at line 77 of file x_pagesel.c.

void x_pagesel_update ( GSCHEM_TOPLEVEL w_current)
Function Description
Updates the list and status of toplevel\'s pages if the page manager dialog is opened.
Parameters:
[in]w_currentThe GSCHEM_TOPLEVEL object to update.

Definition at line 94 of file x_pagesel.c.

Here is the call graph for this function:

void x_print_setup ( GSCHEM_TOPLEVEL w_current,
char *  filename 
)
Todo:
Finish function documentation
Function Description

Definition at line 645 of file x_print.c.

Here is the call graph for this function:

void x_rc_parse_gschem ( GSCHEM_TOPLEVEL w_current,
const gchar *  rcfile 
)
Function Description
Loads configuration files in a similar manner to g_rc_parse(). Instead of exiting on error, display error dialogs with explanatory messages.
Parameters:
w_currentThe current GSCHEM_TOPLEVEL structure.
rcfileSpecific config file path, or NULL.

Definition at line 85 of file x_rc.c.

Here is the call graph for this function:

void setup_script_selector ( GSCHEM_TOPLEVEL w_current)
Todo:
CLEAN up line length in this file
Function Description
This function opens a file selection dialog. The selected script is executed.

Definition at line 42 of file x_script.c.

void x_stroke_init ( void  )
void x_stroke_free ( void  )
void x_stroke_record ( GSCHEM_TOPLEVEL w_current,
gint  x,
gint  y 
)
gint x_stroke_translate_and_execute ( GSCHEM_TOPLEVEL w_current)
void x_window_setup ( GSCHEM_TOPLEVEL w_current)
Todo:
Finish function documentation!!!
Function Description

Definition at line 38 of file x_window.c.

Here is the call graph for this function:

void x_window_setup_gc ( GSCHEM_TOPLEVEL w_current)
Todo:
Finish function documentation!!!
Function Description

Definition at line 77 of file x_window.c.

void x_window_free_gc ( GSCHEM_TOPLEVEL w_current)
Todo:
Finish function documentation!!!
Function Description

Definition at line 92 of file x_window.c.

void x_window_create_drawing ( GtkWidget *  drawbox,
GSCHEM_TOPLEVEL w_current 
)
Todo:
Finish function documentation!!!
Function Description

Definition at line 102 of file x_window.c.

void x_window_setup_draw_events ( GSCHEM_TOPLEVEL w_current)
Todo:
Finish function documentation!!!
Function Description

Definition at line 130 of file x_window.c.

Here is the call graph for this function:

void x_window_create_main ( GSCHEM_TOPLEVEL w_current)
Todo:
Finish function documentation!!!
Function Description

Definition at line 247 of file x_window.c.

Here is the call graph for this function:

void x_window_close ( GSCHEM_TOPLEVEL w_current)
Todo:
Finish function documentation!!!
Function Description

Definition at line 543 of file x_window.c.

Here is the call graph for this function:

void x_window_close_all ( GSCHEM_TOPLEVEL w_current)
Todo:
Finish function documentation!!!
Function Description

Definition at line 662 of file x_window.c.

Here is the call graph for this function:

PAGE* x_window_open_page ( GSCHEM_TOPLEVEL w_current,
const gchar *  filename 
)
Function Description
This function opens the file whose name is filename in a new PAGE of toplevel.

If there is no page for filename in toplevel's list of pages, it creates a new PAGE, loads the file in it and returns a pointer on the new page. Otherwise it returns a pointer on the existing page.

If the filename passed is NULL, this function creates an empty, untitled page. The name of the untitled page is build from configuration data ('untitled-name') and a counter for uniqueness.

The opened page becomes the current page of toplevel.

Parameters:
[in]w_currentThe toplevel environment.
[in]filenameThe name of the file to open or NULL for a blank page.
Returns:
A pointer on the new page.
Bug:
This code should check to make sure any untitled filename does not conflict with a file on disk.

Definition at line 700 of file x_window.c.

Here is the call graph for this function:

void x_window_set_current_page ( GSCHEM_TOPLEVEL w_current,
PAGE *  page 
)
Function Description
This function displays the specified page page in the window attached to toplevel.

It changes the toplevel's current page to page, draws it and updates the user interface.

page has to be in the list of PAGEs attached to toplevel.

Parameters:
[in]w_currentThe toplevel environment.
[in]pageThe page to become current page.

Definition at line 800 of file x_window.c.

Here is the call graph for this function:

gint x_window_save_page ( GSCHEM_TOPLEVEL w_current,
PAGE *  page,
const gchar *  filename 
)
Function Description
This function saves the page page to a file named filename.

It returns the value returned by function f_save() trying to save page page to file filename (1 on success, 0 on failure).

page may not be the current page of toplevel. The current page of toplevel is not affected by this function.

Parameters:
[in]w_currentThe toplevel environment.
[in]pageThe page to save.
[in]filenameThe name of the file in which to save page.
Returns:
1 on success, 0 otherwise.

Definition at line 842 of file x_window.c.

Here is the call graph for this function:

void x_window_close_page ( GSCHEM_TOPLEVEL w_current,
PAGE *  page 
)
Function Description
This function closes the page page of toplevel toplevel.

If necessary, the current page of toplevel is changed to the next valid page or to a new untitled page.

Parameters:
[in]w_currentThe toplevel environment.
[in]pageThe page to close.

Definition at line 921 of file x_window.c.

Here is the call graph for this function:

void x_window_set_default_icon ( void  )
Function Description
Sets the default window icon by name, to be found in the current icon theme. The name used is #defined above as GSCHEM_THEME_ICON_NAME.

Definition at line 987 of file x_window.c.

 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Defines