Mercurial > octave
comparison libgui/src/m-editor/file-editor-tab.h @ 23237:904c8a356e76
provide the possibility for breaking lines only in comments (bug #41555)
* file-editor-tab.cc (notice_settings): get preference on breaking lines in
comments only;
(handle_char_added): check current style for comment and break lines if
desired, add comment string at the new line if comment is a line comment
* file-editor-tab.h: new class variable for line breaking in comments only
* settings-dialog.cc (settings_dialog): initialize new checkbox from settings;
(write_changed_settings): store state of the checkbox into settings file
* settings-dialog.ui: new checkbox for line breaking in comments only
author | Torsten <mttl@mailbox.org> |
---|---|
date | Sun, 26 Feb 2017 13:46:52 +0100 |
parents | aaf20024db6f |
children | c9fab0bc983e |
comparison
equal
deleted
inserted
replaced
23236:4cd5f975d26c | 23237:904c8a356e76 |
---|---|
299 QString _prep_apis_file; | 299 QString _prep_apis_file; |
300 | 300 |
301 static bool _cancelled; | 301 static bool _cancelled; |
302 | 302 |
303 int _line_break; | 303 int _line_break; |
304 bool _line_break_comments; | |
304 int _line; | 305 int _line; |
305 int _col; | 306 int _col; |
306 bool _lines_changed; | 307 bool _lines_changed; |
307 bool _highlight_all_occurrences; | 308 bool _highlight_all_occurrences; |
308 int _indicator_highlight_all; | 309 int _indicator_highlight_all; |