src/gui_actions.cpp

changeset 530
f9476dbd87ec
parent 522
afa691788bdb
child 538
2f85d4d286e5
--- a/src/gui_actions.cpp	Tue Oct 22 21:03:57 2013 +0300
+++ b/src/gui_actions.cpp	Tue Oct 22 21:39:20 2013 +0300
@@ -472,7 +472,7 @@
 
 // =============================================================================
 // -----------------------------------------------------------------------------
-DEFINE_ACTION (Visibility, 0)
+DEFINE_ACTION (VisibilityToggle, 0)
 {	for (LDObject* obj : selection())
 		obj->setHidden (!obj->hidden());
 
@@ -481,6 +481,24 @@
 
 // =============================================================================
 // -----------------------------------------------------------------------------
+DEFINE_ACTION (VisibilityHide, 0)
+{	for (LDObject* obj : selection())
+		obj->setHidden (true);
+	
+	g_win->refresh();
+}
+
+// =============================================================================
+// -----------------------------------------------------------------------------
+DEFINE_ACTION (VisibilityReveal, 0)
+{	for (LDObject* obj : selection())
+	obj->setHidden (false);
+	
+	g_win->refresh();
+}
+
+// =============================================================================
+// -----------------------------------------------------------------------------
 DEFINE_ACTION (Wireframe, 0)
 {	gl_wireframe = !gl_wireframe;
 	g_win->R()->refresh();

mercurial