GNU Octave  6.2.0
A high-level interpreted language, primarily intended for numerical computations, mostly compatible with Matlab
gui-preferences-ws.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_ws_h)
27 #define octave_gui_preferences_ws_h 1
28 
29 #include "gui-preferences.h"
30 
31 // Workspace view
32 
33 const gui_pref
34 ws_enable_colors ("workspaceview/enable_colors", QVariant (false));
35 
36 const gui_pref
37 ws_hide_tool_tips ("workspaceview/hide_tools_tips", QVariant (false));
38 
39 const gui_pref
40 ws_filter_active ("workspaceview/filter_active", QVariant (false));
41 
42 const gui_pref
43 ws_filter_shown ("workspaceview/filter_shown", QVariant (true));
44 
45 const gui_pref
46 ws_column_state ("workspaceview/column_state", QVariant ());
47 
48 const gui_pref
49 ws_sort_column ("workspaceview/sort_by_column", QVariant (0));
50 
51 const gui_pref
52 ws_sort_order ("workspaceview/sort_order", QVariant (Qt::AscendingOrder));
53 
54 const gui_pref
55 ws_mru_list ("workspaceview/mru_list", QVariant ());
56 
57 const QStringList ws_columns_shown (QStringList ()
58  << QT_TRANSLATE_NOOP ("octave::workspace_view", "Class")
59  << QT_TRANSLATE_NOOP ("octave::workspace_view", "Dimension")
60  << QT_TRANSLATE_NOOP ("octave::workspace_view", "Value")
61  << QT_TRANSLATE_NOOP ("octave::workspace_view", "Attribute"));
62 
63 const QStringList ws_columns_shown_keys (QStringList ()
64  << "workspaceview/show_class"
65  << "workspaceview/show_dimension"
66  << "workspaceview/show_value"
67  << "workspaceview/show_attribute");
68 
69 const gui_pref
70 ws_max_filter_history ("workspaceview/max_filter_history", QVariant (10));
71 
72 const int ws_colors_count = 3;
73 
75 {
76  {"terminal/color_a", QVariant (QColor(190,255,255))},
77  {"terminal/color_g", QVariant (QColor(255,255,190))},
78  {"terminal/color_p", QVariant (QColor(255,190,255))}
79 };
80 
81 const QString ws_class_chars ("agp");
82 
83 const QStringList
84 ws_color_names (QStringList ()
85  << QT_TRANSLATE_NOOP ("octave::settings_dialog", "argument")
86  << QT_TRANSLATE_NOOP ("octave::settings_dialog", "global")
87  << QT_TRANSLATE_NOOP ("octave::settings_dialog", "persistent"));
88 
89 #endif
const QStringList ws_columns_shown(QStringList()<< QT_TRANSLATE_NOOP("octave::workspace_view", "Class")<< QT_TRANSLATE_NOOP("octave::workspace_view", "Dimension")<< QT_TRANSLATE_NOOP("octave::workspace_view", "Value")<< QT_TRANSLATE_NOOP("octave::workspace_view", "Attribute"))
const QString ws_class_chars("agp")
const gui_pref ws_colors[ws_colors_count]
const gui_pref ws_column_state("workspaceview/column_state", QVariant())
const gui_pref ws_sort_order("workspaceview/sort_order", QVariant(Qt::AscendingOrder))
const gui_pref ws_filter_shown("workspaceview/filter_shown", QVariant(true))
const QStringList ws_color_names(QStringList()<< QT_TRANSLATE_NOOP("octave::settings_dialog", "argument")<< QT_TRANSLATE_NOOP("octave::settings_dialog", "global")<< QT_TRANSLATE_NOOP("octave::settings_dialog", "persistent"))
const gui_pref ws_mru_list("workspaceview/mru_list", QVariant())
const QStringList ws_columns_shown_keys(QStringList()<< "workspaceview/show_class"<< "workspaceview/show_dimension"<< "workspaceview/show_value"<< "workspaceview/show_attribute")
const gui_pref ws_sort_column("workspaceview/sort_by_column", QVariant(0))
const gui_pref ws_enable_colors("workspaceview/enable_colors", QVariant(false))
const gui_pref ws_max_filter_history("workspaceview/max_filter_history", QVariant(10))
const gui_pref ws_filter_active("workspaceview/filter_active", QVariant(false))
const gui_pref ws_hide_tool_tips("workspaceview/hide_tools_tips", QVariant(false))
const int ws_colors_count