diff options
-rw-r--r-- | dw/ruler.cc | 9 | ||||
-rw-r--r-- | dw/ruler.hh | 3 |
2 files changed, 12 insertions, 0 deletions
diff --git a/dw/ruler.cc b/dw/ruler.cc index 8b647548..248a6878 100644 --- a/dw/ruler.cc +++ b/dw/ruler.cc @@ -26,8 +26,17 @@ namespace dw { +int Ruler::CLASS_ID = -1; + Ruler::Ruler () { + DBG_OBJ_CREATE ("dw::Ruler"); + registerName ("dw::Image", &CLASS_ID); +} + +Ruler::~Ruler () +{ + DBG_OBJ_DELETE (); } void Ruler::sizeRequestImpl (core::Requisition *requisition) diff --git a/dw/ruler.hh b/dw/ruler.hh index 1f3491bc..63662383 100644 --- a/dw/ruler.hh +++ b/dw/ruler.hh @@ -23,7 +23,10 @@ protected: void draw (core::View *view, core::Rectangle *area); public: + static int CLASS_ID; + Ruler (); + ~Ruler (); bool isBlockLevel (); |