#include <gtkmm/adjustment.h>
#include <gtkmm2ext/bindings.h>
-#include "ardour_dialog.h"
+#include "ardour_window.h"
#include "gtk_pianokeyboard.h"
class StepEditor;
-class StepEntry : public ArdourDialog
+class StepEntry : public ArdourWindow
{
public:
StepEntry (StepEditor&);
Evoral::MusicalTime note_length();
uint8_t note_velocity() const;
uint8_t note_channel() const;
-
+
int current_octave () const { return (int) floor (octave_adjustment.get_value()); }
-
+
private:
Evoral::MusicalTime _current_note_length;
uint8_t _current_note_velocity;
void insert_fsharp ();
void insert_g ();
void insert_gsharp ();
-
+
void note_length_change (GtkAction*);
void note_velocity_change (GtkAction*);
void toggle_triplet();
void toggle_chord();
-
+
void do_sustain ();
void back();
void sync_to_edit_point ();