summaryrefslogtreecommitdiffstats
path: root/src/livecode/context.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/livecode/context.h')
-rw-r--r--src/livecode/context.h29
1 files changed, 4 insertions, 25 deletions
diff --git a/src/livecode/context.h b/src/livecode/context.h
index 4ebb73609..520074968 100644
--- a/src/livecode/context.h
+++ b/src/livecode/context.h
@@ -1,6 +1,6 @@
// SPDX-License-Identifier: GPL-2.0-or-later
-#ifndef INK_LIVECODE_API_H
-#define INK_LIVECODE_API_H
+#ifndef INK_LIVECODE_CONTEXT_H
+#define INK_LIVECODE_CONTEXT_H
/*
* Context for the livecoding script language
@@ -16,15 +16,12 @@
#include <2geom/point.h>
#include <2geom/rect.h>
#include <gdk/gdk.h>
-#include <giomm/file.h>
-#include <giomm/filemonitor.h>
#include <janet.h>
#include "xml/repr.h"
#include "desktop.h"
#include "livecode/input.h"
-
class SPDocument;
class SPItem;
@@ -32,25 +29,7 @@ namespace Inkscape {
namespace Livecode {
class Mouse;
-
-class Script {
-public:
- Script(JanetTable *env, std::string const &path);
-
- void frame();
- void commit();
-
-private:
- JanetTable *env;
- JanetFunction *function;
- Glib::RefPtr<Gio::File> file;
- Glib::RefPtr<Gio::FileMonitor> monitor;
-
- void reload();
- void file_changed(const Glib::RefPtr<Gio::File>& file,
- const Glib::RefPtr<Gio::File>& other_file,
- Gio::FileMonitorEvent event);
-};
+class Script;
class Context {
public:
@@ -115,7 +94,7 @@ private:
}
}
-#endif // INK_LIVECODE_API_H
+#endif // INK_LIVECODE_CONTEXT_H
/*
Local Variables: