From a05cc4dda896939487e8e409d358ac908d4a27e4 Mon Sep 17 00:00:00 2001 From: Jonathan Westhues Date: Tue, 11 May 2010 20:57:41 -0800 Subject: [PATCH] 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] --- textscreens.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/textscreens.cpp b/textscreens.cpp index 9c13924..4b8cd05 100644 --- a/textscreens.cpp +++ b/textscreens.cpp @@ -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",