Allow hiding non-activated nodes.

Refs #2.
This commit is contained in:
2018-03-29 15:31:38 +02:00
parent 59ecb91713
commit c0032aa688
4 changed files with 48 additions and 26 deletions

View File

@@ -91,7 +91,11 @@ void RenderingState::handleKey(unsigned char x)
exit(0);
case 'h':
RenderingState::instance().reset();
reset();
break;
case 'o':
toggle(options.activatedOnly);
break;
default:
@@ -249,6 +253,7 @@ void RenderingState::renderOverlayText() const
"F2: toggle debug info\n"
"l: toggle layers visible\n"
"i: toggle interactions visible\n"
"o: toggle activated nodes only\n"
"q: quit\n";
}
@@ -302,3 +307,8 @@ void RenderingState::handleSpecialKey(int key)
LOG(INFO) << "Received keystroke " << key;
}
}
bool RenderingState::renderActivatedOnly() const
{
return options.activatedOnly;
}