summaryrefslogtreecommitdiff
path: root/muse2/muse/midiedit/ecanvas.h
diff options
context:
space:
mode:
Diffstat (limited to 'muse2/muse/midiedit/ecanvas.h')
-rw-r--r--muse2/muse/midiedit/ecanvas.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/muse2/muse/midiedit/ecanvas.h b/muse2/muse/midiedit/ecanvas.h
index a278fb19..86e1c200 100644
--- a/muse2/muse/midiedit/ecanvas.h
+++ b/muse2/muse/midiedit/ecanvas.h
@@ -51,6 +51,8 @@ class EventCanvas : public Canvas {
MidiEditor* editor;
unsigned start_tick, end_tick;
int curVelo;
+ bool _steprec;
+ bool _midiin;
void updateSelection();
virtual void addItem(Part*, Event&) = 0;
@@ -59,6 +61,8 @@ class EventCanvas : public Canvas {
public slots:
void redrawGrid() { redraw(); }
+ void setSteprec(bool f) { _steprec = f; }
+ void setMidiin(bool f) { _midiin = f; }
signals:
void pitchChanged(int); // current cursor position
@@ -71,6 +75,8 @@ class EventCanvas : public Canvas {
MidiTrack* track() const;
unsigned start() const { return start_tick; }
unsigned end() const { return end_tick; }
+ bool midiin() const { return _midiin; }
+ bool steprec() const { return _steprec; }
QString getCaption() const;
void songChanged(int);
void range(int* s, int* e) const { *s = start_tick; *e = end_tick; }