comparison libgui/src/m-editor/file-editor.h @ 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 ed0df431631b
comparison
equal deleted inserted replaced
19280:62756ba9e4e5 19281:9582fad68730
94 void fetab_remove_all_breakpoints (const QWidget* ID); 94 void fetab_remove_all_breakpoints (const QWidget* ID);
95 void fetab_comment_selected_text (const QWidget* ID); 95 void fetab_comment_selected_text (const QWidget* ID);
96 void fetab_uncomment_selected_text (const QWidget* ID); 96 void fetab_uncomment_selected_text (const QWidget* ID);
97 void fetab_indent_selected_text (const QWidget* ID); 97 void fetab_indent_selected_text (const QWidget* ID);
98 void fetab_unindent_selected_text (const QWidget* ID); 98 void fetab_unindent_selected_text (const QWidget* ID);
99 void fetab_convert_eol (const QWidget* ID, QsciScintilla::EolMode eol_mode);
99 void fetab_find (const QWidget* ID); 100 void fetab_find (const QWidget* ID);
100 void fetab_goto_line (const QWidget* ID, int line = -1); 101 void fetab_goto_line (const QWidget* ID, int line = -1);
101 void fetab_completion (const QWidget*); 102 void fetab_completion (const QWidget*);
102 void fetab_insert_debugger_pointer (const QWidget* ID, int line = -1); 103 void fetab_insert_debugger_pointer (const QWidget* ID, int line = -1);
103 void fetab_delete_debugger_pointer (const QWidget* ID, int line = -1); 104 void fetab_delete_debugger_pointer (const QWidget* ID, int line = -1);
165 166
166 void request_upper_case (bool); 167 void request_upper_case (bool);
167 void request_lower_case (bool); 168 void request_lower_case (bool);
168 void request_indent_selected_text (bool); 169 void request_indent_selected_text (bool);
169 void request_unindent_selected_text (bool); 170 void request_unindent_selected_text (bool);
171 void request_conv_eol_windows (bool);
172 void request_conv_eol_unix (bool);
173 void request_conv_eol_mac (bool);
170 174
171 void request_find (bool); 175 void request_find (bool);
172 176
173 void request_goto_line (bool); 177 void request_goto_line (bool);
174 void request_completion (bool); 178 void request_completion (bool);
265 QAction *_lower_case_action; 269 QAction *_lower_case_action;
266 QAction *_comment_selection_action; 270 QAction *_comment_selection_action;
267 QAction *_uncomment_selection_action; 271 QAction *_uncomment_selection_action;
268 QAction *_indent_selection_action; 272 QAction *_indent_selection_action;
269 QAction *_unindent_selection_action; 273 QAction *_unindent_selection_action;
274 QAction *_conv_eol_windows_action;
275 QAction *_conv_eol_unix_action;
276 QAction *_conv_eol_mac_action;
270 277
271 QAction *_copy_action; 278 QAction *_copy_action;
272 QAction *_cut_action; 279 QAction *_cut_action;
273 QAction *_paste_action; 280 QAction *_paste_action;
274 QAction *_selectall_action; 281 QAction *_selectall_action;