Code

noop: rename a local var
[inkscape.git] / src / ui / dialog / scriptdialog.h
index 74bc5d00746abb42c6a4008ceca947c856b8629e..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,14 +36,15 @@ class ScriptDialog : public Dialog
     /**
      * Constructor
      */
-    ScriptDialog() : Dialog ("dialogs.script", SP_VERB_DIALOG_SCRIPT)
-        {}
+    ScriptDialog() : 
+     UI::Widget::Panel("", "/dialogs/script", SP_VERB_DIALOG_SCRIPT)
+    {}
 
 
     /**
      * Factory method
      */
-    static ScriptDialog *create();
+    static ScriptDialog &getInstance();
 
     /**
      * Destructor
@@ -49,6 +52,9 @@ class ScriptDialog : public Dialog
     virtual ~ScriptDialog() {};
 
 
+    private:
+        int _max_dialog_width;
+        int _max_dialog_height;
 
 
 }; // class ScriptDialog
@@ -58,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 :