Add OK/Cancel buttons to quantize dialog.
git-svn-id: svn://localhost/ardour2/branches/3.0@5939 d708f5d6-7413-0410-9779-e7cbd77b26cf
This commit is contained in:
parent
fc912ee219
commit
d46998dae7
|
@ -4848,15 +4848,17 @@ Editor::quantize_region ()
|
|||
QuantizeDialog* qd = new QuantizeDialog (*this);
|
||||
|
||||
qd->present ();
|
||||
qd->run ();
|
||||
const int r = qd->run ();
|
||||
qd->hide ();
|
||||
|
||||
Quantize quant (*session, Plain,
|
||||
qd->snap_start(), qd->snap_end(),
|
||||
qd->start_grid_size(), qd->end_grid_size(),
|
||||
qd->strength(), qd->swing(), qd->threshold());
|
||||
if (r == Gtk::RESPONSE_OK) {
|
||||
Quantize quant (*session, Plain,
|
||||
qd->snap_start(), qd->snap_end(),
|
||||
qd->start_grid_size(), qd->end_grid_size(),
|
||||
qd->strength(), qd->swing(), qd->threshold());
|
||||
|
||||
apply_midi_note_edit_op (quant);
|
||||
apply_midi_note_edit_op (quant);
|
||||
}
|
||||
}
|
||||
|
||||
void
|
||||
|
|
|
@ -17,6 +17,7 @@
|
|||
|
||||
*/
|
||||
|
||||
#include <gtkmm/stock.h>
|
||||
#include "gtkmm2ext/utils.h"
|
||||
|
||||
#include "quantize_dialog.h"
|
||||
|
@ -147,6 +148,9 @@ QuantizeDialog::QuantizeDialog (PublicEditor& e)
|
|||
|
||||
snap_start_button.set_active (true);
|
||||
snap_end_button.set_active (false);
|
||||
|
||||
add_button (Stock::CANCEL, RESPONSE_CANCEL);
|
||||
add_button (Stock::OK, RESPONSE_OK);
|
||||
}
|
||||
|
||||
QuantizeDialog::~QuantizeDialog()
|
||||
|
|
Loading…
Reference in New Issue