1 | // Aseprite |
2 | // Copyright (C) 2018-2019 Igara Studio S.A. |
3 | // Copyright (C) 2016-2018 David Capello |
4 | // |
5 | // This program is distributed under the terms of |
6 | // the End-User License Agreement for Aseprite. |
7 | |
8 | #ifndef APP_CLI_DEFAULT_CLI_DELEGATE_H_INCLUDED |
9 | #define APP_CLI_DEFAULT_CLI_DELEGATE_H_INCLUDED |
10 | #pragma once |
11 | |
12 | #include "app/cli/cli_delegate.h" |
13 | |
14 | namespace app { |
15 | |
16 | class DefaultCliDelegate : public CliDelegate { |
17 | public: |
18 | void showHelp(const AppOptions& programOptions) override; |
19 | void showVersion() override; |
20 | void afterOpenFile(const CliOpenFile& cof) override; |
21 | void saveFile(Context* ctx, const CliOpenFile& cof) override; |
22 | void loadPalette(Context* ctx, const CliOpenFile& cof, const std::string& filename) override; |
23 | void exportFiles(Context* ctx, DocExporter& exporter) override; |
24 | #ifdef ENABLE_SCRIPTING |
25 | int execScript(const std::string& filename, |
26 | const Params& params) override; |
27 | #endif |
28 | }; |
29 | |
30 | } // namespace app |
31 | |
32 | #endif |
33 | |