~ubuntu-branches/ubuntu/quantal/muse/quantal

« back to all changes in this revision

Viewing changes to muse/midiedit/ecanvas.h

  • Committer: Package Import Robot
  • Author(s): Alessio Treglia
  • Date: 2012-07-18 16:07:06 UTC
  • mto: (10.1.11 sid) (1.1.12)
  • mto: This revision was merged to the branch mainline in revision 31.
  • Revision ID: package-import@ubuntu.com-20120718160706-yc6332ishfcq7b7g
ImportĀ upstreamĀ versionĀ 2.0

Show diffs side-by-side

added added

removed removed

Lines of Context:
57
57
 
58
58
class EventCanvas : public Canvas {
59
59
      Q_OBJECT
 
60
      
60
61
      virtual void leaveEvent(QEvent*e);
61
62
      virtual void enterEvent(QEvent*e);
62
 
      
63
63
      virtual void mouseMove(QMouseEvent* event);
64
64
 
65
65
   protected:
72
72
 
73
73
      void updateSelection();
74
74
      virtual CItem* addItem(MusECore::Part*, MusECore::Event&) = 0;
75
 
      // Added by T356.
76
75
      virtual QPoint raster(const QPoint&) const;
77
76
      virtual MusECore::Undo moveCanvasItems(CItemList&, int, int, DragType) = 0;
78
77
      virtual MusECore::UndoOp moveItem(CItem*, const QPoint&, DragType) = 0;
86
85
   signals:
87
86
      void pitchChanged(int);       // current cursor position
88
87
      void timeChanged(unsigned);
89
 
      void selectionChanged(int, MusECore::Event&, MusECore::Part*);
 
88
      void selectionChanged(int /*tick*/ , MusECore::Event&, MusECore::Part*, bool /*update*/);
90
89
      void enterCanvas();
91
90
 
92
91
   public:
102
101
      void playEvents(bool flag) { _playEvents = flag; }
103
102
      void selectAtTick(unsigned int tick);
104
103
      void viewDropEvent(QDropEvent* event);
105
 
      virtual void modifySelected(NoteInfo::ValType, int) {}
 
104
      virtual void modifySelected(NoteInfo::ValType, int /*val*/, bool /*delta_mode*/ = true) {}
106
105
      virtual void keyPress(QKeyEvent*);
107
106
      };
108
107