mirror of
https://github.com/aseprite/aseprite.git
synced 2025-02-21 21:41:02 +00:00
Add missing cmd_open_file.h file in last commit
This commit is contained in:
parent
2240742816
commit
1e5ae5e9cb
37
src/app/commands/cmd_open_file.h
Normal file
37
src/app/commands/cmd_open_file.h
Normal 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
|
Loading…
x
Reference in New Issue
Block a user