28 |
# include <gtkmm/table.h> |
# include <gtkmm/table.h> |
29 |
#endif |
#endif |
30 |
|
|
31 |
|
#include "Settings.h" |
32 |
|
|
33 |
VelocityCurve::VelocityCurve(double (gig::DimensionRegion::*getter)(uint8_t)) : |
VelocityCurve::VelocityCurve(double (gig::DimensionRegion::*getter)(uint8_t)) : |
34 |
getter(getter), dimreg(0) { |
getter(getter), dimreg(0) { |
35 |
set_size_request(80, 80); |
set_size_request(80, 80); |
189 |
)); |
)); |
190 |
} |
} |
191 |
|
|
192 |
|
void EGStateOptions::on_show_tooltips_changed() { |
193 |
|
const bool b = Settings::singleton()->showTooltips; |
194 |
|
|
195 |
|
checkBoxAttack.set_has_tooltip(b); |
196 |
|
checkBoxAttackHold.set_has_tooltip(b); |
197 |
|
checkBoxDecay1.set_has_tooltip(b); |
198 |
|
checkBoxDecay2.set_has_tooltip(b); |
199 |
|
checkBoxRelease.set_has_tooltip(b); |
200 |
|
} |
201 |
|
|
202 |
|
|
203 |
DimRegionEdit::DimRegionEdit() : |
DimRegionEdit::DimRegionEdit() : |
204 |
velocity_curve(&gig::DimensionRegion::GetVelocityAttenuation), |
velocity_curve(&gig::DimensionRegion::GetVelocityAttenuation), |
972 |
append_page(*table[4], _("Filter (2)")); |
append_page(*table[4], _("Filter (2)")); |
973 |
append_page(*table[5], _("Pitch")); |
append_page(*table[5], _("Pitch")); |
974 |
append_page(*table[6], _("Misc")); |
append_page(*table[6], _("Misc")); |
975 |
|
|
976 |
|
Settings::singleton()->showTooltips.get_proxy().signal_changed().connect( |
977 |
|
sigc::mem_fun(*this, &DimRegionEdit::on_show_tooltips_changed) |
978 |
|
); |
979 |
|
|
980 |
|
on_show_tooltips_changed(); |
981 |
} |
} |
982 |
|
|
983 |
DimRegionEdit::~DimRegionEdit() |
DimRegionEdit::~DimRegionEdit() |
1085 |
return label; |
return label; |
1086 |
} |
} |
1087 |
|
|
1088 |
|
void DimRegionEdit::on_show_tooltips_changed() { |
1089 |
|
const bool b = Settings::singleton()->showTooltips; |
1090 |
|
|
1091 |
|
buttonSelectSample.set_has_tooltip(b); |
1092 |
|
buttonNullSampleReference->set_has_tooltip(b); |
1093 |
|
wSample->set_has_tooltip(b); |
1094 |
|
|
1095 |
|
eEG1StateOptions.on_show_tooltips_changed(); |
1096 |
|
eEG2StateOptions.on_show_tooltips_changed(); |
1097 |
|
|
1098 |
|
set_has_tooltip(b); |
1099 |
|
} |
1100 |
|
|
1101 |
void DimRegionEdit::nextPage() |
void DimRegionEdit::nextPage() |
1102 |
{ |
{ |
1103 |
if (firstRowInBlock < rowno - 1) |
if (firstRowInBlock < rowno - 1) |