/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
- #include "ortho.h"
- #include "settings.h"
- void OrthoTool::start()
- {
- if (settings.orthoEnabled())
- settings.setOrthoEnabled(false);
- else
- settings.setOrthoEnabled(true);
- }
- void OrthoTool::triggered()
- {
- // Don't start the command as this would stop any other command
- // _commandWindow->startCommand(this);
- start();
- }