Add missing cmd_open_file.h file in last commit

This commit is contained in:
David Capello 2016-11-14 20:00:44 -03:00
parent 2240742816
commit 1e5ae5e9cb

View File

@ -0,0 +1,37 @@
// Aseprite
// Copyright (C) 2016 David Capello
//
// This program is distributed under the terms of
// the End-User License Agreement for Aseprite.
#ifndef APP_COMMANDS_CMD_OPEN_FILE_H_INCLUDED
#define APP_COMMANDS_CMD_OPEN_FILE_H_INCLUDED
#pragma once
#include "app/commands/command.h"
#include <string>
#include <vector>
namespace app {
class OpenFileCommand : public Command {
public:
OpenFileCommand();
Command* clone() const override { return new OpenFileCommand(*this); }
const std::vector<std::string>& usedFiles() const { return m_usedFiles; }
protected:
void onLoadParams(const Params& params) override;
void onExecute(Context* context) override;
private:
std::string m_filename;
std::string m_folder;
std::vector<std::string> m_usedFiles;
};
} // namespace app
#endif