Ardour  8.7-15-gadf511264b
ArdourSurface::CueLayout Class Reference

#include <cues.h>

Inheritance diagram for ArdourSurface::CueLayout:
[legend]

Public Types

enum  KnobFunction { KnobGain , KnobPan , KnobSendA , KnobSendB }
 
- Public Types inherited from ArdourCanvas::Fill
typedef std::vector< std::pair< double, Gtkmm2ext::Color > > StopList
 

Public Member Functions

 CueLayout (Push2 &p, ARDOUR::Session &, std::string const &)
 
 ~CueLayout ()
 
void render (ArdourCanvas::Rect const &, Cairo::RefPtr< Cairo::Context >) const
 
void show ()
 
void hide ()
 
void button_upper (uint32_t n)
 
void button_lower (uint32_t n)
 
void button_left ()
 
void button_right ()
 
void button_up ()
 
void button_down ()
 
void button_rhs (int)
 
void button_octave_up ()
 
void button_octave_down ()
 
void button_page_left ()
 
void button_page_right ()
 
void button_stop_press ()
 
void button_stop_release ()
 
void button_stop_long_press ()
 
void strip_vpot (int, int)
 
void strip_vpot_touch (int, bool)
 
void pad_press (int x, int y, int velocity)
 
void pad_release (int x, int y)
 
void update_meters ()
 
- Public Member Functions inherited from ArdourSurface::Push2Layout
 Push2Layout (Push2 &p, ARDOUR::Session &s, std::string const &name)
 
virtual ~Push2Layout ()
 
int display_width () const
 
int display_height () const
 
void compute_bounding_box () const
 
virtual void button_select_press ()
 
virtual void button_select_release ()
 
virtual void button_solo ()
 
virtual void button_mute ()
 
virtual void update_clocks ()
 
std::string name () const
 
- Public Member Functions inherited from ArdourCanvas::Container
 Container (Canvas *)
 
 Container (Item *)
 
 Container (Item *, Duple const &position)
 
void prepare_for_render (Rect const &area) const
 
void set_render_with_alpha (double alpha)
 
double render_with_alpha () const
 
- Public Member Functions inherited from ArdourCanvas::Item
 Item (Canvas *)
 
 Item (Item *)
 
 Item (Item *, Duple const &p)
 
virtual ~Item ()
 
void redraw () const
 
virtual void add_items_at_point (Duple point, std::vector< Item const * > &items) const
 
virtual bool covers (Duple const &point) const
 
void grab ()
 
void ungrab ()
 
void unparent ()
 
void reparent (Item *, bool already_added=false)
 
Itemparent () const
 
uint32_t depth () const
 
const Itemclosest_ancestor_with (const Item &other) const
 
bool common_ancestor_within (uint32_t, const Item &other) const
 
bool is_ancestor_of (const Item &candidate) const
 
bool is_descendant_of (const Item &candidate) const
 
void set_position (Duple)
 
void set_x_position (Coord)
 
void set_y_position (Coord)
 
void move (Duple)
 
Duple position () const
 
Duple window_origin () const
 
Duple canvas_origin () const
 
ScrollGroupscroll_parent () const
 
virtual void size_request (double &w, double &h) const
 
void set_size_request (double w, double h)
 
void set_size_request_to_display_given_text (const std::vector< std::string > &strings, gint hpadding, gint vpadding)
 
void size_allocate (Rect const &)
 
virtual void _size_allocate (Rect const &)
 
virtual void size_allocate_children (Rect const &r)
 
Rect allocation () const
 
void set_layout_sensitive (bool)
 
bool layout_sensitive () const
 
Rect bounding_box () const
 
Coord height () const
 
Coord width () const
 
Duple item_to_parent (Duple const &) const
 
Rect item_to_parent (Rect const &) const
 
Duple parent_to_item (Duple const &) const
 
Rect parent_to_item (Rect const &) const
 
void canvas_to_item (Coord &, Coord &) const
 
void item_to_canvas (Coord &, Coord &) const
 
Duple canvas_to_item (Duple const &) const
 
Rect item_to_canvas (Rect const &) const
 
Duple item_to_canvas (Duple const &) const
 
Rect canvas_to_item (Rect const &) const
 
Duple item_to_window (Duple const &, bool rounded=true) const
 
Duple window_to_item (Duple const &) const
 
Rect item_to_window (Rect const &, bool rounded=true) const
 
Rect window_to_item (Rect const &) const
 
void raise_to_top ()
 
void raise (int)
 
void lower_to_bottom ()
 
void block_change_notifications ()
 
void unblock_change_notifications ()
 
bool self_visible () const
 
bool visible () const
 
Canvascanvas () const
 
void set_ignore_events (bool)
 
bool ignore_events () const
 
void set_data (std::string const &, void *)
 
