various fixes to MidiRegionView selection handling, key handling, drawing of ghost...
[ardour2.git] / gtk2_ardour / transpose_dialog.h
blobb2f41cec608b1bfc92f991d0b78d368760e3a006
1 /*
2 Copyright (C) 2011 Paul Davis
3 Author: Carl Hetherington <cth@carlh.net>
5 This program is free software; you can redistribute it and/or modify
6 it under the terms of the GNU General Public License as published by
7 the Free Software Foundation; either version 2 of the License, or
8 (at your option) any later version.
10 This program is distributed in the hope that it will be useful,
11 but WITHOUT ANY WARRANTY; without even the implied warranty of
12 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 GNU General Public License for more details.
15 You should have received a copy of the GNU General Public License
16 along with this program; if not, write to the Free Software
17 Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
21 #include <gtkmm/spinbutton.h>
22 #include "ardour_dialog.h"
24 /** A dialog box to select a transposition to apply to a MIDI region.
25 * It asks for octaves and semitones, with the transposition being
26 * the sum of the two.
29 class TransposeDialog : public ArdourDialog
31 public:
32 TransposeDialog ();
34 int semitones () const;
36 private:
37 Gtk::Adjustment _octaves_adjustment;
38 Gtk::Adjustment _semitones_adjustment;
39 Gtk::SpinButton _octaves_spinner;
40 Gtk::SpinButton _semitones_spinner;