using namespace ARDOUR;
using namespace PBD;
-TempoDialog::TempoDialog (TempoMap& map, framepos_t frame, const string & action)
+TempoDialog::TempoDialog (TempoMap& map, framepos_t frame, const string&)
: ArdourDialog (_("New Tempo"))
, bpm_adjustment (60.0, 1.0, 999.9, 0.1, 1.0)
, bpm_spinner (bpm_adjustment)
init (when, tempo.beats_per_minute(), tempo.note_type(), true);
}
-TempoDialog::TempoDialog (TempoSection& section, const string & action)
- : ArdourDialog ("Edit Tempo")
+TempoDialog::TempoDialog (TempoSection& section, const string&)
+ : ArdourDialog (_("Edit Tempo"))
, bpm_adjustment (60.0, 1.0, 999.9, 0.1, 1.0)
, bpm_spinner (bpm_adjustment)
, when_bar_label (_("bar:"), ALIGN_LEFT, ALIGN_CENTER)
strings.push_back (_("quarter"));
note_types.insert (make_pair (_("eighth"), 8.0));
strings.push_back (_("eighth"));
+ note_types.insert (make_pair (_("sixteenth"), 16.0));
+ strings.push_back (_("sixteenth"));
note_types.insert (make_pair (_("thirty-second"), 32.0));
strings.push_back (_("thirty-second"));
note_types.insert (make_pair (_("sixty-fourth"), 64.0));
snprintf (buf, sizeof (buf), "%" PRIu32, when.beats);
when_beat_entry.set_text (buf);
- when_bar_entry.set_name ("MetricEntry");
- when_beat_entry.set_name ("MetricEntry");
-
when_bar_entry.set_width_chars(4);
when_beat_entry.set_width_chars (4);
}
-MeterDialog::MeterDialog (TempoMap& map, framepos_t frame, const string & action)
- : ArdourDialog ("New Meter")
+MeterDialog::MeterDialog (TempoMap& map, framepos_t frame, const string&)
+ : ArdourDialog (_("New Meter"))
{
Timecode::BBT_Time when;
frame = map.round_to_bar(frame,0);
init (when, meter.divisions_per_bar(), meter.note_divisor(), true);
}
-MeterDialog::MeterDialog (MeterSection& section, const string & action)
- : ArdourDialog ("Edit Meter")
+MeterDialog::MeterDialog (MeterSection& section, const string&)
+ : ArdourDialog (_("Edit Meter"))
{
init (section.start(), section.divisions_per_bar(), section.note_divisor(), section.movable());
}
strings.push_back (_("quarter"));
note_types.insert (make_pair (_("eighth"), 8.0));
strings.push_back (_("eighth"));
+ note_types.insert (make_pair (_("sixteenth"), 16.0));
+ strings.push_back (_("sixteenth"));
note_types.insert (make_pair (_("thirty-second"), 32.0));
strings.push_back (_("thirty-second"));
note_types.insert (make_pair (_("sixty-fourth"), 64.0));
snprintf (buf, sizeof (buf), "%" PRIu32, when.bars);
when_bar_entry.set_text (buf);
- when_bar_entry.set_name ("MetricEntry");
Label* when_label = manage (new Label(_("Meter begins at bar:"), ALIGN_LEFT, ALIGN_CENTER));
get_vbox()->set_border_width (12);
get_vbox()->pack_start (*table, false, false);
- bpb_entry.set_name ("MetricEntry");
-
add_button (Stock::CANCEL, RESPONSE_CANCEL);
add_button (Stock::APPLY, RESPONSE_ACCEPT);
set_response_sensitive (RESPONSE_ACCEPT, false);
}
requested.beats = 1;
-
requested.ticks = 0;
return true;