summaryrefslogtreecommitdiffstats
path: root/src/extension/script/InkscapePython.h
diff options
context:
space:
mode:
authorBob Jamison <ishmalius@gmail.com>2007-04-14 15:52:31 +0000
committerishmal <ishmal@users.sourceforge.net>2007-04-14 15:52:31 +0000
commitb8e436d8fb9ec7996d50202ca3c51a3940fbc01e (patch)
treea856e6e6aa3338d79d7927ac60deaf91119f06d6 /src/extension/script/InkscapePython.h
parentfix typecasts (diff)
downloadinkscape-b8e436d8fb9ec7996d50202ca3c51a3940fbc01e.tar.gz
inkscape-b8e436d8fb9ec7996d50202ca3c51a3940fbc01e.zip
Change python binding mechanism
(bzr r2885)
Diffstat (limited to 'src/extension/script/InkscapePython.h')
-rw-r--r--src/extension/script/InkscapePython.h45
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