11#ifndef INKSCAPE_EXTENSION_EXECUTION_ENV_H__
12#define INKSCAPE_EXTENSION_EXECUTION_ENV_H__
14#include <glibmm/main.h>
15#include <glibmm/ustring.h>
16#include <gtkmm/dialog.h>
80 bool show_working =
true,
81 bool show_errors =
true);
Effects are extensions that take a document and do something to it in place.
void undo()
Undoes what the effect completed.
Gtk::Dialog * get_working_dialog()
Return reference to working dialog (if any)
void createWorkingDialog()
Create the working dialog.
bool wait()
Wait for the effect to complete if it hasn't.
Gtk::Dialog * _visibleDialog
If there is a working dialog it'll be referenced right here.
state_t _state
What state the execution engine is in.
void workingCanceled(const int resp)
bool _show_working
Show the working dialog when the effect is executing.
virtual ~ExecutionEnv()
Destroy an execution environment.
Implementation::ImplementationDocumentCache * _docCache
A document cache if we were passed one.
Glib::RefPtr< Glib::MainLoop > _mainloop
In some cases we need a mainLoop, when we do, this is a pointer to it.
void commit()
Commit the changes to the document.
std::unique_ptr< Inkscape::SelectionState > _selectionState
Saved selection state before running the effect.
sigc::signal< void()> _runComplete
Signal that the run is complete.
void killDocCache()
Destroy a document cache.
void cancel()
Cancel the execution of the effect.
SPDesktop * _desktop
The desktop containing the document that we're working on.
void run()
Starts the execution of the effect.
void genDocCache()
Generate a document cache if needed.
Effect * _effect
The effect that we're executing in this context.
A cache for the document and this implementation.
Base class for all implementations of modules.
To do: update description of desktop.
Typed SVG document implementation.
Helper class to stream background task notifications as a series of messages.