/*
- Copyright (C) 2009 Paul Davis
+ Copyright (C) 2009 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
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 <cmath>
#include "evoral/midi_util.h"
+#include "evoral/Note.hpp"
#include "ardour/beats_frames_converter.h"
+#include "ardour/midi_model.h"
#include "ardour/midi_region.h"
+#include "ardour/midi_source.h"
#include "ardour/session.h"
#include "ardour/tempo.h"
using namespace ARDOUR;
MidiListEditor::MidiListEditor (Session* s, boost::shared_ptr<MidiRegion> r)
- : ArdourDialog (r->name(), false, false)
+ : ArdourWindow (r->name())
, region (r)
{
/* We do not handle nested sources/regions. Caller should have tackled this */
view.show ();
scroller.show ();
- get_vbox()->pack_start (scroller);
+ add (scroller);
set_size_request (400, 400);
}