summaryrefslogtreecommitdiffstats
path: root/src/extension/implementation/script.h
diff options
context:
space:
mode:
authorEduard Braun <eduard.braun2@gmx.de>2017-12-20 23:11:30 +0000
committerEduard Braun <eduard.braun2@gmx.de>2017-12-20 23:11:30 +0000
commitcabdde6554a95e6d0fee5ab39f850f7645df3cbb (patch)
treef85847d899169d369929df0f570e40c871c5c361 /src/extension/implementation/script.h
parentEffects: make "Working..." dialog transient for preferences dialog (diff)
downloadinkscape-cabdde6554a95e6d0fee5ab39f850f7645df3cbb.tar.gz
inkscape-cabdde6554a95e6d0fee5ab39f850f7645df3cbb.zip
Make script warnings transient for "Working..." dialog
This turned out to be a bit of a mess due to the interplay between the classes Script / ExecutionEnv / Effect / PrefDialog. (Basically they don't talk to each other much but all want to contribute to the GUI) Likely "Script" (and possibly "ExecutionEnv") should be refactored to let the other classes handle UI exclusively and throw errors where suitable.
Diffstat (limited to 'src/extension/implementation/script.h')
-rw-r--r--src/extension/implementation/script.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/extension/implementation/script.h b/src/extension/implementation/script.h
index 684719895..c6ae117c7 100644
--- a/src/extension/implementation/script.h
+++ b/src/extension/implementation/script.h
@@ -15,6 +15,7 @@
#include "implementation.h"
#include <gtkmm/enums.h>
+#include <gtkmm/window.h>
#include <glibmm/main.h>
#include <glibmm/spawn.h>
#include <glibmm/fileutils.h>
@@ -66,6 +67,14 @@ private:
*/
Glib::ustring helper_extension;
+ /**
+ * The window which should be considered as "parent window" of the script execution,
+ * e.g. when showin warning messages
+ *
+ * If set to NULL the main window of the currently active document is used.
+ */
+ Gtk::Window *parent_window;
+
std::string solve_reldir(Inkscape::XML::Node *repr_in);
bool check_existence (std::string const& command);
void copy_doc(Inkscape::XML::Node * olddoc, Inkscape::XML::Node * newdoc);