mirror of
https://github.com/Ardour/ardour.git
synced 2026-01-01 03:17:39 +01:00
goodbye pixmaps and pixbufs (no longer) used by Gtkmm2ext::PixFader
git-svn-id: svn://localhost/ardour2/branches/3.0@13827 d708f5d6-7413-0410-9779-e7cbd77b26cf
This commit is contained in:
parent
31172d0c71
commit
b1029a3caf
13 changed files with 42 additions and 189 deletions
|
|
@ -90,8 +90,6 @@ RefPtr<Action> ProcessorBox::cut_action;
|
|||
RefPtr<Action> ProcessorBox::rename_action;
|
||||
RefPtr<Action> ProcessorBox::edit_action;
|
||||
RefPtr<Action> ProcessorBox::edit_generic_action;
|
||||
Glib::RefPtr<Gdk::Pixbuf> ProcessorEntry::_slider_pixbuf;
|
||||
Glib::RefPtr<Gdk::Pixbuf> ProcessorEntry::_slider_pixbuf_desensitised;
|
||||
|
||||
ProcessorEntry::ProcessorEntry (ProcessorBox* parent, boost::shared_ptr<Processor> p, Width w)
|
||||
: _button (ArdourButton::led_default_elements)
|
||||
|
|
@ -122,12 +120,7 @@ ProcessorEntry::ProcessorEntry (ProcessorBox* parent, boost::shared_ptr<Processo
|
|||
set<Evoral::Parameter> p = _processor->what_can_be_automated ();
|
||||
for (set<Evoral::Parameter>::iterator i = p.begin(); i != p.end(); ++i) {
|
||||
|
||||
Control* c = new Control (
|
||||
_slider_pixbuf,
|
||||
_slider_pixbuf_desensitised,
|
||||
_processor->automation_control (*i),
|
||||
_processor->describe_parameter (*i)
|
||||
);
|
||||
Control* c = new Control (_processor->automation_control (*i), _processor->describe_parameter (*i));
|
||||
|
||||
_controls.push_back (c);
|
||||
|
||||
|
|
@ -303,15 +296,6 @@ ProcessorEntry::name (Width w) const
|
|||
return name_display;
|
||||
}
|
||||
|
||||
void
|
||||
ProcessorEntry::setup_slider_pix ()
|
||||
{
|
||||
_slider_pixbuf = ::get_icon ("fader_belt_h_thin");
|
||||
assert (_slider_pixbuf);
|
||||
_slider_pixbuf_desensitised = ::get_icon ("fader_belt_h_thin_desensitised");
|
||||
assert (_slider_pixbuf_desensitised);
|
||||
}
|
||||
|
||||
void
|
||||
ProcessorEntry::set_pixel_width (int p)
|
||||
{
|
||||
|
|
@ -407,10 +391,10 @@ ProcessorEntry::toggle_control_visibility (Control* c)
|
|||
_parent->update_gui_object_state (this);
|
||||
}
|
||||
|
||||
ProcessorEntry::Control::Control (Glib::RefPtr<Gdk::Pixbuf> s, Glib::RefPtr<Gdk::Pixbuf> sd, boost::shared_ptr<AutomationControl> c, string const & n)
|
||||
ProcessorEntry::Control::Control (boost::shared_ptr<AutomationControl> c, string const & n)
|
||||
: _control (c)
|
||||
, _adjustment (gain_to_slider_position_with_max (1.0, Config->get_max_gain()), 0, 1, 0.01, 0.1)
|
||||
, _slider (s, sd, &_adjustment, 0, false)
|
||||
, _slider (&_adjustment, 0, false)
|
||||
, _slider_persistant_tooltip (&_slider)
|
||||
, _button (ArdourButton::Element (ArdourButton::Text | ArdourButton::Indicator))
|
||||
, _ignore_ui_adjustment (false)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue