Skip to content

Commit d39bc21

Browse files
Removed extra cout's
1 parent 89ddeaf commit d39bc21

File tree

3 files changed

+11
-5
lines changed

3 files changed

+11
-5
lines changed

vpr/src/draw/draw.cpp

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -677,7 +677,6 @@ bool draw_if_net_highlighted(ClusterNetId inet) {
677677
void act_on_key_press(ezgl::application* app, GdkEventKey* /*event*/, char* key_name) {
678678
//VTR_LOG("Key press %c (%d)\n", key_pressed, keysym);
679679
std::string key(key_name);
680-
std::cout << "Pressed key" << std::endl;
681680
if (gtk_widget_is_focus(GTK_WIDGET(app->get_object("TextInput")))) {
682681
if (key == "Return") {
683682
enable_autocomplete(app);
@@ -686,7 +685,6 @@ void act_on_key_press(ezgl::application* app, GdkEventKey* /*event*/, char* key_
686685
}
687686
# else
688687
void act_on_key_press(ezgl::application* app, GdkEventKey* /*event*/, char* key_name) {
689-
std::cout << "Pressed key" << std::endl;
690688
std::string key(key_name);
691689
GtkWidget* searchBar = GTK_WIDGET(app->get_object("TextInput"));
692690
if (gtk_widget_is_focus(searchBar)) {

vpr/src/draw/search_bar.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -505,7 +505,6 @@ GdkEvent simulate_keypress(char key, GdkWindow* window) {
505505
* @param app ezgl app
506506
*/
507507
void enable_autocomplete(ezgl::application* app) {
508-
std::cout << "enabling autocomplete" << std::endl;
509508
GtkEntryCompletion* completion = GTK_ENTRY_COMPLETION(app->get_object("Completion"));
510509
GtkEntry* searchBar = GTK_ENTRY(app->get_object("TextInput"));
511510

vpr/src/draw/ui_setup.cpp

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ void net_button_setup(ezgl::application* app) {
8080
* @brief sets up block related buttons, connects their signals
8181
*
8282
* Connects signals and sets init. values for blk internals spin button,
83-
* blk pin util combo box, and placement macros combo box created in
83+
* blk pin util combo box,placement macros combo box, and noc combo bx created in
8484
* main.ui. Found in Block Settings dropdown
8585
* @param app
8686
*/
@@ -100,6 +100,15 @@ void block_button_setup(ezgl::application* app) {
100100
//Toggle Placement Macros
101101
GtkComboBoxText* placement_macros = GTK_COMBO_BOX_TEXT(app->get_object("TogglePlacementMacros"));
102102
g_signal_connect(placement_macros, "changed", G_CALLBACK(placement_macros_cbk), app);
103+
104+
//Toggle NoC Display (based on startup cmd --noc on)
105+
if (!draw_state->show_noc_button) {
106+
hide_widget("NocLabel", app);
107+
hide_widget("ToggleNocBox", app);
108+
} else {
109+
GtkComboBoxText* toggleNocBox = GTK_COMBO_BOX_TEXT(app->get_object("ToggleNocBox"));
110+
g_signal_connect(toggleNocBox, "changed", G_CALLBACK(toggle_noc_cbk), app);
111+
}
103112
}
104113

105114
/**
@@ -143,7 +152,7 @@ void routing_button_setup(ezgl::application* app) {
143152
*
144153
* @param app ezgl app
145154
*/
146-
void search_setup(ezgl::application* app){
155+
void search_setup(ezgl::application* app) {
147156
load_block_names(app);
148157
load_net_names(app);
149158
//Setting custom matching function for entry completion (searches whole string instead of start)

0 commit comments

Comments
 (0)