229 |
sigc::mem_fun(*this, &MainWindow::on_action_sync_sampler_instrument_selection) |
sigc::mem_fun(*this, &MainWindow::on_action_sync_sampler_instrument_selection) |
230 |
); |
); |
231 |
|
|
232 |
|
toggle_action = |
233 |
|
Gtk::ToggleAction::create("MoveRootNoteWithRegionMoved", _("Move root note with region moved")); |
234 |
|
toggle_action->set_active(Settings::singleton()->moveRootNoteWithRegionMoved); |
235 |
|
actionGroup->add( |
236 |
|
toggle_action, |
237 |
|
sigc::mem_fun(*this, &MainWindow::on_action_move_root_note_with_region_moved) |
238 |
|
); |
239 |
|
|
240 |
|
|
241 |
actionGroup->add(Gtk::Action::create("MenuTools", _("_Tools"))); |
actionGroup->add(Gtk::Action::create("MenuTools", _("_Tools"))); |
242 |
|
|
370 |
" <menu action='MenuSettings'>" |
" <menu action='MenuSettings'>" |
371 |
" <menuitem action='WarnUserOnExtensions'/>" |
" <menuitem action='WarnUserOnExtensions'/>" |
372 |
" <menuitem action='SyncSamplerInstrumentSelection'/>" |
" <menuitem action='SyncSamplerInstrumentSelection'/>" |
373 |
|
" <menuitem action='MoveRootNoteWithRegionMoved'/>" |
374 |
" </menu>" |
" </menu>" |
375 |
" <menu action='MenuHelp'>" |
" <menu action='MenuHelp'>" |
376 |
" <menuitem action='About'/>" |
" <menuitem action='About'/>" |
439 |
} |
} |
440 |
{ |
{ |
441 |
Gtk::MenuItem* item = dynamic_cast<Gtk::MenuItem*>( |
Gtk::MenuItem* item = dynamic_cast<Gtk::MenuItem*>( |
442 |
|
uiManager->get_widget("/MenuBar/MenuSettings/MoveRootNoteWithRegionMoved")); |
443 |
|
item->set_tooltip_text(_("If checked, and when a region is moved by dragging it around on the virtual keyboard, the keybord position dependent pitch will move exactly with the amount of semi tones the region was moved around.")); |
444 |
|
} |
445 |
|
{ |
446 |
|
Gtk::MenuItem* item = dynamic_cast<Gtk::MenuItem*>( |
447 |
uiManager->get_widget("/MenuBar/MenuSample/RemoveUnusedSamples")); |
uiManager->get_widget("/MenuBar/MenuSample/RemoveUnusedSamples")); |
448 |
item->set_tooltip_text(_("Removes all samples that are not referenced by any instrument (i.e. red ones).")); |
item->set_tooltip_text(_("Removes all samples that are not referenced by any instrument (i.e. red ones).")); |
449 |
// copy tooltip to popup menu |
// copy tooltip to popup menu |
605 |
sigc::hide(sigc::mem_fun(*this, &MainWindow::file_changed))); |
sigc::hide(sigc::mem_fun(*this, &MainWindow::file_changed))); |
606 |
m_RegionChooser.signal_instrument_changed().connect( |
m_RegionChooser.signal_instrument_changed().connect( |
607 |
sigc::mem_fun(*this, &MainWindow::file_changed)); |
sigc::mem_fun(*this, &MainWindow::file_changed)); |
608 |
|
m_RegionChooser.signal_instrument_changed().connect( |
609 |
|
sigc::mem_fun(*this, &MainWindow::region_changed)); |
610 |
m_DimRegionChooser.signal_region_changed().connect( |
m_DimRegionChooser.signal_region_changed().connect( |
611 |
sigc::mem_fun(*this, &MainWindow::file_changed)); |
sigc::mem_fun(*this, &MainWindow::file_changed)); |
612 |
instrumentProps.signal_changed().connect( |
instrumentProps.signal_changed().connect( |
1439 |
!Settings::singleton()->syncSamplerInstrumentSelection; |
!Settings::singleton()->syncSamplerInstrumentSelection; |
1440 |
} |
} |
1441 |
|
|
1442 |
|
void MainWindow::on_action_move_root_note_with_region_moved() { |
1443 |
|
Settings::singleton()->moveRootNoteWithRegionMoved = |
1444 |
|
!Settings::singleton()->moveRootNoteWithRegionMoved; |
1445 |
|
} |
1446 |
|
|
1447 |
void MainWindow::on_action_help_about() |
void MainWindow::on_action_help_about() |
1448 |
{ |
{ |
1449 |
Gtk::AboutDialog dialog; |
Gtk::AboutDialog dialog; |