Skip to content

Commit 53ec3d6

Browse files
Updated initial setup fn, added default_setup fn to minimize duplication
1 parent eeadc05 commit 53ec3d6

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

vpr/src/draw/draw.cpp

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -268,6 +268,14 @@ static void draw_main_canvas(ezgl::renderer* g) {
268268
}
269269
}
270270

271+
/**
272+
* @brief Default setup function, connects signals/sets up ui created in main.ui file
273+
*
274+
* To minimize code repetition, this function sets up all buttons that ALWAYS get set up.
275+
* If you want to add to the initial setup functions, and your new setup function will always be called,
276+
* please put it here instead of writing it 5 independent times. Thanks!
277+
* @param app ezgl application
278+
*/
271279
static void default_setup(ezgl::application* app){
272280
basic_button_setup(app);
273281
net_button_setup(app);
@@ -285,7 +293,7 @@ static void initial_setup_NO_PICTURE_to_PLACEMENT(ezgl::application* app,
285293
//Configuring visible buttons
286294
default_setup(app);
287295

288-
//Loading names for
296+
//THIS WILL BE CHANGED SOON IGNORE
289297
load_block_names(app);
290298

291299
//Hiding unused functionality

0 commit comments

Comments
 (0)