20 #ifndef __gtk2_ardour_beatbox_gui_h__
21 #define __gtk2_ardour_beatbox_gui_h__
40 #include "canvas/constraint_packer.h"
72 class SequencerView :
public ArdourCanvas::ConstraintPacker,
public sigc::trackable {
255 BBGUI (std::shared_ptr<ARDOUR::BeatBox> bb);
266 std::shared_ptr<ARDOUR::BeatBox>
bbox;
Declaration of the main canvas classes.
boost::rational< int > DurationRatio
ArdourCanvas::GtkCanvasViewport * _canvas_viewport
Gtk::Adjustment horizontal_adjustment
ArdourWidgets::ArdourButton export_as_region_button
Gtk::Adjustment vertical_adjustment
PBD::ScopedConnection sequencer_connection
void on_unmap()
This is a default handler for the signal signal_unmap().
BBGUI(std::shared_ptr< ARDOUR::BeatBox > bb)
ArdourWidgets::ArdourButton start_button
Gtk::VScrollbar vscrollbar
SequencerView * _sequencer
void on_map()
This is a default handler for the signal signal_map().
ArdourCanvas::GtkCanvas * _canvas
sigc::connection timer_connection
void sequencer_changed(PBD::PropertyChange const &)
std::shared_ptr< ARDOUR::BeatBox > bbox
ArdourCanvas::Text * name_text
ArdourCanvas::Text * number_text
SequencerView::Mode mode() const
void name_edited(std::string, int)
ArdourCanvas::Rectangle * speed_slide
std::vector< StepView * > StepViews
FloatingTextEntry * floating_entry
ARDOUR::StepSequence & sequence
ArdourCanvas::ConstraintPacker * step_box
bool name_text_event(GdkEvent *)
ArdourCanvas::ConstraintPacker * rhs_box
ArdourCanvas::Text * root_text
ArdourCanvas::Rectangle * step_cnt_button
PBD::ScopedConnection sequence_connection
ArdourCanvas::ConstraintPacker * lhs_box
SequenceView(SequencerView &, ARDOUR::StepSequence &, ArdourCanvas::Canvas *canvas)
ARDOUR::StepSequencer & sequencer() const
bool motion_event(GdkEventMotion *)
bool button_press_event(GdkEventButton *)
SequencerStepIndicator(SequencerView &, ArdourCanvas::Canvas *, size_t n)
static Gtkmm2ext::Color bright_outline_color
void sequencer_changed(PBD::PropertyChange const &)
bool button_release_event(GdkEventButton *)
bool on_event(GdkEvent *)
static Gtkmm2ext::Color current_text_color
ArdourCanvas::Text * text
PBD::ScopedConnection sequencer_connection
ArdourCanvas::Polygon * poly
void render(ArdourCanvas::Rect const &, Cairo::RefPtr< Cairo::Context >) const
static Gtkmm2ext::Color other_color
static Gtkmm2ext::Color current_color
static Gtkmm2ext::Color other_text_color
SequenceView & sequence_view(size_t n) const
ArdourCanvas::ConstraintPacker * lhs_vbox
void render(ArdourCanvas::Rect const &, Cairo::RefPtr< Cairo::Context >) const
PBD::ScopedConnection sequencer_connection
bool mode_button_event(GdkEvent *, SequencerView::Mode)
static double mode_button_width
ArdourCanvas::Text * timing_mode_text
ArdourCanvas::Rectangle * timing_mode_button
static double mode_button_spacing
ArdourCanvas::Rectangle * octave_mode_button
ARDOUR::StepSequencer & _sequencer
ArdourCanvas::ConstraintPacker * button_packer
ArdourCanvas::Rectangle * pitch_mode_button
SequencerView(ARDOUR::StepSequencer &, ArdourCanvas::Item *)
static double rhs_xoffset
static double mode_button_xdim
ArdourCanvas::Text * pitch_mode_text
static double mode_button_ydim
std::vector< SequenceView * > SequenceViews
ArdourCanvas::ConstraintPacker * rhs_vbox
ArdourCanvas::Rectangle * velocity_mode_button
ArdourCanvas::ConstraintPacker * step_indicator_box
ArdourCanvas::ConstraintPacker * sequence_hbox
void sequencer_changed(PBD::PropertyChange const &)
std::vector< SequencerStepIndicator * > StepIndicators
ArdourCanvas::Text * velocity_mode_text
StepIndicators step_indicators
ArdourCanvas::Rectangle * gate_mode_button
ArdourCanvas::ConstraintPacker * steps_vbox
ARDOUR::StepSequencer & sequencer() const
static Gtkmm2ext::Color current_mode_color
ArdourCanvas::Text * gate_mode_text
static Gtkmm2ext::Color not_current_mode_color
static double mode_button_height
ArdourCanvas::Text * octave_mode_text
SequenceViews sequence_views
StepView(SequenceView &, ARDOUR::Step &, ArdourCanvas::Canvas *canvas)
void adjust_step_duration(ARDOUR::Step::DurationRatio const &)
std::pair< double, double > grab_at
bool on_event(GdkEvent *)
std::pair< double, double > last_motion
bool motion_event(GdkEventMotion *)
static Gtkmm2ext::Color on_fill_color
void adjust_step_octave(int amt)
void adjust_step_pitch(int amt)
static Gtkmm2ext::Color off_fill_color
void step_changed(PBD::PropertyChange const &)
void render(ArdourCanvas::Rect const &, Cairo::RefPtr< Cairo::Context >) const
bool button_press_event(GdkEventButton *)
ArdourCanvas::Text * text
void adjust_step_velocity(int amt)
ARDOUR::StepSequencer & sequencer() const
PBD::ScopedConnection step_connection
bool button_release_event(GdkEventButton *)
bool scroll_event(GdkEventScroll *)
void adjust_step_timing(double fract)