projects
/
ardour.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
fix serious logic error in re-ordering treeviews after route order keys/RIDs change...
[ardour.git]
/
gtk2_ardour
/
piano_roll_header.h
diff --git
a/gtk2_ardour/piano_roll_header.h
b/gtk2_ardour/piano_roll_header.h
index 8333284ad99b0c64df4cc0df9c747e667cf38d77..bb87d36e4dd341917dc9b929a5545d18650e1d25 100644
(file)
--- a/
gtk2_ardour/piano_roll_header.h
+++ b/
gtk2_ardour/piano_roll_header.h
@@
-1,5
+1,6
@@
/*
/*
- Copyright (C) 2008 Paul Davis
+ Copyright (C) 2008 Paul Davis
+ Author: Audan Holland ??
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
@@
-19,7
+20,7
@@
#ifndef __ardour_piano_roll_header_h__
#define __ardour_piano_roll_header_h__
#ifndef __ardour_piano_roll_header_h__
#define __ardour_piano_roll_header_h__
-#include
<ardour/types.h>
+#include
"ardour/types.h"
#include <gtkmm/drawingarea.h>
#include <gtkmm/drawingarea.h>
@@
-29,6
+30,7
@@
namespace ARDOUR {
class MidiTimeAxisView;
class MidiStreamView;
class MidiTimeAxisView;
class MidiStreamView;
+class PublicEditor;
class PianoRollHeader : public Gtk::DrawingArea {
public:
class PianoRollHeader : public Gtk::DrawingArea {
public:
@@
-51,12
+53,17
@@
public:
Color();
Color(double _r, double _g, double _b);
inline void set(const Color& c);
Color();
Color(double _r, double _g, double _b);
inline void set(const Color& c);
-
+
double r;
double g;
double b;
};
double r;
double g;
double b;
};
+ sigc::signal<void,uint8_t> SetNoteSelection;
+ sigc::signal<void,uint8_t> AddNoteSelection;
+ sigc::signal<void,uint8_t> ToggleNoteSelection;
+ sigc::signal<void,uint8_t> ExtendNoteSelection;
+
private:
static Color white;
static Color white_highlight;
private:
static Color white;
static Color white_highlight;
@@
-87,9
+94,11
@@
private:
void send_note_on(uint8_t note);
void send_note_off(uint8_t note);
void send_note_on(uint8_t note);
void send_note_off(uint8_t note);
+ void reset_clicked_note(uint8_t, bool invalidate = true);
+
MidiStreamView& _view;
MidiStreamView& _view;
-
ARDOUR::Byte
_event[3];
+
uint8_t
_event[3];
Cairo::RefPtr<Cairo::Context> cc;
bool _active_notes[128];
Cairo::RefPtr<Cairo::Context> cc;
bool _active_notes[128];
@@
-97,9
+106,11
@@
private:
uint8_t _clicked_note;
double _grab_y;
bool _dragging;
uint8_t _clicked_note;
double _grab_y;
bool _dragging;
-
+
double _note_height;
double _black_note_width;
double _note_height;
double _black_note_width;
+
+ PublicEditor& editor() const;
};
#endif /* __ardour_piano_roll_header_h__ */
};
#endif /* __ardour_piano_roll_header_h__ */