GNU Octave  4.2.1
A high-level interpreted language, primarily intended for numerical computations, mostly compatible with Matlab
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
settings-dialog.h
Go to the documentation of this file.
1 /*
2 
3 Copyright (C) 2011-2017 Jacob Dawid
4 
5 This file is part of Octave.
6 
7 Octave is free software; you can redistribute it and/or modify it
8 under the terms of the GNU General Public License as published by the
9 Free Software Foundation; either version 3 of the License, or (at your
10 option) any later version.
11 
12 Octave is distributed in the hope that it will be useful, but WITHOUT
13 ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
14 FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
15 for more details.
16 
17 You should have received a copy of the GNU General Public License
18 along with Octave; see the file COPYING. If not, see
19 <http://www.gnu.org/licenses/>.
20 
21 */
22 
23 #if ! defined (octave_settings_dialog_h)
24 #define octave_settings_dialog_h 1
25 
26 #include <QDialog>
27 #include <QSettings>
28 #include <QLineEdit>
29 
30 #include "color-picker.h"
31 
32 namespace Ui
33 {
34  class settings_dialog;
35 }
36 
38 {
39  Q_OBJECT public:
40  explicit settings_dialog (QWidget * parent,
41  const QString& desired_tab = QString ());
43  void show_tab (const QString&);
44 
45 signals:
46  void apply_new_settings ();
47 
48 private slots:
49  void get_octave_dir ();
50  void get_file_browser_dir ();
51  void get_dir (QLineEdit*, const QString&);
52  void set_disabled_pref_file_browser_dir (bool disable);
53 
54  // slots for dialog's buttons
55  void button_clicked (QAbstractButton *button);
56 
57  // slots for import/export-buttons of shortcut sets
58  void import_shortcut_set ();
59  void export_shortcut_set ();
60  void default_shortcut_set ();
61 
62 private:
64 
65  void write_changed_settings (bool closing);
66 
67  void read_workspace_colors (QSettings *settings);
68  void write_workspace_colors (QSettings *settings);
69 
70  void read_terminal_colors (QSettings *settings);
71  void write_terminal_colors (QSettings *settings);
72 
78 };
79 
80 #endif
settings_dialog(QWidget *parent, const QString &desired_tab=QString())
void set_disabled_pref_file_browser_dir(bool disable)
Ui::settings_dialog * ui
void read_terminal_colors(QSettings *settings)
color_picker * _widget_title_fg_color
color_picker * _widget_title_bg_color
color_picker * _widget_title_fg_color_active
void write_workspace_colors(QSettings *settings)
void write_changed_settings(bool closing)
void show_tab(const QString &)
color_picker * _widget_title_bg_color_active
color_picker * _editor_current_line_color
void write_terminal_colors(QSettings *settings)
void get_dir(QLineEdit *, const QString &)
void button_clicked(QAbstractButton *button)
void read_workspace_colors(QSettings *settings)