void * get_data (std::string const &) const
 
virtual void add (Item *)
 
virtual void add_front (Item *)
 
virtual void remove (Item *)
 
void clear (bool with_delete=false)
 
std::list< Item * > const & items () const
 
void raise_child_to_top (Item *)
 
void raise_child (Item *, int)
 
void lower_child_to_bottom (Item *)
 
virtual void child_changed (bool bbox_changed)
 
PackOptions pack_options () const
 
void set_pack_options (PackOptions)
 
std::string whoami () const
 
const std::string & tooltip () const
 
void set_tooltip (const std::string &)
 
void start_tooltip_timeout ()
 
void stop_tooltip_timeout ()
 
virtual void dump (std::ostream &) const
 
std::string whatami () const
 
bool resize_queued () const
 
void queue_resize ()
 
bool scroll_translation () const
 
void disable_scroll_translation ()
 
virtual void layout ()
 
Duple position_offset () const
 
- Public Member Functions inherited from ArdourCanvas::Fill
 Fill (Item &self)
 
virtual ~Fill ()
 
virtual void set_fill_color (Gtkmm2ext::Color)
 
virtual void set_fill (bool)
 
Gtkmm2ext::Color fill_color () const
 
bool fill () const
 
void set_gradient (StopList const &stops, bool is_vertical)
 
void set_pattern (Cairo::RefPtr< Cairo::Pattern >)
 
- Public Member Functions inherited from ArdourCanvas::Outline
 Outline (Item &self)
 
virtual ~Outline ()
 
Gtkmm2ext::Color outline_color () const
 
virtual void set_outline_color (Gtkmm2ext::Color)
 
Distance outline_width () const
 
virtual void set_outline_width (Distance)
 
bool outline () const
 
virtual void set_outline (bool)
 

Private Member Functions

void routes_added ()
 
void route_property_change (PBD::PropertyChange const &what_changed, uint32_t which)
 
void triggerbox_property_change (PBD::PropertyChange const &what_changed, uint32_t which)
 
void trigger_property_change (PBD::PropertyChange const &what_changed, uint32_t col, uint32_t row)
 
void viewport_changed ()
 
void update_clip_progress (int)
 
void show_knob_function ()
 
void set_pad_color_from_trigger_state (int col, std::shared_ptr< Push2::Pad >, ARDOUR::TriggerPtr)
 
void show_running_boxen (bool)
 
void draw_follow_icon (ARDOUR::TriggerPtr, Cairo::RefPtr< Cairo::Context > context, ARDOUR::FollowAction const &icon, float size) const
 

Private Attributes

ArdourCanvas::Rectangle_bg
 
ArdourCanvas::Line_upper_line
 
std::vector< ArdourCanvas::Text * > _upper_text
 
std::vector< ArdourCanvas::Rectangle * > _upper_backgrounds
 
std::vector< ArdourCanvas::Text * > _lower_text
 
std::vector< ArdourCanvas::Text * > _clip_label_text
 
uint8_t _selection_color
 
uint32_t track_base
 
uint32_t scene_base
 
KnobFunction _knob_function
 
int _long_stop
 
PBD::ScopedConnectionList _route_connections
 
std::shared_ptr< ARDOUR::Route_route [8]
 
PBD::ScopedConnectionList _session_connections
 
PBD::ScopedConnection _trig_connections [64]
 
ArdourCanvas::Arc_progress [8]
 
ArdourCanvas::FollowActionIconfollow_action_icon [8]
 
std::shared_ptr< ARDOUR::AutomationControl_controllables [8]
 

Additional Inherited Members

- Public Attributes inherited from ArdourCanvas::Item
sigc::signal1< bool, GdkEvent *, EventAccumulator< bool > > Event
 
bool _resize_queued
 
double _requested_width
 
double _requested_height
 
- Static Public Attributes inherited from ArdourCanvas::Item
static int default_items_per_cell
 
- Protected Member Functions inherited from ArdourCanvas::Item
void begin_change ()
 
void end_change ()
 
void begin_visual_change ()
 
void end_visual_change ()
 
void set_bbox_clean () const
 
void set_bbox_dirty () const
 
bool bbox_dirty () const
 
void invalidate_lut () const
 
void clear_items (bool with_delete)
 
void ensure_lut () const
 
void add_child_bounding_boxes (bool include_hidden=false) const
 
void render_children (Rect const &area, Cairo::RefPtr< Cairo::Context > context) const
 
void prepare_for_render_children (Rect const &area) const
 
Duple scroll_offset () const
 
- Protected Member Functions inherited from ArdourCanvas::Fill
void setup_fill_context (Cairo::RefPtr< Cairo::Context >) const
 
void setup_gradient_context (Cairo::RefPtr< Cairo::Context >, Rect const &, Duple const &) const
 
