[nostalgia] Update Studio to handle tabs and open directory dialog on Mac, Update core::init
This commit is contained in:
@@ -11,12 +11,13 @@
|
||||
#include <ox/event/signal.hpp>
|
||||
|
||||
#include "undostack.hpp"
|
||||
#include "widget.hpp"
|
||||
|
||||
#include "nostalgiastudio_export.h"
|
||||
|
||||
namespace nostalgia::studio {
|
||||
|
||||
class NOSTALGIASTUDIO_EXPORT Editor: public ox::SignalHandler {
|
||||
class NOSTALGIASTUDIO_EXPORT Editor: public Widget {
|
||||
|
||||
private:
|
||||
UndoStack m_cmdStack;
|
||||
@@ -35,6 +36,8 @@ class NOSTALGIASTUDIO_EXPORT Editor: public ox::SignalHandler {
|
||||
[[nodiscard]]
|
||||
virtual ox::String itemName() const = 0;
|
||||
|
||||
virtual ox::String itemDisplayName() const;
|
||||
|
||||
virtual void cut();
|
||||
|
||||
virtual void copy();
|
||||
@@ -43,6 +46,8 @@ class NOSTALGIASTUDIO_EXPORT Editor: public ox::SignalHandler {
|
||||
|
||||
virtual void exportFile();
|
||||
|
||||
void close();
|
||||
|
||||
/**
|
||||
* Save changes to item being edited.
|
||||
*/
|
||||
@@ -89,12 +94,14 @@ class NOSTALGIASTUDIO_EXPORT Editor: public ox::SignalHandler {
|
||||
*/
|
||||
virtual void saveItem();
|
||||
|
||||
// slots
|
||||
public:
|
||||
ox::Signal<ox::Error(bool)> unsavedChangesChanged;
|
||||
ox::Signal<ox::Error(bool)> exportableChanged;
|
||||
ox::Signal<ox::Error(bool)> cutEnabledChanged;
|
||||
ox::Signal<ox::Error(bool)> copyEnabledChanged;
|
||||
ox::Signal<ox::Error(bool)> pasteEnabledChanged;
|
||||
ox::Signal<ox::Error(const ox::String&)> closed;
|
||||
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user