Skip to content
Snippets Groups Projects
Commit 310a58b0 authored by Christophe Geuzaine's avatar Christophe Geuzaine
Browse files

remove "Delete" button from Visibility window: Delete is destructive, and has...

remove "Delete" button from Visibility window: Delete is destructive, and has nothing to do in a "visibility" window
parent 0b13463d
Branches
Tags
No related merge requests found
......@@ -326,11 +326,13 @@ static void _rebuild_list_browser()
FlGui::instance()->visibility->browser->select(i + 1);
}
#if 0
// activate/deactivate delete button
if(type == VisibilityList::PhysicalEntities)
FlGui::instance()->visibility->push[0]->activate();
else
FlGui::instance()->visibility->push[0]->deactivate();
#endif
}
static void visibility_browser_apply_cb(Fl_Widget *w, void *data)
......@@ -360,6 +362,7 @@ static void visibility_browser_apply_cb(Fl_Widget *w, void *data)
}
}
#if 0
static void visibility_delete_cb(Fl_Widget *w, void *data)
{
bool all = true;
......@@ -382,6 +385,7 @@ static void visibility_delete_cb(Fl_Widget *w, void *data)
}
visibility_cb(NULL, (void*)"redraw_only");
}
#endif
static void visibility_sort_cb(Fl_Widget *w, void *data)
{
......@@ -1233,9 +1237,12 @@ visibilityWindow::visibilityWindow(int deltaFontSize)
browser_type->menu(browser_type_table);
browser_type->value(2); // physicals
// "Delete" is out of place in a Visibility window - it's a destructive operation!
#if 0
push[0] = new Fl_Button
(width - 2 * CC - 3 * WB, height - 2 * BH - 3 * WB, CC, BH, "Delete");
push[0]->callback(visibility_delete_cb);
#endif
Fl_Return_Button *b1 = new Fl_Return_Button
(width - 1 * CC - 2 * WB, height - 2 * BH - 3 * WB, CC, BH, "Apply");
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment