Mercurial > octave
annotate libgui/src/gui-preferences-sc.h @ 33658:b1d6e40ac737 stable tip
NEWS.9.md: Fix typo and minor formatting changes.
* etc/NEWS.9.md: Fix typo. Adjust whitespace. Use markdown syntax for code
snippets.
author | Markus Mützel <markus.muetzel@gmx.de> |
---|---|
date | Wed, 05 Jun 2024 11:27:35 +0200 |
parents | 2e484f9f1f18 |
children | 1ab09074c74b |
rev | line source |
---|---|
27923
bd51beb6205e
update formatting of copyright notices
John W. Eaton <jwe@octave.org>
parents:
27919
diff
changeset
|
1 //////////////////////////////////////////////////////////////////////// |
bd51beb6205e
update formatting of copyright notices
John W. Eaton <jwe@octave.org>
parents:
27919
diff
changeset
|
2 // |
32632
2e484f9f1f18
maint: update Octave Project Developers copyright for the new year
John W. Eaton <jwe@octave.org>
parents:
32391
diff
changeset
|
3 // Copyright (C) 2017-2024 The Octave Project Developers |
27923
bd51beb6205e
update formatting of copyright notices
John W. Eaton <jwe@octave.org>
parents:
27919
diff
changeset
|
4 // |
bd51beb6205e
update formatting of copyright notices
John W. Eaton <jwe@octave.org>
parents:
27919
diff
changeset
|
5 // See the file COPYRIGHT.md in the top-level directory of this |
bd51beb6205e
update formatting of copyright notices
John W. Eaton <jwe@octave.org>
parents:
27919
diff
changeset
|
6 // distribution or <https://octave.org/copyright/>. |
bd51beb6205e
update formatting of copyright notices
John W. Eaton <jwe@octave.org>
parents:
27919
diff
changeset
|
7 // |
bd51beb6205e
update formatting of copyright notices
John W. Eaton <jwe@octave.org>
parents:
27919
diff
changeset
|
8 // This file is part of Octave. |
bd51beb6205e
update formatting of copyright notices
John W. Eaton <jwe@octave.org>
parents:
27919
diff
changeset
|
9 // |
bd51beb6205e
update formatting of copyright notices
John W. Eaton <jwe@octave.org>
parents:
27919
diff
changeset
|
10 // Octave is free software: you can redistribute it and/or modify it |
bd51beb6205e
update formatting of copyright notices
John W. Eaton <jwe@octave.org>
parents:
27919
diff
changeset
|
11 // under the terms of the GNU General Public License as published by |
bd51beb6205e
update formatting of copyright notices
John W. Eaton <jwe@octave.org>
parents:
27919
diff
changeset
|
12 // the Free Software Foundation, either version 3 of the License, or |
bd51beb6205e
update formatting of copyright notices
John W. Eaton <jwe@octave.org>
parents:
27919
diff
changeset
|
13 // (at your option) any later version. |
bd51beb6205e
update formatting of copyright notices
John W. Eaton <jwe@octave.org>
parents:
27919
diff
changeset
|
14 // |
bd51beb6205e
update formatting of copyright notices
John W. Eaton <jwe@octave.org>
parents:
27919
diff
changeset
|
15 // Octave is distributed in the hope that it will be useful, but |
bd51beb6205e
update formatting of copyright notices
John W. Eaton <jwe@octave.org>
parents:
27919
diff
changeset
|
16 // WITHOUT ANY WARRANTY; without even the implied warranty of |
bd51beb6205e
update formatting of copyright notices
John W. Eaton <jwe@octave.org>
parents:
27919
diff
changeset
|
17 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
bd51beb6205e
update formatting of copyright notices
John W. Eaton <jwe@octave.org>
parents:
27919
diff
changeset
|
18 // GNU General Public License for more details. |
bd51beb6205e
update formatting of copyright notices
John W. Eaton <jwe@octave.org>
parents:
27919
diff
changeset
|
19 // |
bd51beb6205e
update formatting of copyright notices
John W. Eaton <jwe@octave.org>
parents:
27919
diff
changeset
|
20 // You should have received a copy of the GNU General Public License |
bd51beb6205e
update formatting of copyright notices
John W. Eaton <jwe@octave.org>
parents:
27919
diff
changeset
|
21 // along with Octave; see the file COPYING. If not, see |
bd51beb6205e
update formatting of copyright notices
John W. Eaton <jwe@octave.org>
parents:
27919
diff
changeset
|
22 // <https://www.gnu.org/licenses/>. |
bd51beb6205e
update formatting of copyright notices
John W. Eaton <jwe@octave.org>
parents:
27919
diff
changeset
|
23 // |
bd51beb6205e
update formatting of copyright notices
John W. Eaton <jwe@octave.org>
parents:
27919
diff
changeset
|
24 //////////////////////////////////////////////////////////////////////// |
27583
315c35e6037c
use symbolic constants for command widget preferences
Torsten Lilge <ttl-octave@mailbox.org>
parents:
diff
changeset
|
25 |
315c35e6037c
use symbolic constants for command widget preferences
Torsten Lilge <ttl-octave@mailbox.org>
parents:
diff
changeset
|
26 #if ! defined (octave_gui_preferences_sc_h) |
315c35e6037c
use symbolic constants for command widget preferences
Torsten Lilge <ttl-octave@mailbox.org>
parents:
diff
changeset
|
27 #define octave_gui_preferences_sc_h 1 |
315c35e6037c
use symbolic constants for command widget preferences
Torsten Lilge <ttl-octave@mailbox.org>
parents:
diff
changeset
|
28 |
315c35e6037c
use symbolic constants for command widget preferences
Torsten Lilge <ttl-octave@mailbox.org>
parents:
diff
changeset
|
29 #include "gui-preferences.h" |
315c35e6037c
use symbolic constants for command widget preferences
Torsten Lilge <ttl-octave@mailbox.org>
parents:
diff
changeset
|
30 |
27724
19e80f22aa47
provide structure and settings value method for shortcut key sequences
Torsten Lilge <ttl-octave@mailbox.org>
parents:
27583
diff
changeset
|
31 // Define shortcuts |
27583
315c35e6037c
use symbolic constants for command widget preferences
Torsten Lilge <ttl-octave@mailbox.org>
parents:
diff
changeset
|
32 |
27724
19e80f22aa47
provide structure and settings value method for shortcut key sequences
Torsten Lilge <ttl-octave@mailbox.org>
parents:
27583
diff
changeset
|
33 // The shortcut's default values are given as QKeySequence for being able |
19e80f22aa47
provide structure and settings value method for shortcut key sequences
Torsten Lilge <ttl-octave@mailbox.org>
parents:
27583
diff
changeset
|
34 // to use platform independent standard keys (QKeySequence::StandardKey). |
27818
fa0582694fda
replace literal strings by symbolic constants for shortcut preferences
Torsten Lilge <ttl-octave@mailbox.org>
parents:
27724
diff
changeset
|
35 // However, converting key sequences into QVariants does not seem to be |
27929
265b386f8b20
maint: Use two spaces between sentences in code comments.
Rik <rik@octave.org>
parents:
27923
diff
changeset
|
36 // revertible. In addition the related string (which is saved in the |
27724
19e80f22aa47
provide structure and settings value method for shortcut key sequences
Torsten Lilge <ttl-octave@mailbox.org>
parents:
27583
diff
changeset
|
37 // preferences file) can not be determined during compile time since the |
19e80f22aa47
provide structure and settings value method for shortcut key sequences
Torsten Lilge <ttl-octave@mailbox.org>
parents:
27583
diff
changeset
|
38 // result depends on the platform (at least in case of standard key sequences |
19e80f22aa47
provide structure and settings value method for shortcut key sequences
Torsten Lilge <ttl-octave@mailbox.org>
parents:
27583
diff
changeset
|
39 // like, e.g., QKeySequence::Copy) |
19e80f22aa47
provide structure and settings value method for shortcut key sequences
Torsten Lilge <ttl-octave@mailbox.org>
parents:
27583
diff
changeset
|
40 // Therefore, these prefs for key sequences require a separate constant |
19e80f22aa47
provide structure and settings value method for shortcut key sequences
Torsten Lilge <ttl-octave@mailbox.org>
parents:
27583
diff
changeset
|
41 // definition and value method for the settings class. |
19e80f22aa47
provide structure and settings value method for shortcut key sequences
Torsten Lilge <ttl-octave@mailbox.org>
parents:
27583
diff
changeset
|
42 |
32391
6ce32f4ca644
gui: Avoid warnings about deprecated "QKeyCombination::operator int ()" with Qt6.
Markus Mützel <markus.muetzel@gmx.de>
parents:
31707
diff
changeset
|
43 |
6ce32f4ca644
gui: Avoid warnings about deprecated "QKeyCombination::operator int ()" with Qt6.
Markus Mützel <markus.muetzel@gmx.de>
parents:
31707
diff
changeset
|
44 #if QT_VERSION >= QT_VERSION_CHECK(6, 0, 0) |
6ce32f4ca644
gui: Avoid warnings about deprecated "QKeyCombination::operator int ()" with Qt6.
Markus Mützel <markus.muetzel@gmx.de>
parents:
31707
diff
changeset
|
45 # include <QKeyCombination> |
6ce32f4ca644
gui: Avoid warnings about deprecated "QKeyCombination::operator int ()" with Qt6.
Markus Mützel <markus.muetzel@gmx.de>
parents:
31707
diff
changeset
|
46 # define OCTAVE_QT_KEYCOMBINATION(mod, key) \ |
6ce32f4ca644
gui: Avoid warnings about deprecated "QKeyCombination::operator int ()" with Qt6.
Markus Mützel <markus.muetzel@gmx.de>
parents:
31707
diff
changeset
|
47 QKeyCombination (mod, key).toCombined () |
6ce32f4ca644
gui: Avoid warnings about deprecated "QKeyCombination::operator int ()" with Qt6.
Markus Mützel <markus.muetzel@gmx.de>
parents:
31707
diff
changeset
|
48 #else |
6ce32f4ca644
gui: Avoid warnings about deprecated "QKeyCombination::operator int ()" with Qt6.
Markus Mützel <markus.muetzel@gmx.de>
parents:
31707
diff
changeset
|
49 # define OCTAVE_QT_KEYCOMBINATION(mod, key) \ |
6ce32f4ca644
gui: Avoid warnings about deprecated "QKeyCombination::operator int ()" with Qt6.
Markus Mützel <markus.muetzel@gmx.de>
parents:
31707
diff
changeset
|
50 mod | key |
6ce32f4ca644
gui: Avoid warnings about deprecated "QKeyCombination::operator int ()" with Qt6.
Markus Mützel <markus.muetzel@gmx.de>
parents:
31707
diff
changeset
|
51 #endif |
6ce32f4ca644
gui: Avoid warnings about deprecated "QKeyCombination::operator int ()" with Qt6.
Markus Mützel <markus.muetzel@gmx.de>
parents:
31707
diff
changeset
|
52 |
27818
fa0582694fda
replace literal strings by symbolic constants for shortcut preferences
Torsten Lilge <ttl-octave@mailbox.org>
parents:
27724
diff
changeset
|
53 #if defined (Q_OS_MAC) |
27935
f1844e33f621
maint: Use Octave coding conventions in libgui/ directory.
Rik <rik@octave.org>
parents:
27929
diff
changeset
|
54 // Use CMD key as an equivalent of Ctrl key on other platforms |
27818
fa0582694fda
replace literal strings by symbolic constants for shortcut preferences
Torsten Lilge <ttl-octave@mailbox.org>
parents:
27724
diff
changeset
|
55 const Qt::KeyboardModifier CTRL = Qt::MetaModifier; |
27935
f1844e33f621
maint: Use Octave coding conventions in libgui/ directory.
Rik <rik@octave.org>
parents:
27929
diff
changeset
|
56 // Some of octave default shortcuts on windows/linux are already defined |
f1844e33f621
maint: Use Octave coding conventions in libgui/ directory.
Rik <rik@octave.org>
parents:
27929
diff
changeset
|
57 // as system wide shortcuts on Mac Os X (almost all Function keys). |
f1844e33f621
maint: Use Octave coding conventions in libgui/ directory.
Rik <rik@octave.org>
parents:
27929
diff
changeset
|
58 // Prefix those with Option (Alt) modifier to avoid conflicts. |
32391
6ce32f4ca644
gui: Avoid warnings about deprecated "QKeyCombination::operator int ()" with Qt6.
Markus Mützel <markus.muetzel@gmx.de>
parents:
31707
diff
changeset
|
59 const Qt::KeyboardModifier PRE = Qt::AltModifier; |
27818
fa0582694fda
replace literal strings by symbolic constants for shortcut preferences
Torsten Lilge <ttl-octave@mailbox.org>
parents:
27724
diff
changeset
|
60 #else |
fa0582694fda
replace literal strings by symbolic constants for shortcut preferences
Torsten Lilge <ttl-octave@mailbox.org>
parents:
27724
diff
changeset
|
61 const Qt::KeyboardModifier CTRL = Qt::ControlModifier; |
32391
6ce32f4ca644
gui: Avoid warnings about deprecated "QKeyCombination::operator int ()" with Qt6.
Markus Mützel <markus.muetzel@gmx.de>
parents:
31707
diff
changeset
|
62 const Qt::KeyboardModifier PRE = Qt::NoModifier; |
27818
fa0582694fda
replace literal strings by symbolic constants for shortcut preferences
Torsten Lilge <ttl-octave@mailbox.org>
parents:
27724
diff
changeset
|
63 #endif |
fa0582694fda
replace literal strings by symbolic constants for shortcut preferences
Torsten Lilge <ttl-octave@mailbox.org>
parents:
27724
diff
changeset
|
64 |
fa0582694fda
replace literal strings by symbolic constants for shortcut preferences
Torsten Lilge <ttl-octave@mailbox.org>
parents:
27724
diff
changeset
|
65 const Qt::KeyboardModifiers CTRL_SHIFT = CTRL | Qt::ShiftModifier; |
fa0582694fda
replace literal strings by symbolic constants for shortcut preferences
Torsten Lilge <ttl-octave@mailbox.org>
parents:
27724
diff
changeset
|
66 const Qt::KeyboardModifiers CTRL_ALT = CTRL | Qt::AltModifier; |
fa0582694fda
replace literal strings by symbolic constants for shortcut preferences
Torsten Lilge <ttl-octave@mailbox.org>
parents:
27724
diff
changeset
|
67 |
31696
8fed04d0607c
eliminate shortcut_manager class and revamp shortcut handling
John W. Eaton <jwe@octave.org>
parents:
31695
diff
changeset
|
68 const QString sc_group ("shortcuts"); |
8fed04d0607c
eliminate shortcut_manager class and revamp shortcut handling
John W. Eaton <jwe@octave.org>
parents:
31695
diff
changeset
|
69 |
27937
8dc5b36f1245
include new undock/dock actions into the shortcut manager
Torsten Lilge <ttl-octave@mailbox.org>
parents:
27935
diff
changeset
|
70 // Shortcuts not related to specific Menus |
8dc5b36f1245
include new undock/dock actions into the shortcut manager
Torsten Lilge <ttl-octave@mailbox.org>
parents:
27935
diff
changeset
|
71 |
8dc5b36f1245
include new undock/dock actions into the shortcut manager
Torsten Lilge <ttl-octave@mailbox.org>
parents:
27935
diff
changeset
|
72 // Dock widgets |
8dc5b36f1245
include new undock/dock actions into the shortcut manager
Torsten Lilge <ttl-octave@mailbox.org>
parents:
27935
diff
changeset
|
73 const QString sc_dock_widget ("dock_widget"); |
31695
5749674b826e
store constant shortcut data in global QHash object
John W. Eaton <jwe@octave.org>
parents:
30564
diff
changeset
|
74 extern sc_pref sc_dock_widget_dock; |
5749674b826e
store constant shortcut data in global QHash object
John W. Eaton <jwe@octave.org>
parents:
30564
diff
changeset
|
75 extern sc_pref sc_dock_widget_close; |
27937
8dc5b36f1245
include new undock/dock actions into the shortcut manager
Torsten Lilge <ttl-octave@mailbox.org>
parents:
27935
diff
changeset
|
76 |
27818
fa0582694fda
replace literal strings by symbolic constants for shortcut preferences
Torsten Lilge <ttl-octave@mailbox.org>
parents:
27724
diff
changeset
|
77 // Main window menu |
fa0582694fda
replace literal strings by symbolic constants for shortcut preferences
Torsten Lilge <ttl-octave@mailbox.org>
parents:
27724
diff
changeset
|
78 |
fa0582694fda
replace literal strings by symbolic constants for shortcut preferences
Torsten Lilge <ttl-octave@mailbox.org>
parents:
27724
diff
changeset
|
79 // file |
fa0582694fda
replace literal strings by symbolic constants for shortcut preferences
Torsten Lilge <ttl-octave@mailbox.org>
parents:
27724
diff
changeset
|
80 const QString sc_main_file ("main_file"); |
31695
5749674b826e
store constant shortcut data in global QHash object
John W. Eaton <jwe@octave.org>
parents:
30564
diff
changeset
|
81 extern sc_pref sc_main_file_new_file; |
5749674b826e
store constant shortcut data in global QHash object
John W. Eaton <jwe@octave.org>
parents:
30564
diff
changeset
|
82 extern sc_pref sc_main_file_new_function; |
5749674b826e
store constant shortcut data in global QHash object
John W. Eaton <jwe@octave.org>
parents:
30564
diff
changeset
|
83 extern sc_pref sc_main_file_new_figure; |
5749674b826e
store constant shortcut data in global QHash object
John W. Eaton <jwe@octave.org>
parents:
30564
diff
changeset
|
84 extern sc_pref sc_main_file_open_file; |
5749674b826e
store constant shortcut data in global QHash object
John W. Eaton <jwe@octave.org>
parents:
30564
diff
changeset
|
85 extern sc_pref sc_main_file_load_workspace; |
5749674b826e
store constant shortcut data in global QHash object
John W. Eaton <jwe@octave.org>
parents:
30564
diff
changeset
|
86 extern sc_pref sc_main_file_save_workspace; |
5749674b826e
store constant shortcut data in global QHash object
John W. Eaton <jwe@octave.org>
parents:
30564
diff
changeset
|
87 extern sc_pref sc_main_file_exit; |
27818
fa0582694fda
replace literal strings by symbolic constants for shortcut preferences
Torsten Lilge <ttl-octave@mailbox.org>
parents:
27724
diff
changeset
|
88 |
fa0582694fda
replace literal strings by symbolic constants for shortcut preferences
Torsten Lilge <ttl-octave@mailbox.org>
parents:
27724
diff
changeset
|
89 // edit |
fa0582694fda
replace literal strings by symbolic constants for shortcut preferences
Torsten Lilge <ttl-octave@mailbox.org>
parents:
27724
diff
changeset
|
90 const QString sc_main_edit ("main_edit"); |
31695
5749674b826e
store constant shortcut data in global QHash object
John W. Eaton <jwe@octave.org>
parents:
30564
diff
changeset
|
91 extern sc_pref sc_main_edit_copy; |
5749674b826e
store constant shortcut data in global QHash object
John W. Eaton <jwe@octave.org>
parents:
30564
diff
changeset
|
92 extern sc_pref sc_main_edit_paste; |
5749674b826e
store constant shortcut data in global QHash object
John W. Eaton <jwe@octave.org>
parents:
30564
diff
changeset
|
93 extern sc_pref sc_main_edit_undo; |
5749674b826e
store constant shortcut data in global QHash object
John W. Eaton <jwe@octave.org>
parents:
30564
diff
changeset
|
94 extern sc_pref sc_main_edit_select_all; |
5749674b826e
store constant shortcut data in global QHash object
John W. Eaton <jwe@octave.org>
parents:
30564
diff
changeset
|
95 extern sc_pref sc_main_edit_clear_clipboard; |
5749674b826e
store constant shortcut data in global QHash object
John W. Eaton <jwe@octave.org>
parents:
30564
diff
changeset
|
96 extern sc_pref sc_main_edit_find_in_files; |
5749674b826e
store constant shortcut data in global QHash object
John W. Eaton <jwe@octave.org>
parents:
30564
diff
changeset
|
97 extern sc_pref sc_main_edit_clear_command_window; |
5749674b826e
store constant shortcut data in global QHash object
John W. Eaton <jwe@octave.org>
parents:
30564
diff
changeset
|
98 extern sc_pref sc_main_edit_clear_history; |
5749674b826e
store constant shortcut data in global QHash object
John W. Eaton <jwe@octave.org>
parents:
30564
diff
changeset
|
99 extern sc_pref sc_main_edit_clear_workspace; |
5749674b826e
store constant shortcut data in global QHash object
John W. Eaton <jwe@octave.org>
parents:
30564
diff
changeset
|
100 extern sc_pref sc_main_edit_set_path; |
5749674b826e
store constant shortcut data in global QHash object
John W. Eaton <jwe@octave.org>
parents:
30564
diff
changeset
|
101 extern sc_pref sc_main_edit_preferences; |
27818
fa0582694fda
replace literal strings by symbolic constants for shortcut preferences
Torsten Lilge <ttl-octave@mailbox.org>
parents:
27724
diff
changeset
|
102 |
fa0582694fda
replace literal strings by symbolic constants for shortcut preferences
Torsten Lilge <ttl-octave@mailbox.org>
parents:
27724
diff
changeset
|
103 // debug |
fa0582694fda
replace literal strings by symbolic constants for shortcut preferences
Torsten Lilge <ttl-octave@mailbox.org>
parents:
27724
diff
changeset
|
104 const QString sc_main_debug ("main_debug"); |
31695
5749674b826e
store constant shortcut data in global QHash object
John W. Eaton <jwe@octave.org>
parents:
30564
diff
changeset
|
105 extern sc_pref sc_main_debug_step_over; |
5749674b826e
store constant shortcut data in global QHash object
John W. Eaton <jwe@octave.org>
parents:
30564
diff
changeset
|
106 extern sc_pref sc_main_debug_step_into; |
5749674b826e
store constant shortcut data in global QHash object
John W. Eaton <jwe@octave.org>
parents:
30564
diff
changeset
|
107 extern sc_pref sc_main_debug_step_out; |
5749674b826e
store constant shortcut data in global QHash object
John W. Eaton <jwe@octave.org>
parents:
30564
diff
changeset
|
108 extern sc_pref sc_main_debug_continue; |
5749674b826e
store constant shortcut data in global QHash object
John W. Eaton <jwe@octave.org>
parents:
30564
diff
changeset
|
109 extern sc_pref sc_main_debug_quit; |
27818
fa0582694fda
replace literal strings by symbolic constants for shortcut preferences
Torsten Lilge <ttl-octave@mailbox.org>
parents:
27724
diff
changeset
|
110 |
29068
d8089b13d4d7
add shortcuts for the new profiler actions in the gui
Torsten Lilge <ttl-octave@mailbox.org>
parents:
28131
diff
changeset
|
111 // tools |
d8089b13d4d7
add shortcuts for the new profiler actions in the gui
Torsten Lilge <ttl-octave@mailbox.org>
parents:
28131
diff
changeset
|
112 const QString sc_main_tools ("main_tools"); |
31695
5749674b826e
store constant shortcut data in global QHash object
John W. Eaton <jwe@octave.org>
parents:
30564
diff
changeset
|
113 extern sc_pref sc_main_tools_start_profiler; |
5749674b826e
store constant shortcut data in global QHash object
John W. Eaton <jwe@octave.org>
parents:
30564
diff
changeset
|
114 extern sc_pref sc_main_tools_resume_profiler; |
5749674b826e
store constant shortcut data in global QHash object
John W. Eaton <jwe@octave.org>
parents:
30564
diff
changeset
|
115 extern sc_pref sc_main_tools_show_profiler; |
29068
d8089b13d4d7
add shortcuts for the new profiler actions in the gui
Torsten Lilge <ttl-octave@mailbox.org>
parents:
28131
diff
changeset
|
116 |
d8089b13d4d7
add shortcuts for the new profiler actions in the gui
Torsten Lilge <ttl-octave@mailbox.org>
parents:
28131
diff
changeset
|
117 |
27818
fa0582694fda
replace literal strings by symbolic constants for shortcut preferences
Torsten Lilge <ttl-octave@mailbox.org>
parents:
27724
diff
changeset
|
118 // window |
fa0582694fda
replace literal strings by symbolic constants for shortcut preferences
Torsten Lilge <ttl-octave@mailbox.org>
parents:
27724
diff
changeset
|
119 const QString sc_main_window ("main_window"); |
31695
5749674b826e
store constant shortcut data in global QHash object
John W. Eaton <jwe@octave.org>
parents:
30564
diff
changeset
|
120 extern sc_pref sc_main_window_show_command; |
5749674b826e
store constant shortcut data in global QHash object
John W. Eaton <jwe@octave.org>
parents:
30564
diff
changeset
|
121 extern sc_pref sc_main_window_show_history; |
5749674b826e
store constant shortcut data in global QHash object
John W. Eaton <jwe@octave.org>
parents:
30564
diff
changeset
|
122 extern sc_pref sc_main_window_show_file_browser; |
5749674b826e
store constant shortcut data in global QHash object
John W. Eaton <jwe@octave.org>
parents:
30564
diff
changeset
|
123 extern sc_pref sc_main_window_show_workspace; |
5749674b826e
store constant shortcut data in global QHash object
John W. Eaton <jwe@octave.org>
parents:
30564
diff
changeset
|
124 extern sc_pref sc_main_window_show_editor; |
5749674b826e
store constant shortcut data in global QHash object
John W. Eaton <jwe@octave.org>
parents:
30564
diff
changeset
|
125 extern sc_pref sc_main_window_show_doc; |
5749674b826e
store constant shortcut data in global QHash object
John W. Eaton <jwe@octave.org>
parents:
30564
diff
changeset
|
126 extern sc_pref sc_main_window_show_variable_editor; |
5749674b826e
store constant shortcut data in global QHash object
John W. Eaton <jwe@octave.org>
parents:
30564
diff
changeset
|
127 extern sc_pref sc_main_window_command; |
5749674b826e
store constant shortcut data in global QHash object
John W. Eaton <jwe@octave.org>
parents:
30564
diff
changeset
|
128 extern sc_pref sc_main_window_history; |
5749674b826e
store constant shortcut data in global QHash object
John W. Eaton <jwe@octave.org>
parents:
30564
diff
changeset
|
129 extern sc_pref sc_main_window_file_browser; |
5749674b826e
store constant shortcut data in global QHash object
John W. Eaton <jwe@octave.org>
parents:
30564
diff
changeset
|
130 extern sc_pref sc_main_window_workspace; |
5749674b826e
store constant shortcut data in global QHash object
John W. Eaton <jwe@octave.org>
parents:
30564
diff
changeset
|
131 extern sc_pref sc_main_window_editor; |
5749674b826e
store constant shortcut data in global QHash object
John W. Eaton <jwe@octave.org>
parents:
30564
diff
changeset
|
132 extern sc_pref sc_main_window_doc; |
5749674b826e
store constant shortcut data in global QHash object
John W. Eaton <jwe@octave.org>
parents:
30564
diff
changeset
|
133 extern sc_pref sc_main_window_variable_editor; |
5749674b826e
store constant shortcut data in global QHash object
John W. Eaton <jwe@octave.org>
parents:
30564
diff
changeset
|
134 extern sc_pref sc_main_window_previous_dock; |
5749674b826e
store constant shortcut data in global QHash object
John W. Eaton <jwe@octave.org>
parents:
30564
diff
changeset
|
135 extern sc_pref sc_main_window_reset; |
27818
fa0582694fda
replace literal strings by symbolic constants for shortcut preferences
Torsten Lilge <ttl-octave@mailbox.org>
parents:
27724
diff
changeset
|
136 |
fa0582694fda
replace literal strings by symbolic constants for shortcut preferences
Torsten Lilge <ttl-octave@mailbox.org>
parents:
27724
diff
changeset
|
137 // help |
fa0582694fda
replace literal strings by symbolic constants for shortcut preferences
Torsten Lilge <ttl-octave@mailbox.org>
parents:
27724
diff
changeset
|
138 const QString sc_main_help ("main_help"); |
31695
5749674b826e
store constant shortcut data in global QHash object
John W. Eaton <jwe@octave.org>
parents:
30564
diff
changeset
|
139 extern sc_pref sc_main_help_ondisk_doc; |
5749674b826e
store constant shortcut data in global QHash object
John W. Eaton <jwe@octave.org>
parents:
30564
diff
changeset
|
140 extern sc_pref sc_main_help_online_doc; |
5749674b826e
store constant shortcut data in global QHash object
John W. Eaton <jwe@octave.org>
parents:
30564
diff
changeset
|
141 extern sc_pref sc_main_help_report_bug; |
5749674b826e
store constant shortcut data in global QHash object
John W. Eaton <jwe@octave.org>
parents:
30564
diff
changeset
|
142 extern sc_pref sc_main_help_packages; |
5749674b826e
store constant shortcut data in global QHash object
John W. Eaton <jwe@octave.org>
parents:
30564
diff
changeset
|
143 extern sc_pref sc_main_help_contribute; |
5749674b826e
store constant shortcut data in global QHash object
John W. Eaton <jwe@octave.org>
parents:
30564
diff
changeset
|
144 extern sc_pref sc_main_help_developer; |
5749674b826e
store constant shortcut data in global QHash object
John W. Eaton <jwe@octave.org>
parents:
30564
diff
changeset
|
145 extern sc_pref sc_main_help_about; |
27818
fa0582694fda
replace literal strings by symbolic constants for shortcut preferences
Torsten Lilge <ttl-octave@mailbox.org>
parents:
27724
diff
changeset
|
146 |
fa0582694fda
replace literal strings by symbolic constants for shortcut preferences
Torsten Lilge <ttl-octave@mailbox.org>
parents:
27724
diff
changeset
|
147 // news |
fa0582694fda
replace literal strings by symbolic constants for shortcut preferences
Torsten Lilge <ttl-octave@mailbox.org>
parents:
27724
diff
changeset
|
148 const QString sc_main_news ("main_news"); |
31695
5749674b826e
store constant shortcut data in global QHash object
John W. Eaton <jwe@octave.org>
parents:
30564
diff
changeset
|
149 extern sc_pref sc_main_news_release_notes; |
5749674b826e
store constant shortcut data in global QHash object
John W. Eaton <jwe@octave.org>
parents:
30564
diff
changeset
|
150 extern sc_pref sc_main_news_community_news; |
27818
fa0582694fda
replace literal strings by symbolic constants for shortcut preferences
Torsten Lilge <ttl-octave@mailbox.org>
parents:
27724
diff
changeset
|
151 |
fa0582694fda
replace literal strings by symbolic constants for shortcut preferences
Torsten Lilge <ttl-octave@mailbox.org>
parents:
27724
diff
changeset
|
152 // Tab handling |
27929
265b386f8b20
maint: Use two spaces between sentences in code comments.
Rik <rik@octave.org>
parents:
27923
diff
changeset
|
153 // The following shortcuts are moved into a separate tab. The key names |
27818
fa0582694fda
replace literal strings by symbolic constants for shortcut preferences
Torsten Lilge <ttl-octave@mailbox.org>
parents:
27724
diff
changeset
|
154 // are not change for preserving compatibility with older versions |
fa0582694fda
replace literal strings by symbolic constants for shortcut preferences
Torsten Lilge <ttl-octave@mailbox.org>
parents:
27724
diff
changeset
|
155 const QString sc_edit_file ("editor_file"); |
fa0582694fda
replace literal strings by symbolic constants for shortcut preferences
Torsten Lilge <ttl-octave@mailbox.org>
parents:
27724
diff
changeset
|
156 const QString sc_edit_file_cl (sc_edit_file + ":close"); |
31695
5749674b826e
store constant shortcut data in global QHash object
John W. Eaton <jwe@octave.org>
parents:
30564
diff
changeset
|
157 extern sc_pref sc_edit_file_close; |
5749674b826e
store constant shortcut data in global QHash object
John W. Eaton <jwe@octave.org>
parents:
30564
diff
changeset
|
158 extern sc_pref sc_edit_file_close_all; |
5749674b826e
store constant shortcut data in global QHash object
John W. Eaton <jwe@octave.org>
parents:
30564
diff
changeset
|
159 extern sc_pref sc_edit_file_close_other; |
27818
fa0582694fda
replace literal strings by symbolic constants for shortcut preferences
Torsten Lilge <ttl-octave@mailbox.org>
parents:
27724
diff
changeset
|
160 const QString sc_edit_tabs ("editor_tabs"); |
31695
5749674b826e
store constant shortcut data in global QHash object
John W. Eaton <jwe@octave.org>
parents:
30564
diff
changeset
|
161 extern sc_pref sc_edit_tabs_switch_left_tab; |
5749674b826e
store constant shortcut data in global QHash object
John W. Eaton <jwe@octave.org>
parents:
30564
diff
changeset
|
162 extern sc_pref sc_edit_tabs_switch_right_tab; |
5749674b826e
store constant shortcut data in global QHash object
John W. Eaton <jwe@octave.org>
parents:
30564
diff
changeset
|
163 extern sc_pref sc_edit_tabs_move_tab_left; |
5749674b826e
store constant shortcut data in global QHash object
John W. Eaton <jwe@octave.org>
parents:
30564
diff
changeset
|
164 extern sc_pref sc_edit_tabs_move_tab_right; |
27818
fa0582694fda
replace literal strings by symbolic constants for shortcut preferences
Torsten Lilge <ttl-octave@mailbox.org>
parents:
27724
diff
changeset
|
165 |
fa0582694fda
replace literal strings by symbolic constants for shortcut preferences
Torsten Lilge <ttl-octave@mailbox.org>
parents:
27724
diff
changeset
|
166 // Zooming |
fa0582694fda
replace literal strings by symbolic constants for shortcut preferences
Torsten Lilge <ttl-octave@mailbox.org>
parents:
27724
diff
changeset
|
167 const QString sc_edit_zoom ("editor_zoom"); // only a group name in the pref dialog |
fa0582694fda
replace literal strings by symbolic constants for shortcut preferences
Torsten Lilge <ttl-octave@mailbox.org>
parents:
27724
diff
changeset
|
168 const QString sc_edit_view ("editor_view"); |
fa0582694fda
replace literal strings by symbolic constants for shortcut preferences
Torsten Lilge <ttl-octave@mailbox.org>
parents:
27724
diff
changeset
|
169 const QString sc_edit_view_zoom (sc_edit_view + ":zoom"); |
31695
5749674b826e
store constant shortcut data in global QHash object
John W. Eaton <jwe@octave.org>
parents:
30564
diff
changeset
|
170 extern sc_pref sc_edit_view_zoom_in; |
5749674b826e
store constant shortcut data in global QHash object
John W. Eaton <jwe@octave.org>
parents:
30564
diff
changeset
|
171 extern sc_pref sc_edit_view_zoom_out; |
27818
fa0582694fda
replace literal strings by symbolic constants for shortcut preferences
Torsten Lilge <ttl-octave@mailbox.org>
parents:
27724
diff
changeset
|
172 #if defined (Q_OS_MAC) |
31695
5749674b826e
store constant shortcut data in global QHash object
John W. Eaton <jwe@octave.org>
parents:
30564
diff
changeset
|
173 extern sc_pref sc_edit_view_zoom_normal; |
27818
fa0582694fda
replace literal strings by symbolic constants for shortcut preferences
Torsten Lilge <ttl-octave@mailbox.org>
parents:
27724
diff
changeset
|
174 #else |
31695
5749674b826e
store constant shortcut data in global QHash object
John W. Eaton <jwe@octave.org>
parents:
30564
diff
changeset
|
175 extern sc_pref sc_edit_view_zoom_normal; |
27818
fa0582694fda
replace literal strings by symbolic constants for shortcut preferences
Torsten Lilge <ttl-octave@mailbox.org>
parents:
27724
diff
changeset
|
176 #endif |
fa0582694fda
replace literal strings by symbolic constants for shortcut preferences
Torsten Lilge <ttl-octave@mailbox.org>
parents:
27724
diff
changeset
|
177 |
fa0582694fda
replace literal strings by symbolic constants for shortcut preferences
Torsten Lilge <ttl-octave@mailbox.org>
parents:
27724
diff
changeset
|
178 // Actions of the editor |
fa0582694fda
replace literal strings by symbolic constants for shortcut preferences
Torsten Lilge <ttl-octave@mailbox.org>
parents:
27724
diff
changeset
|
179 |
fa0582694fda
replace literal strings by symbolic constants for shortcut preferences
Torsten Lilge <ttl-octave@mailbox.org>
parents:
27724
diff
changeset
|
180 // file |
31695
5749674b826e
store constant shortcut data in global QHash object
John W. Eaton <jwe@octave.org>
parents:
30564
diff
changeset
|
181 extern sc_pref sc_edit_file_edit_function; |
5749674b826e
store constant shortcut data in global QHash object
John W. Eaton <jwe@octave.org>
parents:
30564
diff
changeset
|
182 extern sc_pref sc_edit_file_save; |
5749674b826e
store constant shortcut data in global QHash object
John W. Eaton <jwe@octave.org>
parents:
30564
diff
changeset
|
183 extern sc_pref sc_edit_file_save_as; |
5749674b826e
store constant shortcut data in global QHash object
John W. Eaton <jwe@octave.org>
parents:
30564
diff
changeset
|
184 extern sc_pref sc_edit_file_print; |
27818
fa0582694fda
replace literal strings by symbolic constants for shortcut preferences
Torsten Lilge <ttl-octave@mailbox.org>
parents:
27724
diff
changeset
|
185 |
fa0582694fda
replace literal strings by symbolic constants for shortcut preferences
Torsten Lilge <ttl-octave@mailbox.org>
parents:
27724
diff
changeset
|
186 // edit |
fa0582694fda
replace literal strings by symbolic constants for shortcut preferences
Torsten Lilge <ttl-octave@mailbox.org>
parents:
27724
diff
changeset
|
187 const QString sc_edit_find ("editor_find"); // only a group name in the pref dialog |
fa0582694fda
replace literal strings by symbolic constants for shortcut preferences
Torsten Lilge <ttl-octave@mailbox.org>
parents:
27724
diff
changeset
|
188 const QString sc_edit_edit ("editor_edit"); |
fa0582694fda
replace literal strings by symbolic constants for shortcut preferences
Torsten Lilge <ttl-octave@mailbox.org>
parents:
27724
diff
changeset
|
189 const QString sc_edit_edit_find (sc_edit_edit + ":find"); |
31695
5749674b826e
store constant shortcut data in global QHash object
John W. Eaton <jwe@octave.org>
parents:
30564
diff
changeset
|
190 extern sc_pref sc_edit_edit_redo; |
5749674b826e
store constant shortcut data in global QHash object
John W. Eaton <jwe@octave.org>
parents:
30564
diff
changeset
|
191 extern sc_pref sc_edit_edit_cut; |
5749674b826e
store constant shortcut data in global QHash object
John W. Eaton <jwe@octave.org>
parents:
30564
diff
changeset
|
192 extern sc_pref sc_edit_edit_find_replace; |
5749674b826e
store constant shortcut data in global QHash object
John W. Eaton <jwe@octave.org>
parents:
30564
diff
changeset
|
193 extern sc_pref sc_edit_edit_find_next; |
5749674b826e
store constant shortcut data in global QHash object
John W. Eaton <jwe@octave.org>
parents:
30564
diff
changeset
|
194 extern sc_pref sc_edit_edit_find_previous; |
5749674b826e
store constant shortcut data in global QHash object
John W. Eaton <jwe@octave.org>
parents:
30564
diff
changeset
|
195 extern sc_pref sc_edit_edit_delete_start_word; |
5749674b826e
store constant shortcut data in global QHash object
John W. Eaton <jwe@octave.org>
parents:
30564
diff
changeset
|
196 extern sc_pref sc_edit_edit_delete_end_word; |
5749674b826e
store constant shortcut data in global QHash object
John W. Eaton <jwe@octave.org>
parents:
30564
diff
changeset
|
197 extern sc_pref sc_edit_edit_delete_start_line; |
5749674b826e
store constant shortcut data in global QHash object
John W. Eaton <jwe@octave.org>
parents:
30564
diff
changeset
|
198 extern sc_pref sc_edit_edit_delete_end_line; |
5749674b826e
store constant shortcut data in global QHash object
John W. Eaton <jwe@octave.org>
parents:
30564
diff
changeset
|
199 extern sc_pref sc_edit_edit_delete_line; |
5749674b826e
store constant shortcut data in global QHash object
John W. Eaton <jwe@octave.org>
parents:
30564
diff
changeset
|
200 extern sc_pref sc_edit_edit_copy_line; |
5749674b826e
store constant shortcut data in global QHash object
John W. Eaton <jwe@octave.org>
parents:
30564
diff
changeset
|
201 extern sc_pref sc_edit_edit_cut_line; |
5749674b826e
store constant shortcut data in global QHash object
John W. Eaton <jwe@octave.org>
parents:
30564
diff
changeset
|
202 extern sc_pref sc_edit_edit_duplicate_selection; |
5749674b826e
store constant shortcut data in global QHash object
John W. Eaton <jwe@octave.org>
parents:
30564
diff
changeset
|
203 extern sc_pref sc_edit_edit_transpose_line; |
5749674b826e
store constant shortcut data in global QHash object
John W. Eaton <jwe@octave.org>
parents:
30564
diff
changeset
|
204 extern sc_pref sc_edit_edit_completion_list; |
27818
fa0582694fda
replace literal strings by symbolic constants for shortcut preferences
Torsten Lilge <ttl-octave@mailbox.org>
parents:
27724
diff
changeset
|
205 |
31695
5749674b826e
store constant shortcut data in global QHash object
John W. Eaton <jwe@octave.org>
parents:
30564
diff
changeset
|
206 extern sc_pref sc_edit_edit_comment_selection; |
5749674b826e
store constant shortcut data in global QHash object
John W. Eaton <jwe@octave.org>
parents:
30564
diff
changeset
|
207 extern sc_pref sc_edit_edit_uncomment_selection; |
5749674b826e
store constant shortcut data in global QHash object
John W. Eaton <jwe@octave.org>
parents:
30564
diff
changeset
|
208 extern sc_pref sc_edit_edit_comment_var_selection; |
5749674b826e
store constant shortcut data in global QHash object
John W. Eaton <jwe@octave.org>
parents:
30564
diff
changeset
|
209 extern sc_pref sc_edit_edit_upper_case; |
5749674b826e
store constant shortcut data in global QHash object
John W. Eaton <jwe@octave.org>
parents:
30564
diff
changeset
|
210 extern sc_pref sc_edit_edit_lower_case; |
27818
fa0582694fda
replace literal strings by symbolic constants for shortcut preferences
Torsten Lilge <ttl-octave@mailbox.org>
parents:
27724
diff
changeset
|
211 |
fa0582694fda
replace literal strings by symbolic constants for shortcut preferences
Torsten Lilge <ttl-octave@mailbox.org>
parents:
27724
diff
changeset
|
212 #if defined (Q_OS_MAC) |
31695
5749674b826e
store constant shortcut data in global QHash object
John W. Eaton <jwe@octave.org>
parents:
30564
diff
changeset
|
213 extern sc_pref sc_edit_edit_indent_selection; |
5749674b826e
store constant shortcut data in global QHash object
John W. Eaton <jwe@octave.org>
parents:
30564
diff
changeset
|
214 extern sc_pref sc_edit_edit_unindent_selection; |
27818
fa0582694fda
replace literal strings by symbolic constants for shortcut preferences
Torsten Lilge <ttl-octave@mailbox.org>
parents:
27724
diff
changeset
|
215 #else |
31695
5749674b826e
store constant shortcut data in global QHash object
John W. Eaton <jwe@octave.org>
parents:
30564
diff
changeset
|
216 extern sc_pref sc_edit_edit_indent_selection; |
5749674b826e
store constant shortcut data in global QHash object
John W. Eaton <jwe@octave.org>
parents:
30564
diff
changeset
|
217 extern sc_pref sc_edit_edit_unindent_selection; |
27818
fa0582694fda
replace literal strings by symbolic constants for shortcut preferences
Torsten Lilge <ttl-octave@mailbox.org>
parents:
27724
diff
changeset
|
218 #endif |
31695
5749674b826e
store constant shortcut data in global QHash object
John W. Eaton <jwe@octave.org>
parents:
30564
diff
changeset
|
219 extern sc_pref sc_edit_edit_smart_indent_line_or_selection; |
27818
fa0582694fda
replace literal strings by symbolic constants for shortcut preferences
Torsten Lilge <ttl-octave@mailbox.org>
parents:
27724
diff
changeset
|
220 |
31695
5749674b826e
store constant shortcut data in global QHash object
John W. Eaton <jwe@octave.org>
parents:
30564
diff
changeset
|
221 extern sc_pref sc_edit_edit_conv_eol_winows; |
5749674b826e
store constant shortcut data in global QHash object
John W. Eaton <jwe@octave.org>
parents:
30564
diff
changeset
|
222 extern sc_pref sc_edit_edit_conv_eol_unix; |
5749674b826e
store constant shortcut data in global QHash object
John W. Eaton <jwe@octave.org>
parents:
30564
diff
changeset
|
223 extern sc_pref sc_edit_edit_conv_eol_mac; |
27818
fa0582694fda
replace literal strings by symbolic constants for shortcut preferences
Torsten Lilge <ttl-octave@mailbox.org>
parents:
27724
diff
changeset
|
224 |
31695
5749674b826e
store constant shortcut data in global QHash object
John W. Eaton <jwe@octave.org>
parents:
30564
diff
changeset
|
225 extern sc_pref sc_edit_edit_goto_line; |
5749674b826e
store constant shortcut data in global QHash object
John W. Eaton <jwe@octave.org>
parents:
30564
diff
changeset
|
226 extern sc_pref sc_edit_edit_move_to_brace; |
5749674b826e
store constant shortcut data in global QHash object
John W. Eaton <jwe@octave.org>
parents:
30564
diff
changeset
|
227 extern sc_pref sc_edit_edit_select_to_brace; |
5749674b826e
store constant shortcut data in global QHash object
John W. Eaton <jwe@octave.org>
parents:
30564
diff
changeset
|
228 extern sc_pref sc_edit_edit_toggle_bookmark; |
5749674b826e
store constant shortcut data in global QHash object
John W. Eaton <jwe@octave.org>
parents:
30564
diff
changeset
|
229 extern sc_pref sc_edit_edit_next_bookmark; |
5749674b826e
store constant shortcut data in global QHash object
John W. Eaton <jwe@octave.org>
parents:
30564
diff
changeset
|
230 extern sc_pref sc_edit_edit_previous_bookmark; |
5749674b826e
store constant shortcut data in global QHash object
John W. Eaton <jwe@octave.org>
parents:
30564
diff
changeset
|
231 extern sc_pref sc_edit_edit_remove_bookmark; |
27818
fa0582694fda
replace literal strings by symbolic constants for shortcut preferences
Torsten Lilge <ttl-octave@mailbox.org>
parents:
27724
diff
changeset
|
232 |
31695
5749674b826e
store constant shortcut data in global QHash object
John W. Eaton <jwe@octave.org>
parents:
30564
diff
changeset
|
233 extern sc_pref sc_edit_edit_preferences; |
5749674b826e
store constant shortcut data in global QHash object
John W. Eaton <jwe@octave.org>
parents:
30564
diff
changeset
|
234 extern sc_pref sc_edit_edit_styles_preferences; |
27818
fa0582694fda
replace literal strings by symbolic constants for shortcut preferences
Torsten Lilge <ttl-octave@mailbox.org>
parents:
27724
diff
changeset
|
235 |
fa0582694fda
replace literal strings by symbolic constants for shortcut preferences
Torsten Lilge <ttl-octave@mailbox.org>
parents:
27724
diff
changeset
|
236 // view |
31695
5749674b826e
store constant shortcut data in global QHash object
John W. Eaton <jwe@octave.org>
parents:
30564
diff
changeset
|
237 extern sc_pref sc_edit_view_show_line_numbers; |
5749674b826e
store constant shortcut data in global QHash object
John W. Eaton <jwe@octave.org>
parents:
30564
diff
changeset
|
238 extern sc_pref sc_edit_view_show_white_spaces; |
5749674b826e
store constant shortcut data in global QHash object
John W. Eaton <jwe@octave.org>
parents:
30564
diff
changeset
|
239 extern sc_pref sc_edit_view_show_eol_chars; |
5749674b826e
store constant shortcut data in global QHash object
John W. Eaton <jwe@octave.org>
parents:
30564
diff
changeset
|
240 extern sc_pref sc_edit_view_show_ind_guides; |
5749674b826e
store constant shortcut data in global QHash object
John W. Eaton <jwe@octave.org>
parents:
30564
diff
changeset
|
241 extern sc_pref sc_edit_view_show_long_line; |
5749674b826e
store constant shortcut data in global QHash object
John W. Eaton <jwe@octave.org>
parents:
30564
diff
changeset
|
242 extern sc_pref sc_edit_view_show_toolbar; |
5749674b826e
store constant shortcut data in global QHash object
John W. Eaton <jwe@octave.org>
parents:
30564
diff
changeset
|
243 extern sc_pref sc_edit_view_show_statusbar; |
5749674b826e
store constant shortcut data in global QHash object
John W. Eaton <jwe@octave.org>
parents:
30564
diff
changeset
|
244 extern sc_pref sc_edit_view_show_hscrollbar; |
5749674b826e
store constant shortcut data in global QHash object
John W. Eaton <jwe@octave.org>
parents:
30564
diff
changeset
|
245 extern sc_pref sc_edit_view_sort_tabs; |
27818
fa0582694fda
replace literal strings by symbolic constants for shortcut preferences
Torsten Lilge <ttl-octave@mailbox.org>
parents:
27724
diff
changeset
|
246 |
fa0582694fda
replace literal strings by symbolic constants for shortcut preferences
Torsten Lilge <ttl-octave@mailbox.org>
parents:
27724
diff
changeset
|
247 // debug |
fa0582694fda
replace literal strings by symbolic constants for shortcut preferences
Torsten Lilge <ttl-octave@mailbox.org>
parents:
27724
diff
changeset
|
248 const QString sc_edit_debug ("editor_debug"); |
31695
5749674b826e
store constant shortcut data in global QHash object
John W. Eaton <jwe@octave.org>
parents:
30564
diff
changeset
|
249 extern sc_pref sc_edit_debug_toggle_breakpoint; |
5749674b826e
store constant shortcut data in global QHash object
John W. Eaton <jwe@octave.org>
parents:
30564
diff
changeset
|
250 extern sc_pref sc_edit_debug_next_breakpoint; |
5749674b826e
store constant shortcut data in global QHash object
John W. Eaton <jwe@octave.org>
parents:
30564
diff
changeset
|
251 extern sc_pref sc_edit_debug_previous_breakpoint; |
5749674b826e
store constant shortcut data in global QHash object
John W. Eaton <jwe@octave.org>
parents:
30564
diff
changeset
|
252 extern sc_pref sc_edit_debug_remove_breakpoints; |
27818
fa0582694fda
replace literal strings by symbolic constants for shortcut preferences
Torsten Lilge <ttl-octave@mailbox.org>
parents:
27724
diff
changeset
|
253 |
fa0582694fda
replace literal strings by symbolic constants for shortcut preferences
Torsten Lilge <ttl-octave@mailbox.org>
parents:
27724
diff
changeset
|
254 // run |
fa0582694fda
replace literal strings by symbolic constants for shortcut preferences
Torsten Lilge <ttl-octave@mailbox.org>
parents:
27724
diff
changeset
|
255 const QString sc_edit_run ("editor_run"); |
31695
5749674b826e
store constant shortcut data in global QHash object
John W. Eaton <jwe@octave.org>
parents:
30564
diff
changeset
|
256 extern sc_pref sc_edit_run_run_file; |
5749674b826e
store constant shortcut data in global QHash object
John W. Eaton <jwe@octave.org>
parents:
30564
diff
changeset
|
257 extern sc_pref sc_edit_run_run_selection; |
27818
fa0582694fda
replace literal strings by symbolic constants for shortcut preferences
Torsten Lilge <ttl-octave@mailbox.org>
parents:
27724
diff
changeset
|
258 |
fa0582694fda
replace literal strings by symbolic constants for shortcut preferences
Torsten Lilge <ttl-octave@mailbox.org>
parents:
27724
diff
changeset
|
259 // help |
fa0582694fda
replace literal strings by symbolic constants for shortcut preferences
Torsten Lilge <ttl-octave@mailbox.org>
parents:
27724
diff
changeset
|
260 const QString sc_edit_help ("editor_help"); |
31695
5749674b826e
store constant shortcut data in global QHash object
John W. Eaton <jwe@octave.org>
parents:
30564
diff
changeset
|
261 extern sc_pref sc_edit_help_help_keyword; |
5749674b826e
store constant shortcut data in global QHash object
John W. Eaton <jwe@octave.org>
parents:
30564
diff
changeset
|
262 extern sc_pref sc_edit_help_doc_keyword; |
27724
19e80f22aa47
provide structure and settings value method for shortcut key sequences
Torsten Lilge <ttl-octave@mailbox.org>
parents:
27583
diff
changeset
|
263 |
19e80f22aa47
provide structure and settings value method for shortcut key sequences
Torsten Lilge <ttl-octave@mailbox.org>
parents:
27583
diff
changeset
|
264 |
27818
fa0582694fda
replace literal strings by symbolic constants for shortcut preferences
Torsten Lilge <ttl-octave@mailbox.org>
parents:
27724
diff
changeset
|
265 // Documentation browser |
fa0582694fda
replace literal strings by symbolic constants for shortcut preferences
Torsten Lilge <ttl-octave@mailbox.org>
parents:
27724
diff
changeset
|
266 const QString sc_doc ("doc_browser"); |
31695
5749674b826e
store constant shortcut data in global QHash object
John W. Eaton <jwe@octave.org>
parents:
30564
diff
changeset
|
267 extern sc_pref sc_doc_go_home; |
5749674b826e
store constant shortcut data in global QHash object
John W. Eaton <jwe@octave.org>
parents:
30564
diff
changeset
|
268 extern sc_pref sc_doc_go_back; |
5749674b826e
store constant shortcut data in global QHash object
John W. Eaton <jwe@octave.org>
parents:
30564
diff
changeset
|
269 extern sc_pref sc_doc_go_next; |
5749674b826e
store constant shortcut data in global QHash object
John W. Eaton <jwe@octave.org>
parents:
30564
diff
changeset
|
270 extern sc_pref sc_doc_bookmark; |
27818
fa0582694fda
replace literal strings by symbolic constants for shortcut preferences
Torsten Lilge <ttl-octave@mailbox.org>
parents:
27724
diff
changeset
|
271 |
27724
19e80f22aa47
provide structure and settings value method for shortcut key sequences
Torsten Lilge <ttl-octave@mailbox.org>
parents:
27583
diff
changeset
|
272 |
19e80f22aa47
provide structure and settings value method for shortcut key sequences
Torsten Lilge <ttl-octave@mailbox.org>
parents:
27583
diff
changeset
|
273 // Other normal, shortcut related options |
27583
315c35e6037c
use symbolic constants for command widget preferences
Torsten Lilge <ttl-octave@mailbox.org>
parents:
diff
changeset
|
274 |
315c35e6037c
use symbolic constants for command widget preferences
Torsten Lilge <ttl-octave@mailbox.org>
parents:
diff
changeset
|
275 const gui_pref |
315c35e6037c
use symbolic constants for command widget preferences
Torsten Lilge <ttl-octave@mailbox.org>
parents:
diff
changeset
|
276 sc_main_ctrld ("shortcuts/main_ctrld", QVariant (false)); |
27818
fa0582694fda
replace literal strings by symbolic constants for shortcut preferences
Torsten Lilge <ttl-octave@mailbox.org>
parents:
27724
diff
changeset
|
277 |
fa0582694fda
replace literal strings by symbolic constants for shortcut preferences
Torsten Lilge <ttl-octave@mailbox.org>
parents:
27724
diff
changeset
|
278 const gui_pref |
30431
60a4fcf2d51b
* gui-preferences-sc.h: set default for preventing readline conflicts to false
Torsten Lilge <ttl-octave@mailbox.org>
parents:
29359
diff
changeset
|
279 sc_prevent_rl_conflicts ("shortcuts/prevent_readline_conflicts", QVariant (false)); |
29084
2a70a068c4ab
add option for using alt-modifer in command windows readline (bug #59478)
Torsten Lilge <ttl-octave@mailbox.org>
parents:
29068
diff
changeset
|
280 const gui_pref |
2a70a068c4ab
add option for using alt-modifer in command windows readline (bug #59478)
Torsten Lilge <ttl-octave@mailbox.org>
parents:
29068
diff
changeset
|
281 sc_prevent_rl_conflicts_menu ("shortcuts/prevent_readline_conflicts_menu", QVariant (false)); |
27818
fa0582694fda
replace literal strings by symbolic constants for shortcut preferences
Torsten Lilge <ttl-octave@mailbox.org>
parents:
27724
diff
changeset
|
282 |
31696
8fed04d0607c
eliminate shortcut_manager class and revamp shortcut handling
John W. Eaton <jwe@octave.org>
parents:
31695
diff
changeset
|
283 extern QString get_shortcut_section (const QString& key); |
8fed04d0607c
eliminate shortcut_manager class and revamp shortcut handling
John W. Eaton <jwe@octave.org>
parents:
31695
diff
changeset
|
284 |
27583
315c35e6037c
use symbolic constants for command widget preferences
Torsten Lilge <ttl-octave@mailbox.org>
parents:
diff
changeset
|
285 #endif |