Ardour  9.0-pre0-582-g084a23a80d
SequencerView Class Reference

#include <beatbox_gui.h>

Inheritance diagram for SequencerView:
[legend]

Public Types

enum  Mode {
  Velocity , Pitch , Duration , Octave ,
  Group , Timing
}
 

Public Member Functions

 SequencerView (ARDOUR::StepSequencer &, ArdourCanvas::Item *)
 
ARDOUR::StepSequencersequencer () const
 
SequenceViewsequence_view (size_t n) const
 
Mode mode () const
 
void set_mode (Mode m)
 
void render (ArdourCanvas::Rect const &, Cairo::RefPtr< Cairo::Context >) const
 
void update ()
 

Static Public Attributes

static double rhs_xoffset
 
static double mode_button_width
 
static double mode_button_height
 
static double mode_button_spacing
 
static double mode_button_xdim
 
static double mode_button_ydim
 

Private Types

typedef std::vector< SequencerStepIndicator * > StepIndicators
 
typedef std::vector< SequenceView * > SequenceViews
 

Private Member Functions

void sequencer_changed (PBD::PropertyChange const &)
 
bool mode_button_event (GdkEvent *, SequencerView::Mode)
 

Private Attributes

ARDOUR::StepSequencer_sequencer
 
StepIndicators step_indicators
 
SequenceViews sequence_views
 
double _width
 
double _height
 
Mode _mode
 
ArdourCanvas::ConstraintPacker * button_packer
 
ArdourCanvas::ConstraintPacker * step_indicator_box
 
ArdourCanvas::ConstraintPacker * sequence_hbox
 
ArdourCanvas::ConstraintPacker * lhs_vbox
 
ArdourCanvas::ConstraintPacker * steps_vbox
 
ArdourCanvas::ConstraintPacker * rhs_vbox
 
ArdourCanvas::Rectanglevelocity_mode_button
 
ArdourCanvas::Rectanglepitch_mode_button
 
ArdourCanvas::Rectangleoctave_mode_button
 
ArdourCanvas::Rectanglegate_mode_button
 
ArdourCanvas::Rectangletiming_mode_button
 
ArdourCanvas::Textvelocity_mode_text
 
ArdourCanvas::Textpitch_mode_text
 
ArdourCanvas::Textoctave_mode_text
 
ArdourCanvas::Textgate_mode_text
 
ArdourCanvas::Texttiming_mode_text
 
PBD::ScopedConnection sequencer_connection
 

Static Private Attributes

static Gtkmm2ext::Color current_mode_color
 
static Gtkmm2ext::Color not_current_mode_color
 

Detailed Description

Definition at line 72 of file beatbox_gui.h.

Member Typedef Documentation

◆ SequenceViews

typedef std::vector<SequenceView*> SequencerView::SequenceViews
private

Definition at line 106 of file beatbox_gui.h.

◆ StepIndicators

Definition at line 104 of file beatbox_gui.h.

Member Enumeration Documentation

◆ Mode

Enumerator
Velocity 
Pitch 
Duration 
Octave 
Group 
Timing 

Definition at line 74 of file beatbox_gui.h.

Constructor & Destructor Documentation

◆ SequencerView()

SequencerView::SequencerView ( ARDOUR::StepSequencer ,
ArdourCanvas::Item  
)

Member Function Documentation

◆ mode()

Mode SequencerView::mode ( ) const
inline

Definition at line 89 of file beatbox_gui.h.

◆ mode_button_event()

bool SequencerView::mode_button_event ( GdkEvent ,
SequencerView::Mode   
)
private

◆ render()

void SequencerView::render ( ArdourCanvas::Rect const &  ,
Cairo::RefPtr< Cairo::Context >   
) const

◆ sequence_view()

SequenceView& SequencerView::sequence_view ( size_t  n) const

◆ sequencer()

ARDOUR::StepSequencer& SequencerView::sequencer ( ) const
inline

Definition at line 85 of file beatbox_gui.h.

◆ sequencer_changed()

void SequencerView::sequencer_changed ( PBD::PropertyChange const &  )
private

◆ set_mode()

void SequencerView::set_mode ( Mode  m)

◆ update()

void SequencerView::update ( )

Member Data Documentation

◆ _height

double SequencerView::_height
private

Definition at line 110 of file beatbox_gui.h.

◆ _mode

Mode SequencerView::_mode
private

