GNU Octave  8.1.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-2023 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 #include "gui-settings.h"
31 
32 // Workspace view
33 
34 const gui_pref
35 ws_enable_colors ("workspaceview/enable_colors", QVariant (false));
36 
37 const gui_pref
38 ws_hide_tool_tips ("workspaceview/hide_tools_tips", QVariant (false));
39 
40 const gui_pref
41 ws_filter_active ("workspaceview/filter_active", QVariant (false));
42 
43 const gui_pref
44 ws_filter_shown ("workspaceview/filter_shown", QVariant (true));
45 
46 const gui_pref
47 ws_column_state ("workspaceview/column_state", QVariant ());
48 
49 const gui_pref
50 ws_sort_column ("workspaceview/sort_by_column", QVariant (0));
51 
52 const gui_pref
53 ws_sort_order ("workspaceview/sort_order", QVariant (Qt::AscendingOrder));
54 
55 const gui_pref
56 ws_mru_list ("workspaceview/mru_list", QVariant ());
57 
58 const QStringList ws_columns_shown = {
59  QT_TRANSLATE_NOOP ("octave::workspace_view", "Class"),
60  QT_TRANSLATE_NOOP ("octave::workspace_view", "Dimension"),
61  QT_TRANSLATE_NOOP ("octave::workspace_view", "Value"),
62  QT_TRANSLATE_NOOP ("octave::workspace_view", "Attribute")
63 };
64 
65 const QStringList ws_columns_shown_keys = {
66  "workspaceview/show_class",
67  "workspaceview/show_dimension",
68  "workspaceview/show_value",
69  "workspaceview/show_attribute"
70 };
71 
72 const gui_pref
73 ws_max_filter_history ("workspaceview/max_filter_history", QVariant (10));
74 
75 const gui_pref
76 ws_color_mode ("workspaceview/color_mode", QVariant (0));
77 
78 const int ws_colors_count = 3;
80 {
81  {"workspaceview/color_a" + settings_color_modes_ext[0], QVariant (QPalette::Highlight)},
82  {"workspaceview/color_g" + settings_color_modes_ext[0], QVariant (QPalette::Midlight)},
83  {"workspaceview/color_p" + settings_color_modes_ext[0], QVariant (QPalette::Dark)},
84  {"workspaceview/color_a" + settings_color_modes_ext[1], QVariant ()},
85  {"workspaceview/color_g" + settings_color_modes_ext[1], QVariant ()},
86  {"workspaceview/color_p" + settings_color_modes_ext[1], QVariant ()}
87 };
88 
89 const QString ws_class_chars ("agp");
90 
91 const QStringList
93  QT_TRANSLATE_NOOP ("octave::settings_dialog", "argument"),
94  QT_TRANSLATE_NOOP ("octave::settings_dialog", "global"),
95  QT_TRANSLATE_NOOP ("octave::settings_dialog", "persistent")
96 };
97 
98 #endif
const QString ws_class_chars("agp")
const gui_pref ws_colors[2 *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 gui_pref ws_mru_list("workspaceview/mru_list", QVariant())
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_color_mode("workspaceview/color_mode", QVariant(0))
const QStringList ws_color_names
const QStringList ws_columns_shown_keys
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
const QStringList ws_columns_shown
const QStringList settings_color_modes_ext(QStringList()<< ""<< "_2")