callbacks.h File Reference


Detailed Description

Header info for the GUI callback functions.

Definition in file callbacks.h.

Go to the source code of this file.

Functions

void callbacks_new_activate (GtkMenuItem *menuitem, gpointer user_data)
void callbacks_open_project_activate (GtkMenuItem *menuitem, gpointer user_data)
void callbacks_open_layer_activate (GtkMenuItem *menuitem, gpointer user_data)
void callbacks_quit_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_update_statusbar (void)


Function Documentation

void callbacks_about_activate ( GtkMenuItem *  menuitem,
gpointer  user_data 
)

The help -> about menu item was selected.

Show the about dialog.

Definition at line 1201 of file callbacks.c.

References screen.

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 870 of file callbacks.c.

References gerbv_drill_stats_t::comment, gerbv_drill_stats_t::detect, drill_list::drill_count, gerbv_drill_stats_t::drill_list, drill_list::drill_num, drill_list::drill_size, drill_list::drill_unit, gerbv_drill_stats_t::error_list, error_list::error_text, gerbv_project_t::file, gerbv_drill_stats_t::G00, gerbv_drill_stats_t::G01, gerbv_drill_stats_t::G02, gerbv_drill_stats_t::G03, gerbv_drill_stats_t::G04, gerbv_drill_stats_t::G05, gerbv_drill_stats_t::G90, gerbv_drill_stats_t::G91, gerbv_drill_stats_t::G93, gerbv_drill_stats_t::G_unknown, generate_drill_analysis(), GERBV_LAYERTYPE_DRILL, GERBV_MESSAGE_ERROR, GERBV_MESSAGE_FATAL, GERBV_MESSAGE_NOTE, GERBV_MESSAGE_WARNING, gerbv_fileinfo_t::image, gerbv_fileinfo_t::isVisible, error_list::layer, gerbv_drill_stats_t::layer_count, gerbv_image_t::layertype, gerbv_drill_stats_t::M00, gerbv_drill_stats_t::M01, gerbv_drill_stats_t::M18, gerbv_drill_stats_t::M25, gerbv_drill_stats_t::M30, gerbv_drill_stats_t::M31, gerbv_drill_stats_t::M45, gerbv_drill_stats_t::M47, gerbv_drill_stats_t::M48, gerbv_drill_stats_t::M71, gerbv_drill_stats_t::M72, gerbv_drill_stats_t::M95, gerbv_drill_stats_t::M97, gerbv_drill_stats_t::M98, gerbv_drill_stats_t::M_unknown, mainProject, gerbv_project_t::max_files, gerbv_fileinfo_t::name, drill_list::next, error_list::next, error_list::type, and gerbv_drill_stats_t::unknown.

void callbacks_analyze_active_gerbers_activate ( GtkMenuItem *  menuitem,
gpointer  user_data 
)

void callbacks_new_activate ( GtkMenuItem *  menuitem,
gpointer  user_data 
)

The file -> new menu item was selected.

Create new project.

Definition at line 131 of file callbacks.c.

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

void callbacks_open_layer_activate ( GtkMenuItem *  menuitem,
gpointer  user_data 
)

The file -> open layer menu item was selected.

Open a layer (or layers) from a file.

Definition at line 212 of file callbacks.c.

References gerbv_open_layer_from_filename(), gerbv_render_zoom_to_fit_display(), mainProject, gerbv_project_t::path, and screen.

void callbacks_open_project_activate ( GtkMenuItem *  menuitem,
gpointer  user_data 
)

The file -> open menu item was selected.

Open a project file.

Definition at line 162 of file callbacks.c.

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

void callbacks_quit_activate ( GtkMenuItem *  menuitem,
gpointer  user_data 
)

The file -> quit menu item was selected.

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

Definition at line 1171 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.

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 2654 of file callbacks.c.

References screen.


Generated on Tue Aug 19 00:14:50 2008 for gerbv by  doxygen 1.5.6