comparison base/Layer.h @ 41:2b6412c1e724

* Further MainWindow -> Document refactoring
author Chris Cannam
date Wed, 08 Mar 2006 12:38:28 +0000
parents b2d1a61ab916
children bac8b14ab355
comparison
equal deleted inserted replaced
40:b2d1a61ab916 41:2b6412c1e724
41 public: 41 public:
42 Layer(); 42 Layer();
43 virtual ~Layer(); 43 virtual ~Layer();
44 44
45 virtual const Model *getModel() const = 0; 45 virtual const Model *getModel() const = 0;
46 virtual Model *getModel() {
47 return const_cast<Model *>(const_cast<const Layer *>(this)->getModel());
48 }
49
46 virtual const ZoomConstraint *getZoomConstraint() const { return 0; } 50 virtual const ZoomConstraint *getZoomConstraint() const { return 0; }
47 virtual void paint(View *, QPainter &, QRect) const = 0; 51 virtual void paint(View *, QPainter &, QRect) const = 0;
48 52
49 enum VerticalPosition { 53 enum VerticalPosition {
50 PositionTop, PositionMiddle, PositionBottom 54 PositionTop, PositionMiddle, PositionBottom