default.cpp 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. /* default.cpp - default tool
  2. * Copyright (C) 2017-2018 caryoscelus
  3. *
  4. * This program is free software: you can redistribute it and/or modify
  5. * it under the terms of the GNU General Public License as published by
  6. * the Free Software Foundation, either version 3 of the License, or
  7. * (at your option) any later version.
  8. *
  9. * This program is distributed in the hope that it will be useful,
  10. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  11. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  12. * GNU General Public License for more details.
  13. *
  14. * You should have received a copy of the GNU General Public License
  15. * along with this program. If not, see <http://www.gnu.org/licenses/>.
  16. */
  17. #include "base.h"
  18. namespace rainynite::studio::tools {
  19. class Default : public Base {
  20. public:
  21. string icon() const override {
  22. return "cursor-arrow";
  23. }
  24. string name() const override {
  25. return global_name();
  26. }
  27. public:
  28. static string global_name() {
  29. return "Default";
  30. }
  31. };
  32. } // namespace rainynite::studio::tools
  33. namespace rainynite::studio {
  34. REGISTER_CANVAS_TOOL(tools::Default, Canvas, 0x00);
  35. }