search lib64 for LADSPA plugins, and fix control point box size:track height relationship
authorPaul Davis <paul@linuxaudiosystems.com>
Tue, 31 Oct 2006 20:09:41 +0000 (20:09 +0000)
committerPaul Davis <paul@linuxaudiosystems.com>
Tue, 31 Oct 2006 20:09:41 +0000 (20:09 +0000)
git-svn-id: svn://localhost/ardour2/trunk@1040 d708f5d6-7413-0410-9779-e7cbd77b26cf

gtk2_ardour/automation_line.cc
gtk2_ardour/automation_line.h
libs/ardour/plugin_manager.cc

index f52b2dcf427eb14204e1434729c9c3c3b461fa40..f81cd565c6049e09e99ad098202c49c205887036 100644 (file)
@@ -270,14 +270,6 @@ AutomationLine::queue_reset ()
        }
 }
 
-void
-AutomationLine::set_point_size (double sz)
-{
-       for (vector<ControlPoint*>::iterator i = control_points.begin(); i != control_points.end(); ++i) {
-               (*i)->set_size (sz);
-       }
-}      
-
 void
 AutomationLine::show () 
 {
@@ -302,18 +294,27 @@ AutomationLine::hide ()
        _visible = false;
 }
 
+uint32_t
+AutomationLine::control_point_box_size ()
+{
+       if (_height > TimeAxisView::hLarger) {
+               return 8.0;
+       } else if (_height > (guint32) TimeAxisView::hNormal) {
+               return 6.0;
+       } 
+       return 4.0;
+}
+
 void
 AutomationLine::set_height (guint32 h)
 {
        if (h != _height) {
                _height = h;
 
-               if (_height > (guint32) TimeAxisView::Larger) {
-                       set_point_size (8.0);
-               } else if (_height > (guint32) TimeAxisView::Normal) {
-                       set_point_size (6.0);
-               } else {
-                       set_point_size (4.0);
+               uint32_t bsz = control_point_box_size();
+
+               for (vector<ControlPoint*>::iterator i = control_points.begin(); i != control_points.end(); ++i) {
+                       (*i)->set_size (bsz);
                }
 
                reset ();
@@ -700,13 +701,8 @@ AutomationLine::determine_visible_control_points (ALPoints& points)
                slope[n] = ydelta/xdelta;
        }
 
-       if (_height > (guint32) TimeAxisView::Larger) {
-               box_size = 8.0;
-       } else if (_height > (guint32) TimeAxisView::Normal) {
-               box_size = 6.0;
-       } else {
-               box_size = 4.0;
-                       }
+       box_size = control_point_box_size ();
+
        /* read all points and decide which ones to show as control points */
 
        view_index = 0;
index 0567ffaa56a0a0f88a71763e418d28f5bb02b70b..95d7164e3c4184bdb0cdb3a554e3355760f7137f 100644 (file)
@@ -146,8 +146,6 @@ class AutomationLine : public sigc::trackable, public PBD::StatefulThingWithGoin
        void show_selection();
        void hide_selection ();
 
-       void set_point_size (double size);
-
        virtual string  get_verbose_cursor_string (float);
        virtual void view_to_model_y (double&) = 0;
        virtual void model_to_view_y (double&) = 0;
@@ -219,6 +217,8 @@ class AutomationLine : public sigc::trackable, public PBD::StatefulThingWithGoin
        void reset_line_coords (ControlPoint&);
        void update_line ();
 
+       uint32_t control_point_box_size ();
+
        struct ModelRepresentation {
            ARDOUR::AutomationList::iterator start;
            ARDOUR::AutomationList::iterator end;
index 5b3a4658a80fd55e2658038ad0acda9c3b06ab78..b44bd05b9ae9cf1e95e435f813a213c70cfe0a5d 100644 (file)
@@ -106,7 +106,7 @@ PluginManager::ladspa_refresh ()
        _ladspa_plugin_info.clear ();
 
        if (ladspa_path.length() == 0) {
-               ladspa_path = "/usr/local/lib/ladspa:/usr/lib/ladspa";
+               ladspa_path = "/usr/local/lib64/ladspa:/usr/local/lib/ladspa:/usr/lib64/ladspa:/usr/lib/ladspa";
        }
 
        ladspa_discover_from_path (ladspa_path);