generic MIDI: extend menu options to drop ALL MIDI bindings, not just a binding map
This commit is contained in:
parent
60f8cfb841
commit
9ee4c14bce
@ -96,6 +96,7 @@ public:
|
||||
|
||||
int load_bindings (const std::string&);
|
||||
void drop_bindings ();
|
||||
void drop_all ();
|
||||
|
||||
void check_used_event (int, int);
|
||||
|
||||
@ -174,7 +175,6 @@ private:
|
||||
MIDIAction* create_action (const XMLNode&);
|
||||
|
||||
void reset_controllables ();
|
||||
void drop_all ();
|
||||
|
||||
enum ConnectionState {
|
||||
InputConnected = 0x1,
|
||||
|
@ -148,6 +148,7 @@ GMCPGUI::GMCPGUI (GenericMidiControlProtocol& p)
|
||||
sort (popdowns.begin(), popdowns.end(), less<string>());
|
||||
|
||||
popdowns.insert (popdowns.begin(), _("Reset All"));
|
||||
popdowns.insert (popdowns.begin(), _("Drop Bindings"));
|
||||
|
||||
set_popdown_strings (map_combo, popdowns);
|
||||
|
||||
@ -269,6 +270,8 @@ GMCPGUI::binding_changed ()
|
||||
string str = map_combo.get_active_text ();
|
||||
|
||||
if (str == _("Reset All")) {
|
||||
cp.drop_all ();
|
||||
} else if (str == _("Drop Bindings")) {
|
||||
cp.drop_bindings ();
|
||||
} else {
|
||||
for (list<GenericMidiControlProtocol::MapInfo>::iterator x = cp.map_info.begin(); x != cp.map_info.end(); ++x) {
|
||||
|
Loading…
Reference in New Issue
Block a user