index 68faeb45ac8c55e0ad59ebf45ebbec73714fbb4f..e64353f5a1e6bde0e5fb904b8177703a7dbef503 100644 (file)
-#include "dialog.h"
+#include "ui/widget/panel.h"
#include "application/application.h"
#include "ui/widget/notebook-page.h"
#include "ui/widget/scalar-unit.h"
-class Transformation : public Dialog
+class Transformation : public UI::Widget::Panel
{
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()
void layoutPageTransform();
virtual void _apply();
- void present(PageType page);
+ void presentPage(PageType page);
void onSelectionChanged(Inkscape::NSApplication::Application *inkscape,
Inkscape::Selection *selection);