Mercurial > octave
comparison libgui/src/gui-preferences-ed.h @ 27849:28d7ec92bae6
replace prefs literals by symbolic constant in main window
* gui-preferences-cs.h: new symbolic constants for pref keys and defaults
* gui-preferences-ed.h: new symbolic constants for pref keys and defaults
* gui-preferences-mw.h: new symbolic constants for pref keys and defaults
* file-editor.cc (request_open_file): replace literals by const. symbols
* main-window.cc ((notice_settings, read_settings, handle_octave_ready,
restore_create_file_setting, focus_console_after_command):
replace literals by const. symbols
* qt-interpreter-events.cc (prompt_new_edit_file):
replace literals by const. symbols
* settings-dialog.cc (settings_dialog, write_changed_settings):
replace literals by const. symbols
author | Torsten Lilge <ttl-octave@mailbox.org> |
---|---|
date | Mon, 16 Dec 2019 08:00:43 +0100 |
parents | 5169ed0ff0f0 |
children | 3fada47cc58a |
comparison
equal
deleted
inserted
replaced
27848:7a3444bdf958 | 27849:28d7ec92bae6 |
---|---|
78 | 78 |
79 const gui_pref | 79 const gui_pref |
80 ed_default_enc ("editor/default_encoding", | 80 ed_default_enc ("editor/default_encoding", |
81 QVariant (QTextCodec::codecForLocale ()->name ().toUpper ().prepend ("SYSTEM (").append (")"))); | 81 QVariant (QTextCodec::codecForLocale ()->name ().toUpper ().prepend ("SYSTEM (").append (")"))); |
82 | 82 |
83 const gui_pref | |
84 ed_create_new_file ("editor/create_new_file", QVariant (false)); | |
85 | |
83 // The find dialog | 86 // The find dialog |
84 | 87 |
85 enum find_dialog_options | 88 enum find_dialog_options |
86 { | 89 { |
87 FIND_DLG_MORE = 1, | 90 FIND_DLG_MORE = 1, |