Code

convert almost all libnrtype to Geom::
[inkscape.git] / src / ui / dialog / transformation.h
index 68faeb45ac8c55e0ad59ebf45ebbec73714fbb4f..e64353f5a1e6bde0e5fb904b8177703a7dbef503 100644 (file)
@@ -19,7 +19,7 @@
 
 
 
-#include "dialog.h"
+#include "ui/widget/panel.h"
 #include "application/application.h"
 #include "ui/widget/notebook-page.h"
 #include "ui/widget/scalar-unit.h"
@@ -38,7 +38,7 @@ namespace Dialog {
 
 
 
-class Transformation : public Dialog
+class Transformation : public UI::Widget::Panel
 {
 
 public:
@@ -53,45 +53,44 @@ public:
      */
     virtual ~Transformation();
 
-
     /**
      * Factory method.  Create an instance of this class/interface
      */
-    static Transformation *create()
-        { return new Transformation(); }
+    static Transformation &getInstance()
+        { return *new Transformation(); }
 
 
     /**
      * Show the Move panel
      */
     void setPageMove()
-        { present(PAGE_MOVE);      }
+        { presentPage(PAGE_MOVE);      }
 
 
     /**
      * Show the Scale panel
      */
     void setPageScale()
-        { present(PAGE_SCALE);     }
+        { presentPage(PAGE_SCALE);     }
 
 
     /**
      * Show the Rotate panel
      */
     void setPageRotate()
-        { present(PAGE_ROTATE);    }
+        { presentPage(PAGE_ROTATE);    }
 
     /**
      * Show the Skew panel
      */
     void setPageSkew()
-        { present(PAGE_SKEW);      }
+        { presentPage(PAGE_SKEW);      }
 
     /**
      * Show the Transform panel
      */
     void setPageTransform()
-        { present(PAGE_TRANSFORM); }
+        { presentPage(PAGE_TRANSFORM); }
 
 
     int getCurrentPage()
@@ -148,7 +147,7 @@ protected:
     void layoutPageTransform();
 
     virtual void _apply();
-    void present(PageType page);
+    void presentPage(PageType page);
 
     void onSelectionChanged(Inkscape::NSApplication::Application *inkscape,
                             Inkscape::Selection *selection);