pcb 4.1.1
An interactive printed circuit board layout editor.
|
#include "gui.h"
#include "gtkhid.h"
#include "hid/common/hid_resource.h"
#include <gdk/gdkkeysyms.h>
#include "action.h"
#include "crosshair.h"
#include "draw.h"
#include "error.h"
#include "misc.h"
#include "set.h"
#include "find.h"
#include "search.h"
#include "rats.h"
Go to the source code of this file.
Defines | |
#define | TOOLTIP_UPDATE_DELAY 200 |
Functions | |
void | ghid_port_ranges_changed (void) |
void | ghid_port_ranges_scale (void) |
void | ghid_get_coords (const char *msg, Coord *x, Coord *y) |
gboolean | ghid_note_event_location (GdkEventButton *ev) |
static gboolean | ghid_idle_cb (gpointer data) |
gboolean | ghid_port_key_release_cb (GtkWidget *drawing_area, GdkEventKey *kev, gpointer data) |
gboolean | ghid_port_key_press_cb (GtkWidget *drawing_area, GdkEventKey *kev, gpointer data) |
gboolean | ghid_port_button_press_cb (GtkWidget *drawing_area, GdkEventButton *ev, gpointer data) |
gboolean | ghid_port_button_release_cb (GtkWidget *drawing_area, GdkEventButton *ev, gpointer data) |
gboolean | ghid_port_drawing_area_configure_event_cb (GtkWidget *widget, GdkEventConfigure *ev, GHidPort *out) |
static char * | describe_location (Coord X, Coord Y) |
static gboolean | check_object_tooltips (GHidPort *out) |
static void | cancel_tooltip_update (GHidPort *out) |
static void | queue_tooltip_update (GHidPort *out) |
gint | ghid_port_window_motion_cb (GtkWidget *widget, GdkEventMotion *ev, GHidPort *out) |
gint | ghid_port_window_enter_cb (GtkWidget *widget, GdkEventCrossing *ev, GHidPort *out) |
gint | ghid_port_window_leave_cb (GtkWidget *widget, GdkEventCrossing *ev, GHidPort *out) |
gint | ghid_port_window_mouse_scroll_cb (GtkWidget *widget, GdkEventScroll *ev, GHidPort *out) |
#define TOOLTIP_UPDATE_DELAY 200 |
Definition at line 53 of file gui-output-events.c.
Referenced by queue_tooltip_update().
static void cancel_tooltip_update | ( | GHidPort * | out | ) | [static] |
Definition at line 481 of file gui-output-events.c.
References GHidPort::tooltip_update_timeout_id.
Referenced by queue_tooltip_update().
static gboolean check_object_tooltips | ( | GHidPort * | out | ) | [static] |
Definition at line 462 of file gui-output-events.c.
References GHidPort::crosshair_x, GHidPort::crosshair_y, describe_location(), GHidPort::drawing_area, FALSE, and GHidPort::tooltip_update_timeout_id.
Referenced by queue_tooltip_update().
Definition at line 393 of file gui-output-events.c.
References _, ConnectionName(), PCBType::Data, END_LOOP, ENTRY_LOOP, GetLayerNumber(), max_copper_layer, MENU_LOOP, NAMEONPCB_NAME, PCBType::NetlistLib, PCB, ptr1, ptr2, ptr3, SearchObjectByLocation(), SILK_TYPE, and UNKNOWN_NAME.
Referenced by check_object_tooltips().
Definition at line 111 of file gui-output-events.c.
References ghid_get_user_xy(), ghid_port, gport, GHidPort::has_entered, GHidPort::pcb_x, and GHidPort::pcb_y.
Referenced by REGISTER_FLAGS().
static gboolean ghid_idle_cb | ( | gpointer | data | ) | [static] |
Definition at line 152 of file gui-output-events.c.
References ARROW_MODE, FALSE, ghid_mode_buttons_update(), ghid_mode_cursor(), ghid_update_toggle_flags(), ghidgui, SettingType::Mode, NO_MODE, SetMode(), Settings, and GhidGui::settings_mode.
Referenced by ghid_port_button_press_cb(), ghid_port_button_release_cb(), and ghid_port_key_release_cb().
gboolean ghid_note_event_location | ( | GdkEventButton * | ev | ) |
Definition at line 123 of file gui-output-events.c.
References AdjustAttachedObjects(), GHidPort::drawing_area, ghid_event_to_pcb_coords(), ghid_port, ghid_set_cursor_position_labels(), gport, MoveCrosshairAbsolute(), notify_crosshair_change(), GHidPort::pcb_x, and GHidPort::pcb_y.
Referenced by ghid_port_button_press_cb(), ghid_port_button_release_cb(), ghid_port_key_press_cb(), ghid_port_key_release_cb(), ghid_port_window_motion_cb(), and loop_button_press_cb().
gboolean ghid_port_button_press_cb | ( | GtkWidget * | drawing_area, |
GdkEventButton * | ev, | ||
gpointer | data | ||
) |
Definition at line 301 of file gui-output-events.c.
References do_mouse_action(), ghid_idle_cb(), ghid_invalidate_all(), ghid_modifier_keys_state(), ghid_note_event_location(), ghid_set_status_line_label(), ghid_window_set_name_label(), gport, PCBType::Name, GHidPort::panning, PCB, and TRUE.
Referenced by ghid_interface_input_signals_connect().
gboolean ghid_port_button_release_cb | ( | GtkWidget * | drawing_area, |
GdkEventButton * | ev, | ||
gpointer | data | ||
) |
Definition at line 326 of file gui-output-events.c.
References AdjustAttachedObjects(), do_mouse_action(), ghid_idle_cb(), ghid_invalidate_all(), ghid_modifier_keys_state(), ghid_note_event_location(), ghid_set_status_line_label(), ghid_window_set_name_label(), M_Release, PCBType::Name, PCB, and TRUE.
Referenced by ghid_interface_input_signals_connect().
gboolean ghid_port_drawing_area_configure_event_cb | ( | GtkWidget * | widget, |
GdkEventConfigure * | ev, | ||
GHidPort * | out | ||
) |
Definition at line 349 of file gui-output-events.c.
References SettingType::BackgroundColor, GHidPort::bg_color, GHidPort::colormap, GHidPort::drawable, ghid_drawing_area_configure_hook(), ghid_invalidate_all(), ghid_port_ranges_scale(), gport, GHidPort::height, SettingType::OffLimitColor, GHidPort::offlimits_color, PCBChanged(), GHidPort::pixmap, Settings, GHidPort::top_window, TRUE, and GHidPort::width.
Referenced by ghid_build_pcb_top_window().
gboolean ghid_port_key_press_cb | ( | GtkWidget * | drawing_area, |
GdkEventKey * | kev, | ||
gpointer | data | ||
) |
Definition at line 194 of file gui-output-events.c.
References CONTROL_PRESSED, FALSE, ghid_hotkey_cb(), ghid_is_modifier_key_sym(), GHID_KEY_ALT, GHID_KEY_CONTROL, GHID_KEY_DOWN, GHID_KEY_LEFT, GHID_KEY_RIGHT, GHID_KEY_SHIFT, GHID_KEY_TAB, GHID_KEY_UP, ghid_modifier_keys_state(), ghid_note_event_location(), MOD1_PRESSED, NONE_PRESSED, SHIFT_CONTROL_PRESSED, SHIFT_MOD1_PRESSED, SHIFT_PRESSED, and TRUE.
Referenced by ghid_interface_input_signals_connect().
gboolean ghid_port_key_release_cb | ( | GtkWidget * | drawing_area, |
GdkEventKey * | kev, | ||
gpointer | data | ||
) |
Definition at line 168 of file gui-output-events.c.
References AdjustAttachedObjects(), FALSE, ghid_idle_cb(), ghid_invalidate_all(), ghid_is_modifier_key_sym(), and ghid_note_event_location().
Referenced by ghid_interface_input_signals_connect().
void ghid_port_ranges_changed | ( | void | ) |
Definition at line 56 of file gui-output-events.c.
References ghid_invalidate_all(), ghidgui, gport, GhidGui::h_range, GhidGui::v_range, GHidPort::view, view_data::x0, and view_data::y0.
Referenced by h_adjustment_changed_cb(), pan_common(), and v_adjustment_changed_cb().
void ghid_port_ranges_scale | ( | void | ) |
Definition at line 72 of file gui-output-events.c.
References view_data::coord_per_px, ghidgui, gport, GhidGui::h_range, GHidPort::height, view_data::height, PCBType::MaxHeight, PCBType::MaxWidth, MIN, PCB, GhidGui::v_range, GHidPort::view, GHidPort::width, and view_data::width.
Referenced by ghid_port_drawing_area_configure_event_cb(), ghid_zoom_view_abs(), and PCBChanged().
gint ghid_port_window_enter_cb | ( | GtkWidget * | widget, |
GdkEventCrossing * | ev, | ||
GHidPort * | out | ||
) |
Definition at line 537 of file gui-output-events.c.
References GhidGui::command_entry_status_line_active, GHidPort::drawing_area, FALSE, ghid_screen_update(), ghidgui, GHidPort::has_entered, GhidGui::in_popup, and TRUE.
Referenced by ghid_build_pcb_top_window().
gint ghid_port_window_leave_cb | ( | GtkWidget * | widget, |
GdkEventCrossing * | ev, | ||
GHidPort * | out | ||
) |
Definition at line 570 of file gui-output-events.c.
References FALSE, ghid_screen_update(), and GHidPort::has_entered.
Referenced by ghid_build_pcb_top_window().
gint ghid_port_window_motion_cb | ( | GtkWidget * | widget, |
GdkEventMotion * | ev, | ||
GHidPort * | out | ||
) |
Definition at line 510 of file gui-output-events.c.
References view_data::coord_per_px, FALSE, ghid_note_event_location(), ghid_pan_view_rel(), gport, GHidPort::panning, queue_tooltip_update(), and GHidPort::view.
Referenced by ghid_build_pcb_top_window().
gint ghid_port_window_mouse_scroll_cb | ( | GtkWidget * | widget, |
GdkEventScroll * | ev, | ||
GHidPort * | out | ||
) |
Definition at line 598 of file gui-output-events.c.
References do_mouse_action(), ghid_modifier_keys_state(), and TRUE.
Referenced by ghid_interface_input_signals_connect().
static void queue_tooltip_update | ( | GHidPort * | out | ) | [static] |
Definition at line 495 of file gui-output-events.c.
References cancel_tooltip_update(), check_object_tooltips(), GHidPort::drawing_area, TOOLTIP_UPDATE_DELAY, and GHidPort::tooltip_update_timeout_id.
Referenced by ghid_port_window_motion_cb().