update drobilla's fascistic dir-locals.el to force emacs users into whitespace submis...
[ardour.git] / gtk2_ardour / step_entry.h
index 0fd7d6f12180094c0bdb59a52df11b27bb6cc118..e534c83e0148235fe57433cd97325c1350290b74 100644 (file)
 #include "ardour_dialog.h"
 #include "gtk_pianokeyboard.h"
 
-class MidiTimeAxisView;
+class StepEditor;
 
 class StepEntry : public ArdourDialog
 {
   public:
-        StepEntry (MidiTimeAxisView&);
+        StepEntry (StepEditor&);
         ~StepEntry ();
 
         void note_off_event_handler (int note);
         void rest_event_handler ();
 
-        Evoral::MusicalTime note_length() const;
+        Evoral::MusicalTime note_length();
         uint8_t note_velocity() const;
         uint8_t note_channel() const;
         
@@ -58,18 +58,27 @@ class StepEntry : public ArdourDialog
 
         Gtk::ToggleButton chord_button;
         Gtk::ToggleButton triplet_button;
-        Gtk::ToggleButton dot_button;
+        Gtk::ToggleButton dot0_button;
+        Gtk::ToggleButton dot1_button;
+        Gtk::ToggleButton dot2_button;
+        Gtk::ToggleButton dot3_button;
+        Gtk::Adjustment   dot_adjustment;
+        Gtk::VBox dot_box1;
+        Gtk::VBox dot_box2;
         Gtk::ToggleButton restart_button;
 
         Gtk::VBox   resync_box;
         Gtk::Button beat_resync_button;
         Gtk::Button bar_resync_button;
+        Gtk::Button resync_button;
 
         Gtk::Button sustain_button;
         Gtk::Button rest_button;
         Gtk::Button grid_rest_button;
         Gtk::VBox   rest_box;
 
+        Gtk::Button back_button;
+
         Gtk::RadioButton length_1_button;
         Gtk::RadioButton length_2_button;
         Gtk::RadioButton length_4_button;
@@ -115,15 +124,10 @@ class StepEntry : public ArdourDialog
 
         PianoKeyboard* _piano;
         Gtk::Widget* piano;
-        MidiTimeAxisView* _mtv;
+        StepEditor*   se;
 
         void bank_click ();
         void program_click ();
-        void rest_click ();
-        void grid_rest_click ();
-        void sustain_click ();
-        void chord_toggled ();
-        void triplet_toggled ();
         void beat_resync_click ();
         void bar_resync_click ();
 
@@ -163,6 +167,42 @@ class StepEntry : public ArdourDialog
 
         void load_bindings ();
         Gtkmm2ext::Bindings  bindings;
+
+        void inc_note_velocity ();
+        void dec_note_velocity ();
+        void next_note_velocity ();
+        void prev_note_velocity ();
+
+        void inc_note_length ();
+        void dec_note_length ();
+        void next_note_length ();
+        void prev_note_length ();
+
+        void next_octave ();
+        void prev_octave ();
+
+        void octave_n (int n);
+        void octave_0 () { octave_n (0); }
+        void octave_1 () { octave_n (1); }
+        void octave_2 () { octave_n (2); }
+        void octave_3 () { octave_n (3); }
+        void octave_4 () { octave_n (4); }
+        void octave_5 () { octave_n (5); }
+        void octave_6 () { octave_n (6); }
+        void octave_7 () { octave_n (7); }
+        void octave_8 () { octave_n (8); }
+        void octave_9 () { octave_n (9); }
+        void octave_10 () { octave_n (10); }
+
+        void dot_change (GtkAction*);
+        void dot_value_change ();
+
+        void toggle_triplet();
+        void toggle_chord();
+        
+        void do_sustain ();
+        void back();
+        void sync_to_edit_point ();
 };
 
 #endif /* __gtk2_ardour_step_entry_h__ */