mirror of https://gitlab.com/cppit/jucipp
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
32 lines
846 B
32 lines
846 B
//juCi++ class that holds every keybinding. |
|
#ifndef JUCI_KEYBINDINGS_H_ |
|
#define JUCI_KEYBINDINGS_H_ |
|
|
|
#include <gtkmm.h> |
|
#include <iostream> |
|
#include <unordered_map> |
|
|
|
class Keybindings { |
|
public: |
|
class Config { |
|
public: |
|
void AppendXml(std::string &child); |
|
void SetMenu(std::string &menu_xml); |
|
void SetKeyMap(std::unordered_map<std::string, std::string> &key_map); |
|
std::unordered_map<std::string, std::string> key_map; |
|
std::string menu_xml; |
|
};//Config |
|
|
|
Keybindings(); |
|
void BuildMenu(); |
|
void BuildHiddenMenu(); |
|
|
|
std::string menu_ui_string; |
|
std::string hidden_ui_string; |
|
|
|
Glib::RefPtr<Gtk::UIManager> ui_manager_menu; |
|
Glib::RefPtr<Gtk::ActionGroup> action_group_menu; |
|
Glib::RefPtr<Gtk::UIManager> ui_manager_hidden; |
|
Glib::RefPtr<Gtk::ActionGroup> action_group_hidden; |
|
}; |
|
#endif // JUCI_KEYBINDINGS_H_
|
|
|