mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-10 00:34:59 +01:00
partial patch/partial by-hand merge of 2.X commits 3169&3170 to 3.X codebase
git-svn-id: svn://localhost/ardour2/branches/3.0@4300 d708f5d6-7413-0410-9779-e7cbd77b26cf
This commit is contained in:
parent
a9bb336fc4
commit
3be16e8afb
35 changed files with 1399 additions and 932 deletions
|
|
@ -30,11 +30,9 @@ using namespace PBD;
|
|||
|
||||
SliderController::SliderController (Glib::RefPtr<Gdk::Pixbuf> image,
|
||||
Gtk::Adjustment *adj, int orientation,
|
||||
boost::shared_ptr<Controllable> c,
|
||||
bool with_numeric)
|
||||
|
||||
: PixFader (image, *adj, orientation),
|
||||
binding_proxy (c),
|
||||
spin (*adj, 0, 2)
|
||||
{
|
||||
spin.set_name ("SliderControllerValue");
|
||||
|
|
@ -55,15 +53,15 @@ SliderController::on_button_press_event (GdkEventButton *ev)
|
|||
if (binding_proxy.button_press_handler (ev)) {
|
||||
return true;
|
||||
}
|
||||
|
||||
return PixFader::on_button_press_event (ev);
|
||||
}
|
||||
|
||||
VSliderController::VSliderController (Glib::RefPtr<Gdk::Pixbuf> image,
|
||||
Gtk::Adjustment *adj,
|
||||
boost::shared_ptr<Controllable> control,
|
||||
bool with_numeric)
|
||||
|
||||
: SliderController (image, adj, VERT, control, with_numeric)
|
||||
: SliderController (image, adj, VERT, with_numeric)
|
||||
{
|
||||
if (with_numeric) {
|
||||
spin_frame.add (spin);
|
||||
|
|
@ -76,10 +74,9 @@ VSliderController::VSliderController (Glib::RefPtr<Gdk::Pixbuf> image,
|
|||
|
||||
HSliderController::HSliderController (Glib::RefPtr<Gdk::Pixbuf> image,
|
||||
Gtk::Adjustment *adj,
|
||||
boost::shared_ptr<Controllable> control,
|
||||
bool with_numeric)
|
||||
|
||||
: SliderController (image, adj, HORIZ, control, with_numeric)
|
||||
: SliderController (image, adj, HORIZ, with_numeric)
|
||||
{
|
||||
if (with_numeric) {
|
||||
spin_frame.add (spin);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue