GNU Octave  6.2.0
A high-level interpreted language, primarily intended for numerical computations, mostly compatible with Matlab
gui-preferences-cs.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_cs_h)
27 #define octave_gui_preferences_cs_h 1
28 
29 #include "gui-preferences.h"
30 
31 // Console preferences
32 
33 const gui_pref
34 cs_font ("terminal/fontName", QVariant ());
35 
36 const gui_pref
37 cs_font_size ("terminal/fontSize", QVariant (10));
38 
39 const std::vector<std::string> cs_cursor_types =
40 {
41  "ibeam",
42  "block",
43  "underline"
44 };
45 
46 const gui_pref
47 cs_cursor ("terminal/cursorType", QVariant ("ibeam"));
48 
49 const gui_pref
50 cs_cursor_blinking ("terminal/cursorBlinking", QVariant (true));
51 
52 const gui_pref
53 cs_cursor_use_fgcol ("terminal/cursorUseForegroundColor", QVariant (true));
54 
55 const gui_pref
56 cs_hist_buffer ("terminal/history_buffer", QVariant (1000));
57 
58 const unsigned int cs_colors_count = 4;
60 {
61  {"terminal/color_f", QVariant (QColor(0,0,0))},
62  {"terminal/color_b", QVariant (QColor(255,255,255))},
63  {"terminal/color_s", QVariant (QColor(192,192,192))},
64  {"terminal/color_c", QVariant (QColor(128,128,128))}
65 };
66 const QStringList
67 cs_color_names (QStringList ()
68  << QT_TRANSLATE_NOOP ("octave::settings_dialog", "foreground")
69  << QT_TRANSLATE_NOOP ("octave::settings_dialog", "background")
70  << QT_TRANSLATE_NOOP ("octave::settings_dialog", "selection")
71  << QT_TRANSLATE_NOOP ("octave::settings_dialog", "cursor"));
72 
73 const gui_pref
74 cs_focus_cmd ("terminal/focus_after_command", QVariant (false));
75 
76 const gui_pref
77 cs_dbg_location ("terminal/print_debug_location", QVariant (false));
78 
79 #endif
const unsigned int cs_colors_count
const gui_pref cs_focus_cmd("terminal/focus_after_command", QVariant(false))
const gui_pref cs_colors[cs_colors_count]
const gui_pref cs_hist_buffer("terminal/history_buffer", QVariant(1000))
const gui_pref cs_font_size("terminal/fontSize", QVariant(10))
const std::vector< std::string > cs_cursor_types
const gui_pref cs_cursor("terminal/cursorType", QVariant("ibeam"))
const gui_pref cs_dbg_location("terminal/print_debug_location", QVariant(false))
const QStringList cs_color_names(QStringList()<< QT_TRANSLATE_NOOP("octave::settings_dialog", "foreground")<< QT_TRANSLATE_NOOP("octave::settings_dialog", "background")<< QT_TRANSLATE_NOOP("octave::settings_dialog", "selection")<< QT_TRANSLATE_NOOP("octave::settings_dialog", "cursor"))
const gui_pref cs_cursor_use_fgcol("terminal/cursorUseForegroundColor", QVariant(true))
const gui_pref cs_font("terminal/fontName", QVariant())
const gui_pref cs_cursor_blinking("terminal/cursorBlinking", QVariant(true))