20 #include <gtkmm/stock.h>
21 #include <gtkmm/table.h>
54 , strength_adjustment (100.0, 0.0, 100.0, 1.0, 10.0)
55 , strength_spinner (strength_adjustment)
56 , strength_label (
_(
"Strength"))
57 , swing_adjustment (100.0, -130.0, 130.0, 1.0, 10.0)
58 , swing_spinner (swing_adjustment)
59 , swing_button (
_(
"Swing"))
60 , threshold_adjustment (0.0, -
Timecode::BBT_Time::ticks_per_beat,
Timecode::BBT_Time::ticks_per_beat, 1.0, 10.0)
61 , threshold_spinner (threshold_adjustment)
62 , threshold_label (
_(
"Threshold (ticks)"))
63 , snap_start_button (
_(
"Snap note start"))
64 , snap_end_button (
_(
"Snap note end"))
75 Table* table = manage (
new Table (6, 2));
76 table->set_spacings (12);
77 table->set_border_width (12);
105 get_vbox()->pack_start (*table);
108 add_button (Stock::CANCEL, RESPONSE_CANCEL);
109 add_button (
_(
"Quantize"), RESPONSE_OK);
131 if (txt ==
"main grid") {
141 if (txt ==
_(
"Beats/128")) {
143 }
else if (txt ==
_(
"Beats/64")) {
145 }
else if (txt ==
_(
"Beats/32")) {
147 }
else if (txt ==
_(
"Beats/16")) {
149 }
if (txt ==
_(
"Beats/8")) {
151 }
else if (txt ==
_(
"Beats/4")) {
153 }
else if (txt ==
_(
"Beats/3")) {
155 }
else if (txt ==
_(
"Beats/2")) {
157 }
else if (txt ==
_(
"Beats")) {
Gtk::Label strength_label
Gtk::Adjustment swing_adjustment
Gtk::CheckButton snap_start_button
Gtk::ComboBoxText end_grid_combo
static std::vector< std::string > grid_strings
Gtk::CheckButton swing_button
Representation of the interface of the Editor class.
LIBGTKMM2EXT_API void set_popdown_strings(Gtk::ComboBoxText &, const std::vector< std::string > &)
Gtk::Adjustment threshold_adjustment
Gtk::ComboBoxText start_grid_combo
virtual Evoral::Beats get_grid_type_as_beats(bool &success, framepos_t position)=0
double start_grid_size() const
Gtk::SpinButton strength_spinner
double end_grid_size() const
Gtk::SpinButton threshold_spinner
double grid_size_to_musical_time(const std::string &) const
QuantizeDialog(PublicEditor &)
Gtk::Label threshold_label
Gtk::Adjustment strength_adjustment
Gtk::SpinButton swing_spinner
static const gchar * _grid_strings[]
Gtk::CheckButton snap_end_button