Skip to content
Browse files

Merge pull request #18 from wzman/dualView

Add Dual View button in toolbar
  • Loading branch information...
2 parents a9d6359 + 403b78f commit 64670c8b6ace4fe57059e314780d0e81425813a5 @rygorous rygorous committed Apr 26, 2012
Showing with 11 additions and 0 deletions.
  1. +11 −0 werkkzeug3/werkkzeug.cpp
View
11 werkkzeug3/werkkzeug.cpp
@@ -54,6 +54,7 @@ extern "C" sU8 SplashTGA[];
#define CMD_MENU_NOVA 0x1017
#define CMD_MENU_CAMSPEED 0x1018
#define CMD_MENU_VIEWCONTEXT2 0x1019
+#define CMD_MENU_DUALVIEW 0x1020
#define CMD_BROWSERPREVIEW 0x1060
#define CMD_LOG_PULLDOWN 0x1061
@@ -786,6 +787,11 @@ sBool WerkkzeugApp::OnCommand(sU32 cmd)
ViewWin2->OnCommand(CMD_VIEW_PULLDOWN);
return sTRUE;
+ case CMD_MENU_DUALVIEW:
+ // toggle single/dual view
+ UpdateDualViewMode();
+ break;
+
case CMD_MENU_CAMSPEED:
// synchronize winview cam speed
ViewWin2->CamSpeed = ViewWin->CamSpeed;
@@ -2229,6 +2235,11 @@ void WerkkzeugApp::InitToolBorder()
ToolBorder->AddChild(con);
con = new sControl;
+ con->EditCycle(CMD_MENU_DUALVIEW,&this->DualViewMode,0,"|Dual View");
+ con->Style |= sCS_SMALLWIDTH;
+ ToolBorder->AddChild(con);
+
+ con = new sControl;
con->EditChoice(CMD_MENU_CAMSPEED,&ViewWin->CamSpeed,0,"Slow|Normal Speed|Fast|Faster");
// con->Style |= sCS_SMALLWIDTH;
ToolBorder->AddChild(con);

0 comments on commit 64670c8

Please sign in to comment.
Something went wrong with that request. Please try again.