- Protected Member Functions inherited from ArdourCanvas::Outline
void setup_outline_context (Cairo::RefPtr< Cairo::Context >) const
 
- Protected Attributes inherited from ArdourSurface::Push2Layout
Push2_p2
 
ARDOUR::Session_session
 
std::string _name
 
- Protected Attributes inherited from ArdourCanvas::Item
Canvas_canvas
 
Item_parent
 
ScrollGroup_scroll_parent
 
Duple _position
 
bool _visible
 
Rect _pre_change_bounding_box
 
Rect _bounding_box
 
PackOptions _pack_options
 
Rect _allocation
 
bool _layout_sensitive
 
std::map< std::string, void * > _data
 
LookupTable_lut
 
std::list< Item * > _items
 
- Protected Attributes inherited from ArdourCanvas::Fill
Item_self
 
Gtkmm2ext::Color _fill_color
 
bool _fill
 
bool _transparent
 
StopList _stops
 
bool _vertical_gradient
 
Cairo::RefPtr< Cairo::Pattern > _pattern
 
- Protected Attributes inherited from ArdourCanvas::Outline
Item_self
 
Gtkmm2ext::Color _outline_color
 
Distance _outline_width
 
bool _outline
 

Detailed Description

Definition at line 49 of file cues.h.

Member Enumeration Documentation

◆ KnobFunction

Enumerator
KnobGain 
KnobPan 
KnobSendA 
KnobSendB 

Definition at line 53 of file cues.h.

Constructor & Destructor Documentation

◆ CueLayout()

ArdourSurface::CueLayout::CueLayout ( Push2 p,
ARDOUR::Session ,
std::string const &   
)

◆ ~CueLayout()

ArdourSurface::CueLayout::~CueLayout ( )

Member Function Documentation

◆ button_down()

void ArdourSurface::CueLayout::button_down ( )
virtual

Reimplemented from ArdourSurface::Push2Layout.

◆ button_left()

void ArdourSurface::CueLayout::button_left ( )
virtual

Reimplemented from ArdourSurface::Push2Layout.

◆ button_lower()

void ArdourSurface::CueLayout::button_lower ( uint32_t  n)
virtual

Reimplemented from ArdourSurface::Push2Layout.

◆ button_octave_down()

void ArdourSurface::CueLayout::button_octave_down ( )
virtual

Reimplemented from ArdourSurface::Push2Layout.

◆ button_octave_up()

void ArdourSurface::CueLayout::button_octave_up ( )
virtual

Reimplemented from ArdourSurface::Push2Layout.

◆ button_page_left()

void ArdourSurface::CueLayout::button_page_left ( )
virtual

Reimplemented from ArdourSurface::Push2Layout.

◆ button_page_right()

void ArdourSurface::CueLayout::button_page_right ( )
virtual

Reimplemented from ArdourSurface::Push2Layout.

◆ button_rhs()

void ArdourSurface::CueLayout::button_rhs ( int  )
virtual

Reimplemented from ArdourSurface::Push2Layout.

◆ button_right()

void ArdourSurface::CueLayout::button_right ( )
virtual

Reimplemented from ArdourSurface::Push2Layout.

◆ button_stop_long_press()

void ArdourSurface::CueLayout::button_stop_long_press ( )
virtual

Reimplemented from ArdourSurface::Push2Layout.

◆ button_stop_press()

void ArdourSurface::CueLayout::button_stop_press ( )
virtual

Reimplemented from ArdourSurface::Push2Layout.

◆ button_stop_release()

void ArdourSurface::CueLayout::button_stop_release ( )
virtual

Reimplemented from ArdourSurface::Push2Layout.

◆ button_up()

void ArdourSurface::CueLayout::button_up ( )
virtual

Reimplemented from ArdourSurface::Push2Layout.

◆ button_upper()

void ArdourSurface::CueLayout::button_upper ( uint32_t  n)
virtual

Reimplemented from ArdourSurface::Push2Layout.

◆ draw_follow_icon()

void ArdourSurface::CueLayout::draw_follow_icon ( ARDOUR::TriggerPtr  ,
Cairo::RefPtr< Cairo::Context >  context,
ARDOUR::FollowAction const &  icon,
float  size 
) const
private

◆ hide()

void ArdourSurface::CueLayout::hide ( )
virtual

Reimplemented from ArdourCanvas::Item.

◆ pad_press()

void ArdourSurface::CueLayout::pad_press ( int  x,
int  y,
int  velocity 
)
virtual

Reimplemented from ArdourSurface::Push2Layout.

◆ pad_release()

void ArdourSurface::CueLayout::pad_release ( int  x,
int  y 
)
virtual

Reimplemented from ArdourSurface::Push2Layout.

◆ render()

void ArdourSurface::CueLayout::render ( ArdourCanvas::Rect const &  area,
Cairo::RefPtr< Cairo::Context >  context 
) const
virtual

