Ardour  9.0-pre0-582-g084a23a80d
GainMeterBase Class Reference

#include <gain_meter.h>

Inheritance diagram for GainMeterBase:
[legend]

Public Member Functions

 GainMeterBase (ARDOUR::Session *, bool horizontal, int, int)
 
virtual ~GainMeterBase ()
 
virtual void set_controls (std::shared_ptr< ARDOUR::Stripable > stripable, std::shared_ptr< ARDOUR::PeakMeter > meter, std::shared_ptr< ARDOUR::Amp > amp, std::shared_ptr< ARDOUR::GainControl > control)
 
void update_gain_sensitive ()
 
void update_meters ()
 
const ARDOUR::ChanCount meter_channels () const
 
void effective_gain_display ()
 
void set_width (Width, int len=0)
 
void set_meter_strip_name (const char *name)
 
void set_fader_name (const char *name)
 
void set_fader_fg (uint32_t)
 
void set_fader_bg (uint32_t)
 
void unset_fader_fg ()
 
void unset_fader_bg ()
 
virtual void setup_meters (int len=0)
 
std::shared_ptr< PBD::Controllableget_controllable ()
 
LevelMeterHBoxget_level_meter () const
 
CairoWidgetget_gain_slider () const
 

Static Public Member Functions

static std::string meterpt_string (ARDOUR::MeterPoint)
 
static std::string astate_string (ARDOUR::AutoState)
 
static std::string short_astate_string (ARDOUR::AutoState)
 
static std::string _astate_string (ARDOUR::AutoState, bool)
 

Public Attributes

PBD::Signal< bool(GdkEventButton *)> LevelMeterButtonPress
 

Protected Member Functions

void set_gain_astate (ARDOUR::AutoState)
 
gint gain_automation_state_button_event (GdkEventButton *)
 
gint pan_automation_state_button_event (GdkEventButton *)
 
void gain_automation_state_changed ()
 
void setup_gain_adjustment ()
 
void show_gain ()
 
void gain_activated ()
 
bool gain_focused (GdkEventFocus *)
 
void fader_moved ()
 
void gain_changed ()
 
void meter_point_clicked (ARDOUR::MeterPoint)
 
void gain_unit_changed ()
 
virtual void hide_all_meters ()
 
gint meter_button_press (GdkEventButton *, uint32_t)
 
bool peak_button_press (GdkEventButton *)
 
bool peak_button_release (GdkEventButton *)
 
bool gain_key_press (GdkEventKey *)
 
void popup_meter_menu (GdkEventButton *)
 
void amp_stop_touch (int)
 
void amp_start_touch (int)
 
void set_route_group_meter_point (ARDOUR::Route &, ARDOUR::MeterPoint)
 
void set_meter_point (ARDOUR::Route &, ARDOUR::MeterPoint)
 
gint meter_press (GdkEventButton *)
 
void parameter_changed (const char *)
 
void reset_peak_display ()
 
void reset_route_peak_display (ARDOUR::Route *)
 
void reset_group_peak_display (ARDOUR::RouteGroup *)
 
void redraw_metrics ()
 
void on_theme_changed ()
 
void color_handler (bool)
 
std::shared_ptr< ARDOUR::Routeroute ()
 

Protected Attributes

std::shared_ptr< ARDOUR::Stripable_stripable
 
std::shared_ptr< ARDOUR::PeakMeter_meter
 
std::shared_ptr< ARDOUR::Amp_amp
 
std::shared_ptr< ARDOUR::GainControl_control
 
std::vector< sigc::connection > connections
 
PBD::ScopedConnectionList model_connections
 
bool ignore_toggle
 
bool next_release_selects
 
ArdourWidgets::SliderControllergain_slider
 
Gtk::Adjustment gain_adjustment
 
ArdourWidgets::FocusEntry gain_display
 
ArdourWidgets::FocusEntry peak_display
 
Gtk::DrawingArea meter_metric_area
 
Gtk::DrawingArea meter_ticks1_area
 
Gtk::DrawingArea meter_ticks2_area
 
LevelMeterHBoxlevel_meter
 
sigc::connection gain_watching
 
ArdourWidgets::ArdourButton gain_automation_state_button
 
Gtk::Menu gain_astate_menu
 
ArdourWidgets::ArdourButton meter_point_button
 
Gtk::Menu meter_point_menu
 
bool gain_astate_propagate
 
Width _width
 
float max_peak
 
