Ardour  9.0-pre0-822-g12e3bc5c20
MiniTimeline Class Reference

#include <mini_timeline.h>

Inheritance diagram for MiniTimeline:
[legend]

Classes

struct  JumpRange
 

Public Member Functions

 MiniTimeline ()
 
 ~MiniTimeline ()
 
void set_session (ARDOUR::Session *)
 
- Public Member Functions inherited from CairoWidget
 CairoWidget ()
 
virtual ~CairoWidget ()
 
void set_canvas_widget ()
 
void use_nsglview (bool retina=true)
 
void use_image_surface (bool yn=true)
 
void queue_draw ()
 
void queue_resize ()
 
int get_width () const
 
int get_height () const
 
void size_allocate (Gtk::Allocation &)
 
void set_dirty (cairo_rectangle_t *area=0)
 
Gtkmm2ext::ActiveState active_state () const
 
Gtkmm2ext::VisualState visual_state () const
 
virtual void set_active_state (Gtkmm2ext::ActiveState)
 
virtual void set_visual_state (Gtkmm2ext::VisualState)
 
void unset_active_state ()
 
void unset_visual_state ()
 
void set_active (bool)
 
bool get_active () const
 
void set_draw_background (bool yn)
 
uint32_t background_color ()
 
- Public Member Functions inherited from Gtkmm2ext::CairoCanvas
virtual ~CairoCanvas ()
 
- Public Member Functions inherited from ARDOUR::SessionHandlePtr
 SessionHandlePtr (ARDOUR::Session *s)
 
 SessionHandlePtr ()
 
virtual ~SessionHandlePtr ()
 
virtual ARDOUR::Sessionsession () const
 
- Public Member Functions inherited from PBD::ScopedConnectionList
 ScopedConnectionList ()
 
 ScopedConnectionList (const ScopedConnectionList &)=delete
 
ScopedConnectionListoperator= (const ScopedConnectionList &)=delete
 
virtual ~ScopedConnectionList ()
 
void add_connection (const UnscopedConnection &c)
 
void drop_connections ()
 

Private Types

typedef std::list< JumpRangeJumpList
 

Private Member Functions

void session_going_away ()
 
void super_rapid_update ()
 
void on_size_request (Gtk::Requisition *)
 
void on_size_allocate (Gtk::Allocation &)
 
void dpi_changed ()
 
void set_colors ()
 
void parameter_changed (std::string const &)
 
void calculate_time_width ()
 
void calculate_time_spacing ()
 
void update_minitimeline ()
 
void draw_dots (cairo_t *, int left, int right, int y, Gtkmm2ext::Color)
 
int draw_mark (cairo_t *, int x0, int x1, const std::string &, bool &prelight)
 
int draw_cue (cairo_t *, int x0, int next_cue_left_edge, int tl_width, int cue_index, bool &prelight)
 
int draw_edge (cairo_t *, int x0, int x1, bool left, const std::string &, bool &prelight)
 
void render (Cairo::RefPtr< Cairo::Context > const &, cairo_rectangle_t *)
 
void format_time (samplepos_t when)
 
bool on_button_press_event (GdkEventButton *)
 
bool on_button_release_event (GdkEventButton *)
 
bool on_scroll_event (GdkEventScroll *)
 
bool on_motion_notify_event (GdkEventMotion *)
 
bool on_leave_notify_event (GdkEventCrossing *)
 
void build_minitl_context_menu ()
 
void set_span (ARDOUR::samplecnt_t)
 

Private Attributes

Glib::RefPtr< Pango::Layout > _layout
 
sigc::connection super_rapid_connection
 
PBD::ScopedConnectionList marker_connection
 
PBD::ScopedConnectionList tempo_map_connection
 
PBD::ScopedConnectionList session_connection
 
samplepos_t _last_update_sample
 
AudioClock::Mode _clock_mode
 
int _time_width
 
int _time_height
 
int _n_labels
 
double _px_per_sample
 
ARDOUR::samplecnt_t _time_granularity
 
ARDOUR::samplecnt_t _time_span_samples
 
int _marker_height
 
