Mercurial > octave-dspies
diff libgui/src/m-editor/file-editor-tab.cc @ 16703:5cf19370011d
add more settings concerning tabs and indentation to the editor settings
* settings-dialog.ui: insert input widget for tabs and indentation
* settings-dialog.cc(constructor): read state for input widgets from settings,
(write_changed_settings): write state of input widgets into settings file
* file-editor-tab.cc(notice-settings): load tab width and indentation options
from settings
author | Torsten <ttl@justmail.de> |
---|---|
date | Sun, 26 May 2013 22:16:21 +0200 |
parents | 553cfdd5d660 |
children | e38a0fa08368 |
line wrap: on
line diff
--- a/libgui/src/m-editor/file-editor-tab.cc Sun May 26 14:49:41 2013 +0200 +++ b/libgui/src/m-editor/file-editor-tab.cc Sun May 26 22:16:21 2013 +0200 @@ -1142,6 +1142,18 @@ _edit_area->setMarginWidth (2, 0); } + _edit_area->setAutoIndent + (settings->value ("editor/auto_indent",true).toBool ()); + _edit_area->setTabIndents + (settings->value ("editor/tab_indents_line",false).toBool ()); + _edit_area->setBackspaceUnindents + (settings->value ("editor/backspace_unindents_line",false).toBool ()); + _edit_area->setIndentationGuides + (settings->value ("editor/show_indent_guides",false).toBool ()); + + _edit_area->setTabWidth + (settings->value ("editor/tab_width",2).toInt ()); + _long_title = settings->value ("editor/longWindowTitle", false).toBool (); update_window_title (false);