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_SET_PALETTE_H_INCLUDED
8#define APP_COMMANDS_CMD_SET_PALETTE_H_INCLUDED
9#pragma once
10
11#include "app/commands/command.h"
12
13namespace doc {
14 class Palette;
15}
16
17namespace app {
18
19 class SetPaletteCommand : public Command {
20 public:
21 enum class Target { Document, App };
22
23 SetPaletteCommand();
24
25 void setPalette(const doc::Palette* palette) { m_palette = palette; }
26
27 protected:
28 virtual void onExecute(Context* context) override;
29
30 private:
31 const doc::Palette* m_palette;
32 };
33
34} // namespace app
35
36#endif
37