Logo Search packages:      
Sourcecode: inkscape version File versions

void Inkscape::UI::Dialog::ScriptDialogImpl::execute ( Inkscape::Extension::Script::InkscapeScript::ScriptLanguage  lang  ) 

Execute the script

Execute the script in the dialog

Definition at line 156 of file scriptdialog.cpp.

Referenced by executePerl(), and executePython().

{
    Glib::ustring script = scriptText.get_buffer()->get_text(true);
    Glib::ustring output;
    Glib::ustring error;
    Inkscape::Extension::Script::InkscapeScript engine;
    bool ok = engine.interpretScript(script, output, error, lang);
    outputText.get_buffer()->set_text(output);
    errorText.get_buffer()->set_text(error);
    if (!ok)
        {
        //do we want something here?
        }
}


Generated by  Doxygen 1.6.0   Back to index