"fix" track heights etc.
authorPaul Davis <paul@linuxaudiosystems.com>
Tue, 3 Jan 2006 05:40:21 +0000 (05:40 +0000)
committerPaul Davis <paul@linuxaudiosystems.com>
Tue, 3 Jan 2006 05:40:21 +0000 (05:40 +0000)
git-svn-id: svn://localhost/trunk/ardour2@229 d708f5d6-7413-0410-9779-e7cbd77b26cf

gtk2_ardour/ardour2_ui.rc
gtk2_ardour/ardour_message.cc
gtk2_ardour/editor.cc
gtk2_ardour/editor_mouse.cc
gtk2_ardour/time_axis_view.cc
gtk2_ardour/time_axis_view.h

index 71f5d56e10e368ef0c9f445ca779ce62ae695815..54a6723fd1edfa6cf740035ea562f31b0f55a579 100644 (file)
@@ -1080,7 +1080,7 @@ widget "*TransportSoloAlert.*" style "flashing_alert"
 widget "*TransportAuditioningAlert" style "flashing_alert"
 widget "*TransportAuditioningAlert.*" style "flashing_alert"
 widget "*Prompter" style "default_base"
-widget "*PrompterLabel" style "default_base"
+widget "*PrompterLabel" style "larger_bold_text"
 widget "*CleanupDialog" style "default_base"
 widget "*CleanupDialog*" style "default_base"
 widget "*FadeCurve" style "medium_bold_entry"
index 5f761cb6b9c0c3611c0e00cbd6e3d4d2219b28e9..2948559f1485ef82de6ca2c2eaec8e07fdc922d8 100644 (file)
@@ -31,9 +31,10 @@ ArdourMessage::ArdourMessage (Gtk::Window* parent,
                              string name, string msg, 
                              bool grab_focus, bool auto_run)
        : ArdourDialog (name),
-         label (msg, 0.5, 0.5)
+         label (msg)
 {
        label.set_name (X_("PrompterLabel"));
+       label.set_justify (JUSTIFY_CENTER);
        label.show ();
 
        get_vbox()->pack_start (label);
index 3036bd55d4f73b23c7310f2689384468a1cb238d..faa58359e544315fb6cb3f3894f85047243caa1a 100644 (file)
@@ -321,7 +321,7 @@ Editor::Editor (AudioEngine& eng)
        ignore_route_list_reorder = false;
        verbose_cursor_on = true;
        route_removal = false;
-       track_spacing = 2;
+       track_spacing = 0;
        show_automatic_regions_in_region_list = true;
        have_pending_keyboard_selection = false;
        _follow_playhead = true;
index 65f1f7a6cb937c7c25b0c91ec72f32103c9502dc..90714ed8df5eb041fd9d8ce1d0b751d4a0159276 100644 (file)
@@ -2676,7 +2676,8 @@ Editor::region_drag_motion_callback (ArdourCanvas::Item* item, GdkEvent* event)
        if ((pointer_y_span = (drag_info.last_trackview->order - tv->order)) != 0) {
 
                int32_t children = 0, numtracks = 0;
-               bitset <512> tracks (0x00);
+               // XXX hard coding track limit, oh my, so very very bad
+               bitset <1024> tracks (0x00);
                /* get a bitmask representing the visible tracks */
 
                for (TrackViewList::iterator i = track_views.begin(); i != track_views.end(); ++i) {
index b9079159f4a89c9d4a9178350509bf9ed8668379..8eb58d0c610d360b777adeb69168bc55e3a68edd 100644 (file)
@@ -130,7 +130,7 @@ TimeAxisView::TimeAxisView (ARDOUR::Session& sess, PublicEditor& ed, TimeAxisVie
        controls_ebox.set_flags (CAN_FOCUS);
 
        controls_ebox.signal_button_release_event().connect (mem_fun (*this, &TimeAxisView::controls_ebox_button_release));
-       controls_ebox.signal_scroll_event().connect (mem_fun (*this, &TimeAxisView::controls_ebox_scroll));
+       controls_ebox.signal_scroll_event().connect (mem_fun (*this, &TimeAxisView::controls_ebox_scroll), true);
 
        controls_lhs_pad.set_name ("TimeAxisViewControlsPadding");
        controls_hbox.pack_start (controls_lhs_pad,false,false);
@@ -140,6 +140,7 @@ TimeAxisView::TimeAxisView (ARDOUR::Session& sess, PublicEditor& ed, TimeAxisVie
        controls_frame.add (controls_hbox);
        controls_frame.set_name ("TimeAxisViewControlsBaseUnselected");
        controls_frame.set_shadow_type (Gtk::SHADOW_OUT);
+
 }
 
 TimeAxisView::~TimeAxisView()
@@ -264,8 +265,6 @@ TimeAxisView::controls_ebox_scroll (GdkEventScroll* ev)
 bool
 TimeAxisView::controls_ebox_button_release (GdkEventButton* ev)
 {
-       cerr << "controls ebox button release button " << ev->button << endl;
-
        switch (ev->button) {
        case 1:
                selection_click (ev);
@@ -352,22 +351,16 @@ TimeAxisView::step_height (bool bigger)
        }
 }
 
-
 void
 TimeAxisView::set_height (TrackHeight h)
 {
-       height = (guint32) h;
-       controls_frame.set_size_request (-1, height+2);
+       height = (gint32) h;
+       controls_frame.set_size_request (-1, height);
 
        if (canvas_item_visible (selection_group)) {
                /* resize the selection rect */
                show_selection (editor.get_selection().time);
        }
-
-//     for (vector<TimeAxisView*>::iterator i = children.begin(); i != children.end(); ++i) {
-//             (*i)->set_height (h);
-//     }
-
 }
 
 bool
@@ -875,3 +868,7 @@ TimeAxisView::reset_height()
        }
 }
        
+void
+TimeAxisView::check_height (Gdk::Rectangle& r)
+{
+}
index b2e73e876ae87d05f886689c07b31b933d60522a..e5e13a6c3f000e6318bdf78d646aa28efced1eec 100644 (file)
@@ -75,12 +75,12 @@ class TimeAxisView : public virtual AxisView
                   valued so that there is a precise
                   middle.
                */
-               Largest = 301,
-               Large = 201,
-               Larger = 101,
-               Normal = 51,
-               Smaller = 31,
-               Small = 21
+               Largest = 307,
+               Large = 207,
+               Larger = 107,
+               Normal = 57,
+               Smaller = 37,
+               Small = 27
        };
 
        TimeAxisView(ARDOUR::Session& sess, PublicEditor& ed, TimeAxisView* parent, ArdourCanvas::Canvas& canvas);
@@ -89,7 +89,7 @@ class TimeAxisView : public virtual AxisView
        /* public data: XXX create accessor/mutators for these ?? */
 
        PublicEditor& editor;
-
+       
        guint32 height;  /* in canvas units */
        guint32 effective_height;  /* in canvas units */
        double  y_position;
@@ -294,6 +294,8 @@ class TimeAxisView : public virtual AxisView
        bool _hidden;
        bool _has_state;
 
+       void check_height (Gdk::Rectangle&);
+
 }; /* class TimeAxisView */
 
 #endif /* __ardour_gtk_time_axis_h__ */