gschem

g_keys.c File Reference

#include <config.h>
#include <missing.h>
#include <stdio.h>
#include <sys/stat.h>
#include <ctype.h>
#include "gschem.h"
#include <gdk/gdkkeysyms.h>
#include "g_keys.x"
Include dependency graph for g_keys.c:

Go to the source code of this file.

Data Structures

struct  GschemKey

Defines

#define DEFINE_G_KEYS(name)
#define G_SCM_IS_KEY(x)   SCM_SMOB_PREDICATE (g_key_smob_tag, (x))

Functions

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)
static gboolean g_key_is_valid (guint keyval, GdkModifierType modifiers)
 Test if a key is valid.
static SCM g_make_key (guint keyval, GdkModifierType modifiers)
 Create a new bindable key object.
 SCM_DEFINE (g_keyp,"%key?", 1, 0, 0,(SCM key_s),"Test if value is a gschem key.")
 Test if a Scheme value is a bindable key object.
 SCM_DEFINE (g_string_to_key,"%string->key", 1, 0, 0,(SCM str_s),"Create a gschem key by parsing a string.")
 Create a bindable key object from a string.
 SCM_DEFINE (g_key_to_string,"%key->string", 1, 0, 0,(SCM key_s),"Create a string from a gschem key.")
 Convert a bindable key object to a string.
 SCM_DEFINE (g_key_to_display_string,"%key->display-string", 1, 0, 0,(SCM key_s),"Create a display string from a gschem key.")
 Convert a bindable key object to a displayable string.
static int g_key_print (SCM smob, SCM port, scm_print_state *pstate)
 Print a representation of a key smob.
static SCM g_key_equalp (SCM a, SCM b)
static size_t g_key_free (SCM key)
 SCM_SYMBOL (reset_keys_sym,"reset-keys")
 SCM_SYMBOL (press_key_sym,"press-key")
 SCM_SYMBOL (prefix_sym,"prefix")
static gboolean clear_keyaccel_string (gpointer data)
 Clear the current key accelerator string.
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.
static void init_module_gschem_core_keymap ()
 Create the (gschem core keymap) Scheme module.
void g_init_keys ()
 Initialise the key combination procedures.

Variables

static scm_t_bits g_key_smob_tag

Define Documentation

#define DEFINE_G_KEYS (   name)
Value:
SCM g_keys_ ## name(SCM rest)               \
{                           \
   GSCHEM_TOPLEVEL *w_current = g_current_window ();    \
   i_callback_ ## name(w_current, 0, NULL);                   \
   return SCM_BOOL_T;               \
}

Definition at line 45 of file g_keys.c.

#define G_SCM_IS_KEY (   x)    SCM_SMOB_PREDICATE (g_key_smob_tag, (x))

Definition at line 241 of file g_keys.c.


Function Documentation

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.

static gboolean g_key_is_valid ( guint  keyval,
GdkModifierType  modifiers 
) [static]
Function Description
Test if the key combination defined by keyval and modifiers is valid for key binding. This is a less restrictive version of gtk_accelerator_valid() from GTK 2.
Parameters:
keyvalThe key that was pressed.
modifiersThe active modifiers when the key was pressed.
Returns:
TRUE if the key combination is valid for keybinding.

Definition at line 263 of file g_keys.c.

static SCM g_make_key ( guint  keyval,
GdkModifierType  modifiers 
) [static]
Function Description
Create and return a new gschem key object from a keyval and a set of modifiers. If the key combination is invalid, return SCM_BOOL_F.
Parameters:
keyvalthe pressed key.
modifiersthe active modifiers for the key.
Returns:
a new bindable key object, or SCM_BOOL_F.

Definition at line 305 of file g_keys.c.

Here is the call graph for this function:

SCM_DEFINE ( g_keyp  ,
"%key?"  ,
,
,
,
(SCM key_s)  ,
"Test if value is a gschem key."   
)
Function Description
Returns SCM_BOOL_T if key_s is a gschem key object. Otherwise, returns SCM_BOOL_F.
Note:
Scheme API: Implements the key? procedure in the (gschem core keymap) module.
Parameters:
key_svalue to test
Returns:
SCM_BOOL_T iff value is a key, otherwise SCM_BOOL_F.

Definition at line 328 of file g_keys.c.

SCM_DEFINE ( g_string_to_key  ,
"%string->key"  ,
,
,
,
(SCM str_s)  ,
"Create a gschem key by parsing a string."   
)
Function Description
Parse the string key description str_s to create and return a new gschem key object. If str_s contains syntax errors, or does not represent a valid bindable key combination, returns SCM_BOOL_F.
Note:
Scheme API: Implements the string-key procedure in the (gschem core keymap) module.
Parameters:
str_sstring to parse.
Returns:
a new gschem key object, or SCM_BOOL_F.

Definition at line 350 of file g_keys.c.

Here is the call graph for this function:

SCM_DEFINE ( g_key_to_string  ,
"%key->string"  ,
,
,
,
(SCM key_s)  ,
"Create a string from a gschem key."   
)
Function Description
Returns a string representation of the gschem key object key_s, in a format suitable for parsing with string->key.
Note:
Scheme API: Implements the key->string procedure in the (gschem core keymap) module.
Parameters:
key_sBindable key object to convert to string.
Returns:
a string representation of the key combination.

Definition at line 374 of file g_keys.c.

SCM_DEFINE ( g_key_to_display_string  ,
"%key->display-string"  ,
,
,
,
(SCM key_s)  ,
"Create a display string from a gschem key."   
)
Function Description
Returns a string representation of the gschem key object key_s, in a format suitable for display to the user (e.g. as accelerator text in a menu).
Note:
Scheme API: Implements the key->display-string procedure in the (gschem core keymap) module.
Parameters:
key_sBindable key object to convert to string.
Returns:
a string representation of the key combination.

Definition at line 398 of file g_keys.c.

static int g_key_print ( SCM  smob,
SCM  port,
scm_print_state *  pstate 
) [static]
Function Description
Outputs a string representing the smob to a Scheme output port. The format used is "#<gschem-key \"Ctrl+A">".

Used internally to Guile.

Definition at line 419 of file g_keys.c.

static SCM g_key_equalp ( SCM  a,
SCM  b 
) [static]

Definition at line 437 of file g_keys.c.

static size_t g_key_free ( SCM  key) [static]

Definition at line 453 of file g_keys.c.

SCM_SYMBOL ( reset_keys_sym  ,
"reset-keys"   
)
SCM_SYMBOL ( press_key_sym  ,
"press-key"   
)
SCM_SYMBOL ( prefix_sym  ,
"prefix"   
)
static gboolean clear_keyaccel_string ( gpointer  data) [static]
Function Description
This function clears the current keyboard accelerator string in the status bar of the relevant toplevel. Called some time after a keystroke is pressed. If the current key sequence was a prefix, let it persist.
Parameters:
[in]dataa pointer to the GSCHEM_TOPLEVEL to update.
Returns:
FALSE (this is a one-shot timer).

Definition at line 475 of file g_keys.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.

static void init_module_gschem_core_keymap ( ) [static]
Function Description
Defines procedures in the (gschem core keymap) module. The module can be accessed using (use-modules (gschem core keymap)).

Definition at line 681 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:


Variable Documentation

scm_t_bits g_key_smob_tag [static]

Contains the smob tag for key smobs

Definition at line 240 of file g_keys.c.

 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Defines