Code

Fix some console warning spam (most cannot be fixed, unfortunately)
[inkscape.git] / src / ui / dialog / scriptdialog.h
index 00680d4312330410d134e3e775c6777b35ee65c0..d0021ce68890659de12f1fab0bfd862b04426568 100644 (file)
@@ -1,10 +1,10 @@
-#ifndef __SCRIPTDIALOG_H__
-#define __SCRIPTDIALOG_H__
-/*
- * This dialog is for launching scripts whose main purpose if
- * the scripting of Inkscape itself.
+/** @file
+ * @brief Script dialog
  *
- * Authors:
+ * This dialog is for launching scripts whose main purpose is
+ * the scripting of Inkscape itself.
+ */
+/* Authors:
  *   Bob Jamison
  *   Other dudes from The Inkscape Organization
  *
  * Released under GNU GPL, read the file 'COPYING' for more information
  */
 
+#ifndef __SCRIPTDIALOG_H__
+#define __SCRIPTDIALOG_H__
 
-#include "dialog.h"
+#include "ui/widget/panel.h"
 #include "verbs.h"
 
 namespace Inkscape {
@@ -25,7 +27,7 @@ namespace Dialog {
 /**
  * A script editor, loader, and executor
  */
-class ScriptDialog : public Dialog
+class ScriptDialog : public UI::Widget::Panel
 {
 
     public:
@@ -34,15 +36,15 @@ class ScriptDialog : public Dialog
     /**
      * Constructor
      */
-    ScriptDialog(Behavior::BehaviorFactory behavior_factory) : 
-     Dialog (behavior_factory, "dialogs.script", SP_VERB_DIALOG_SCRIPT)
+    ScriptDialog() : 
+     UI::Widget::Panel("", "/dialogs/script", SP_VERB_DIALOG_SCRIPT)
     {}
 
 
     /**
      * Factory method
      */
-    static ScriptDialog *create(Behavior::BehaviorFactory behavior_factory);
+    static ScriptDialog &getInstance();
 
     /**
      * Destructor
@@ -62,8 +64,15 @@ class ScriptDialog : public Dialog
 } //namespace UI
 } //namespace Inkscape
 
-
-
-
 #endif /* __DEBUGDIALOG_H__ */
 
+/*
+  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 :