comparison libgui/src/shortcut-manager.cc @ 19281:9582fad68730 gui-release

add actions for converting the eol characters of the editor file * file-editor-tab.cc (convert_eol): new slot for converting the line endings * file-editor-tab.h: new slot convert_eol * file-editor.cc (request_conv_eol_windows, request_conv_eol_unix, request_conv_eol_mac): new slots for converting the line ending, emitting new signal for activating the slot convert_eol in file_editor_tab; (constructor): add separators to the edit/format menu, add new actions for converting the line endings; (set_shortcuts): set the shortcuts for the new actions * file-editor.h: new function, new actions, and new signal * shortcut_manager.cc (do_init_data): set the initial shortcuts for new actions
author Torsten <ttl@justmail.de>
date Sat, 11 Oct 2014 11:15:59 +0200
parents 62756ba9e4e5
children 417355ed0812
comparison
equal deleted inserted replaced
19280:62756ba9e4e5 19281:9582fad68730
244 QKeySequence (ctrl + Qt::Key_Tab)); 244 QKeySequence (ctrl + Qt::Key_Tab));
245 init (tr ("Unindent Selection"), "editor_edit:unindent_selection", 245 init (tr ("Unindent Selection"), "editor_edit:unindent_selection",
246 QKeySequence (ctrl_shift + Qt::Key_Tab)); 246 QKeySequence (ctrl_shift + Qt::Key_Tab));
247 #endif 247 #endif
248 248
249 init (tr ("Convert Line Ednings to Windows"), "editor_edit:conv_eol_winows",
250 QKeySequence ());
251 init (tr ("Convert Line Ednings to Unix"), "editor_edit:conv_eol_unix",
252 QKeySequence ());
253 init (tr ("Convert Line Ednings to Mac"), "editor_edit:conv_eol_mac",
254 QKeySequence ());
255
249 init (tr ("Goto Line"), "editor_edit:goto_line", 256 init (tr ("Goto Line"), "editor_edit:goto_line",
250 QKeySequence (ctrl + Qt::Key_G)); 257 QKeySequence (ctrl + Qt::Key_G));
251 init (tr ("Toggle Bookmark"), "editor_edit:toggle_bookmark", 258 init (tr ("Toggle Bookmark"), "editor_edit:toggle_bookmark",
252 QKeySequence (prefix + Qt::Key_F7)); 259 QKeySequence (prefix + Qt::Key_F7));
253 init (tr ("Next Bookmark"), "editor_edit:next_bookmark", 260 init (tr ("Next Bookmark"), "editor_edit:next_bookmark",