1 | // Aseprite |
2 | // Copyright (C) 2001-2015 David Capello |
3 | // |
4 | // This program is distributed under the terms of |
5 | // the End-User License Agreement for Aseprite. |
6 | |
7 | #ifndef APP_COMMANDS_CMD_FLIP_H_INCLUDED |
8 | #define APP_COMMANDS_CMD_FLIP_H_INCLUDED |
9 | #pragma once |
10 | |
11 | #include "app/commands/command.h" |
12 | #include "doc/algorithm/flip_type.h" |
13 | |
14 | namespace app { |
15 | |
16 | class FlipCommand : public Command { |
17 | public: |
18 | FlipCommand(); |
19 | |
20 | doc::algorithm::FlipType getFlipType() const { return m_flipType; } |
21 | |
22 | protected: |
23 | void onLoadParams(const Params& params) override; |
24 | bool onEnabled(Context* context) override; |
25 | void onExecute(Context* context) override; |
26 | std::string onGetFriendlyName() const override; |
27 | |
28 | private: |
29 | bool m_flipMask; |
30 | doc::algorithm::FlipType m_flipType; |
31 | }; |
32 | |
33 | } // namespace app |
34 | |
35 | #endif // APP_COMMANDS_CMD_FLIP_H_INCLUDED |
36 | |