Mercurial > hg > octave-nkf
comparison libgui/src/shortcut-manager.cc @ 19826:8ef79bc61d8a gui-release
add actions for moving/selecting to matching brace
* file-editor-tab.cc (move_match_brace): new slot for signal from editor for
moving or selecting to the matching brace
* file-editor-tab.h: new slot move_match_brace
* file-editor.cc (request_move_match_brace): new slot for new action;
(request_sel_match_brace): new slot for new action;
(construct): add new action for moving/selecting to matching brace into
edit/navigation menu;
(add_file_editor_tab): connect new signal to new slot in file_editor_tab;
(set_shortcuts): set the shortcuts from the settings for the new actions
* file-editor.h: new actions, new related slots, new signals for editor tabs
* shortcut-manager.cc (do_init_data): initialize shortcuts for new actions
from settings or with default values
author | Torsten <ttl@justmail.de> |
---|---|
date | Sat, 24 Jan 2015 22:46:20 +0100 |
parents | be7ac98fab43 |
children | 5d0663bff506 |
comparison
equal
deleted
inserted
replaced
19821:9803fd881504 | 19826:8ef79bc61d8a |
---|---|
253 init (tr ("Convert Line Ednings to Mac"), "editor_edit:conv_eol_mac", | 253 init (tr ("Convert Line Ednings to Mac"), "editor_edit:conv_eol_mac", |
254 QKeySequence ()); | 254 QKeySequence ()); |
255 | 255 |
256 init (tr ("Goto Line"), "editor_edit:goto_line", | 256 init (tr ("Goto Line"), "editor_edit:goto_line", |
257 QKeySequence (ctrl + Qt::Key_G)); | 257 QKeySequence (ctrl + Qt::Key_G)); |
258 init (tr ("Move to Matching Brace"), "editor_edit:move_to_brace", | |
259 QKeySequence (ctrl + Qt::Key_M)); | |
260 init (tr ("Select to Matching Brace"), "editor_edit:select_to_brace", | |
261 QKeySequence (ctrl_shift + Qt::Key_M)); | |
258 init (tr ("Toggle Bookmark"), "editor_edit:toggle_bookmark", | 262 init (tr ("Toggle Bookmark"), "editor_edit:toggle_bookmark", |
259 QKeySequence (prefix + Qt::Key_F7)); | 263 QKeySequence (prefix + Qt::Key_F7)); |
260 init (tr ("Next Bookmark"), "editor_edit:next_bookmark", | 264 init (tr ("Next Bookmark"), "editor_edit:next_bookmark", |
261 QKeySequence (prefix + Qt::Key_F2)); | 265 QKeySequence (prefix + Qt::Key_F2)); |
262 init (tr ("Previous Bookmark"), "editor_edit:previous_bookmark", | 266 init (tr ("Previous Bookmark"), "editor_edit:previous_bookmark", |