| 1 | // Aseprite |
| 2 | // Copyright (C) 2018 Igara Studio S.A. |
| 3 | // Copyright (C) 2001-2017 David Capello |
| 4 | // |
| 5 | // This program is distributed under the terms of |
| 6 | // the End-User License Agreement for Aseprite. |
| 7 | |
| 8 | #ifndef APP_UI_TIMELINE_ANI_CONTROLS_H_INCLUDED |
| 9 | #define APP_UI_TIMELINE_ANI_CONTROLS_H_INCLUDED |
| 10 | #pragma once |
| 11 | |
| 12 | #include "app/ui/button_set.h" |
| 13 | #include "ui/widget.h" |
| 14 | |
| 15 | #include <string> |
| 16 | #include <vector> |
| 17 | |
| 18 | namespace ui { |
| 19 | class TooltipManager; |
| 20 | } |
| 21 | |
| 22 | namespace app { |
| 23 | class Editor; |
| 24 | |
| 25 | class AniControls : public ButtonSet { |
| 26 | public: |
| 27 | AniControls(ui::TooltipManager* tooltipManager); |
| 28 | |
| 29 | void updateUsingEditor(Editor* editor); |
| 30 | |
| 31 | protected: |
| 32 | void onRightClick(Item* item) override; |
| 33 | |
| 34 | private: |
| 35 | void onClickButton(); |
| 36 | |
| 37 | const char* getCommandId(int index) const; |
| 38 | std::string getTooltipFor(int index) const; |
| 39 | }; |
| 40 | |
| 41 | } // namespace app |
| 42 | |
| 43 | #endif |
| 44 | |