Definition at line 111 of file beatbox_gui.h.

◆ _sequencer

ARDOUR::StepSequencer& SequencerView::_sequencer
private

Definition at line 103 of file beatbox_gui.h.

◆ _width

double SequencerView::_width
private

Definition at line 109 of file beatbox_gui.h.

◆ button_packer

ArdourCanvas::ConstraintPacker* SequencerView::button_packer
private

Definition at line 112 of file beatbox_gui.h.

◆ current_mode_color

Gtkmm2ext::Color SequencerView::current_mode_color
staticprivate

Definition at line 133 of file beatbox_gui.h.

◆ gate_mode_button

ArdourCanvas::Rectangle* SequencerView::gate_mode_button
private

Definition at line 124 of file beatbox_gui.h.

◆ gate_mode_text

ArdourCanvas::Text* SequencerView::gate_mode_text
private

Definition at line 130 of file beatbox_gui.h.

◆ lhs_vbox

ArdourCanvas::ConstraintPacker* SequencerView::lhs_vbox
private

Definition at line 117 of file beatbox_gui.h.

◆ mode_button_height

double SequencerView::mode_button_height
static

Definition at line 97 of file beatbox_gui.h.

◆ mode_button_spacing

double SequencerView::mode_button_spacing
static

Definition at line 98 of file beatbox_gui.h.

◆ mode_button_width

double SequencerView::mode_button_width
static

Definition at line 96 of file beatbox_gui.h.

◆ mode_button_xdim

double SequencerView::mode_button_xdim
static

Definition at line 99 of file beatbox_gui.h.

◆ mode_button_ydim

double SequencerView::mode_button_ydim
static

Definition at line 100 of file beatbox_gui.h.

◆ not_current_mode_color

Gtkmm2ext::Color SequencerView::not_current_mode_color
staticprivate

Definition at line 134 of file beatbox_gui.h.

◆ octave_mode_button

ArdourCanvas::Rectangle* SequencerView::octave_mode_button
private

Definition at line 123 of file beatbox_gui.h.

◆ octave_mode_text

ArdourCanvas::Text* SequencerView::octave_mode_text
private

Definition at line 129 of file beatbox_gui.h.

◆ pitch_mode_button

ArdourCanvas::Rectangle* SequencerView::pitch_mode_button
private

Definition at line 122 of file beatbox_gui.h.

◆ pitch_mode_text

ArdourCanvas::Text* SequencerView::pitch_mode_text
private

Definition at line 128 of file beatbox_gui.h.

◆ rhs_vbox

ArdourCanvas::ConstraintPacker* SequencerView::rhs_vbox
private

Definition at line 119 of file beatbox_gui.h.

◆ rhs_xoffset

double SequencerView::rhs_xoffset
static

Definition at line 95 of file beatbox_gui.h.

◆ sequence_hbox

ArdourCanvas::ConstraintPacker* SequencerView::sequence_hbox
private

Definition at line 116 of file beatbox_gui.h.

◆ sequence_views

SequenceViews SequencerView::sequence_views
private

Definition at line 107 of file beatbox_gui.h.

◆ sequencer_connection

PBD::ScopedConnection SequencerView::sequencer_connection
private

Definition at line 139 of file beatbox_gui.h.

◆ step_indicator_box

ArdourCanvas::ConstraintPacker* SequencerView::step_indicator_box
private

Definition at line 114 of file beatbox_gui.h.

◆ step_indicators

StepIndicators SequencerView::step_indicators
private

Definition at line 105 of file beatbox_gui.h.

◆ steps_vbox

ArdourCanvas::ConstraintPacker* SequencerView::steps_vbox
private

Definition at line 118 of file beatbox_gui.h.

◆ timing_mode_button

ArdourCanvas::Rectangle* SequencerView::timing_mode_button
private

Definition at line 125 of file beatbox_gui.h.

◆ timing_mode_text

ArdourCanvas::Text* SequencerView::timing_mode_text
private

Definition at line 131 of file beatbox_gui.h.

◆ velocity_mode_button

ArdourCanvas::Rectangle* SequencerView::velocity_mode_button
private

Definition at line 121 of file beatbox_gui.h.

◆ velocity_mode_text

ArdourCanvas::Text* SequencerView::velocity_mode_text
private

Definition at line 127 of file beatbox_gui.h.


The documentation for this class was generated from the following file: