Mercurial > hg > svcore
diff base/Layer.h @ 35:0164c8d3023b
* Rejig project file a bit to do pkg-config detection &c
and change some HAVE_* symbol names accordingly
* Add selection move/resize/delete
* First stubs for add layer / pane commands
author | Chris Cannam |
---|---|
date | Wed, 01 Mar 2006 18:13:01 +0000 |
parents | 5e28cbb431d0 |
children | 935a2419a77c |
line wrap: on
line diff
--- a/base/Layer.h Mon Feb 27 17:34:41 2006 +0000 +++ b/base/Layer.h Wed Mar 01 18:13:01 2006 +0000 @@ -13,6 +13,7 @@ #include "PropertyContainer.h" #include "XmlExportable.h" +#include "Selection.h" #include <QObject> #include <QRect> @@ -40,6 +41,7 @@ virtual ~Layer(); virtual const Model *getModel() const = 0; + virtual const View *getView() const { return m_view; } virtual const ZoomConstraint *getZoomConstraint() const { return 0; } virtual void paint(QPainter &, QRect) const = 0; @@ -119,6 +121,11 @@ virtual void editOpen(QMouseEvent *) { } // on double-click + virtual void moveSelection(Selection s, size_t newStartFrame) { } + virtual void resizeSelection(Selection s, Selection newSize) { } + virtual void deleteSelection(Selection s) { } + + // Text mode: // // Label nearest feature. We need to get the feature coordinates