Gtk::Menumeter_menu
 
std::shared_ptr< ARDOUR::ControlGroup_touch_control_group
 
ARDOUR::MeterPoint old_meter_point
 
MeterPointChangeTarget meter_point_change_target
 
ARDOUR::DataType _data_type
 
ARDOUR::ChanCount _previous_amp_output_streams
 

Static Protected Attributes

static sigc::signal< void, ARDOUR::AutoStateChangeGainAutomationState
 

Private Member Functions

bool level_meter_button_press (GdkEventButton *)
 
- Private Member Functions inherited from ARDOUR::SessionHandlePtr
 SessionHandlePtr (ARDOUR::Session *s)
 
 SessionHandlePtr ()
 
virtual ~SessionHandlePtr ()
 
virtual void set_session (ARDOUR::Session *)
 
virtual ARDOUR::Sessionsession () const
 
virtual void session_going_away ()
 

Private Attributes

PBD::ScopedConnection _level_meter_connection
 
bool _clear_meters
 
bool _meter_peaked
 
- Private Attributes inherited from ARDOUR::SessionHandlePtr
ARDOUR::Session_session
 
PBD::ScopedConnectionList _session_connections
 

Friends

class MixerStrip
 
class MeterStrip
 
class RouteTimeAxisView
 
class VCAMasterStrip
 

Detailed Description

Definition at line 81 of file gain_meter.h.

Constructor & Destructor Documentation

◆ GainMeterBase()

GainMeterBase::GainMeterBase ( ARDOUR::Session ,
bool  horizontal,
int  ,
int   
)

◆ ~GainMeterBase()

virtual GainMeterBase::~GainMeterBase ( )
virtual

Member Function Documentation

◆ _astate_string()

static std::string GainMeterBase::_astate_string ( ARDOUR::AutoState  ,
bool   
)
static

◆ amp_start_touch()

void GainMeterBase::amp_start_touch ( int  )
protected

◆ amp_stop_touch()

void GainMeterBase::amp_stop_touch ( int  )
protected

◆ astate_string()

static std::string GainMeterBase::astate_string ( ARDOUR::AutoState  )
static

◆ color_handler()

void GainMeterBase::color_handler ( bool  )
protected

◆ effective_gain_display()

void GainMeterBase::effective_gain_display ( )

◆ fader_moved()

void GainMeterBase::fader_moved ( )
protected

◆ gain_activated()

void GainMeterBase::gain_activated ( )
protected

◆ gain_automation_state_button_event()

gint GainMeterBase::gain_automation_state_button_event ( GdkEventButton )
protected

◆ gain_automation_state_changed()

void GainMeterBase::gain_automation_state_changed ( )
protected

◆ gain_changed()

void GainMeterBase::gain_changed ( )
protected

◆ gain_focused()

bool GainMeterBase::gain_focused ( GdkEventFocus )
protected

◆ gain_key_press()

bool GainMeterBase::gain_key_press ( GdkEventKey )
protected

◆ gain_unit_changed()

void GainMeterBase::gain_unit_changed ( )
protected

◆ get_controllable()

std::shared_ptr<PBD::Controllable> GainMeterBase::get_controllable ( )

◆ get_gain_slider()

CairoWidget& GainMeterBase::get_gain_slider ( ) const

◆ get_level_meter()

LevelMeterHBox& GainMeterBase::get_level_meter ( ) const
inline

Definition at line 110 of file gain_meter.h.

◆ hide_all_meters()

virtual void GainMeterBase::hide_all_meters ( )
protectedvirtual

Reimplemented in GainMeter.

◆ level_meter_button_press()

bool GainMeterBase::level_meter_button_press ( GdkEventButton )
private

◆ meter_button_press()

gint GainMeterBase::meter_button_press ( GdkEventButton ,
uint32_t   
)
protected

◆ meter_channels()

const ARDOUR::ChanCount GainMeterBase::meter_channels ( ) const

◆ meter_point_clicked()

void GainMeterBase::meter_point_clicked ( ARDOUR::MeterPoint  )
protected

◆ meter_press()

gint GainMeterBase::meter_press ( GdkEventButton )
protected

◆ meterpt_string()

static std::string GainMeterBase::meterpt_string ( ARDOUR::MeterPoint  )
static

◆ on_theme_changed()

void GainMeterBase::on_theme_changed ( )
protected

◆ pan_automation_state_button_event()

