|
1 | 1 | #ifndef NO_GRAPHICS
|
2 |
| - |
3 |
| -/* |
4 |
| - * This file defines all runtime created spin buttons, combo boxes, and labels. All |
5 |
| - * button_for_toggle_X() functions are called in initial_setup_X functions in draw.cpp. |
6 |
| - * Each function creates a label and a combo box/spin button and connects the signal to |
7 |
| - * the corresponding toggle_X callback functions, which are also defined in draw.cpp. |
| 2 | +/** |
| 3 | + * @file UI_SETUP.CPP |
| 4 | + * @author Sebastian Lievano |
| 5 | + * @date July 4th, 2022 |
| 6 | + * @brief Manages setup for main.ui created buttons |
8 | 7 | *
|
9 |
| - * Authors: Dingyu (Tina) Yang |
10 |
| - * Last updated: Aug 2019 |
| 8 | + * This file contains the various setup functions for all of the ui functions. |
| 9 | + * As of June 2022, gtk ui items are to be created through Glade/main.ui file (see Docs) |
| 10 | + * Each function here initializes a different set of ui buttons, connecting their callback functions |
11 | 11 | */
|
12 | 12 |
|
13 | 13 | # include "draw_global.h"
|
@@ -139,11 +139,21 @@ void routing_button_setup(ezgl::application* app) {
|
139 | 139 | g_signal_connect(toggle_router_util, "changed", G_CALLBACK(toggle_router_util_cbk), app);
|
140 | 140 | }
|
141 | 141 |
|
| 142 | +/** |
| 143 | + * @brief connects critical path button to its cbk fn |
| 144 | + * |
| 145 | + * @param app ezgl application |
| 146 | + */ |
142 | 147 | void crit_path_button_setup(ezgl::application* app) {
|
143 | 148 | GtkComboBoxText* toggle_crit_path = GTK_COMBO_BOX_TEXT(app->get_object("ToggleCritPath"));
|
144 | 149 | g_signal_connect(toggle_crit_path, "changed", G_CALLBACK(toggle_crit_path_cbk), app);
|
145 | 150 | }
|
146 | 151 |
|
| 152 | +/** |
| 153 | + * @brief hides critical path button |
| 154 | + * |
| 155 | + * @param app ezgl app |
| 156 | + */ |
147 | 157 | void hide_crit_path_button(ezgl::application* app) {
|
148 | 158 | hide_widget("CritPathLabel", app);
|
149 | 159 | hide_widget("ToggleCritPath", app);
|
|
0 commit comments