2022-02-23 17:45:43 -05:00
|
|
|
#pragma once
|
|
|
|
|
|
|
|
#include <string>
|
|
|
|
|
|
|
|
namespace kku
|
|
|
|
{
|
|
|
|
|
|
|
|
class EditorCallback
|
|
|
|
{
|
2022-10-17 22:59:51 -04:00
|
|
|
public:
|
2022-02-23 17:45:43 -05:00
|
|
|
virtual ~EditorCallback() = default;
|
|
|
|
|
|
|
|
struct Metadata
|
|
|
|
{
|
|
|
|
const std::string group_title;
|
|
|
|
const std::string title;
|
|
|
|
};
|
|
|
|
|
|
|
|
virtual bool isEnabled() const = 0;
|
|
|
|
virtual void run() const = 0;
|
|
|
|
|
|
|
|
virtual Metadata getMetadata() const = 0;
|
|
|
|
};
|
|
|
|
|
2022-10-17 22:59:51 -04:00
|
|
|
} // namespace kku
|