diff options
author | Paul Davis <paul@linuxaudiosystems.com> | 2010-08-02 21:52:21 +0000 |
---|---|---|
committer | Paul Davis <paul@linuxaudiosystems.com> | 2010-08-02 21:52:21 +0000 |
commit | e0edca5a2abd65d869348e4bddb9d07ecc156450 (patch) | |
tree | 3ebb98c670729ee017b4245c4e003f2d013df773 /gtk2_ardour/step_entry.h | |
parent | 8b0354f91003582c4eafc4f2e1ef7ab2daba22e7 (diff) |
first, incomplete pass at step entry dialog, along with various SVG and PNG files for notes and dynamics notation
git-svn-id: svn://localhost/ardour2/branches/3.0@7529 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'gtk2_ardour/step_entry.h')
-rw-r--r-- | gtk2_ardour/step_entry.h | 84 |
1 files changed, 84 insertions, 0 deletions
diff --git a/gtk2_ardour/step_entry.h b/gtk2_ardour/step_entry.h new file mode 100644 index 0000000000..cabd9eba47 --- /dev/null +++ b/gtk2_ardour/step_entry.h @@ -0,0 +1,84 @@ +/* + 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. + +*/ + +#ifndef __gtk2_ardour_step_entry_h__ +#define __gtk2_ardour_step_entry_h__ + +#include <gtkmm/togglebutton.h> +#include <gtkmm/radiobutton.h> +#include <gtkmm/spinbutton.h> +#include <gtkmm/box.h> +#include <gtkmm/adjustment.h> + +#include "ardour_dialog.h" +#include "gtk_pianokeyboard.h" + +class MidiTimeAxisView; + +class StepEntry : public ArdourDialog +{ + public: + StepEntry (MidiTimeAxisView&); + ~StepEntry (); + + void note_off_event_handler (int note); + + private: + Gtk::VBox packer; + Gtk::HBox upper_box; + Gtk::HBox note_length_box; + Gtk::HBox note_velocity_box; + + Gtk::ToggleButton chord_button; + Gtk::ToggleButton triplet_button; + Gtk::ToggleButton dot_button; + + Gtk::Button sustain_button; + Gtk::Button rest_button; + + Gtk::RadioButton length_1_button; + Gtk::RadioButton length_2_button; + Gtk::RadioButton length_4_button; + Gtk::RadioButton length_8_button; + Gtk::RadioButton length_12_button; + Gtk::RadioButton length_16_button; + Gtk::RadioButton length_32_button; + Gtk::RadioButton length_64_button; + + Gtk::RadioButton velocity_ppp_button; + Gtk::RadioButton velocity_pp_button; + Gtk::RadioButton velocity_p_button; + Gtk::RadioButton velocity_mp_button; + Gtk::RadioButton velocity_mf_button; + Gtk::RadioButton velocity_f_button; + Gtk::RadioButton velocity_ff_button; + Gtk::RadioButton velocity_fff_button; + + Gtk::Adjustment channel_adjustment; + Gtk::SpinButton channel_spinner; + + PianoKeyboard* _piano; + Gtk::Widget* piano; + MidiTimeAxisView* _mtv; + + void rest_click (); + void sustain_click (); +}; + +#endif /* __gtk2_ardour_step_entry_h__ */ |