42 |
#include <sndfile.h> |
#include <sndfile.h> |
43 |
|
|
44 |
#include "mainwindow.h" |
#include "mainwindow.h" |
45 |
|
#include "Settings.h" |
46 |
#include "../../gfx/status_attached.xpm" |
#include "../../gfx/status_attached.xpm" |
47 |
#include "../../gfx/status_detached.xpm" |
#include "../../gfx/status_detached.xpm" |
48 |
|
|
182 |
sigc::mem_fun(*this, &MainWindow::on_action_remove_instrument) |
sigc::mem_fun(*this, &MainWindow::on_action_remove_instrument) |
183 |
); |
); |
184 |
|
|
185 |
|
|
186 |
|
actionGroup->add(Gtk::Action::create("MenuSettings", _("_Settings"))); |
187 |
|
|
188 |
|
toggle_action = |
189 |
|
Gtk::ToggleAction::create("WarnUserOnExtensions", _("Show warning on format _extensions")); |
190 |
|
toggle_action->set_active(Settings::singleton()->warnUserOnExtensions); |
191 |
|
actionGroup->add( |
192 |
|
toggle_action, |
193 |
|
sigc::mem_fun(*this, &MainWindow::on_action_warn_user_on_extensions) |
194 |
|
); |
195 |
|
|
196 |
|
|
197 |
// sample right-click popup actions |
// sample right-click popup actions |
198 |
actionGroup->add( |
actionGroup->add( |
199 |
Gtk::Action::create("SampleProperties", Gtk::Stock::PROPERTIES), |
Gtk::Action::create("SampleProperties", Gtk::Stock::PROPERTIES), |
245 |
" <menu action='MenuView'>" |
" <menu action='MenuView'>" |
246 |
" <menuitem action='Statusbar'/>" |
" <menuitem action='Statusbar'/>" |
247 |
" </menu>" |
" </menu>" |
248 |
|
" <menu action='MenuSettings'>" |
249 |
|
" <menuitem action='WarnUserOnExtensions'/>" |
250 |
|
" </menu>" |
251 |
" <menu action='MenuHelp'>" |
" <menu action='MenuHelp'>" |
252 |
" <menuitem action='About'/>" |
" <menuitem action='About'/>" |
253 |
" </menu>" |
" </menu>" |
292 |
uiManager->get_widget("/MenuBar/MenuEdit/CopySampleLoop")); |
uiManager->get_widget("/MenuBar/MenuEdit/CopySampleLoop")); |
293 |
item->set_tooltip_text(_("Used when dragging a sample to a region's sample reference field. You may disable this for example if you want to replace an existing sample in a region with a new sample, but don't want that the region's current loop informations to be altered by this action.")); |
item->set_tooltip_text(_("Used when dragging a sample to a region's sample reference field. You may disable this for example if you want to replace an existing sample in a region with a new sample, but don't want that the region's current loop informations to be altered by this action.")); |
294 |
} |
} |
295 |
|
{ |
296 |
|
Gtk::MenuItem* item = dynamic_cast<Gtk::MenuItem*>( |
297 |
|
uiManager->get_widget("/MenuBar/MenuSettings/WarnUserOnExtensions")); |
298 |
|
item->set_tooltip_text(_("If checked, a warning will be shown whenever you try to use a feature which is based on a LinuxSampler extension ontop of the original gig format, which would not work with the Gigasampler/GigaStudio application.")); |
299 |
|
} |
300 |
|
|
301 |
instrument_menu = static_cast<Gtk::MenuItem*>( |
instrument_menu = static_cast<Gtk::MenuItem*>( |
302 |
uiManager->get_widget("/MenuBar/MenuInstrument"))->get_submenu(); |
uiManager->get_widget("/MenuBar/MenuInstrument"))->get_submenu(); |
974 |
propDialog.deiconify(); |
propDialog.deiconify(); |
975 |
} |
} |
976 |
|
|
977 |
|
void MainWindow::on_action_warn_user_on_extensions() { |
978 |
|
Settings::singleton()->warnUserOnExtensions = |
979 |
|
!Settings::singleton()->warnUserOnExtensions; |
980 |
|
} |
981 |
|
|
982 |
void MainWindow::on_action_help_about() |
void MainWindow::on_action_help_about() |
983 |
{ |
{ |
984 |
Gtk::AboutDialog dialog; |
Gtk::AboutDialog dialog; |