/Primitive/MainApp/commands/ortho.cpp
C++ | 17 lines | 13 code | 2 blank | 2 comment | 1 complexity | 4cef93515f1a7ad70864839e286e0063 MD5 | raw file
1#include "ortho.h" 2#include "settings.h" 3 4void OrthoTool::start() 5{ 6 if (settings.orthoEnabled()) 7 settings.setOrthoEnabled(false); 8 else 9 settings.setOrthoEnabled(true); 10} 11 12void OrthoTool::triggered() 13{ 14 // Don't start the command as this would stop any other command 15 // _commandWindow->startCommand(this); 16 start(); 17}