Add a checkbox to group screens to toggle visibility; seemed silly

to have that available from the list of groups, but not there.

[git-p4: depot-paths = "//depot/solvespace/": change = 2143]
solver
Jonathan Westhues 2010-05-11 20:57:41 -08:00
parent a95054890f
commit a05cc4dda8
1 changed files with 6 additions and 0 deletions

View File

@ -222,6 +222,8 @@ void TextWindow::ScreenChangeGroupOption(int link, DWORD v) {
case 'r': g->relaxConstraints = !(g->relaxConstraints); break;
case 'v': g->visible = !(g->visible); break;
case 'd': g->allDimsReference = !(g->allDimsReference); break;
case 'f': g->forceToMesh = !(g->forceToMesh); break;
@ -402,6 +404,10 @@ void TextWindow::ShowGroupInfo(void) {
Printf(false, "");
}
Printf(false, " %f%Lv%Fd%c show entities from this group",
&TextWindow::ScreenChangeGroupOption,
g->visible ? CHECK_TRUE : CHECK_FALSE);
Group *pg = g->PreviousGroup();
if(pg && pg->runningMesh.IsEmpty() && g->thisMesh.IsEmpty()) {
Printf(false, " %f%Lf%Fd%c force NURBS surfaces to triangle mesh",