comparison layer/Layer.h @ 255:e175ade2d6b0

* double-click in navigate mode relocates the centre frame (closing #1734854)
author Chris Cannam
date Wed, 13 Jun 2007 09:19:33 +0000
parents 28c8e8e3c537
children 6d113226bb4c
comparison
equal deleted inserted replaced
254:a2ae3d93c645 255:e175ade2d6b0
154 154
155 virtual void editStart(View *, QMouseEvent *) { } 155 virtual void editStart(View *, QMouseEvent *) { }
156 virtual void editDrag(View *, QMouseEvent *) { } 156 virtual void editDrag(View *, QMouseEvent *) { }
157 virtual void editEnd(View *, QMouseEvent *) { } 157 virtual void editEnd(View *, QMouseEvent *) { }
158 158
159 virtual void editOpen(View *, QMouseEvent *) { } // on double-click 159 /**
160 * Open an editor on the item under the mouse (e.g. on
161 * double-click). If there is no item or editing is not
162 * supported, return false.
163 */
164 virtual bool editOpen(View *, QMouseEvent *) { return false; }
160 165
161 virtual void moveSelection(Selection, size_t /* newStartFrame */) { } 166 virtual void moveSelection(Selection, size_t /* newStartFrame */) { }
162 virtual void resizeSelection(Selection, Selection /* newSize */) { } 167 virtual void resizeSelection(Selection, Selection /* newSize */) { }
163 virtual void deleteSelection(Selection) { } 168 virtual void deleteSelection(Selection) { }
164 169