Mercurial > hg > octave-nkf
diff libgui/src/m-editor/file-editor-tab.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 | 4b980842edba |
children | 4197fc428c7d |
line wrap: on
line diff
--- a/libgui/src/m-editor/file-editor-tab.cc +++ b/libgui/src/m-editor/file-editor-tab.cc @@ -1048,6 +1048,18 @@ } void +file_editor_tab::move_match_brace (const QWidget *ID, bool select) +{ + if (ID != this) + return; + + if (select) + _edit_area->selectToMatchingBrace (); + else + _edit_area->moveToMatchingBrace (); +} + +void file_editor_tab::show_auto_completion (const QWidget *ID) { if (ID != this)