gerbv
callbacks.h File Reference

Go to the source code of this file.

Functions

void callbacks_new_project_activate (GtkMenuItem *menuitem, gpointer user_data)
 
void open_project (char *project_filename)
 
void callbacks_open_activate (GtkMenuItem *menuitem, gpointer user_data)
 
void open_files (GSList *filenames)
 
gboolean callbacks_quit_activate (GtkMenuItem *menuitem, gpointer user_data)
 
void callbacks_toggle_layer_visibility_activate (GtkMenuItem *menuitem, gpointer user_data)
 
void callbacks_analyze_active_gerbers_activate (GtkMenuItem *menuitem, gpointer user_data)
 
void callbacks_analyze_active_drill_activate (GtkMenuItem *menuitem, gpointer user_data)
 
void callbacks_about_activate (GtkMenuItem *menuitem, gpointer user_data)
 
void callbacks_bugs_activate (GtkMenuItem *menuitem, gpointer user_data)
 
gboolean callbacks_drawingarea_button_release_event (GtkWidget *widget, GdkEventButton *event)
 
void callbacks_update_statusbar (void)
 
void callbacks_align_files_from_sel_clicked (GtkMenuItem *menu_item, gpointer user_data)
 

Detailed Description

Header info for the GUI callback functions.

Definition in file callbacks.h.

Function Documentation

◆ callbacks_about_activate()

void callbacks_about_activate ( GtkMenuItem *  menuitem,
gpointer  user_data 
)

The help -> about menu item was selected.


Show the about dialog.

Definition at line 1881 of file callbacks.c.

◆ callbacks_align_files_from_sel_clicked()

void callbacks_align_files_from_sel_clicked ( GtkMenuItem *  menu_item,
gpointer  user_data 
)

The edit -> align layers menu item was selected.

Align first to second or second to first layers by selected elements

Definition at line 3687 of file callbacks.c.

◆ callbacks_analyze_active_drill_activate()

void callbacks_analyze_active_drill_activate ( GtkMenuItem *  menuitem,
gpointer  user_data 
)

The analyze -> analyze drill file menu item was selected.

Complie statistics on all open drill layers and then display them.

Definition at line 1514 of file callbacks.c.

References generate_drill_analysis().

◆ callbacks_analyze_active_gerbers_activate()

void callbacks_analyze_active_gerbers_activate ( GtkMenuItem *  menuitem,
gpointer  user_data 
)

The analyze -> analyze Gerbers menu item was selected.

Compile statistics on all open Gerber layers and then display them.

Definition at line 1145 of file callbacks.c.

References generate_gerber_analysis().

◆ callbacks_bugs_activate()

void callbacks_bugs_activate ( GtkMenuItem *  menuitem,
gpointer  user_data 
)

The help -> bugs menu item was selected.


Show the known bugs window

Definition at line 1977 of file callbacks.c.

◆ callbacks_drawingarea_button_release_event()

gboolean callbacks_drawingarea_button_release_event ( GtkWidget *  widget,
GdkEventButton *  event 
)
Todo:
This became double in the transition. Should it really?

Definition at line 3763 of file callbacks.c.

◆ callbacks_new_project_activate()

void callbacks_new_project_activate ( GtkMenuItem *  menuitem,
gpointer  user_data 
)

The file -> new menu item was selected.

Create new project.

Definition at line 151 of file callbacks.c.

References interface_get_alert_dialog_response(), gerbv_project_t::last_loaded, and mainProject.

◆ callbacks_open_activate()

void callbacks_open_activate ( GtkMenuItem *  menuitem,
gpointer  user_data 
)

The file -> open action was selected.

Open a layer (or layers) or a project file.

Definition at line 351 of file callbacks.c.

◆ callbacks_quit_activate()

gboolean callbacks_quit_activate ( GtkMenuItem *  menuitem,
gpointer  user_data 
)

The file -> quit menu item was selected or the user requested the main window to be closed by other means.

Check that all changes have been saved, and then quit.

Definition at line 1814 of file callbacks.c.

References gerbv_project_t::file, interface_get_alert_dialog_response(), gerbv_project_t::last_loaded, gerbv_fileinfo_t::layer_dirty, and mainProject.

◆ callbacks_toggle_layer_visibility_activate()

void callbacks_toggle_layer_visibility_activate ( GtkMenuItem *  menuitem,
gpointer  user_data 
)

View/"Toggle visibility layer X" or Current layer/"Toggle visibility" menu item was activated.

Set the isVisible flag on file X and update the treeview and rendering.

Definition at line 1057 of file callbacks.c.

◆ callbacks_update_statusbar()

void callbacks_update_statusbar ( void  )

Displays additional information in the statusbar.

The Statusbar is divided into three sections:
statusbar.coordstr for coords
statusbar.diststr for displaying measured distances or the designator (right click on a graphically marked and also actively selected part)
statusbar.msg for e.g. showing progress of actions

Definition at line 3901 of file callbacks.c.

◆ open_files()

void open_files ( GSList *  filenames)

File -> open action requested or file drop event happened.

Open a layer (or layers) or one Gerbv project from the files. This function will show a question if the layer to be opened is already open.

Definition at line 218 of file callbacks.c.

References gerbv_render_zoom_to_fit_display(), mainProject, open_project(), and project_is_gerbv_project().

◆ open_project()

void open_project ( char *  project_filename)

The file -> open menu item was selected.

Open a project file.

Definition at line 184 of file callbacks.c.

References interface_get_alert_dialog_response(), gerbv_project_t::last_loaded, mainProject, and gerbv_project_t::path.

Referenced by open_files().