[nostalgia] Add NewMenu for creating new files
This commit is contained in:
@@ -9,10 +9,13 @@
|
||||
#include <ox/std/string.hpp>
|
||||
#include <ox/std/vector.hpp>
|
||||
|
||||
#include <nostalgia/studio/studio.hpp>
|
||||
#include <nostalgia/core/context.hpp>
|
||||
|
||||
namespace nostalgia::studio {
|
||||
|
||||
class ItemMaker;
|
||||
|
||||
struct EditorMaker {
|
||||
using Func = std::function<ox::Result<class BaseEditor*>(const ox::String&)>;
|
||||
ox::Vector<ox::String> fileTypes;
|
||||
@@ -25,6 +28,8 @@ class Module {
|
||||
|
||||
virtual ox::Vector<EditorMaker> editors(core::Context *ctx);
|
||||
|
||||
virtual ox::Vector<ox::UniquePtr<ItemMaker>> itemMakers(core::Context*);
|
||||
|
||||
};
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user