File that contains the "parent" code.  
 | 
 Functions | 
| void  | signal_2 (int) | 
|   | Function called when the program receives a SIGUSR2 signal. Does a bunch of stuff. :).  
  | 
| void  | gtk_clear_exit (int) | 
|   | Function called when the program receives a SIGINT signal. Make sure the shared memory "dies" with the program.  
  | 
| void  | delete_event_main (GtkWidget *widget, gpointer user_data) | 
|   | Function to process the force exiting of the main window.  
  | 
| void  | delete_event_about (GtkWidget *widget, gpointer user_data) | 
|   | Function to process the force exiting of the about window. Will hide the window, so it can be displayed again, if needed.  
  | 
| void  | delete_event_error (GtkWidget *widget, gpointer user_data) | 
|   | Function to process the force exiting of the error window. Will hide the window, so it can be displayed again, if needed.  
  | 
| int  | gtk (void) | 
|   | Program responsable for the graphic interface.  
  | 
| void  | connect_handler (GtkWidget *widget, gpointer user_data) | 
|   | Function to process the connect signal. Inform the rs232 program that it needs to connect.  
  | 
| void  | continuous_handler (GtkWidget *widget, gpointer user_data) | 
|   | Function to process the continuous signal. Enables the continuous reading mode.  
  | 
| void  | single_reading_handler (GtkWidget *widget, gpointer user_data) | 
|   | Function to process the single_reading signal. Enables the single reading mode.  
  | 
| void  | stop_handler (GtkWidget *widget, gpointer user_data) | 
|   | Function to process the stop signal. Enables the stop "mode".  
  | 
| void  | get_reading_handler (GtkWidget *widget, gpointer user_data) | 
|   | Function to process the GET_READING signal. Will send a signal to the rs232 program,.  
  | 
| void  | about_handler (GtkWidget *widget, gpointer user_data) | 
|   | Function to process the ABOUT signal. Will show the About Window.  
  | 
| 
void  | close_about_handler (GtkWidget *widget, gpointer user_data) | 
| void  | usb0_handler (GtkWidget *widget, gpointer user_data) | 
|   | Function to process usb0 signal. Changes the device used in serial port comunication.  
  | 
| void  | usb1_handler (GtkWidget *widget, gpointer user_data) | 
|   | Function to process usb1 signal. Changes the device used in serial port comunication.  
  | 
| void  | usb2_handler (GtkWidget *widget, gpointer user_data) | 
|   | Function to process usb2 signal. Changes the device used in serial port comunication.  
  | 
| void  | error_handler (GtkWidget *widget, gpointer user_data) | 
|   | Function to process the Error signal from error window. Will hide the error window.  
  | 
| void  | quit_handler (GtkWidget *widget, gpointer user_data) | 
|   | Function to process the QUIT signal from the main window.  
  | 
 Variables | 
| 
GtkBuilder *  | builderG | 
| 
unsigned char *  | SHM_config | 
| 
unsigned char *  | SHM_data | 
| 
int  | shm_id1 | 
| 
int  | shm_id2 | 
| 
char  | usb_device [64] = "ttyUSB0\0" | 
| 
char  | lb_content_n_sensors [16] | 
| 
char  | lb_content_n_ultrasounds [16] | 
| 
char  | lb_content_n_infrared [16] | 
| 
char  | lb_content_index1 [16] | 
| 
char  | lb_content_index2 [16] | 
| 
char  | lb_content_units [16] | 
File that contains the "parent" code. 
Programa responsável pela interface gráfica. Recebe e processa os sinais vindos do ficheiro criado em glade, assim como os sinais enviados pelo programa rs232 e a informação partilhada com este através de duas memorias partilhadas.