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