gint GainMeterBase::pan_automation_state_button_event ( GdkEventButton )
protected

◆ parameter_changed()

void GainMeterBase::parameter_changed ( const char *  )
protected

◆ peak_button_press()

bool GainMeterBase::peak_button_press ( GdkEventButton )
protected

◆ peak_button_release()

bool GainMeterBase::peak_button_release ( GdkEventButton )
protected

◆ popup_meter_menu()

void GainMeterBase::popup_meter_menu ( GdkEventButton )
protected

◆ redraw_metrics()

void GainMeterBase::redraw_metrics ( )
protected

◆ reset_group_peak_display()

void GainMeterBase::reset_group_peak_display ( ARDOUR::RouteGroup )
protected

◆ reset_peak_display()

void GainMeterBase::reset_peak_display ( )
protected

◆ reset_route_peak_display()

void GainMeterBase::reset_route_peak_display ( ARDOUR::Route )
protected

◆ route()

std::shared_ptr<ARDOUR::Route> GainMeterBase::route ( )
protected

◆ set_controls()

virtual void GainMeterBase::set_controls ( std::shared_ptr< ARDOUR::Stripable stripable,
std::shared_ptr< ARDOUR::PeakMeter meter,
std::shared_ptr< ARDOUR::Amp amp,
std::shared_ptr< ARDOUR::GainControl control 
)
virtual

Reimplemented in GainMeter.

◆ set_fader_bg()

void GainMeterBase::set_fader_bg ( uint32_t  )

◆ set_fader_fg()

void GainMeterBase::set_fader_fg ( uint32_t  )

◆ set_fader_name()

void GainMeterBase::set_fader_name ( const char *  name)

◆ set_gain_astate()

void GainMeterBase::set_gain_astate ( ARDOUR::AutoState  )
protected

◆ set_meter_point()

void GainMeterBase::set_meter_point ( ARDOUR::Route ,
ARDOUR::MeterPoint   
)
protected

◆ set_meter_strip_name()

void GainMeterBase::set_meter_strip_name ( const char *  name)

◆ set_route_group_meter_point()

void GainMeterBase::set_route_group_meter_point ( ARDOUR::Route ,
ARDOUR::MeterPoint   
)
protected

◆ set_width()

void GainMeterBase::set_width ( Width  ,
int  len = 0 
)

◆ setup_gain_adjustment()

void GainMeterBase::setup_gain_adjustment ( )
protected

◆ setup_meters()

virtual void GainMeterBase::setup_meters ( int  len = 0)
virtual

Reimplemented in GainMeter.

◆ short_astate_string()

static std::string GainMeterBase::short_astate_string ( ARDOUR::AutoState  )
static

◆ show_gain()

void GainMeterBase::show_gain ( )
protected

◆ unset_fader_bg()

void GainMeterBase::unset_fader_bg ( )

◆ unset_fader_fg()

void GainMeterBase::unset_fader_fg ( )

◆ update_gain_sensitive()

void GainMeterBase::update_gain_sensitive ( )

◆ update_meters()

void GainMeterBase::update_meters ( )

Friends And Related Function Documentation

◆ MeterStrip

friend class MeterStrip
friend

Definition at line 126 of file gain_meter.h.

◆ MixerStrip

friend class MixerStrip
friend

Definition at line 125 of file gain_meter.h.

◆ RouteTimeAxisView

friend class RouteTimeAxisView
friend

Definition at line 127 of file gain_meter.h.

◆ VCAMasterStrip

friend class VCAMasterStrip
friend

Definition at line 128 of file gain_meter.h.

Member Data Documentation

◆ _amp

std::shared_ptr<ARDOUR::Amp> GainMeterBase::_amp
protected

Definition at line 131 of file gain_meter.h.

◆ _clear_meters

bool GainMeterBase::_clear_meters
private

Definition at line 224 of file gain_meter.h.

◆ _control

std::shared_ptr<ARDOUR::GainControl> GainMeterBase::_control
protected

Definition at line 132 of file gain_meter.h.

◆ _data_type

ARDOUR::DataType GainMeterBase::_data_type
protected

Definition at line 214 of file gain_meter.h.

◆ _level_meter_connection

PBD::ScopedConnection GainMeterBase::_level_meter_connection
private

Definition at line 222 of file gain_meter.h.

◆ _meter

std::shared_ptr<ARDOUR::PeakMeter> GainMeterBase::_meter
protected

