diff options
| author | s-ol <s-ol@users.noreply.github.com> | 2019-12-02 20:41:05 +0000 |
|---|---|---|
| committer | s-ol <s-ol@users.noreply.github.com> | 2019-12-02 20:41:05 +0000 |
| commit | 1820294e9ea199058ba4d0626b23992e08210b44 (patch) | |
| tree | 8b6574d814b991dbcca3eaa92e557402bfee6b3e /src/livecode/context.h | |
| parent | more janet bindings (diff) | |
| download | inkscape-1820294e9ea199058ba4d0626b23992e08210b44.tar.gz inkscape-1820294e9ea199058ba4d0626b23992e08210b44.zip | |
move script to its own file
Diffstat (limited to 'src/livecode/context.h')
| -rw-r--r-- | src/livecode/context.h | 29 |
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: |
