Heuraka! Nightmarish rework of DnD code.
[ardour.git] / gtk2_ardour / insert_time_dialog.cc
index 78be9c182650fb005764947bf4e23719ede56281..a63d885fdc5813599325f728391cc7b5cce2c962 100644 (file)
@@ -31,10 +31,10 @@ using namespace Editing;
 InsertTimeDialog::InsertTimeDialog (PublicEditor& e)
        : ArdourDialog (_("Insert Time"))
        , _editor (e)
-       , _clock ("insertTimeClock", true, X_("InsertTimeClock"), true, false, true, true)
+       , _clock ("insertTimeClock", true, "", true, false, true, false)
 {
        set_session (_editor.session ());
-       
+
        framepos_t const pos = _editor.get_preferred_edit_position ();
 
        get_vbox()->set_border_width (12);
@@ -62,6 +62,9 @@ InsertTimeDialog::InsertTimeDialog (PublicEditor& e)
 
        get_vbox()->pack_start (*table);
 
+       _all_playlists.set_label (_("Insert time on all the track's playlists"));
+       get_vbox()->pack_start (_all_playlists);
+
        _move_glued.set_label (_("Move glued regions"));
        get_vbox()->pack_start (_move_glued);
        _move_markers.set_label (_("Move markers"));
@@ -77,8 +80,12 @@ InsertTimeDialog::InsertTimeDialog (PublicEditor& e)
        indent->set_padding (0, 0, 12, 0);
        indent->add (_move_locked_markers);
        get_vbox()->pack_start (*indent);
-       _move_tempos.set_label (_("Move tempo and meter changes"));
-       get_vbox()->pack_start (_move_tempos);
+       tempo_label.set_markup (_("Move tempo and meter changes\n<i>(may cause oddities in the tempo map)</i>"));
+       HBox* tempo_box = manage (new HBox);
+       tempo_box->set_spacing (6);
+       tempo_box->pack_start (_move_tempos, false, false);
+       tempo_box->pack_start (tempo_label, false, false);
+       get_vbox()->pack_start (*tempo_box);
 
        add_button (Gtk::Stock::CANCEL, Gtk::RESPONSE_CANCEL);
        add_button (_("Insert time"), Gtk::RESPONSE_OK);
@@ -108,6 +115,12 @@ InsertTimeDialog::intersected_region_action ()
        return opt;
 }
 
+bool
+InsertTimeDialog::all_playlists () const
+{
+       return _all_playlists.get_active ();
+}
+
 bool
 InsertTimeDialog::move_glued () const
 {