GNU Octave
3.8.0
A high-level interpreted language, primarily intended for numerical computations, mostly compatible with Matlab
Main Page
Namespaces
Classes
Files
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Friends
Macros
Pages
libgui
src
settings-dialog.h
Go to the documentation of this file.
1
/*
2
3
Copyright (C) 2011-2013 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
#ifndef SETTINGSDIALOG_H
24
#define SETTINGSDIALOG_H
25
26
#include <QDialog>
27
#include <QSettings>
28
29
#include "
color-picker.h
"
30
31
#ifdef HAVE_QSCINTILLA
32
class
QsciLexer;
33
#endif
34
35
namespace
Ui
36
{
37
class
settings_dialog
;
38
}
39
40
class
settings_dialog
:
public
QDialog
41
{
42
Q_OBJECT
public
:
43
explicit
settings_dialog
(
QWidget
* parent,
44
const
QString& desired_tab = QString ());
45
~settings_dialog
();
46
void
write_changed_settings
();
47
48
private
:
49
Ui::settings_dialog *
ui
;
50
#ifdef HAVE_QSCINTILLA
51
void
read_lexer_settings (QsciLexer *
lexer
, QSettings *settings);
52
void
write_lexer_settings (QsciLexer *
lexer
, QSettings *settings);
53
int
get_valid_lexer_styles (QsciLexer *
lexer
,
int
styles[]);
54
enum
{ MaxLexerStyles = 64,
55
MaxStyleNumber = 128 };
56
#endif
57
58
void
read_workspace_colors
(QSettings *settings);
59
void
write_workspace_colors
(QSettings *settings);
60
61
void
read_terminal_colors
(QSettings *settings);
62
void
write_terminal_colors
(QSettings *settings);
63
64
color_picker
*
_editor_current_line_color
;
65
};
66
67
#endif // SETTINGSDIALOG_H
Generated on Mon Dec 30 2013 03:04:21 for GNU Octave by
1.8.1.2