Mercurial > octave
annotate libgui/src/gui-preferences-ve.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 | 4b601ca024d5 |
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:
32519
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 //////////////////////////////////////////////////////////////////////// |
27560
3fcc650de22f
split gui-preferences.h into one file per widget
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
25 |
3fcc650de22f
split gui-preferences.h into one file per widget
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
26 #if ! defined (octave_gui_preferences_ve_h) |
3fcc650de22f
split gui-preferences.h into one file per widget
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
27 #define octave_gui_preferences_ve_h 1 |
3fcc650de22f
split gui-preferences.h into one file per widget
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
28 |
3fcc650de22f
split gui-preferences.h into one file per widget
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
29 #include "gui-preferences.h" |
31702
aae24eaf89ad
update gui_pref class to match recent changes to sc_pref class
John W. Eaton <jwe@octave.org>
parents:
31599
diff
changeset
|
30 #include "gui-settings.h" |
27662
3b078b750181
replace preference literals by symbolic constants for variable editor
Torsten Lilge <ttl-octave@mailbox.org>
parents:
27562
diff
changeset
|
31 |
27560
3fcc650de22f
split gui-preferences.h into one file per widget
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
32 // Variable Editor preferences |
3fcc650de22f
split gui-preferences.h into one file per widget
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
33 |
31702
aae24eaf89ad
update gui_pref class to match recent changes to sc_pref class
John W. Eaton <jwe@octave.org>
parents:
31599
diff
changeset
|
34 extern gui_pref ve_use_terminal_font; |
27662
3b078b750181
replace preference literals by symbolic constants for variable editor
Torsten Lilge <ttl-octave@mailbox.org>
parents:
27562
diff
changeset
|
35 |
31702
aae24eaf89ad
update gui_pref class to match recent changes to sc_pref class
John W. Eaton <jwe@octave.org>
parents:
31599
diff
changeset
|
36 extern gui_pref ve_font_name; |
27662
3b078b750181
replace preference literals by symbolic constants for variable editor
Torsten Lilge <ttl-octave@mailbox.org>
parents:
27562
diff
changeset
|
37 |
31702
aae24eaf89ad
update gui_pref class to match recent changes to sc_pref class
John W. Eaton <jwe@octave.org>
parents:
31599
diff
changeset
|
38 extern gui_pref ve_font_size; |
27662
3b078b750181
replace preference literals by symbolic constants for variable editor
Torsten Lilge <ttl-octave@mailbox.org>
parents:
27562
diff
changeset
|
39 |
31702
aae24eaf89ad
update gui_pref class to match recent changes to sc_pref class
John W. Eaton <jwe@octave.org>
parents:
31599
diff
changeset
|
40 extern gui_pref ve_column_width; |
27662
3b078b750181
replace preference literals by symbolic constants for variable editor
Torsten Lilge <ttl-octave@mailbox.org>
parents:
27562
diff
changeset
|
41 |
31702
aae24eaf89ad
update gui_pref class to match recent changes to sc_pref class
John W. Eaton <jwe@octave.org>
parents:
31599
diff
changeset
|
42 extern gui_pref ve_row_height; |
27662
3b078b750181
replace preference literals by symbolic constants for variable editor
Torsten Lilge <ttl-octave@mailbox.org>
parents:
27562
diff
changeset
|
43 |
31702
aae24eaf89ad
update gui_pref class to match recent changes to sc_pref class
John W. Eaton <jwe@octave.org>
parents:
31599
diff
changeset
|
44 extern gui_pref ve_alternate_rows; |
27662
3b078b750181
replace preference literals by symbolic constants for variable editor
Torsten Lilge <ttl-octave@mailbox.org>
parents:
27562
diff
changeset
|
45 |
31702
aae24eaf89ad
update gui_pref class to match recent changes to sc_pref class
John W. Eaton <jwe@octave.org>
parents:
31599
diff
changeset
|
46 extern gui_pref ve_color_mode; |
27662
3b078b750181
replace preference literals by symbolic constants for variable editor
Torsten Lilge <ttl-octave@mailbox.org>
parents:
27562
diff
changeset
|
47 |
3b078b750181
replace preference literals by symbolic constants for variable editor
Torsten Lilge <ttl-octave@mailbox.org>
parents:
27562
diff
changeset
|
48 const QString ve_color_chars ("fbsha"); |
3b078b750181
replace preference literals by symbolic constants for variable editor
Torsten Lilge <ttl-octave@mailbox.org>
parents:
27562
diff
changeset
|
49 |
29488
2a251de6c1a5
provide second color mode for variable editor
Torsten Lilge <ttl-octave@mailbox.org>
parents:
29359
diff
changeset
|
50 const int ve_colors_count = 5; |
31702
aae24eaf89ad
update gui_pref class to match recent changes to sc_pref class
John W. Eaton <jwe@octave.org>
parents:
31599
diff
changeset
|
51 |
aae24eaf89ad
update gui_pref class to match recent changes to sc_pref class
John W. Eaton <jwe@octave.org>
parents:
31599
diff
changeset
|
52 extern gui_pref ve_colors[]; |
27662
3b078b750181
replace preference literals by symbolic constants for variable editor
Torsten Lilge <ttl-octave@mailbox.org>
parents:
27562
diff
changeset
|
53 |
31599
50a225732661
use initializer lists instead of insertion operators
John W. Eaton <jwe@octave.org>
parents:
30564
diff
changeset
|
54 const QStringList ve_color_names = { |
50a225732661
use initializer lists instead of insertion operators
John W. Eaton <jwe@octave.org>
parents:
30564
diff
changeset
|
55 QT_TRANSLATE_NOOP ("octave::settings_dialog", "Foreground"), |
50a225732661
use initializer lists instead of insertion operators
John W. Eaton <jwe@octave.org>
parents:
30564
diff
changeset
|
56 QT_TRANSLATE_NOOP ("octave::settings_dialog", "Background"), |
50a225732661
use initializer lists instead of insertion operators
John W. Eaton <jwe@octave.org>
parents:
30564
diff
changeset
|
57 QT_TRANSLATE_NOOP ("octave::settings_dialog", "Selected Foreground"), |
50a225732661
use initializer lists instead of insertion operators
John W. Eaton <jwe@octave.org>
parents:
30564
diff
changeset
|
58 QT_TRANSLATE_NOOP ("octave::settings_dialog", "Selected Background"), |
32519
6ff63f154144
maint: Review and update strings that appear in GUI.
Rik <rik@octave.org>
parents:
31707
diff
changeset
|
59 QT_TRANSLATE_NOOP ("octave::settings_dialog", "Alternating Background") |
31599
50a225732661
use initializer lists instead of insertion operators
John W. Eaton <jwe@octave.org>
parents:
30564
diff
changeset
|
60 }; |
27560
3fcc650de22f
split gui-preferences.h into one file per widget
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
61 |
31599
50a225732661
use initializer lists instead of insertion operators
John W. Eaton <jwe@octave.org>
parents:
30564
diff
changeset
|
62 const QStringList ve_save_formats = { |
50a225732661
use initializer lists instead of insertion operators
John W. Eaton <jwe@octave.org>
parents:
30564
diff
changeset
|
63 "ascii", |
50a225732661
use initializer lists instead of insertion operators
John W. Eaton <jwe@octave.org>
parents:
30564
diff
changeset
|
64 "binary", |
50a225732661
use initializer lists instead of insertion operators
John W. Eaton <jwe@octave.org>
parents:
30564
diff
changeset
|
65 "float-binary", |
50a225732661
use initializer lists instead of insertion operators
John W. Eaton <jwe@octave.org>
parents:
30564
diff
changeset
|
66 "hdf5", |
50a225732661
use initializer lists instead of insertion operators
John W. Eaton <jwe@octave.org>
parents:
30564
diff
changeset
|
67 "float-hdf5", |
50a225732661
use initializer lists instead of insertion operators
John W. Eaton <jwe@octave.org>
parents:
30564
diff
changeset
|
68 "text", |
50a225732661
use initializer lists instead of insertion operators
John W. Eaton <jwe@octave.org>
parents:
30564
diff
changeset
|
69 "mat7-binary", |
50a225732661
use initializer lists instead of insertion operators
John W. Eaton <jwe@octave.org>
parents:
30564
diff
changeset
|
70 "mat-binary", |
50a225732661
use initializer lists instead of insertion operators
John W. Eaton <jwe@octave.org>
parents:
30564
diff
changeset
|
71 "mat4-binary", |
50a225732661
use initializer lists instead of insertion operators
John W. Eaton <jwe@octave.org>
parents:
30564
diff
changeset
|
72 "zip" |
50a225732661
use initializer lists instead of insertion operators
John W. Eaton <jwe@octave.org>
parents:
30564
diff
changeset
|
73 }; |
29250
3ad713d82d18
improve saving a variable in the variable editor (bug #59570)
Torsten Lilge <ttl-octave@mailbox.org>
parents:
27923
diff
changeset
|
74 |
3ad713d82d18
improve saving a variable in the variable editor (bug #59570)
Torsten Lilge <ttl-octave@mailbox.org>
parents:
27923
diff
changeset
|
75 // The following list is a relation between save format and fiel extension. |
3ad713d82d18
improve saving a variable in the variable editor (bug #59570)
Torsten Lilge <ttl-octave@mailbox.org>
parents:
27923
diff
changeset
|
76 // The format string are case insensitive. |
31599
50a225732661
use initializer lists instead of insertion operators
John W. Eaton <jwe@octave.org>
parents:
30564
diff
changeset
|
77 const QStringList ve_save_formats_ext = { |
50a225732661
use initializer lists instead of insertion operators
John W. Eaton <jwe@octave.org>
parents:
30564
diff
changeset
|
78 "-ascii", "dat", |
50a225732661
use initializer lists instead of insertion operators
John W. Eaton <jwe@octave.org>
parents:
30564
diff
changeset
|
79 "-hdf5", "h5", |
50a225732661
use initializer lists instead of insertion operators
John W. Eaton <jwe@octave.org>
parents:
30564
diff
changeset
|
80 "-text", "txt", |
50a225732661
use initializer lists instead of insertion operators
John W. Eaton <jwe@octave.org>
parents:
30564
diff
changeset
|
81 "-v7.3", "mat", |
50a225732661
use initializer lists instead of insertion operators
John W. Eaton <jwe@octave.org>
parents:
30564
diff
changeset
|
82 "-7.3", "mat", |
50a225732661
use initializer lists instead of insertion operators
John W. Eaton <jwe@octave.org>
parents:
30564
diff
changeset
|
83 "-v7", "mat", |
50a225732661
use initializer lists instead of insertion operators
John W. Eaton <jwe@octave.org>
parents:
30564
diff
changeset
|
84 "-7", "mat", |
50a225732661
use initializer lists instead of insertion operators
John W. Eaton <jwe@octave.org>
parents:
30564
diff
changeset
|
85 "-mat7-binary", "mat", |
50a225732661
use initializer lists instead of insertion operators
John W. Eaton <jwe@octave.org>
parents:
30564
diff
changeset
|
86 "-v6", "mat", |
50a225732661
use initializer lists instead of insertion operators
John W. Eaton <jwe@octave.org>
parents:
30564
diff
changeset
|
87 "-6", "mat", |
50a225732661
use initializer lists instead of insertion operators
John W. Eaton <jwe@octave.org>
parents:
30564
diff
changeset
|
88 "-mat-binary", "mat", |
50a225732661
use initializer lists instead of insertion operators
John W. Eaton <jwe@octave.org>
parents:
30564
diff
changeset
|
89 "-v4", "mat", |
50a225732661
use initializer lists instead of insertion operators
John W. Eaton <jwe@octave.org>
parents:
30564
diff
changeset
|
90 "-4", "mat", |
50a225732661
use initializer lists instead of insertion operators
John W. Eaton <jwe@octave.org>
parents:
30564
diff
changeset
|
91 "-mat4-binary", "mat", |
50a225732661
use initializer lists instead of insertion operators
John W. Eaton <jwe@octave.org>
parents:
30564
diff
changeset
|
92 "-binary", "bin", // after other fmt incl. "-binary" |
50a225732661
use initializer lists instead of insertion operators
John W. Eaton <jwe@octave.org>
parents:
30564
diff
changeset
|
93 "-z", "txt.gz" // gzipped -text |
50a225732661
use initializer lists instead of insertion operators
John W. Eaton <jwe@octave.org>
parents:
30564
diff
changeset
|
94 }; |
29250
3ad713d82d18
improve saving a variable in the variable editor (bug #59570)
Torsten Lilge <ttl-octave@mailbox.org>
parents:
27923
diff
changeset
|
95 |
27560
3fcc650de22f
split gui-preferences.h into one file per widget
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
96 #endif |