pcb 4.1.1
An interactive printed circuit board layout editor.
|
Go to the source code of this file.
Functions | |
gboolean | dup_string (gchar **dst, const gchar *src) |
void | free_glist_and_data (GList **list_head) |
gboolean | ghid_is_modifier_key_sym (gint ksym) |
ModifierKeysState | ghid_modifier_keys_state (GdkModifierType *state) |
ButtonState | ghid_button_state (GdkModifierType *state) |
void | ghid_draw_area_update (GHidPort *port, GdkRectangle *rect) |
gchar * | ghid_get_color_name (GdkColor *color) |
void | ghid_map_color_string (char *color_string, GdkColor *color) |
gchar * | ghid_entry_get_text (GtkWidget *entry) |
void | ghid_check_button_connected (GtkWidget *box, GtkWidget **button, gboolean active, gboolean pack_start, gboolean expand, gboolean fill, gint pad, void(*cb_func)(GtkToggleButton *, gpointer), gpointer data, gchar *string) |
void | ghid_button_connected (GtkWidget *box, GtkWidget **button, gboolean pack_start, gboolean expand, gboolean fill, gint pad, void(*cb_func)(gpointer), gpointer data, gchar *string) |
void | ghid_coord_entry (GtkWidget *box, GtkWidget **coord_entry, Coord value, Coord low, Coord high, enum ce_step_size step_size, gint width, void(*cb_func)(GHidCoordEntry *, gpointer), gpointer data, gboolean right_align, gchar *string) |
void | ghid_spin_button (GtkWidget *box, GtkWidget **spin_button, gfloat value, gfloat low, gfloat high, gfloat step0, gfloat step1, gint digits, gint width, void(*cb_func)(GtkSpinButton *, gpointer), gpointer data, gboolean right_align, gchar *string) |
void | ghid_table_coord_entry (GtkWidget *table, gint row, gint column, GtkWidget **coord_entry, Coord value, Coord low, Coord high, enum ce_step_size step_size, gint width, void(*cb_func)(GHidCoordEntry *, gpointer), gpointer data, gboolean right_align, gchar *string) |
void | ghid_table_spin_button (GtkWidget *table, gint row, gint column, GtkWidget **spin_button, gfloat value, gfloat low, gfloat high, gfloat step0, gfloat step1, gint digits, gint width, void(*cb_func)(GtkSpinButton *, gpointer), gpointer data, gboolean right_align, gchar *string) |
void | ghid_range_control (GtkWidget *box, GtkWidget **scale_res, gboolean horizontal, GtkPositionType pos, gboolean set_draw_value, gint digits, gboolean pack_start, gboolean expand, gboolean fill, guint pad, gfloat value, gfloat low, gfloat high, gfloat step0, gfloat step1, void(*cb_func)(), gpointer data) |
GtkWidget * | ghid_scrolled_vbox (GtkWidget *box, GtkWidget **scr, GtkPolicyType h_policy, GtkPolicyType v_policy) |
GtkWidget * | ghid_framed_vbox (GtkWidget *box, gchar *label, gint frame_border_width, gboolean frame_expand, gint vbox_pad, gint vbox_border_width) |
GtkWidget * | ghid_framed_vbox_end (GtkWidget *box, gchar *label, gint frame_border_width, gboolean frame_expand, gint vbox_pad, gint vbox_border_width) |
GtkWidget * | ghid_category_vbox (GtkWidget *box, const gchar *category_header, gint header_pad, gint box_pad, gboolean pack_start, gboolean bottom_pad) |
GtkTreeSelection * | ghid_scrolled_selection (GtkTreeView *treeview, GtkWidget *box, GtkSelectionMode s_mode, GtkPolicyType h_policy, GtkPolicyType v_policy, void(*func_cb)(GtkTreeSelection *, gpointer), gpointer data) |
GtkWidget * | ghid_notebook_page (GtkWidget *tabs, const char *name, gint pad, gint border) |
GtkWidget * | ghid_framed_notebook_page (GtkWidget *tabs, char *name, gint border, gint frame_border, gint vbox_pad, gint vbox_border) |
void | ghid_dialog_report (gchar *title, gchar *message) |
void | ghid_label_set_markup (GtkWidget *label, const gchar *text) |
static void | text_view_append (GtkWidget *view, gchar *s) |
void | ghid_text_view_append (GtkWidget *view, gchar *string) |
void | ghid_text_view_append_strings (GtkWidget *view, gchar **string, gint n_strings) |
GtkWidget * | ghid_scrolled_text_view (GtkWidget *box, GtkWidget **scr, GtkPolicyType h_policy, GtkPolicyType v_policy) |
gboolean dup_string | ( | gchar ** | dst, |
const gchar * | src | ||
) |
Definition at line 43 of file gui-utils.c.
Referenced by config_color_defaults_cb(), config_color_load_cb(), config_color_save_cb(), config_file_open(), config_library_apply(), ghid_config_init(), ghid_dialog_file_select_multiple(), ghid_dialog_file_select_open(), ghid_dialog_file_select_save(), ghid_window_set_name_label(), node_selection_changed_cb(), and set_config_attribute().
void free_glist_and_data | ( | GList ** | list_head | ) |
Definition at line 58 of file gui-utils.c.
void ghid_button_connected | ( | GtkWidget * | box, |
GtkWidget ** | button, | ||
gboolean | pack_start, | ||
gboolean | expand, | ||
gboolean | fill, | ||
gint | pad, | ||
void(*)(gpointer) | cb_func, | ||
gpointer | data, | ||
gchar * | string | ||
) |
Definition at line 233 of file gui-utils.c.
Referenced by config_colors_tab_create().
ButtonState ghid_button_state | ( | GdkModifierType * | state | ) |
Definition at line 121 of file gui-utils.c.
References BUTTON1_PRESSED, BUTTON2_PRESSED, BUTTON3_PRESSED, GHidPort::drawing_area, ghid_port, and NO_BUTTON_PRESSED.
GtkWidget* ghid_category_vbox | ( | GtkWidget * | box, |
const gchar * | category_header, | ||
gint | header_pad, | ||
gint | box_pad, | ||
gboolean | pack_start, | ||
gboolean | bottom_pad | ||
) |
Definition at line 555 of file gui-utils.c.
References FALSE, s, and TRUE.
Referenced by config_colors_tab_create(), config_general_tab_create(), config_increments_tab_create(), config_layers_tab_create(), config_library_tab_create(), config_sizes_tab_create(), ghid_attribute_dialog(), and ghid_route_style_selector_edit_dialog().
void ghid_check_button_connected | ( | GtkWidget * | box, |
GtkWidget ** | button, | ||
gboolean | active, | ||
gboolean | pack_start, | ||
gboolean | expand, | ||
gboolean | fill, | ||
gint | pad, | ||
void(*)(GtkToggleButton *, gpointer) | cb_func, | ||
gpointer | data, | ||
gchar * | string | ||
) |
Definition at line 205 of file gui-utils.c.
Referenced by config_general_tab_create(), config_increments_tab_create(), config_layers_tab_create(), config_sizes_tab_create(), ghid_attribute_dialog(), and ghid_netlist_window_create().
void ghid_coord_entry | ( | GtkWidget * | box, |
GtkWidget ** | coord_entry, | ||
Coord | value, | ||
Coord | low, | ||
Coord | high, | ||
enum ce_step_size | step_size, | ||
gint | width, | ||
void(*)(GHidCoordEntry *, gpointer) | cb_func, | ||
gpointer | data, | ||
gboolean | right_align, | ||
gchar * | string | ||
) |
Definition at line 255 of file gui-utils.c.
References FALSE, GHID_COORD_ENTRY, ghid_coord_entry_new(), SettingType::grid_unit, Settings, and TRUE.
void ghid_dialog_report | ( | gchar * | title, |
gchar * | message | ||
) |
Definition at line 647 of file gui-utils.c.
References FALSE, ghid_port, ghid_scrolled_vbox(), s, and GHidPort::top_window.
Referenced by ghid_report_dialog().
void ghid_draw_area_update | ( | GHidPort * | port, |
GdkRectangle * | rect | ||
) |
Definition at line 151 of file gui-utils.c.
References GHidPort::drawing_area, and FALSE.
Referenced by ghid_invalidate_all(), ghid_notify_crosshair_change(), and ghid_notify_mark_change().
gchar* ghid_entry_get_text | ( | GtkWidget * | entry | ) |
Definition at line 191 of file gui-utils.c.
References s.
Referenced by command_entry_activate_cb(), config_layers_apply(), config_library_apply(), and layer_name_entry_cb().
GtkWidget* ghid_framed_notebook_page | ( | GtkWidget * | tabs, |
char * | name, | ||
gint | border, | ||
gint | frame_border, | ||
gint | vbox_pad, | ||
gint | vbox_border | ||
) |
Definition at line 635 of file gui-utils.c.
References ghid_framed_vbox(), ghid_notebook_page(), and TRUE.
GtkWidget* ghid_framed_vbox | ( | GtkWidget * | box, |
gchar * | label, | ||
gint | frame_border_width, | ||
gboolean | frame_expand, | ||
gint | vbox_pad, | ||
gint | vbox_border_width | ||
) |
Definition at line 521 of file gui-utils.c.
References FALSE.
Referenced by ghid_dialog_confirm_all(), and ghid_framed_notebook_page().
GtkWidget* ghid_framed_vbox_end | ( | GtkWidget * | box, |
gchar * | label, | ||
gint | frame_border_width, | ||
gboolean | frame_expand, | ||
gint | vbox_pad, | ||
gint | vbox_border_width | ||
) |
Definition at line 538 of file gui-utils.c.
References FALSE.
gchar* ghid_get_color_name | ( | GdkColor * | color | ) |
Definition at line 159 of file gui-utils.c.
Referenced by config_color_set_cb().
gboolean ghid_is_modifier_key_sym | ( | gint | ksym | ) |
Definition at line 73 of file gui-utils.c.
Referenced by ghid_port_key_press_cb(), ghid_port_key_release_cb(), and loop_key_press_cb().
void ghid_label_set_markup | ( | GtkWidget * | label, |
const gchar * | text | ||
) |
Definition at line 699 of file gui-utils.c.
Referenced by ghid_cursor_position_label_set_text(), ghid_cursor_position_relative_label_set_text(), and ghid_status_line_set_text().
void ghid_map_color_string | ( | char * | color_string, |
GdkColor * | color | ||
) |
Definition at line 174 of file gui-utils.c.
References colormap, ghid_port, and GHidPort::top_window.
Referenced by config_color_button_create(), config_color_set_cb(), draw_crosshair(), and ghid_set_special_colors().
ModifierKeysState ghid_modifier_keys_state | ( | GdkModifierType * | state | ) |
Definition at line 83 of file gui-utils.c.
References CONTROL_MOD1_PRESSED, CONTROL_PRESSED, GHidPort::drawing_area, ghid_port, MOD1_PRESSED, NONE_PRESSED, SHIFT_CONTROL_MOD1_PRESSED, SHIFT_CONTROL_PRESSED, SHIFT_MOD1_PRESSED, and SHIFT_PRESSED.
Referenced by ghid_port_button_press_cb(), ghid_port_button_release_cb(), ghid_port_key_press_cb(), and ghid_port_window_mouse_scroll_cb().
GtkWidget* ghid_notebook_page | ( | GtkWidget * | tabs, |
const char * | name, | ||
gint | pad, | ||
gint | border | ||
) |
Definition at line 620 of file gui-utils.c.
References FALSE.
Referenced by config_layers_tab_create(), and ghid_framed_notebook_page().
void ghid_range_control | ( | GtkWidget * | box, |
GtkWidget ** | scale_res, | ||
gboolean | horizontal, | ||
GtkPositionType | pos, | ||
gboolean | set_draw_value, | ||
gint | digits, | ||
gboolean | pack_start, | ||
gboolean | expand, | ||
gboolean | fill, | ||
guint | pad, | ||
gfloat | value, | ||
gfloat | low, | ||
gfloat | high, | ||
gfloat | step0, | ||
gfloat | step1, | ||
void(*)() | cb_func, | ||
gpointer | data | ||
) |
Definition at line 458 of file gui-utils.c.
References scale.
GtkTreeSelection* ghid_scrolled_selection | ( | GtkTreeView * | treeview, |
GtkWidget * | box, | ||
GtkSelectionMode | s_mode, | ||
GtkPolicyType | h_policy, | ||
GtkPolicyType | v_policy, | ||
void(*)(GtkTreeSelection *, gpointer) | func_cb, | ||
gpointer | data | ||
) |
Definition at line 595 of file gui-utils.c.
References TRUE.
Referenced by ghid_netlist_window_create().
GtkWidget* ghid_scrolled_text_view | ( | GtkWidget * | box, |
GtkWidget ** | scr, | ||
GtkPolicyType | h_policy, | ||
GtkPolicyType | v_policy | ||
) |
Definition at line 801 of file gui-utils.c.
References buffer, FALSE, and TRUE.
Referenced by config_layers_tab_create(), ghid_command_window_show(), ghid_keyref_window_show(), and ghid_log_window_create().
GtkWidget* ghid_scrolled_vbox | ( | GtkWidget * | box, |
GtkWidget ** | scr, | ||
GtkPolicyType | h_policy, | ||
GtkPolicyType | v_policy | ||
) |
Definition at line 499 of file gui-utils.c.
Referenced by config_colors_tab_create(), ghid_build_pcb_top_window(), and ghid_dialog_report().
void ghid_spin_button | ( | GtkWidget * | box, |
GtkWidget ** | spin_button, | ||
gfloat | value, | ||
gfloat | low, | ||
gfloat | high, | ||
gfloat | step0, | ||
gfloat | step1, | ||
gint | digits, | ||
gint | width, | ||
void(*)(GtkSpinButton *, gpointer) | cb_func, | ||
gpointer | data, | ||
gboolean | right_align, | ||
gchar * | string | ||
) |
Definition at line 300 of file gui-utils.c.
Referenced by config_general_tab_create(), and ghid_attribute_dialog().
void ghid_table_coord_entry | ( | GtkWidget * | table, |
gint | row, | ||
gint | column, | ||
GtkWidget ** | coord_entry, | ||
Coord | value, | ||
Coord | low, | ||
Coord | high, | ||
enum ce_step_size | step_size, | ||
gint | width, | ||
void(*)(GHidCoordEntry *, gpointer) | cb_func, | ||
gpointer | data, | ||
gboolean | right_align, | ||
gchar * | string | ||
) |
Definition at line 349 of file gui-utils.c.
References GHID_COORD_ENTRY, ghid_coord_entry_new(), SettingType::grid_unit, and Settings.
Referenced by config_sizes_tab_create().
void ghid_table_spin_button | ( | GtkWidget * | table, |
gint | row, | ||
gint | column, | ||
GtkWidget ** | spin_button, | ||
gfloat | value, | ||
gfloat | low, | ||
gfloat | high, | ||
gfloat | step0, | ||
gfloat | step1, | ||
gint | digits, | ||
gint | width, | ||
void(*)(GtkSpinButton *, gpointer) | cb_func, | ||
gpointer | data, | ||
gboolean | right_align, | ||
gchar * | string | ||
) |
Definition at line 401 of file gui-utils.c.
References TRUE.
Referenced by config_sizes_tab_create().
void ghid_text_view_append | ( | GtkWidget * | view, |
gchar * | string | ||
) |
Definition at line 742 of file gui-utils.c.
References s, and text_view_append().
Referenced by config_layers_tab_create(), ghid_command_window_show(), ghid_keyref_window_show(), and ghid_log_append_string().
void ghid_text_view_append_strings | ( | GtkWidget * | view, |
gchar ** | string, | ||
gint | n_strings | ||
) |
Definition at line 768 of file gui-utils.c.
References _, s, and text_view_append().
static void text_view_append | ( | GtkWidget * | view, |
gchar * | s | ||
) | [static] |
Definition at line 707 of file gui-utils.c.
References buffer, FALSE, and TRUE.
Referenced by ghid_text_view_append(), and ghid_text_view_append_strings().