view libgui/src/gui-preferences-ws.h @ 27919:1891570abac8

update Octave Project Developers copyright for the new year In files that have the "Octave Project Developers" copyright notice, update for 2020.
author John W. Eaton <jwe@octave.org>
date Mon, 06 Jan 2020 22:29:51 -0500
parents b442ec6dda5c
children bd51beb6205e
line wrap: on
line source

/*

Copyright (C) 2017-2020 The Octave Project Developers

See the file COPYRIGHT.md in the top-level directory of this distribution
or <https://octave.org/COPYRIGHT.html/>.


This file is part of Octave.

Octave is free software: you can redistribute it and/or modify it
under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.

Octave is distributed in the hope that it will be useful, but
WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
GNU General Public License for more details.

You should have received a copy of the GNU General Public License
along with Octave; see the file COPYING.  If not, see
<https://www.gnu.org/licenses/>.

*/

#if ! defined (octave_gui_preferences_ws_h)
#define octave_gui_preferences_ws_h 1

#include "gui-preferences.h"

// Workspace view

const gui_pref
ws_enable_colors ("workspaceview/enable_colors", QVariant (false));

const gui_pref
ws_hide_tool_tips ("workspaceview/hide_tools_tips", QVariant (false));

const gui_pref
ws_filter_active ("workspaceview/filter_active", QVariant (false));

const gui_pref
ws_filter_shown ("workspaceview/filter_shown", QVariant (true));

const gui_pref
ws_column_state ("workspaceview/column_state", QVariant ());

const gui_pref
ws_sort_column ("workspaceview/sort_by_column", QVariant (0));

const gui_pref
ws_sort_order ("workspaceview/sort_order", QVariant (Qt::AscendingOrder));

const gui_pref
ws_mru_list ("workspaceview/mru_list", QVariant ());

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 QStringList ws_columns_shown_keys (QStringList ()
    << "workspaceview/show_class"
    << "workspaceview/show_dimension"
    << "workspaceview/show_value"
    << "workspaceview/show_attribute");

const gui_pref
ws_max_filter_history ("workspaceview/max_filter_history", QVariant (10));

const int ws_colors_count = 3;

const gui_pref ws_colors[ws_colors_count] =
{
  {"terminal/color_a", QVariant (QColor(190,255,255))},
  {"terminal/color_g", QVariant (QColor(255,255,190))},
  {"terminal/color_p", QVariant (QColor(255,190,255))}
};

const QString ws_class_chars ("agp");

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", "persistant"));

#endif