Mercurial > hg > octave-nkf
comparison libgui/src/m-editor/file-editor-tab.cc @ 16702:553cfdd5d660
make white space visibility in the editor configurable
* settings-dialog.ui: insert checkboxes for white space visibility
* settings-dialog.cc(read_settings): read state for checkboxes from settings,
(write_changed_settings): write state of checkboxes into settings file
* file-editor-tab.cc(notice-settings): load white space visibility from settings
author | Torsten <ttl@justmail.de> |
---|---|
date | Sun, 26 May 2013 14:49:41 +0200 |
parents | ccfbc767ff5a |
children | 5cf19370011d |
comparison
equal
deleted
inserted
replaced
16701:ccfbc767ff5a | 16702:553cfdd5d660 |
---|---|
1121 (settings->value ("editor/codeCompletion_threshold",2).toInt ()); | 1121 (settings->value ("editor/codeCompletion_threshold",2).toInt ()); |
1122 } | 1122 } |
1123 else | 1123 else |
1124 _edit_area->setAutoCompletionThreshold (-1); | 1124 _edit_area->setAutoCompletionThreshold (-1); |
1125 | 1125 |
1126 if (settings->value ("editor/show_white_space",false).toBool ()) | |
1127 if (settings->value ("editor/show_white_space_indent",false).toBool ()) | |
1128 _edit_area->setWhitespaceVisibility (QsciScintilla::WsVisibleAfterIndent); | |
1129 else | |
1130 _edit_area->setWhitespaceVisibility (QsciScintilla::WsVisible); | |
1131 else | |
1132 _edit_area->setWhitespaceVisibility (QsciScintilla::WsInvisible); | |
1133 | |
1126 if (settings->value ("editor/showLineNumbers", true).toBool ()) | 1134 if (settings->value ("editor/showLineNumbers", true).toBool ()) |
1127 { | 1135 { |
1128 _edit_area->setMarginLineNumbers (2, true); | 1136 _edit_area->setMarginLineNumbers (2, true); |
1129 _edit_area->setMarginWidth (2, lexer_font_metrics.width ("9999")); | 1137 _edit_area->setMarginWidth (2, lexer_font_metrics.width ("9999")); |
1130 } | 1138 } |