--- gigedit/trunk/src/gigedit/mainwindow.cpp 2014/06/11 21:22:24 2625
+++ gigedit/trunk/src/gigedit/mainwindow.cpp 2015/06/12 17:57:52 2773
@@ -1,5 +1,5 @@
/*
- * Copyright (C) 2006-2014 Andreas Persson
+ * Copyright (C) 2006-2015 Andreas Persson
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License as
@@ -53,6 +53,7 @@
MainWindow::MainWindow() :
+ m_DimRegionChooser(*this),
dimreg_label(_("Changes apply to:")),
dimreg_all_regions(_("all regions")),
dimreg_all_dimregs(_("all dimension splits")),
@@ -185,6 +186,10 @@
actionGroup->add(toggle_action,
sigc::mem_fun(
*this, &MainWindow::on_action_view_status_bar));
+ actionGroup->add(
+ Gtk::Action::create("RefreshAll", _("_Refresh All")),
+ sigc::mem_fun(*this, &MainWindow::on_action_refresh_all)
+ );
action = Gtk::Action::create("MenuHelp", Gtk::Stock::HELP);
actionGroup->add(Gtk::Action::create("MenuHelp",
@@ -216,6 +221,22 @@
sigc::mem_fun(*this, &MainWindow::on_action_warn_user_on_extensions)
);
+ toggle_action =
+ Gtk::ToggleAction::create("SyncSamplerInstrumentSelection", _("Synchronize sampler's instrument selection"));
+ toggle_action->set_active(Settings::singleton()->syncSamplerInstrumentSelection);
+ actionGroup->add(
+ toggle_action,
+ sigc::mem_fun(*this, &MainWindow::on_action_sync_sampler_instrument_selection)
+ );
+
+ toggle_action =
+ Gtk::ToggleAction::create("MoveRootNoteWithRegionMoved", _("Move root note with region moved"));
+ toggle_action->set_active(Settings::singleton()->moveRootNoteWithRegionMoved);
+ actionGroup->add(
+ toggle_action,
+ sigc::mem_fun(*this, &MainWindow::on_action_move_root_note_with_region_moved)
+ );
+
actionGroup->add(Gtk::Action::create("MenuTools", _("_Tools")));
@@ -248,10 +269,19 @@
sigc::mem_fun(*this, &MainWindow::on_action_remove_sample)
);
actionGroup->add(
+ Gtk::Action::create("RemoveUnusedSamples", _("Remove _Unused Samples")),
+ sigc::mem_fun(*this, &MainWindow::on_action_remove_unused_samples)
+ );
+ actionGroup->add(
Gtk::Action::create("ShowSampleRefs", _("Show References...")),
sigc::mem_fun(*this, &MainWindow::on_action_view_references)
);
actionGroup->add(
+ Gtk::Action::create("ReplaceSample",
+ _("Replace Sample...")),
+ sigc::mem_fun(*this, &MainWindow::on_action_replace_sample)
+ );
+ actionGroup->add(
Gtk::Action::create("ReplaceAllSamplesInAllGroups",
_("Replace All Samples in All Groups...")),
sigc::mem_fun(*this, &MainWindow::on_action_replace_all_samples_in_all_groups)
@@ -303,9 +333,11 @@
" "
" "
" "
+ " "
" "
" "
" "
+ " "
" "
"