2010-08-13 22:00:50 -04:00
|
|
|
/*
|
|
|
|
Copyright (C) 2010 Paul Davis
|
|
|
|
|
|
|
|
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
|
|
|
|
the Free Software Foundation; either version 2 of the License, or
|
|
|
|
(at your option) any later version.
|
|
|
|
|
|
|
|
This program is distributed in the hope that it will be useful,
|
|
|
|
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
GNU General Public License for more details.
|
|
|
|
|
|
|
|
You should have received a copy of the GNU General Public License
|
|
|
|
along with this program; if not, write to the Free Software
|
|
|
|
Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
|
|
|
|
|
|
|
|
*/
|
|
|
|
|
|
|
|
#include <gtkmm/spinbutton.h>
|
|
|
|
#include "ardour/midi_model.h"
|
|
|
|
#include "ardour_dialog.h"
|
|
|
|
#include "audio_clock.h"
|
|
|
|
|
|
|
|
class MidiRegionView;
|
2013-04-04 00:32:52 -04:00
|
|
|
class NoteBase;
|
2010-08-13 22:00:50 -04:00
|
|
|
|
|
|
|
class EditNoteDialog : public ArdourDialog
|
|
|
|
{
|
|
|
|
public:
|
2013-05-02 20:21:54 -04:00
|
|
|
EditNoteDialog (MidiRegionView* rv, set<NoteBase*> n);
|
2010-08-13 22:00:50 -04:00
|
|
|
|
2013-05-02 18:13:35 -04:00
|
|
|
void done (int);
|
|
|
|
|
|
|
|
private:
|
2010-08-13 22:00:50 -04:00
|
|
|
MidiRegionView* _region_view;
|
2013-04-04 00:32:52 -04:00
|
|
|
std::set<NoteBase*> _events;
|
2010-08-13 22:00:50 -04:00
|
|
|
Gtk::SpinButton _channel;
|
2012-06-08 21:51:34 -04:00
|
|
|
Gtk::CheckButton _channel_all;
|
2010-08-13 22:00:50 -04:00
|
|
|
Gtk::SpinButton _pitch;
|
2012-06-08 21:51:34 -04:00
|
|
|
Gtk::CheckButton _pitch_all;
|
2010-08-13 22:00:50 -04:00
|
|
|
Gtk::SpinButton _velocity;
|
2012-06-08 21:51:34 -04:00
|
|
|
Gtk::CheckButton _velocity_all;
|
2010-08-13 22:00:50 -04:00
|
|
|
AudioClock _time_clock;
|
2012-06-08 21:51:34 -04:00
|
|
|
Gtk::CheckButton _time_all;
|
2010-08-13 22:00:50 -04:00
|
|
|
AudioClock _length_clock;
|
2012-06-08 21:51:34 -04:00
|
|
|
Gtk::CheckButton _length_all;
|
2010-08-13 22:00:50 -04:00
|
|
|
};
|