PageRenderTime 23ms CodeModel.GetById 21ms app.highlight 1ms RepoModel.GetById 0ms app.codeStats 0ms

/Primitive/MainApp/commands/ortho.cpp

https://bitbucket.org/flexcomputer/primitive
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}