-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsignal_connect.c
105 lines (102 loc) · 5.35 KB
/
signal_connect.c
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
#include <gtk/gtk.h>
#include <glib.h>
#include <glib/gprintf.h>
#include <glib/gprintf.h>
#include "debug.h"
#include "callback_widget.h"
void connection_mapper (GtkBuilder *builder, GObject *object,
const gchar *signal_name, const gchar *handler_name,
GObject *connect_object, GConnectFlags flags, sweeper_data *wdg_data) {
g_print ("Connect %s with %s\n", signal_name, handler_name);
if (g_strcmp0 (handler_name, "on_window_main_destroy") == 0)
g_signal_connect (object, signal_name, G_CALLBACK(on_window_main_destroy), wdg_data);
else
if (g_strcmp0 (handler_name, "on_imagemenuitem_new_activate") == 0)
g_signal_connect (object, signal_name, G_CALLBACK(on_imagemenuitem_new_activate), wdg_data);
else
if (g_strcmp0 (handler_name, "on_imagemenuitem_open_activate") == 0)
g_signal_connect (object, signal_name, G_CALLBACK(on_imagemenuitem_open_activate), wdg_data);
else
if (g_strcmp0 (handler_name, "on_imagemenuitem_save_activate") == 0)
g_signal_connect (object, signal_name, G_CALLBACK(on_imagemenuitem_save_activate), wdg_data);
else
if (g_strcmp0 (handler_name, "on_imagemenuitem_save_as_activate") == 0)
g_signal_connect (object, signal_name, G_CALLBACK(on_imagemenuitem_save_as_activate), wdg_data);
else
if (g_strcmp0 (handler_name, "on_imagemenuitem_export_pdf_activate") == 0)
g_signal_connect (object, signal_name, G_CALLBACK(on_imagemenuitem_export_pdf_activate), wdg_data);
else
if (g_strcmp0 (handler_name, "on_imagemenuitem_export_png_activate") == 0)
g_signal_connect (object, signal_name, G_CALLBACK(on_imagemenuitem_export_png_activate), wdg_data);
else
if (g_strcmp0 (handler_name, "on_imagemenuitem_quit_activate") == 0)
g_signal_connect (object, signal_name, G_CALLBACK(on_imagemenuitem_quit_activate), wdg_data);
else
if (g_strcmp0 (handler_name, "on_gpib_address_activate") == 0)
g_signal_connect (object, signal_name, G_CALLBACK(on_gpib_address_activate), wdg_data);
else
if (g_strcmp0 (handler_name, "on_imagemenuitem_about_activate") == 0)
g_signal_connect (object, signal_name, G_CALLBACK(on_imagemenuitem_about_activate), wdg_data);
else
if (g_strcmp0 (handler_name, "on_cairo_drawing_configure_event") == 0)
g_signal_connect (object, signal_name, G_CALLBACK(on_cairo_drawing_configure_event), wdg_data);
else
if (g_strcmp0 (handler_name, "on_cairo_drawing_draw") == 0)
g_signal_connect (object, signal_name, G_CALLBACK(on_cairo_drawing_draw), wdg_data);
else
if (g_strcmp0 (handler_name, "on_frequency_sweep_rb_clicked") == 0)
g_signal_connect (object, signal_name, G_CALLBACK(on_frequency_sweep_rb_clicked), wdg_data);
else
if (g_strcmp0 (handler_name, "on_power_sweeper_rb_clicked") == 0)
g_signal_connect (object, signal_name, G_CALLBACK(on_power_sweeper_rb_clicked), wdg_data);
else
if (g_strcmp0 (handler_name, "on_rmsd_settings_value_changed") == 0)
g_signal_connect (object, signal_name, G_CALLBACK(on_rmsd_settings_value_changed), wdg_data);
else
if (g_strcmp0 (handler_name, "on_start_level_value_changed") == 0)
g_signal_connect (object, signal_name, G_CALLBACK(on_start_level_value_changed), wdg_data);
else
if (g_strcmp0 (handler_name, "on_stop_level_value_changed") == 0)
g_signal_connect (object, signal_name, G_CALLBACK(on_stop_level_value_changed), wdg_data);
else
if (g_strcmp0 (handler_name, "on_step_level_value_changed") == 0)
g_signal_connect (object, signal_name, G_CALLBACK(on_step_level_value_changed), wdg_data);
else
if (g_strcmp0 (handler_name, "on_number_avg_value_changed") == 0)
g_signal_connect (object, signal_name, G_CALLBACK(on_number_avg_value_changed), wdg_data);
else
if (g_strcmp0 (handler_name, "on_start_frequency_value_changed") == 0)
g_signal_connect (object, signal_name, G_CALLBACK(on_start_frequency_value_changed), wdg_data);
else
if (g_strcmp0 (handler_name, "on_stop_frequency_value_changed") == 0)
g_signal_connect (object, signal_name, G_CALLBACK(on_stop_frequency_value_changed), wdg_data);
else
if (g_strcmp0 (handler_name, "on_step_frequency_value_changed") == 0)
g_signal_connect (object, signal_name, G_CALLBACK(on_step_frequency_value_changed), wdg_data);
else
if (g_strcmp0 (handler_name, "on_log_scale_clicked") == 0)
g_signal_connect (object, signal_name, G_CALLBACK(on_log_scale_clicked), wdg_data);
else
if (g_strcmp0 (handler_name, "on_band_2_clicked") == 0)
g_signal_connect (object, signal_name, G_CALLBACK(on_band_2_clicked), wdg_data);
else
if (g_strcmp0 (handler_name, "on_band_70_clicked") == 0)
g_signal_connect (object, signal_name, G_CALLBACK(on_band_70_clicked), wdg_data);
else
if (g_strcmp0 (handler_name, "on_band_23_clicked") == 0)
g_signal_connect (object, signal_name, G_CALLBACK(on_band_23_clicked), wdg_data);
else
if (g_strcmp0 (handler_name, "on_band_13_clicked") == 0)
g_signal_connect (object, signal_name, G_CALLBACK(on_band_13_clicked), wdg_data);
else
if (g_strcmp0 (handler_name, "on_gpib_address_dialog_destroy") == 0)
g_signal_connect (object, signal_name, G_CALLBACK(on_gpib_address_dialog_destroy), wdg_data);
else
if (g_strcmp0 (handler_name, "on_hp8648c_gpib_spinbutton_value_changed") == 0)
g_signal_connect (object, signal_name, G_CALLBACK(on_hp8648c_gpib_spinbutton_value_changed), wdg_data);
else
if (g_strcmp0 (handler_name, "on_start_button_clicked") == 0)
g_signal_connect (object, signal_name, G_CALLBACK(on_start_button_clicked), wdg_data);
else
g_print ("\nunknown callback %s %s\n\n",signal_name, handler_name);
}