The render() method is likely to be identical in all containers (just call Item::render_children()). It can be overridden as necessary.

Reimplemented from ArdourCanvas::Container.

◆ route_property_change()

void ArdourSurface::CueLayout::route_property_change ( PBD::PropertyChange const &  what_changed,
uint32_t  which 
)
private

◆ routes_added()

void ArdourSurface::CueLayout::routes_added ( )
private

◆ set_pad_color_from_trigger_state()

void ArdourSurface::CueLayout::set_pad_color_from_trigger_state ( int  col,
std::shared_ptr< Push2::Pad ,
ARDOUR::TriggerPtr   
)
private

◆ show()

void ArdourSurface::CueLayout::show ( )
virtual

Reimplemented from ArdourCanvas::Item.

◆ show_knob_function()

void ArdourSurface::CueLayout::show_knob_function ( )
private

◆ show_running_boxen()

void ArdourSurface::CueLayout::show_running_boxen ( bool  )
private

◆ strip_vpot()

void ArdourSurface::CueLayout::strip_vpot ( int  ,
int   
)
virtual

◆ strip_vpot_touch()

void ArdourSurface::CueLayout::strip_vpot_touch ( int  ,
bool   
)
virtual

◆ trigger_property_change()

void ArdourSurface::CueLayout::trigger_property_change ( PBD::PropertyChange const &  what_changed,
uint32_t  col,
uint32_t  row 
)
private

◆ triggerbox_property_change()

void ArdourSurface::CueLayout::triggerbox_property_change ( PBD::PropertyChange const &  what_changed,
uint32_t  which 
)
private

◆ update_clip_progress()

void ArdourSurface::CueLayout::update_clip_progress ( int  )
private

◆ update_meters()

void ArdourSurface::CueLayout::update_meters ( )
virtual

Reimplemented from ArdourSurface::Push2Layout.

◆ viewport_changed()

void ArdourSurface::CueLayout::viewport_changed ( )
private

Member Data Documentation

◆ _bg

ArdourCanvas::Rectangle* ArdourSurface::CueLayout::_bg
private

Definition at line 92 of file cues.h.

◆ _clip_label_text

std::vector<ArdourCanvas::Text*> ArdourSurface::CueLayout::_clip_label_text
private

Definition at line 97 of file cues.h.

◆ _controllables

std::shared_ptr<ARDOUR::AutomationControl> ArdourSurface::CueLayout::_controllables[8]
private

Definition at line 117 of file cues.h.

◆ _knob_function

KnobFunction ArdourSurface::CueLayout::_knob_function
private

Definition at line 101 of file cues.h.

◆ _long_stop

int ArdourSurface::CueLayout::_long_stop
private

Definition at line 102 of file cues.h.

◆ _lower_text

std::vector<ArdourCanvas::Text*> ArdourSurface::CueLayout::_lower_text
private

Definition at line 96 of file cues.h.

◆ _progress

ArdourCanvas::Arc* ArdourSurface::CueLayout::_progress[8]
private

Definition at line 114 of file cues.h.

◆ _route

std::shared_ptr<ARDOUR::Route> ArdourSurface::CueLayout::_route[8]
private

Definition at line 105 of file cues.h.

◆ _route_connections

PBD::ScopedConnectionList ArdourSurface::CueLayout::_route_connections
private

Definition at line 104 of file cues.h.

◆ _selection_color

uint8_t ArdourSurface::CueLayout::_selection_color
private

Definition at line 98 of file cues.h.

◆ _session_connections

PBD::ScopedConnectionList ArdourSurface::CueLayout::_session_connections
private

Definition at line 106 of file cues.h.

◆ _trig_connections

PBD::ScopedConnection ArdourSurface::CueLayout::_trig_connections[64]
private

Definition at line 107 of file cues.h.

◆ _upper_backgrounds

std::vector<ArdourCanvas::Rectangle*> ArdourSurface::CueLayout::_upper_backgrounds
private

Definition at line 95 of file cues.h.

◆ _upper_line

ArdourCanvas::Line* ArdourSurface::CueLayout::_upper_line
private

Definition at line 93 of file cues.h.

◆ _upper_text

std::vector<ArdourCanvas::Text*> ArdourSurface::CueLayout::_upper_text
private

Definition at line 94 of file cues.h.

◆ follow_action_icon

ArdourCanvas::FollowActionIcon* ArdourSurface::CueLayout::follow_action_icon[8]
private

Definition at line 115 of file cues.h.

◆ scene_base

uint32_t ArdourSurface::CueLayout::scene_base
private

Definition at line 100 of file cues.h.

◆ track_base

uint32_t ArdourSurface::CueLayout::track_base
private

Definition at line 99 of file cues.h.


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