Mercurial > octave
diff libgui/src/m-editor/file-editor-tab.cc @ 25617:44d638d5eea5
reorganize constants for preferences keys and default values
* editor-settings.h: rename into gui-preferences.h
* gui-preferences.h: define a structure for key string and default value,
reorganize existing constants using the new structure, renaming constants
reflecting the main widget they are used in
* file-editor-tab.cc: include gui-preferences.h;
(do_comment_selected_text): use const structure with new names for
preferences keys and default values
file-editor-tab.cc Wed Jul 11 07:56:05 2018 +0200
* octave-qscintilla.cc: include gui-preferences.h;
(comment_string): use const structure with new names for preferences
keys and default values
* module.mk: rename editor-settings.h into gui-preferences.h
* settings-dialog.cc: include gui-preferences.h;
(settings_dialog, write_changed_settings): use const structure with new
names for preferences keys and default values
* settings-dialog.h: include gui-preferences.h, use const structure with new
names for preferences keys and default values
author | Torsten <mttl@mailbox.org> |
---|---|
date | Fri, 13 Jul 2018 22:58:56 +0200 |
parents | eee01a6e197f |
children | 4d565baa475e |
line wrap: on
line diff
--- a/libgui/src/m-editor/file-editor-tab.cc Fri Jul 13 22:58:45 2018 +0200 +++ b/libgui/src/m-editor/file-editor-tab.cc Fri Jul 13 22:58:56 2018 +0200 @@ -60,7 +60,7 @@ #include <QDialogButtonBox> #include <QPushButton> -#include "editor-settings.h" +#include "gui-preferences.h" #include "resource-manager.h" #include "file-editor-tab.h" @@ -1445,13 +1445,13 @@ used_comment_str = QInputDialog::getText ( this, tr ("Comment selected text"), tr ("Comment string to use:\n"), QLineEdit::Normal, - settings->value (oct_last_comment_str, comment_str.at (0)).toString (), + settings->value (ed_last_comment_str, comment_str.at (0)).toString (), &ok); if ((! ok) || used_comment_str.isEmpty ()) return; // No input, do nothing else - settings->setValue (oct_last_comment_str, used_comment_str); // Store last + settings->setValue (ed_last_comment_str, used_comment_str); // Store last } } else