int _pointer_x
 
int _pointer_y
 
Gtk::Menu * _minitl_context_menu
 
uint32_t _phead_color
 
JumpList _jumplist
 

Additional Inherited Members

- Static Public Member Functions inherited from CairoWidget
static void provide_background_for_cairo_widget (Gtk::Widget &w, const Gdk::Color &bg)
 
static void set_source_rgb_a (cairo_t *cr, Gdk::Color, float a=1.0)
 
static void set_source_rgb_a (cairo_t *cr, Gtkmm2ext::Color, float a=1.0)
 
static void set_focus_handler (sigc::slot< void, Gtk::Widget * >)
 
- Static Public Member Functions inherited from Gtkmm2ext::CairoTheme
static void set_flat_buttons (bool yn)
 
static void set_boxy_buttons (bool yn)
 
static void set_widget_prelight (bool yn)
 
static bool flat_buttons ()
 
static bool boxy_buttons ()
 
static bool widget_prelight ()
 
- Public Attributes inherited from CairoWidget
sigc::signal< void > StateChanged
 
sigc::signal< bool > QueueDraw
 
sigc::signal< bool > QueueResize
 
- Protected Member Functions inherited from CairoWidget
virtual bool on_expose_event (GdkEventExpose *)
 
void on_size_allocate (Gtk::Allocation &)
 
void on_state_changed (Gtk::StateType)
 
void on_style_changed (const Glib::RefPtr< Gtk::Style > &)
 
void on_realize ()
 
bool on_button_press_event (GdkEventButton *)
 
Gdk::Color get_parent_bg ()
 
void on_map ()
 
void on_unmap ()
 
virtual void on_name_changed ()
 
- Protected Attributes inherited from CairoWidget
Gtkmm2ext::ActiveState _active_state
 
Gtkmm2ext::VisualState _visual_state
 
bool _need_bg
 
bool _grabbed
 
- Protected Attributes inherited from ARDOUR::SessionHandlePtr
ARDOUR::Session_session
 
PBD::ScopedConnectionList _session_connections
 
- Static Protected Attributes inherited from CairoWidget
static sigc::slot< void, Gtk::Widget * > focus_handler
 

Detailed Description

Definition at line 44 of file mini_timeline.h.

Member Typedef Documentation

◆ JumpList

typedef std::list<JumpRange> MiniTimeline::JumpList
private

Definition at line 116 of file mini_timeline.h.

Constructor & Destructor Documentation

◆ MiniTimeline()

MiniTimeline::MiniTimeline ( )

◆ ~MiniTimeline()

MiniTimeline::~MiniTimeline ( )

Member Function Documentation

◆ build_minitl_context_menu()

void MiniTimeline::build_minitl_context_menu ( )
private

◆ calculate_time_spacing()

void MiniTimeline::calculate_time_spacing ( )
private

◆ calculate_time_width()

void MiniTimeline::calculate_time_width ( )
private

◆ dpi_changed()

void MiniTimeline::dpi_changed ( )
private

◆ draw_cue()

int MiniTimeline::draw_cue ( cairo_t *  ,
int  x0,
int  next_cue_left_edge,
int  tl_width,
int  cue_index,
bool &  prelight 
)
private

◆ draw_dots()

void MiniTimeline::draw_dots ( cairo_t *  ,
int  left,
int  right,
int  y,
Gtkmm2ext::Color   
)
private

◆ draw_edge()

int MiniTimeline::draw_edge ( cairo_t *  ,
int  x0,
int  x1,
bool  left,
const std::string &  ,
bool &  prelight 
)
private

◆ draw_mark()

int MiniTimeline::draw_mark ( cairo_t *  ,
int  x0,
int  x1,
const std::string &  ,
bool &  prelight 
)
private

◆ format_time()

void MiniTimeline::format_time ( samplepos_t  when)
private

◆ on_button_press_event()

bool MiniTimeline::on_button_press_event ( GdkEventButton *  )
private

◆ on_button_release_event()

bool MiniTimeline::on_button_release_event ( GdkEventButton *  )
private

