GNU Octave  4.4.1
A high-level interpreted language, primarily intended for numerical computations, mostly compatible with Matlab
settings-dialog.h
Go to the documentation of this file.
1 /*
2 
3 Copyright (C) 2011-2018 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
9 the Free Software Foundation, either version 3 of the License, or
10 (at your option) any later version.
11 
12 Octave is distributed in the hope that it will be useful, but
13 WITHOUT ANY WARRANTY; without even the implied warranty of
14 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 GNU General Public License 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 <https://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 #include <QRadioButton>
30 
31 #include "color-picker.h"
32 #include "octave-settings.h"
33 
34 namespace Ui
35 {
36  class settings_dialog;
37 }
38 
40 {
41  Q_OBJECT public:
42 
43  explicit settings_dialog (QWidget *parent,
44  const QString& desired_tab = QString ());
45  ~settings_dialog (void);
46 
47  void show_tab (const QString&);
48 
49 signals:
50 
51  void apply_new_settings (void);
52 
53 private slots:
54 
55  void get_octave_dir (void);
56  void get_file_browser_dir (void);
57  void get_dir (QLineEdit*, const QString&);
58  void set_disabled_pref_file_browser_dir (bool disable);
59 
60  // slots for dialog's buttons
61  void button_clicked (QAbstractButton *button);
62 
63  // slots for import/export-buttons of shortcut sets
64  void import_shortcut_set (void);
65  void export_shortcut_set (void);
66  void default_shortcut_set (void);
67 
68 private:
69 
70  Ui::settings_dialog *ui;
71 
72  void write_changed_settings (bool closing);
73 
74  void read_workspace_colors (QSettings *settings);
75  void write_workspace_colors (QSettings *settings);
76 
77  void read_terminal_colors (QSettings *settings);
78  void write_terminal_colors (QSettings *settings);
79 
80  void read_varedit_colors (QSettings *settings);
81  void write_varedit_colors (QSettings *settings);
82 
88 
91 };
92 
93 #endif
settings_dialog(QWidget *parent, const QString &desired_tab=QString())
color_picker * m_widget_title_fg_color_active
void read_varedit_colors(QSettings *settings)
void set_disabled_pref_file_browser_dir(bool disable)
void get_octave_dir(void)
Ui::settings_dialog * ui
void read_terminal_colors(QSettings *settings)
void export_shortcut_set(void)
void default_shortcut_set(void)
void get_file_browser_dir(void)
color_picker * m_widget_title_bg_color
color_picker * m_editor_current_line_color
void write_workspace_colors(QSettings *settings)
void apply_new_settings(void)
QRadioButton * m_rb_comment_strings[oct_comment_strings_count]
color_picker * m_widget_title_fg_color
void import_shortcut_set(void)
void write_changed_settings(bool closing)
QRadioButton * m_rb_uncomment_strings[oct_comment_strings_count]
void show_tab(const QString &)
void write_terminal_colors(QSettings *settings)
void get_dir(QLineEdit *, const QString &)
const int oct_comment_strings_count
void button_clicked(QAbstractButton *button)
void read_workspace_colors(QSettings *settings)
void write_varedit_colors(QSettings *settings)
color_picker * m_widget_title_bg_color_active