Ardour  9.0-pre0-822-g12e3bc5c20
TransportClock Class Reference

#include <main_clock.h>

Inheritance diagram for TransportClock:
[legend]

Public Member Functions

 TransportClock (const std::string &clock_name, const std::string &widget_name, ClockDisposition d)
 
- Public Member Functions inherited from MainClock
 MainClock (const std::string &clock_name, const std::string &widget_name, ClockDisposition d)
 
void set_session (ARDOUR::Session *s)
 
ARDOUR::ClockDeltaMode display_delta_mode ()
 
void set_display_delta_mode (ARDOUR::ClockDeltaMode m)
 
void set (Temporal::timepos_t const &, bool force=false, bool round_to_beat=false)
 
void clock_value_changed ()
 
void parameter_changed (std::string p)
 
- Public Member Functions inherited from AudioClock
 AudioClock (const std::string &clock_name, bool is_transient, const std::string &widget_name, bool editable, bool follows_playhead, bool duration=false, bool with_info=false, bool accept_on_focus_out=false)
 
 ~AudioClock ()
 
Mode mode () const
 
void set_off (bool yn)
 
bool off () const
 
bool on () const
 
void set_widget_name (const std::string &name)
 
void set_active_state (Gtkmm2ext::ActiveState s)
 
void set_editable (bool yn)
 
void set_corner_radius (double)
 
void focus ()
 
void set_duration (Temporal::timecnt_t const &, bool force=false)
 
void set_from_playhead ()
 
void locate ()
 
void copy_text_to_clipboard () const
 
std::string name () const
 
Temporal::timepos_t last_when () const
 
Temporal::timecnt_t current_duration (Temporal::timepos_t position=Temporal::timepos_t()) const
 
void set_negative_allowed (bool yn)
 
ArdourWidgets::ArdourButtonleft_btn ()
 
ArdourWidgets::ArdourButtonright_btn ()
 
void set_scale (double x, double y)
 
- 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_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
 

Protected Member Functions

void set_mode (Mode)
 
- Protected Member Functions inherited from MainClock
void render (Cairo::RefPtr< Cairo::Context > const &, cairo_rectangle_t *)
 
void on_size_request (Gtk::Requisition *req)
 
- Protected Member Functions inherited from AudioClock
bool get_is_duration () const
 
bool on_button_press_event (GdkEventButton *ev)
 
bool on_button_release_event (GdkEventButton *ev)
 
void on_size_request (Gtk::Requisition *req)
 
- 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 Member Functions inherited from ARDOUR::SessionHandlePtr
virtual void session_going_away ()
 

Private Member Functions

void follow_canonical_clock ()
 

Additional Inherited Members

- Public Types inherited from MainClock
enum  ClockDisposition { PrimaryClock , SecondaryClock }
 
- Public Types inherited from AudioClock
enum  Mode {
  Timecode , BBT , MinSec , Seconds ,
  Samples
}
 
- Static Public Member Functions inherited from AudioClock
static void print_minsec (samplepos_t, char *buf, size_t bufsize, float sample_rate, int decimals=3)
 
- 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 MainClock
sigc::signal< bool, ARDOUR::ClockDeltaModechange_display_delta_mode_signal
 
sigc::signal< void > CanonicalClockChanged
 
- Public Attributes inherited from AudioClock
sigc::signal< void > ValueChanged
 
sigc::signal< void > mode_changed
 
- Public Attributes inherited from CairoWidget
sigc::signal< void > StateChanged
 
sigc::signal< bool > QueueDraw
 
sigc::signal< bool > QueueResize
 
- Static Public Attributes inherited from AudioClock
static std::vector< AudioClock * > clocks
 
- Protected Attributes inherited from MainClock
ClockDisposition _disposition
 
- Protected Attributes inherited from AudioClock
Gtk::Menu * ops_menu
 
ArdourWidgets::ArdourButton _left_btn
 
ArdourWidgets::ArdourButton _right_btn
 
- 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

TransportClock is a clock widget that reflects the state of the canonical MainClocks in ARDOUR_UI (either Primary or Secondary) there are multiple Primary and Secondary clock widgets, but from the user's perspective they all represent the "same clock" The current position, display mode, and 'delta mode' are globally shared across Primary and Secondary clocks. Other state, such as the editing/text-entry state, remains per-widget.

Definition at line 76 of file main_clock.h.

Constructor & Destructor Documentation

◆ TransportClock()

TransportClock::TransportClock ( const std::string &  clock_name,
const std::string &  widget_name,
ClockDisposition  d 
)

Member Function Documentation

◆ follow_canonical_clock()

void TransportClock::follow_canonical_clock ( )
private

◆ set_mode()

void TransportClock::set_mode ( Mode  )
protectedvirtual

Reimplemented from AudioClock.


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