◆ on_leave_notify_event()

bool MiniTimeline::on_leave_notify_event ( GdkEventCrossing *  )
private

◆ on_motion_notify_event()

bool MiniTimeline::on_motion_notify_event ( GdkEventMotion *  )
private

◆ on_scroll_event()

bool MiniTimeline::on_scroll_event ( GdkEventScroll *  )
private

◆ on_size_allocate()

void MiniTimeline::on_size_allocate ( Gtk::Allocation &  )
private

◆ on_size_request()

void MiniTimeline::on_size_request ( Gtk::Requisition *  )
private

◆ parameter_changed()

void MiniTimeline::parameter_changed ( std::string const &  )
private

◆ render()

void MiniTimeline::render ( Cairo::RefPtr< Cairo::Context > const &  ,
cairo_rectangle_t *   
)
privatevirtual

◆ session_going_away()

void MiniTimeline::session_going_away ( )
privatevirtual

Reimplemented from ARDOUR::SessionHandlePtr.

◆ set_colors()

void MiniTimeline::set_colors ( )
private

◆ set_session()

void MiniTimeline::set_session ( ARDOUR::Session )
virtual

Reimplemented from ARDOUR::SessionHandlePtr.

◆ set_span()

void MiniTimeline::set_span ( ARDOUR::samplecnt_t  )
private

◆ super_rapid_update()

void MiniTimeline::super_rapid_update ( )
private

◆ update_minitimeline()

void MiniTimeline::update_minitimeline ( )
private

Member Data Documentation

◆ _clock_mode

AudioClock::Mode MiniTimeline::_clock_mode
private

Definition at line 90 of file mini_timeline.h.

◆ _jumplist

JumpList MiniTimeline::_jumplist
private

Definition at line 117 of file mini_timeline.h.

◆ _last_update_sample

samplepos_t MiniTimeline::_last_update_sample
private

Definition at line 89 of file mini_timeline.h.

◆ _layout

Glib::RefPtr<Pango::Layout> MiniTimeline::_layout
private

Definition at line 83 of file mini_timeline.h.

◆ _marker_height

int MiniTimeline::_marker_height
private

Definition at line 98 of file mini_timeline.h.

◆ _minitl_context_menu

Gtk::Menu* MiniTimeline::_minitl_context_menu
private

Definition at line 103 of file mini_timeline.h.

◆ _n_labels

int MiniTimeline::_n_labels
private

Definition at line 94 of file mini_timeline.h.

◆ _phead_color

uint32_t MiniTimeline::_phead_color
private

Definition at line 105 of file mini_timeline.h.

◆ _pointer_x

int MiniTimeline::_pointer_x
private

Definition at line 100 of file mini_timeline.h.

◆ _pointer_y

int MiniTimeline::_pointer_y
private

Definition at line 101 of file mini_timeline.h.

◆ _px_per_sample

double MiniTimeline::_px_per_sample
private

Definition at line 95 of file mini_timeline.h.

◆ _time_granularity

ARDOUR::samplecnt_t MiniTimeline::_time_granularity
private

Definition at line 96 of file mini_timeline.h.

◆ _time_height

int MiniTimeline::_time_height
private

Definition at line 92 of file mini_timeline.h.

◆ _time_span_samples

ARDOUR::samplecnt_t MiniTimeline::_time_span_samples
private

Definition at line 97 of file mini_timeline.h.

◆ _time_width

int MiniTimeline::_time_width
private

Definition at line 91 of file mini_timeline.h.

◆ marker_connection

PBD::ScopedConnectionList MiniTimeline::marker_connection
private

Definition at line 85 of file mini_timeline.h.

◆ session_connection

PBD::ScopedConnectionList MiniTimeline::session_connection
private

Definition at line 87 of file mini_timeline.h.

◆ super_rapid_connection

sigc::connection MiniTimeline::super_rapid_connection
private

Definition at line 84 of file mini_timeline.h.

◆ tempo_map_connection

PBD::ScopedConnectionList MiniTimeline::tempo_map_connection
private

Definition at line 86 of file mini_timeline.h.


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