mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-15 19:16:40 +01:00
provide control over precisely what aspects of an ArdourButton are rendered, and other button-related miscellany
git-svn-id: svn://localhost/ardour2/branches/3.0@10315 d708f5d6-7413-0410-9779-e7cbd77b26cf
This commit is contained in:
parent
892f3c361e
commit
5005ba060e
5 changed files with 146 additions and 93 deletions
|
|
@ -96,7 +96,8 @@ RefPtr<Action> ProcessorBox::controls_action;
|
|||
Glib::RefPtr<Gdk::Pixbuf> SendProcessorEntry::_slider;
|
||||
|
||||
ProcessorEntry::ProcessorEntry (boost::shared_ptr<Processor> p, Width w)
|
||||
: _position (PreFader)
|
||||
: _button (ArdourButton::led_default_elements)
|
||||
, _position (PreFader)
|
||||
, _processor (p)
|
||||
, _width (w)
|
||||
, _visual_state (Gtk::STATE_NORMAL)
|
||||
|
|
@ -108,9 +109,10 @@ ProcessorEntry::ProcessorEntry (boost::shared_ptr<Processor> p, Width w)
|
|||
_button.set_active_state (CairoWidget::Active);
|
||||
}
|
||||
_button.set_diameter (3);
|
||||
_button.signal_clicked.connect (sigc::mem_fun (*this, &ProcessorEntry::led_clicked));
|
||||
_button.set_text (name());
|
||||
_button.set_distinct_led_click (true);
|
||||
_button.set_led_left (true);
|
||||
_button.signal_led_clicked.connect (sigc::mem_fun (*this, &ProcessorEntry::led_clicked));
|
||||
_button.set_text (name());
|
||||
_button.show ();
|
||||
|
||||
_processor->ActiveChanged.connect (active_connection, invalidator (*this), boost::bind (&ProcessorEntry::processor_active_changed, this), gui_context());
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue