mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-16 03:36:32 +01:00
preparations for using ardour's own keybinding system for the editor (not actually used)
git-svn-id: svn://localhost/ardour2/branches/3.0@10841 d708f5d6-7413-0410-9779-e7cbd77b26cf
This commit is contained in:
parent
51138ef75b
commit
96ae97ddcb
5 changed files with 239 additions and 1 deletions
|
|
@ -20,9 +20,15 @@
|
|||
#include <gio/gio.h>
|
||||
#include <gtk/gtkiconfactory.h>
|
||||
|
||||
|
||||
#include "pbd/filesystem.h"
|
||||
#include "pbd/file_utils.h"
|
||||
#include "pbd/search_path.h"
|
||||
|
||||
#include "gtkmm2ext/tearoff.h"
|
||||
|
||||
#include "ardour/ardour.h"
|
||||
#include "ardour/filesystem_paths.h"
|
||||
#include "ardour/profile.h"
|
||||
#include "ardour/session.h"
|
||||
|
||||
|
|
@ -616,6 +622,24 @@ Editor::register_actions ()
|
|||
ActionManager::add_action_group (editor_actions);
|
||||
}
|
||||
|
||||
void
|
||||
Editor::load_bindings ()
|
||||
{
|
||||
/* XXX move this to a better place */
|
||||
|
||||
key_bindings.set_action_map (editor_action_map);
|
||||
|
||||
sys::path binding_file;
|
||||
SearchPath spath = ardour_search_path() + user_config_directory() + system_config_search_path();
|
||||
|
||||
if (find_file_in_search_path (spath, "editor.bindings", binding_file)) {
|
||||
key_bindings.load (binding_file.to_string());
|
||||
info << string_compose (_("Loaded editor bindings from %1"), binding_file.to_string()) << endmsg;
|
||||
} else {
|
||||
error << string_compose (_("Could not find editor.bindings in search path %1"), spath.to_string()) << endmsg;
|
||||
}
|
||||
}
|
||||
|
||||
void
|
||||
Editor::toggle_ruler_visibility (RulerType rt)
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue