Mercurial > hg > svgui
diff widgets/Pane.h @ 13:01849cd277e6
* Hook up tool selection buttons to switch the cursor mode
* Implement simple and multi-selection, snapping to the resolution
of the current layer. You can't actually do anything with a selection yet
author | Chris Cannam |
---|---|
date | Mon, 23 Jan 2006 17:02:57 +0000 |
parents | 06bba0b79b1c |
children | 0183ebb725ca |
line wrap: on
line diff
--- a/widgets/Pane.h Thu Jan 19 17:59:11 2006 +0000 +++ b/widgets/Pane.h Mon Jan 23 17:02:57 2006 +0000 @@ -16,6 +16,7 @@ #include "base/ZoomConstraint.h" #include "base/View.h" +#include "base/Selection.h" class QWidget; class QPaintEvent; @@ -40,6 +41,9 @@ signals: void paneInteractedWith(); +public slots: + virtual void toolModeChanged(); + protected: virtual void paintEvent(QPaintEvent *e); virtual void mousePressEvent(QMouseEvent *e); @@ -55,8 +59,10 @@ QPoint m_mousePos; bool m_clickedInRange; bool m_shiftPressed; + bool m_ctrlPressed; size_t m_dragCentreFrame; bool m_centreLineVisible; + size_t m_selectionStartFrame; }; #endif