Code

Block "special" solid gradients from gradient F&S dialog.
[inkscape.git] / src / ui / dialog / scriptdialog.cpp
index ff075c1868da82da7d4992a4297423780f6667c5..0e8a23baf75af137e8caf0c9dd7ea332b203f694 100644 (file)
@@ -1,7 +1,7 @@
-/**
- *  Dialog for executing and monitoring script execution
- *  
- * Author:  
+/** @file
+ * @brief Dialog for executing and monitoring script execution
+ */
+/* Author:  
  *   Bob Jamison
  *
  * Copyright (C) 2004-2008 Authors
@@ -115,8 +115,10 @@ static const char *defaultCodeStr =
     " * This is some example Javascript.\n"
     " * Try 'Execute Javascript'\n"
     " */\n"
+    "importPackage(javax.swing);\n"
     "function sayHello() {\n"
-    "  println('Hello, world!');\n"
+    "  JOptionPane.showMessageDialog(null, 'Hello, world!',\n"
+       "     'Welcome to Inkscape', JOptionPane.WARNING_MESSAGE);\n"
     "}\n"
     "\n"
     "sayHello();\n"
@@ -268,9 +270,13 @@ ScriptDialog &ScriptDialog::getInstance()
 } //namespace UI
 } //namespace Inkscape
 
-//#########################################################################
-//## E N D    O F    F I L E
-//#########################################################################
-
-
-
+/*
+  Local Variables:
+  mode:c++
+  c-file-style:"stroustrup"
+  c-file-offsets:((innamespace . 0)(inline-open . 0)(case-label . +))
+  indent-tabs-mode:nil
+  fill-column:99
+  End:
+*/
+// vim: filetype=cpp:expandtab:shiftwidth=4:tabstop=8:softtabstop=4:encoding=utf-8:textwidth=99 :