#include <gtkmm2ext/doi.h>
#include <gtkmm2ext/slider_controller.h>
#include <gtkmm2ext/bindable_button.h>
+#include "gtkmm2ext/menu_elems.h"
#include "ardour/amp.h"
#include "ardour/audio_track.h"
input_menu_bundles.push_back (b);
MenuList& citems = input_menu.items();
-
- std::string n = b->name ();
- replace_all (n, "_", " ");
-
- citems.push_back (MenuElem (n, sigc::bind (sigc::mem_fun(*this, &MixerStrip::bundle_input_chosen), b)));
+ citems.push_back (MenuElemNoMnemonic (b->name (), sigc::bind (sigc::mem_fun(*this, &MixerStrip::bundle_input_chosen), b)));
}
void
output_menu_bundles.push_back (b);
MenuList& citems = output_menu.items();
-
- std::string n = b->name ();
- replace_all (n, "_", " ");
-
- citems.push_back (MenuElem (n, sigc::bind (sigc::mem_fun(*this, &MixerStrip::bundle_output_chosen), b)));
+ citems.push_back (MenuElemNoMnemonic (b->name (), sigc::bind (sigc::mem_fun(*this, &MixerStrip::bundle_output_chosen), b)));
}
void
#include <glibmm/regex.h>
#include "gtkmm2ext/keyboard.h"
+#include "gtkmm2ext/menu_elems.h"
#include "gtkmm2ext/utils.h"
#include "midi++/midnam_patch.h"
for (PatchNameList::const_iterator patch = patches.begin();
patch != patches.end();
++patch) {
- std::string name = (*patch)->name();
- boost::replace_all (name, "_", " ");
-
- patch_menus.push_back (
- Gtk::Menu_Helpers::MenuElem (
- name,
- sigc::bind (sigc::mem_fun(*this, &PatchChange::on_patch_menu_selected),
- (*patch)->patch_primary_key())));
+ patch_menus.push_back (Gtkmm2ext::MenuElemNoMnemonic ((*patch)->name(),
+ sigc::bind (sigc::mem_fun(*this, &PatchChange::on_patch_menu_selected), (*patch)->patch_primary_key())));
}
}
}
#include "gtkmm2ext/utils.h"
#include "gtkmm2ext/rgb_macros.h"
+#include "gtkmm2ext/menu_elems.h"
#include "ardour/amp.h"
#include "ardour/audioengine.h"
/* we're going to create the new send pre-fader, so check the route amp's data type. */
const ChanCount& rc (r->amp ()->input_streams ());
if (!already_present && rc.get (dt) > 0) {
- citems.push_back (MenuElem (r->name (), sigc::bind (sigc::mem_fun (*this, &PluginPinWidget::add_send_from), wp, boost::weak_ptr<Route> (r))));
+ citems.push_back (MenuElemNoMnemonic (r->name (), sigc::bind (sigc::mem_fun (*this, &PluginPinWidget::add_send_from), wp, boost::weak_ptr<Route> (r))));
++added;
}
return added;
#include <gtkmm/messagedialog.h>
#include <gtkmm2ext/gtk_ui.h>
+#include "gtkmm2ext/menu_elems.h"
#include <gtkmm2ext/utils.h>
#include <gtkmm2ext/choice.h>
#include <gtkmm2ext/utils.h>
}
for (list<Control*>::iterator i = _controls.begin(); i != _controls.end(); ++i) {
- items.push_back (CheckMenuElem ((*i)->name ()));
+ items.push_back (CheckMenuElemNoMnemonic ((*i)->name ()));
Gtk::CheckMenuItem* c = dynamic_cast<Gtk::CheckMenuItem*> (&items.back ());
c->set_active ((*i)->visible ());
c->signal_toggled().connect (sigc::bind (sigc::mem_fun (*this, &ProcessorEntry::toggle_control_visibility), *i));
for (RouteList::iterator r = rl->begin(); r != rl->end(); ++r) {
if (!_route->internal_send_for (*r) && *r != _route) {
- items.push_back (MenuElem ((*r)->name(), sigc::bind (sigc::ptr_fun (ProcessorBox::rb_choose_aux), boost::weak_ptr<Route>(*r))));
+ items.push_back (MenuElemNoMnemonic ((*r)->name(), sigc::bind (sigc::ptr_fun (ProcessorBox::rb_choose_aux), boost::weak_ptr<Route>(*r))));
}
}