pcb 4.1.1
An interactive printed circuit board layout editor.

gui-misc.c File Reference

#include "global.h"
#include "crosshair.h"
#include "data.h"
#include "misc.h"
#include "action.h"
#include "set.h"
#include "pcb-printf.h"
#include "gui.h"
#include <gdk/gdkkeysyms.h>
Include dependency graph for gui-misc.c:

Go to the source code of this file.

Defines

#define CUSTOM_CURSOR_CLOCKWISE   (GDK_LAST_CURSOR + 10)
#define CUSTOM_CURSOR_DRAG   (GDK_LAST_CURSOR + 11)
#define CUSTOM_CURSOR_LOCK   (GDK_LAST_CURSOR + 12)
#define ICON_X_HOT   8
#define ICON_Y_HOT   8

Functions

void ghid_status_line_set_text (const gchar *text)
void ghid_cursor_position_label_set_text (gchar *text)
void ghid_cursor_position_relative_label_set_text (gchar *text)
static GdkCursorType gport_set_cursor (GdkCursorType shape)
void ghid_point_cursor (void)
void ghid_hand_cursor (void)
void ghid_watch_cursor (void)
void ghid_mode_cursor (int Mode)
void ghid_corner_cursor (void)
void ghid_restore_cursor (void)
static gboolean loop_key_press_cb (GtkWidget *drawing_area, GdkEventKey *kev, GMainLoop **loop)
static gboolean loop_button_press_cb (GtkWidget *drawing_area, GdkEventButton *ev, GMainLoop **loop)
static gboolean run_get_location_loop (const gchar *message)
void ghid_get_user_xy (const char *msg)
void ghid_create_abort_dialog (char *msg)
gboolean ghid_check_abort (void)
void ghid_end_abort (void)
void ghid_get_pointer (int *x, int *y)
void ghid_set_status_line_label (void)
void ghid_set_cursor_position_labels (void)

Variables

GdkPixmap * XC_clock_source
GdkPixmap * XC_clock_mask
GdkPixmap * XC_hand_source
GdkPixmap * XC_hand_mask
GdkPixmap * XC_lock_source
GdkPixmap * XC_lock_mask
static GdkCursorType oldCursor
static gboolean got_location

Define Documentation

#define CUSTOM_CURSOR_CLOCKWISE   (GDK_LAST_CURSOR + 10)

Definition at line 44 of file gui-misc.c.

Referenced by ghid_mode_cursor(), and gport_set_cursor().

#define CUSTOM_CURSOR_DRAG   (GDK_LAST_CURSOR + 11)

Definition at line 45 of file gui-misc.c.

Referenced by ghid_mode_cursor(), and gport_set_cursor().

#define CUSTOM_CURSOR_LOCK   (GDK_LAST_CURSOR + 12)

Definition at line 46 of file gui-misc.c.

Referenced by ghid_mode_cursor(), and gport_set_cursor().

#define ICON_X_HOT   8

Definition at line 48 of file gui-misc.c.

Referenced by gport_set_cursor().

#define ICON_Y_HOT   8

Definition at line 49 of file gui-misc.c.

Referenced by gport_set_cursor().


Function Documentation

gboolean ghid_check_abort ( void  )

Definition at line 376 of file gui-misc.c.

References FALSE.

void ghid_corner_cursor ( void  )
void ghid_create_abort_dialog ( char *  msg)

Definition at line 371 of file gui-misc.c.

void ghid_cursor_position_label_set_text ( gchar *  text)

Definition at line 68 of file gui-misc.c.

References GhidGui::cursor_position_absolute_label, ghid_label_set_markup(), and ghidgui.

Referenced by ghid_set_cursor_position_labels().

Here is the call graph for this function:

void ghid_cursor_position_relative_label_set_text ( gchar *  text)

Definition at line 74 of file gui-misc.c.

References GhidGui::cursor_position_relative_label, ghid_label_set_markup(), and ghidgui.

Referenced by ghid_set_cursor_position_labels().

Here is the call graph for this function:

void ghid_end_abort ( void  )

Definition at line 382 of file gui-misc.c.

void ghid_get_pointer ( int *  x,
int *  y 
)

Definition at line 387 of file gui-misc.c.

References GHidPort::drawing_area, and gport.

void ghid_get_user_xy ( const char *  msg)

Definition at line 363 of file gui-misc.c.

References run_get_location_loop().

Referenced by ghid_get_coords().

Here is the call graph for this function:

void ghid_hand_cursor ( void  )

Definition at line 131 of file gui-misc.c.

References gport_set_cursor(), and oldCursor.

Referenced by run_get_location_loop().

Here is the call graph for this function:

void ghid_point_cursor ( void  )

Definition at line 125 of file gui-misc.c.

References gport_set_cursor(), and oldCursor.

Referenced by PointCursor().

Here is the call graph for this function:

void ghid_restore_cursor ( void  )

Definition at line 233 of file gui-misc.c.

References gport_set_cursor(), and oldCursor.

Referenced by run_get_location_loop().

Here is the call graph for this function:

void ghid_status_line_set_text ( const gchar *  text)
void ghid_watch_cursor ( void  )

Definition at line 137 of file gui-misc.c.

References gport_set_cursor(), and oldCursor.

Referenced by Busy().

Here is the call graph for this function:

static gboolean loop_button_press_cb ( GtkWidget *  drawing_area,
GdkEventButton *  ev,
GMainLoop **  loop 
) [static]

Definition at line 275 of file gui-misc.c.

References ghid_note_event_location(), and TRUE.

Referenced by run_get_location_loop().

Here is the call graph for this function:

static gboolean loop_key_press_cb ( GtkWidget *  drawing_area,
GdkEventKey *  kev,
GMainLoop **  loop 
) [static]

Definition at line 247 of file gui-misc.c.

References FALSE, ghid_is_modifier_key_sym(), got_location, and TRUE.

Referenced by run_get_location_loop().

Here is the call graph for this function:


Variable Documentation

gboolean got_location [static]

Definition at line 241 of file gui-misc.c.

Referenced by loop_key_press_cb(), and run_get_location_loop().

GdkCursorType oldCursor [static]
GdkPixmap * XC_clock_mask

Definition at line 52 of file gui-misc.c.

Referenced by ghid_init_icons(), and gport_set_cursor().

GdkPixmap* XC_clock_source

Definition at line 52 of file gui-misc.c.

Referenced by ghid_init_icons(), and gport_set_cursor().

GdkPixmap * XC_hand_mask

Definition at line 52 of file gui-misc.c.

Referenced by ghid_init_icons(), and gport_set_cursor().

GdkPixmap * XC_hand_source

Definition at line 52 of file gui-misc.c.

Referenced by ghid_init_icons(), and gport_set_cursor().

GdkPixmap * XC_lock_mask

Definition at line 52 of file gui-misc.c.

Referenced by ghid_init_icons(), and gport_set_cursor().

GdkPixmap * XC_lock_source

Definition at line 52 of file gui-misc.c.

Referenced by ghid_init_icons(), and gport_set_cursor().