Mercurial > octave-nkf
comparison libgui/src/m-editor/octave-qscintilla.h @ 18459:f01ac1bb8a5d gui-release
add menu entries and shortcuts for zoom functions in the editor (bug #41516)
* file-editor.cc (zoom_in): slot for zoom-in action, triggering signal for tab;
(zoom_out): slot for zoom-out action, triggering signal for tab;
(zoom_normal): slot for zoom-to-normal action, triggering signal for tab;
(construct): new View-menu with zoom-in, zoom-out and zoom-normal entries;
(add_file_editor_tab): connect zoom-signal to newly created tabs;
(set_shortcuts): set shortcuts for new zoom actions;
(check_actions): disable zoom action when no editor tab is open
* file-editor.h: zoom-in, zoom-out and zoom-normal actions, related slots
and related signals to the actual tab
* file-editor-tab.cc (zoom_in): new slot for signal from file_editor;
(zoom_out): new slot for signal from file_editor;
(zoom_normal): new slot for signal from file_editor
* file-editor-tab.h: new slots zoom_in, zoom_out, zoom_normal
* octave-qscintilla.cc (eventFilter): event filter for overriding qscintilla
internal shortcuts;
(constructor): install event filter
* octave-qscintilla.h: event filter
author | Torsten <ttl@justmail.de> |
---|---|
date | Thu, 13 Feb 2014 20:39:09 +0100 |
parents | ebb3ef964372 |
children | f959c63934e6 |
comparison
equal
deleted
inserted
replaced
18458:ebb878596bcf | 18459:f01ac1bb8a5d |
---|---|
60 void contextmenu_run (bool); | 60 void contextmenu_run (bool); |
61 | 61 |
62 private: | 62 private: |
63 | 63 |
64 QString _word_at_cursor; | 64 QString _word_at_cursor; |
65 bool eventFilter(QObject *obj, QEvent *e); | |
65 | 66 |
66 }; | 67 }; |
67 | 68 |
68 #endif | 69 #endif |