mirror of
https://github.com/Ardour/ardour.git
synced 2026-01-04 04:39:33 +01:00
[SUmmary] Making black list filename for keybindings platform dependent.
This commit is contained in:
parent
100668b18c
commit
18ffbfa427
2 changed files with 15 additions and 2 deletions
|
|
@ -50,6 +50,16 @@ using namespace PBD;
|
|||
|
||||
using Gtkmm2ext::Keyboard;
|
||||
|
||||
#if defined(PLATFORM_WINDOWS)
|
||||
const char* KeyEditor::blacklist_filename = "keybindings.win.blacklist";
|
||||
#elif defined(__APPLE__)
|
||||
const char* KeyEditor::blacklist_filename = "keybindings.mac.blacklist";
|
||||
#else
|
||||
const char* KeyEditor::blacklist_filename = "keybindings.blacklist";
|
||||
#endif
|
||||
|
||||
const char* KeyEditor::whitelist_filename = "keybindings.whitelist";
|
||||
|
||||
KeyEditor::KeyEditor ()
|
||||
: WavesDialog ("waves_keyeditor.xml", true, false)
|
||||
, view (get_tree_view ("view"))
|
||||
|
|
@ -85,7 +95,7 @@ KeyEditor::load_blackwhitelists ()
|
|||
{
|
||||
string list;
|
||||
|
||||
if (find_file (ARDOUR::ardour_data_search_path(), X_("keybindings.blacklist"), list)) {
|
||||
if (find_file (ARDOUR::ardour_data_search_path(), X_(blacklist_filename), list)) {
|
||||
ifstream in (list.c_str());
|
||||
|
||||
while (in) {
|
||||
|
|
@ -95,7 +105,7 @@ KeyEditor::load_blackwhitelists ()
|
|||
}
|
||||
}
|
||||
|
||||
if (find_file (ARDOUR::ardour_data_search_path(), X_("keybindings.whitelist"), list)) {
|
||||
if (find_file (ARDOUR::ardour_data_search_path(), X_(whitelist_filename), list)) {
|
||||
ifstream in (list.c_str());
|
||||
|
||||
while (in) {
|
||||
|
|
|
|||
|
|
@ -59,6 +59,9 @@ class KeyEditor : public WavesDialog
|
|||
WavesButton& unbind_button;
|
||||
WavesButton& reset_button;
|
||||
|
||||
static const char* blacklist_filename;
|
||||
static const char* whitelist_filename;
|
||||
|
||||
void unbind (WavesButton*);
|
||||
|
||||
bool can_bind;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue