|
|
|
@ -43,16 +43,16 @@ void Notebook::Controller::CreateKeybindings(Keybindings::Controller |
|
|
|
|
|
|
|
|
|
|
|
keybindings.action_group_menu()-> |
|
|
|
keybindings.action_group_menu()-> |
|
|
|
add(Gtk::Action::create("FileNewStandard",
|
|
|
|
add(Gtk::Action::create("FileNewStandard",
|
|
|
|
Gtk::Stock::NEW, |
|
|
|
"New empty file"), |
|
|
|
"New empty file", |
|
|
|
Gtk::AccelKey(keybindings.config_ |
|
|
|
"Create a new file"), |
|
|
|
.key_map()["new_file"]), |
|
|
|
[this]() { |
|
|
|
[this]() { |
|
|
|
is_new_file_ = true; |
|
|
|
is_new_file_ = true; |
|
|
|
OnFileNewEmptyfile(); |
|
|
|
OnFileNewEmptyfile(); |
|
|
|
}); |
|
|
|
}); |
|
|
|
keybindings.action_group_menu()-> |
|
|
|
keybindings.action_group_menu()-> |
|
|
|
add(Gtk::Action::create("FileNewCC", |
|
|
|
add(Gtk::Action::create("FileNewCC", |
|
|
|
"New cc file"), |
|
|
|
"New source file"), |
|
|
|
Gtk::AccelKey(keybindings.config_ |
|
|
|
Gtk::AccelKey(keybindings.config_ |
|
|
|
.key_map()["new_cc_file"]), |
|
|
|
.key_map()["new_cc_file"]), |
|
|
|
[this]() { |
|
|
|
[this]() { |
|
|
|
@ -61,7 +61,7 @@ void Notebook::Controller::CreateKeybindings(Keybindings::Controller |
|
|
|
}); |
|
|
|
}); |
|
|
|
keybindings.action_group_menu()-> |
|
|
|
keybindings.action_group_menu()-> |
|
|
|
add(Gtk::Action::create("FileNewH", |
|
|
|
add(Gtk::Action::create("FileNewH", |
|
|
|
"New h file"), |
|
|
|
"New header file"), |
|
|
|
Gtk::AccelKey(keybindings.config_ |
|
|
|
Gtk::AccelKey(keybindings.config_ |
|
|
|
.key_map()["new_h_file"]), |
|
|
|
.key_map()["new_h_file"]), |
|
|
|
[this]() { |
|
|
|
[this]() { |
|
|
|
@ -78,7 +78,9 @@ void Notebook::Controller::CreateKeybindings(Keybindings::Controller |
|
|
|
}); |
|
|
|
}); |
|
|
|
keybindings.action_group_menu()-> |
|
|
|
keybindings.action_group_menu()-> |
|
|
|
add(Gtk::Action::create("EditFind", |
|
|
|
add(Gtk::Action::create("EditFind", |
|
|
|
Gtk::Stock::FIND), |
|
|
|
"Find"), |
|
|
|
|
|
|
|
Gtk::AccelKey(keybindings.config_ |
|
|
|
|
|
|
|
.key_map()["edit_find"]), |
|
|
|
[this]() { |
|
|
|
[this]() { |
|
|
|
is_new_file_ = false; |
|
|
|
is_new_file_ = false; |
|
|
|
OnEditSearch(); |
|
|
|
OnEditSearch(); |
|
|
|
@ -86,19 +88,26 @@ void Notebook::Controller::CreateKeybindings(Keybindings::Controller |
|
|
|
}); |
|
|
|
}); |
|
|
|
keybindings.action_group_menu()-> |
|
|
|
keybindings.action_group_menu()-> |
|
|
|
add(Gtk::Action::create("EditCopy", |
|
|
|
add(Gtk::Action::create("EditCopy", |
|
|
|
Gtk::Stock::COPY), |
|
|
|
"Copy"), |
|
|
|
|
|
|
|
Gtk::AccelKey(keybindings.config_ |
|
|
|
|
|
|
|
.key_map()["edit_copy"]), |
|
|
|
|
|
|
|
|
|
|
|
[this]() { |
|
|
|
[this]() { |
|
|
|
OnEditCopy(); |
|
|
|
OnEditCopy(); |
|
|
|
}); |
|
|
|
}); |
|
|
|
keybindings.action_group_menu()-> |
|
|
|
keybindings.action_group_menu()-> |
|
|
|
add(Gtk::Action::create("EditCut", |
|
|
|
add(Gtk::Action::create("EditCut", |
|
|
|
Gtk::Stock::CUT), |
|
|
|
"Cut"), |
|
|
|
|
|
|
|
Gtk::AccelKey(keybindings.config_ |
|
|
|
|
|
|
|
.key_map()["edit_cut"]), |
|
|
|
[this]() { |
|
|
|
[this]() { |
|
|
|
OnEditCut(); |
|
|
|
OnEditCut(); |
|
|
|
}); |
|
|
|
}); |
|
|
|
keybindings.action_group_menu()-> |
|
|
|
keybindings.action_group_menu()-> |
|
|
|
add(Gtk::Action::create("EditPaste", |
|
|
|
add(Gtk::Action::create("EditPaste", |
|
|
|
Gtk::Stock::PASTE), |
|
|
|
"Paste"), |
|
|
|
|
|
|
|
Gtk::AccelKey(keybindings.config_ |
|
|
|
|
|
|
|
.key_map()["edit_paste"]), |
|
|
|
[this]() { |
|
|
|
[this]() { |
|
|
|
OnEditPaste(); |
|
|
|
OnEditPaste(); |
|
|
|
}); |
|
|
|
}); |
|
|
|
|