diff options
Diffstat (limited to 'src/extension/script/InkscapePython.h')
| -rw-r--r-- | src/extension/script/InkscapePython.h | 45 |
1 files changed, 33 insertions, 12 deletions
diff --git a/src/extension/script/InkscapePython.h b/src/extension/script/InkscapePython.h index cdf9bd0f1..76739c152 100644 --- a/src/extension/script/InkscapePython.h +++ b/src/extension/script/InkscapePython.h @@ -7,7 +7,7 @@ * Authors: * Bob Jamison <rjamison@titan.com> * - * Copyright (C) 2004 Authors + * Copyright (C) 2004-2007 Authors * * Released under GNU GPL, read the file 'COPYING' for more information */ @@ -15,9 +15,14 @@ #include "InkscapeInterpreter.h" #include <glibmm.h> -namespace Inkscape { -namespace Extension { -namespace Script { + + +namespace Inkscape +{ +namespace Extension +{ +namespace Script +{ @@ -25,21 +30,28 @@ class InkscapePython : public InkscapeInterpreter { public: - /* - * + /** + * Constructor. Create and initialize python binding. + * Note that we will only actually start up the Python + * interpreter when there is a demand. */ - InkscapePython(); + InkscapePython() + { + initialized = false; + } - /* - * + /** + * Destructor */ - virtual ~InkscapePython(); + virtual ~InkscapePython() + { + } - /* - * + /** + * Overloaded from InkscapeInterpreter */ virtual bool interpretScript(const Glib::ustring &script, Glib::ustring &output, @@ -50,10 +62,19 @@ public: private: + /** + * First-time call to set things up + */ + bool initialize(); + + bool initialized; + }; + + } // namespace Script } // namespace Extension } // namespace Inkscape |
