/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. void OrthoTool::start()
  4. {
  5. if (settings.orthoEnabled())
  6. settings.setOrthoEnabled(false);
  7. else
  8. settings.setOrthoEnabled(true);
  9. }
  10. void OrthoTool::triggered()
  11. {
  12. // Don't start the command as this would stop any other command
  13. // _commandWindow->startCommand(this);
  14. start();
  15. }