#include <gtk/gtk.h>
Include dependency graph for callbacks.h:
This graph shows which files directly or indirectly include this file:
Go to the source code of this file.
Functions | |
void | on_SetButton_clicked (GtkButton *button, gpointer user_data) |
gboolean | on_SimCtrlWindow_destroy_event (GtkWidget *widget, GdkEvent *event, gpointer user_data) |
gboolean | on_SimCtrlWindow_delete_event (GtkWidget *widget, GdkEvent *event, gpointer user_data) |
void | on_SaveButton_clicked (GtkButton *button, gpointer user_data) |
void | on_OpenButton_clicked (GtkButton *button, gpointer user_data) |
void | on_AxisSpinbutton_changed (GtkEditable *editable, gpointer user_data) |
void | on_ok_button1_clicked (GtkButton *button, gpointer user_data) |
void | on_cancel_button1_clicked (GtkButton *button, gpointer user_data) |
gboolean | on_fileselection1_delete_event (GtkWidget *widget, GdkEvent *event, gpointer user_data) |
gboolean | on_fileselection1_destroy_event (GtkWidget *widget, GdkEvent *event, gpointer user_data) |
void | on_EditRadiobutton_toggled (GtkToggleButton *togglebutton, gpointer user_data) |
void | on_WatchRadiobutton_toggled (GtkToggleButton *togglebutton, gpointer user_data) |
void | on_TrippedCheckbutton_toggled (GtkToggleButton *togglebutton, gpointer user_data) |
|
Definition at line 74 of file sc_callbacks.c. 00076 { 00077 int axis = gtk_spin_button_get_value_as_int(GTK_SPIN_BUTTON(editable)); 00078 store_control_values(last_axis); 00079 update_display(); 00080 last_axis = axis; 00081 } |
|
Definition at line 149 of file sc_callbacks.c. 00151 { 00152 00153 } |
|
Definition at line 61 of file sc_callbacks.c. 00063 { 00064 loading = 1; 00065 saving = 0; 00066 fileDialog = create_fileselection1(); 00067 gtk_widget_show(fileDialog); 00068 } |
|
Definition at line 50 of file sc_callbacks.c. 00052 { 00053 loading = 0; 00054 saving = 1; 00055 fileDialog = create_fileselection1(); 00056 gtk_widget_show(fileDialog); 00057 } |
|
Definition at line 22 of file sc_callbacks.c. 00024 { 00025 send_values_to_controller(); 00026 } |
|
Definition at line 40 of file sc_callbacks.c. 00043 { 00044 gtk_exit(0); 00045 return FALSE; 00046 } |
|
Definition at line 30 of file sc_callbacks.c. 00033 { 00034 gtk_exit(0); 00035 return FALSE; 00036 } |
|
Definition at line 183 of file sc_callbacks.c. 00185 { 00186 00187 } |
|
Definition at line 157 of file sc_callbacks.c. 00159 { 00160 gboolean is_active = gtk_toggle_button_get_active(togglebutton); 00161 if(is_active) 00162 { 00163 if(watch_timer_id < 1) 00164 { 00165 watch_timer_id = gtk_timeout_add(1000, 00166 ((GtkFunction) read_status_and_update_display), 00167 togglebutton); 00168 } 00169 } 00170 else 00171 { 00172 if(watch_timer_id > 0) 00173 { 00174 gtk_timeout_remove(watch_timer_id); 00175 watch_timer_id = 0; 00176 } 00177 } 00178 00179 } |
|
Definition at line 121 of file sc_callbacks.c. 00123 { 00124 file_dialog_cancel(); 00125 } |
|
Definition at line 129 of file sc_callbacks.c. 00132 { 00133 file_dialog_cancel(); 00134 return FALSE; 00135 } |
|
Definition at line 139 of file sc_callbacks.c. 00142 { 00143 file_dialog_cancel(); 00144 return FALSE; 00145 } |
|
Definition at line 85 of file sc_callbacks.c. 00087 { 00088 if(NULL != fileDialog) 00089 { 00090 filename = gtk_file_selection_get_filename( GTK_FILE_SELECTION (fileDialog)); 00091 if(loading) 00092 { 00093 loadSimulationIniFile(filename); 00094 } 00095 else if(saving) 00096 { 00097 saveSimulationIniFile(filename); 00098 } 00099 gtk_widget_destroy(fileDialog); 00100 fileDialog = NULL; 00101 } 00102 loading=0; 00103 saving=0; 00104 } |