Fix crash when closing session, recursive mon-section removal
[ardour.git] / gtk2_ardour / transpose_dialog.h
1 /*
2     Copyright (C) 2011 Paul Davis
3     Author: Carl Hetherington <cth@carlh.net>
4
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.
9
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.
14
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.
18
19 */
20
21 #include <gtkmm/spinbutton.h>
22 #include "ardour_dialog.h"
23
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.
27  */
28
29 class TransposeDialog : public ArdourDialog
30 {
31 public:
32         TransposeDialog ();
33
34         int semitones () const;
35
36 private:
37         Gtk::Adjustment _octaves_adjustment;
38         Gtk::Adjustment _semitones_adjustment;
39         Gtk::SpinButton _octaves_spinner;
40         Gtk::SpinButton _semitones_spinner;
41 };