205 |
|
|
206 |
actionGroup->add(Gtk::Action::create("MenuEdit", _("_Edit"))); |
actionGroup->add(Gtk::Action::create("MenuEdit", _("_Edit"))); |
207 |
|
|
208 |
|
const Gdk::ModifierType primaryModifierKey = |
209 |
|
#if defined(__APPLE__) |
210 |
|
Gdk::META_MASK; // Cmd key on Mac |
211 |
|
#else |
212 |
|
Gdk::CONTROL_MASK; // Ctrl key on all other OSs |
213 |
|
#endif |
214 |
|
|
215 |
|
actionGroup->add(Gtk::Action::create("SelectPrevRegion", |
216 |
|
_("Select Previous Region")), |
217 |
|
Gtk::AccelKey(GDK_KEY_Left, primaryModifierKey), |
218 |
|
sigc::mem_fun(*this, &MainWindow::select_prev_region)); |
219 |
|
|
220 |
|
actionGroup->add(Gtk::Action::create("SelectNextRegion", |
221 |
|
_("Select Next Region")), |
222 |
|
Gtk::AccelKey(GDK_KEY_Right, primaryModifierKey), |
223 |
|
sigc::mem_fun(*this, &MainWindow::select_next_region)); |
224 |
|
|
225 |
|
actionGroup->add(Gtk::Action::create("SelectPrevDimRgnZone", |
226 |
|
_("Select Previous Dimension Region Zone")), |
227 |
|
Gtk::AccelKey(GDK_KEY_Left, Gdk::MOD1_MASK), |
228 |
|
sigc::mem_fun(*this, &MainWindow::select_prev_dim_rgn_zone)); |
229 |
|
|
230 |
|
actionGroup->add(Gtk::Action::create("SelectNextDimRgnZone", |
231 |
|
_("Select Next Dimension Region Zone")), |
232 |
|
Gtk::AccelKey(GDK_KEY_Right, Gdk::MOD1_MASK), |
233 |
|
sigc::mem_fun(*this, &MainWindow::select_next_dim_rgn_zone)); |
234 |
|
|
235 |
|
actionGroup->add(Gtk::Action::create("SelectPrevDimension", |
236 |
|
_("Select Previous Dimension")), |
237 |
|
Gtk::AccelKey(GDK_KEY_Up, Gdk::MOD1_MASK), |
238 |
|
sigc::mem_fun(*this, &MainWindow::select_prev_dimension)); |
239 |
|
|
240 |
|
actionGroup->add(Gtk::Action::create("SelectNextDimension", |
241 |
|
_("Select Next Dimension")), |
242 |
|
Gtk::AccelKey(GDK_KEY_Down, Gdk::MOD1_MASK), |
243 |
|
sigc::mem_fun(*this, &MainWindow::select_next_dimension)); |
244 |
|
|
245 |
|
|
246 |
Glib::RefPtr<Gtk::ToggleAction> toggle_action = |
Glib::RefPtr<Gtk::ToggleAction> toggle_action = |
247 |
Gtk::ToggleAction::create("CopySampleUnity", _("Copy Sample's _Unity Note")); |
Gtk::ToggleAction::create("CopySampleUnity", _("Copy Sample's _Unity Note")); |
248 |
toggle_action->set_active(true); |
toggle_action->set_active(true); |
417 |
" <menuitem action='Quit'/>" |
" <menuitem action='Quit'/>" |
418 |
" </menu>" |
" </menu>" |
419 |
" <menu action='MenuEdit'>" |
" <menu action='MenuEdit'>" |
420 |
|
" <menuitem action='SelectPrevRegion'/>" |
421 |
|
" <menuitem action='SelectNextRegion'/>" |
422 |
|
" <separator/>" |
423 |
|
" <menuitem action='SelectPrevDimRgnZone'/>" |
424 |
|
" <menuitem action='SelectNextDimRgnZone'/>" |
425 |
|
" <menuitem action='SelectPrevDimension'/>" |
426 |
|
" <menuitem action='SelectNextDimension'/>" |
427 |
|
" <separator/>" |
428 |
" <menuitem action='CopySampleUnity'/>" |
" <menuitem action='CopySampleUnity'/>" |
429 |
" <menuitem action='CopySampleTune'/>" |
" <menuitem action='CopySampleTune'/>" |
430 |
" <menuitem action='CopySampleLoop'/>" |
" <menuitem action='CopySampleLoop'/>" |
3617 |
m_TreeViewNotebook.set_current_page(2); |
m_TreeViewNotebook.set_current_page(2); |
3618 |
} |
} |
3619 |
|
|
3620 |
|
void MainWindow::select_prev_region() { |
3621 |
|
m_RegionChooser.select_prev_region(); |
3622 |
|
} |
3623 |
|
|
3624 |
|
void MainWindow::select_next_region() { |
3625 |
|
m_RegionChooser.select_next_region(); |
3626 |
|
} |
3627 |
|
|
3628 |
|
void MainWindow::select_next_dim_rgn_zone() { |
3629 |
|
if (m_DimRegionChooser.has_focus()) return; // avoid conflict with key stroke handler of DimenionRegionChooser |
3630 |
|
m_DimRegionChooser.select_next_dimzone(); |
3631 |
|
} |
3632 |
|
|
3633 |
|
void MainWindow::select_prev_dim_rgn_zone() { |
3634 |
|
if (m_DimRegionChooser.has_focus()) return; // avoid conflict with key stroke handler of DimenionRegionChooser |
3635 |
|
m_DimRegionChooser.select_prev_dimzone(); |
3636 |
|
} |
3637 |
|
|
3638 |
|
void MainWindow::select_prev_dimension() { |
3639 |
|
if (m_DimRegionChooser.has_focus()) return; // avoid conflict with key stroke handler of DimenionRegionChooser |
3640 |
|
m_DimRegionChooser.select_prev_dimension(); |
3641 |
|
} |
3642 |
|
|
3643 |
|
void MainWindow::select_next_dimension() { |
3644 |
|
if (m_DimRegionChooser.has_focus()) return; // avoid conflict with key stroke handler of DimenionRegionChooser |
3645 |
|
m_DimRegionChooser.select_next_dimension(); |
3646 |
|
} |
3647 |
|
|
3648 |
sigc::signal<void, gig::File*>& MainWindow::signal_file_structure_to_be_changed() { |
sigc::signal<void, gig::File*>& MainWindow::signal_file_structure_to_be_changed() { |
3649 |
return file_structure_to_be_changed_signal; |
return file_structure_to_be_changed_signal; |
3650 |
} |
} |