~ubuntu-branches/ubuntu/trusty/muse/trusty

« back to all changes in this revision

Viewing changes to muse/ctrl/ctrlcanvas.h

  • Committer: Package Import Robot
  • Author(s): Alessio Treglia
  • Date: 2013-08-28 16:25:57 UTC
  • mto: This revision was merged to the branch mainline in revision 27.
  • Revision ID: package-import@ubuntu.com-20130828162557-knls3ip7j262eepx
Tags: upstream-2.1.2
ImportĀ upstreamĀ versionĀ 2.1.2

Show diffs side-by-side

added added

removed removed

Lines of Context:
32
32
#include "midictrl.h"
33
33
#include "event.h"
34
34
 
 
35
class QWheelEvent;
35
36
class QMouseEvent;
36
37
class QEvent;
37
38
class QWidget;
118
119
      void viewMousePressEvent(QMouseEvent* event);
119
120
      void viewMouseMoveEvent(QMouseEvent*);
120
121
      void viewMouseReleaseEvent(QMouseEvent*);
 
122
      virtual void wheelEvent(QWheelEvent*);
121
123
 
122
124
      virtual void draw(QPainter&, const QRect&);
123
125
      virtual void pdraw(QPainter&, const QRect&);
155
157
      MusEGui::Tool tool;
156
158
      unsigned pos[3];
157
159
      int curDrumPitch;    //Used by the drum-editor to view velocity of only one key (one drum)
 
160
      bool _perNoteVeloMode;
158
161
      
159
162
      void leaveEvent(QEvent*e);
160
163
      QPoint raster(const QPoint&) const;
184
187
      void followEvent(int);
185
188
      void xposChanged(unsigned);
186
189
      void yposChanged(int);
 
190
      void redirectWheelEvent(QWheelEvent*);
187
191
 
188
192
   public:
189
193
      CtrlCanvas(MidiEditor*, QWidget* parent, int,
190
194
         const char* name = 0, CtrlPanel* pnl = 0);
191
195
      ~CtrlCanvas();   
192
 
      void setPanel(CtrlPanel* pnl) { _panel = pnl; }
 
196
      void setPanel(CtrlPanel* pnl);
193
197
      MusECore::MidiCtrlValList* ctrlValList() { return ctrl; }
194
198
      MusECore::MidiController* controller() { return _controller; }
195
199
      MusECore::MidiTrack* track() const { return curTrack; }
196
200
      int getCurDrumPitch() const { return curDrumPitch; }
 
201
      bool perNoteVeloMode() const { return _perNoteVeloMode; }
 
202
      void setPerNoteVeloMode(bool);
197
203
      };
198
204
 
199
205
} // namespace MusEGui