#include "keybindings.h" Keybindings::Model::Model() { std::cout<<"Keybindings: Model constructor run"< " " " " " " " " " " " " " " " " " " " " " " " " " " " " " " " " " " " " " " " " " " " " " " " " " " " " " " " " " " " " " " " " "; hidden_ui_string_ = " " " " " " " " " "; }; Keybindings::Model::~Model() { } Keybindings::Controller::Controller() { std::cout<<"Keybindings: Controller constructor run"<add_ui_from_string(model_.menu_ui_string()); } catch (const Glib::Error &ex) { std::cerr << "building menu failed" << ex.what(); } ui_manager_menu_->insert_action_group(action_group_menu_); } void Keybindings::Controller::BuildHiddenMenu() { try { ui_manager_hidden_->add_ui_from_string(model_.hidden_ui_string()); } catch (const Glib::Error &ex) { std::cerr << "building hidden menu failed" << ex.what(); } ui_manager_hidden_->insert_action_group(action_group_hidden_); }