439 |
eSampleLoopInfinite(_("Infinite loop")), |
eSampleLoopInfinite(_("Infinite loop")), |
440 |
eSampleLoopPlayCount(_("Playback count"), 1), |
eSampleLoopPlayCount(_("Playback count"), 1), |
441 |
buttonSelectSample(UNICODE_LEFT_ARROW + " " + _("Select Sample")), |
buttonSelectSample(UNICODE_LEFT_ARROW + " " + _("Select Sample")), |
442 |
|
editScriptSlotsButton(_("Edit Slots ...")), |
443 |
update_model(0) |
update_model(0) |
444 |
{ |
{ |
445 |
// make synthesis parameter page tabs scrollable |
// make synthesis parameter page tabs scrollable |
585 |
sigc::mem_fun(*this, &DimRegionEdit::onButtonSelectSamplePressed) |
sigc::mem_fun(*this, &DimRegionEdit::onButtonSelectSamplePressed) |
586 |
); |
); |
587 |
|
|
588 |
for (int i = 0 ; i < 9 ; i++) { |
for (int i = 0; i < tableSize; i++) { |
589 |
#if USE_GTKMM_GRID |
#if USE_GTKMM_GRID |
590 |
table[i] = new Gtk::Grid; |
table[i] = new Gtk::Grid; |
591 |
table[i]->set_column_spacing(7); |
table[i]->set_column_spacing(7); |
1277 |
eSampleLoopInfinite.signal_value_changed().connect( |
eSampleLoopInfinite.signal_value_changed().connect( |
1278 |
sigc::mem_fun(*this, &DimRegionEdit::loop_infinite_toggled)); |
sigc::mem_fun(*this, &DimRegionEdit::loop_infinite_toggled)); |
1279 |
|
|
1280 |
|
|
1281 |
|
addHeader(_("Script Patch Variables")); |
1282 |
|
|
1283 |
|
m_labelPatchVarsDescr.set_markup( |
1284 |
|
_("These are variables declared in scripts with keyword " |
1285 |
|
"<span color='#FF4FF3'><b>patch</b></span>. " |
1286 |
|
"A 'patch' variable allows to override its default value on a per " |
1287 |
|
"instrument basis. That way a script may be shared by instruments " |
1288 |
|
"while being able to fine tune certain script parameters for each " |
1289 |
|
"instrument individually if necessary. Overridden default values " |
1290 |
|
"are displayed in bold. To revert back to the script's default " |
1291 |
|
"value, select the variable(s) and hit <b>⌫</b> or " |
1292 |
|
"<b>⌦</b> key.") |
1293 |
|
); |
1294 |
|
scriptVarsDescrBox.set_spacing(13); |
1295 |
|
scriptVarsDescrBox.pack_start(m_labelPatchVarsDescr, true, true); |
1296 |
|
scriptVarsDescrBox.pack_start(editScriptSlotsButton, false, false); |
1297 |
|
#if USE_GTKMM_GRID |
1298 |
|
table[pageno]->attach(scriptVarsDescrBox, 1, rowno, 2); |
1299 |
|
#else |
1300 |
|
table[pageno]->attach(scriptVarsDescrBox, 1, 3, rowno, rowno + 1, |
1301 |
|
Gtk::EXPAND | Gtk::FILL, Gtk::SHRINK); |
1302 |
|
#endif |
1303 |
|
rowno++; |
1304 |
|
|
1305 |
|
#if GTKMM_MAJOR_VERSION >= 3 |
1306 |
|
scriptVars.set_margin_top(20); |
1307 |
|
#endif |
1308 |
|
#if USE_GTKMM_GRID |
1309 |
|
table[pageno]->attach(scriptVars, 1, rowno, 2); |
1310 |
|
#else |
1311 |
|
|
1312 |
|
table[pageno]->attach(scriptVars, 1, 3, rowno, rowno + 1, |
1313 |
|
Gtk::EXPAND | Gtk::FILL, Gtk::EXPAND | Gtk::FILL); |
1314 |
|
#endif |
1315 |
|
rowno++; |
1316 |
|
|
1317 |
|
|
1318 |
append_page(*table[0], _("Sample")); |
append_page(*table[0], _("Sample")); |
1319 |
append_page(*table[1], _("Amp (1)")); |
append_page(*table[1], _("Amp (1)")); |
1320 |
append_page(*table[2], _("Amp (2)")); |
append_page(*table[2], _("Amp (2)")); |
1324 |
append_page(*table[6], _("Filter (3)")); |
append_page(*table[6], _("Filter (3)")); |
1325 |
append_page(*table[7], _("Pitch")); |
append_page(*table[7], _("Pitch")); |
1326 |
append_page(*table[8], _("Misc")); |
append_page(*table[8], _("Misc")); |
1327 |
|
append_page(*table[9], _("Script")); |
1328 |
|
|
1329 |
Settings::singleton()->showTooltips.get_proxy().signal_changed().connect( |
Settings::singleton()->showTooltips.get_proxy().signal_changed().connect( |
1330 |
sigc::mem_fun(*this, &DimRegionEdit::on_show_tooltips_changed) |
sigc::mem_fun(*this, &DimRegionEdit::on_show_tooltips_changed) |
1695 |
wSample->set_text(d->pSample ? gig_to_utf8(d->pSample->pInfo->Name) : |
wSample->set_text(d->pSample ? gig_to_utf8(d->pSample->pInfo->Name) : |
1696 |
_("NULL")); |
_("NULL")); |
1697 |
|
|
1698 |
|
scriptVars.setInstrument( |
1699 |
|
(gig::Instrument*) d->GetParent()->GetParent() |
1700 |
|
); |
1701 |
|
|
1702 |
update_loop_elements(); |
update_loop_elements(); |
1703 |
VCFEnabled_toggled(); |
VCFEnabled_toggled(); |
1704 |
} |
} |