Definition at line 130 of file gain_meter.h.

◆ _meter_peaked

bool GainMeterBase::_meter_peaked
private

Definition at line 225 of file gain_meter.h.

◆ _previous_amp_output_streams

ARDOUR::ChanCount GainMeterBase::_previous_amp_output_streams
protected

Definition at line 215 of file gain_meter.h.

◆ _stripable

std::shared_ptr<ARDOUR::Stripable> GainMeterBase::_stripable
protected

Definition at line 129 of file gain_meter.h.

◆ _touch_control_group

std::shared_ptr<ARDOUR::ControlGroup> GainMeterBase::_touch_control_group
protected

Definition at line 196 of file gain_meter.h.

◆ _width

Width GainMeterBase::_width
protected

Definition at line 168 of file gain_meter.h.

◆ ChangeGainAutomationState

sigc::signal<void, ARDOUR::AutoState> GainMeterBase::ChangeGainAutomationState
staticprotected

Definition at line 160 of file gain_meter.h.

◆ connections

std::vector<sigc::connection> GainMeterBase::connections
protected

Definition at line 133 of file gain_meter.h.

◆ gain_adjustment

Gtk::Adjustment GainMeterBase::gain_adjustment
protected

Definition at line 140 of file gain_meter.h.

◆ gain_astate_menu

Gtk::Menu GainMeterBase::gain_astate_menu
protected

Definition at line 152 of file gain_meter.h.

◆ gain_astate_propagate

bool GainMeterBase::gain_astate_propagate
protected

Definition at line 159 of file gain_meter.h.

◆ gain_automation_state_button

ArdourWidgets::ArdourButton GainMeterBase::gain_automation_state_button
protected

Definition at line 150 of file gain_meter.h.

◆ gain_display

ArdourWidgets::FocusEntry GainMeterBase::gain_display
protected

Definition at line 141 of file gain_meter.h.

◆ gain_slider

ArdourWidgets::SliderController* GainMeterBase::gain_slider
protected

Definition at line 139 of file gain_meter.h.

◆ gain_watching

sigc::connection GainMeterBase::gain_watching
protected

Definition at line 148 of file gain_meter.h.

◆ ignore_toggle

bool GainMeterBase::ignore_toggle
protected

Definition at line 136 of file gain_meter.h.

◆ level_meter

LevelMeterHBox* GainMeterBase::level_meter
protected

Definition at line 146 of file gain_meter.h.

◆ LevelMeterButtonPress

PBD::Signal<bool(GdkEventButton *)> GainMeterBase::LevelMeterButtonPress

Emitted in the GUI thread when a button is pressed over the level meter; return true if the event is handled.

Definition at line 116 of file gain_meter.h.

◆ max_peak

float GainMeterBase::max_peak
protected

Definition at line 174 of file gain_meter.h.

◆ meter_menu

Gtk::Menu* GainMeterBase::meter_menu
protected

Definition at line 190 of file gain_meter.h.

◆ meter_metric_area

Gtk::DrawingArea GainMeterBase::meter_metric_area
protected

Definition at line 143 of file gain_meter.h.

◆ meter_point_button

ArdourWidgets::ArdourButton GainMeterBase::meter_point_button
protected

Definition at line 154 of file gain_meter.h.

◆ meter_point_change_target

MeterPointChangeTarget GainMeterBase::meter_point_change_target
protected

Definition at line 203 of file gain_meter.h.

◆ meter_point_menu

Gtk::Menu GainMeterBase::meter_point_menu
protected

Definition at line 156 of file gain_meter.h.

◆ meter_ticks1_area

Gtk::DrawingArea GainMeterBase::meter_ticks1_area
protected

Definition at line 144 of file gain_meter.h.

◆ meter_ticks2_area

Gtk::DrawingArea GainMeterBase::meter_ticks2_area
protected

Definition at line 145 of file gain_meter.h.

◆ model_connections

PBD::ScopedConnectionList GainMeterBase::model_connections
protected

Definition at line 134 of file gain_meter.h.

◆ next_release_selects

bool GainMeterBase::next_release_selects
protected

Definition at line 137 of file gain_meter.h.

◆ old_meter_point

ARDOUR::MeterPoint GainMeterBase::old_meter_point
protected

Definition at line 201 of file gain_meter.h.

◆ peak_display

ArdourWidgets::FocusEntry GainMeterBase::peak_display
protected

Definition at line 142 of file gain_meter.h.


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