From 1820294e9ea199058ba4d0626b23992e08210b44 Mon Sep 17 00:00:00 2001 From: s-ol Date: Mon, 2 Dec 2019 21:41:05 +0100 Subject: move script to its own file --- src/livecode/context.h | 29 ++++------------------------- 1 file changed, 4 insertions(+), 25 deletions(-) (limited to 'src/livecode/context.h') 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 -#include -#include #include #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 file; - Glib::RefPtr monitor; - - void reload(); - void file_changed(const Glib::RefPtr& file, - const Glib::RefPtr& 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: -- cgit v1.2.3