2010-08-13 22:00:50 -04:00
|
|
|
/*
|
2019-08-02 17:26:43 -04:00
|
|
|
* Copyright (C) 2010-2012 Carl Hetherington <carl@carlh.net>
|
|
|
|
* Copyright (C) 2013-2015 Paul Davis <paul@linuxaudiosystems.com>
|
|
|
|
* Copyright (C) 2014 David Robillard <d@drobilla.net>
|
|
|
|
*
|
|
|
|
* 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.,
|
|
|
|
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
|
|
|
|
*/
|
2010-08-13 22:00:50 -04:00
|
|
|
|
|
|
|
#include <gtkmm/spinbutton.h>
|
|
|
|
#include "ardour_dialog.h"
|
|
|
|
#include "audio_clock.h"
|
|
|
|
|
2024-01-04 21:07:52 -05:00
|
|
|
class MidiView;
|
2013-04-04 00:32:52 -04:00
|
|
|
class NoteBase;
|
2010-08-13 22:00:50 -04:00
|
|
|
|
|
|
|
class EditNoteDialog : public ArdourDialog
|
|
|
|
{
|
|
|
|
public:
|
2024-01-04 21:07:52 -05:00
|
|
|
EditNoteDialog (MidiView* rv, std::set<NoteBase*> n);
|
2010-08-13 22:00:50 -04:00
|
|
|
|
2014-11-30 18:27:04 -05:00
|
|
|
void done (int);
|
2015-10-04 14:51:05 -04:00
|
|
|
|
2013-05-02 18:13:35 -04:00
|
|
|
private:
|
2024-01-04 21:07:52 -05:00
|
|
|
MidiView* _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
|
|
|
};
|