# HG changeset patch # User Torsten # Date 1369492594 -7200 # Node ID ccfbc767ff5a38519b3591d5ea805d083d65175c # Parent cd7d08b8c928219eed84109673e4dba4e202ca68 make case sensitivity of editors auto completion list configurable * settings-dialog.ui: insert a checkbox for case sensitivity * settings-dialog.cc(read_settings): read state for new checkbox from settings, (write_changed_settings): write state of checkbox into settings file * file-editor-tab.cc(notice-settings): load auto completion case sensitivity from settings diff -r cd7d08b8c928 -r ccfbc767ff5a libgui/src/m-editor/file-editor-tab.cc --- a/libgui/src/m-editor/file-editor-tab.cc Sat May 25 15:00:31 2013 +0200 +++ b/libgui/src/m-editor/file-editor-tab.cc Sat May 25 16:36:34 2013 +0200 @@ -1115,7 +1115,8 @@ _edit_area->setAutoCompletionReplaceWord (settings->value ("editor/codeCompletion_replace",false).toBool ()); - + _edit_area->setAutoCompletionCaseSensitivity + (settings->value ("editor/codeCompletion_case",true).toBool ()); _edit_area->setAutoCompletionThreshold (settings->value ("editor/codeCompletion_threshold",2).toInt ()); } diff -r cd7d08b8c928 -r ccfbc767ff5a libgui/src/settings-dialog.cc --- a/libgui/src/settings-dialog.cc Sat May 25 15:00:31 2013 +0200 +++ b/libgui/src/settings-dialog.cc Sat May 25 16:36:34 2013 +0200 @@ -106,6 +106,7 @@ ui->editor_spinbox_ac_threshold->setValue (settings->value ("editor/codeCompletion_threshold",2).toInt ()); ui->editor_checkbox_ac_keywords->setChecked (settings->value ("editor/codeCompletion_keywords",true).toBool ()); ui->editor_checkbox_ac_document->setChecked (settings->value ("editor/codeCompletion_document",false).toBool ()); + ui->editor_checkbox_ac_case->setChecked (settings->value ("editor/codeCompletion_case",true).toBool ()); ui->editor_checkbox_ac_replace->setChecked (settings->value ("editor/codeCompletion_replace",false).toBool ()); ui->editor_longWindowTitle->setChecked (settings->value ("editor/longWindowTitle",false).toBool ()); ui->editor_restoreSession->setChecked (settings->value ("editor/restoreSession",true).toBool ()); @@ -408,6 +409,7 @@ settings->setValue ("editor/codeCompletion_threshold", ui->editor_spinbox_ac_threshold->value ()); settings->setValue ("editor/codeCompletion_keywords", ui->editor_checkbox_ac_keywords->isChecked ()); settings->setValue ("editor/codeCompletion_document", ui->editor_checkbox_ac_document->isChecked ()); + settings->setValue ("editor/codeCompletion_case", ui->editor_checkbox_ac_case->isChecked ()); settings->setValue ("editor/codeCompletion_replace", ui->editor_checkbox_ac_replace->isChecked ()); settings->setValue ("editor/longWindowTitle", ui->editor_longWindowTitle->isChecked()); settings->setValue ("editor/restoreSession", ui->editor_restoreSession->isChecked ()); diff -r cd7d08b8c928 -r ccfbc767ff5a libgui/src/settings-dialog.ui --- a/libgui/src/settings-dialog.ui Sat May 25 15:00:31 2013 +0200 +++ b/libgui/src/settings-dialog.ui Sat May 25 16:36:34 2013 +0200 @@ -289,6 +289,35 @@ + + + + true + + + Code completion + + + false + + + + + + + Qt::Horizontal + + + QSizePolicy::Fixed + + + + 20 + 0 + + + + @@ -345,21 +374,8 @@ - - - - - false - - - Match keywords - - - true - - - - + + false @@ -369,7 +385,7 @@ - + Qt::Horizontal @@ -382,47 +398,44 @@ + + + + false + + + Match keywords + + + true + + + + + + + false + + + Case sensitive + + + true + + + + + + + false + + + Replace word by suggested one + + + - - - - true - - - Code completion - - - false - - - - - - - Qt::Horizontal - - - QSizePolicy::Fixed - - - - 20 - 0 - - - - - - - - false - - - Replace the rest of the actual word by suggested word - - - @@ -1235,5 +1248,21 @@ + + editor_codeCompletion + toggled(bool) + editor_checkbox_ac_case + setEnabled(bool) + + + 83 + 172 + + + 525 + 203 + + +