GNU Octave  6.2.0
A high-level interpreted language, primarily intended for numerical computations, mostly compatible with Matlab
gui-preferences-ve.h
Go to the documentation of this file.
1 ////////////////////////////////////////////////////////////////////////
2 //
3 // Copyright (C) 2017-2021 The Octave Project Developers
4 //
5 // See the file COPYRIGHT.md in the top-level directory of this
6 // distribution or <https://octave.org/copyright/>.
7 //
8 // This file is part of Octave.
9 //
10 // Octave is free software: you can redistribute it and/or modify it
11 // under the terms of the GNU General Public License as published by
12 // the Free Software Foundation, either version 3 of the License, or
13 // (at your option) any later version.
14 //
15 // Octave is distributed in the hope that it will be useful, but
16 // WITHOUT ANY WARRANTY; without even the implied warranty of
17 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18 // GNU General Public License for more details.
19 //
20 // You should have received a copy of the GNU General Public License
21 // along with Octave; see the file COPYING. If not, see
22 // <https://www.gnu.org/licenses/>.
23 //
24 ////////////////////////////////////////////////////////////////////////
25 
26 #if ! defined (octave_gui_preferences_ve_h)
27 #define octave_gui_preferences_ve_h 1
28 
29 #include "gui-preferences.h"
30 
31 #include <QApplication>
32 
33 // Variable Editor preferences
34 
35 const gui_pref
36 ve_use_terminal_font ("variable_editor/use_terminal_font", QVariant (true));
37 
38 const gui_pref
39 ve_font_name ("variable_editor/font_name", QVariant ());
40 
41 const gui_pref
42 ve_font_size ("variable_editor/font_size", QVariant (10));
43 
44 const gui_pref
45 ve_column_width ("variable_editor/column_width", QVariant (100));
46 
47 const gui_pref
48 ve_row_height ("variable_editor/row_height", QVariant (10));
49 
50 const gui_pref
51 ve_alternate_rows ("variable_editor/alternate_rows", QVariant (false));
52 
53 const int ve_colors_count = 5;
54 
55 const QString ve_color_chars ("fbsha");
56 
58 {
59  {"variable_editor/color_f", QVariant (QPalette::WindowText)},
60  {"variable_editor/color_b", QVariant (QPalette::Base)},
61  {"variable_editor/color_s", QVariant (QPalette::HighlightedText)},
62  {"variable_editor/color_h", QVariant (QPalette::Highlight)},
63  {"variable_editor/color_a", QVariant (QPalette::AlternateBase)}
64 };
65 
66 const QStringList ve_color_names (QStringList ()
67  << QT_TRANSLATE_NOOP ("octave::settings_dialog", "Foreground")
68  << QT_TRANSLATE_NOOP ("octave::settings_dialog", "Background")
69  << QT_TRANSLATE_NOOP ("octave::settings_dialog", "Selected Foreground")
70  << QT_TRANSLATE_NOOP ("octave::settings_dialog", "Selected Background")
71  << QT_TRANSLATE_NOOP ("octave::settings_dialog", "Alternate Background"));
72 
73 #endif
const int ve_colors_count
const gui_pref ve_column_width("variable_editor/column_width", QVariant(100))
const QStringList ve_color_names(QStringList()<< QT_TRANSLATE_NOOP("octave::settings_dialog", "Foreground")<< QT_TRANSLATE_NOOP("octave::settings_dialog", "Background")<< QT_TRANSLATE_NOOP("octave::settings_dialog", "Selected Foreground")<< QT_TRANSLATE_NOOP("octave::settings_dialog", "Selected Background")<< QT_TRANSLATE_NOOP("octave::settings_dialog", "Alternate Background"))
const QString ve_color_chars("fbsha")
const gui_pref ve_colors[ve_colors_count]
const gui_pref ve_use_terminal_font("variable_editor/use_terminal_font", QVariant(true))
const gui_pref ve_font_size("variable_editor/font_size", QVariant(10))
const gui_pref ve_alternate_rows("variable_editor/alternate_rows", QVariant(false))
const gui_pref ve_font_name("variable_editor/font_name", QVariant())
const gui_pref ve_row_height("variable_editor/row_height", QVariant(10))