Numworks Epsilon
1.4.1
Graphing Calculator Operating System
preferences.cpp
Go to the documentation of this file.
1
#include <
poincare/preferences.h
>
2
#include <
poincare/complex.h
>
3
4
namespace
Poincare
{
5
6
Preferences::Preferences
() :
7
m_angleUnit(
Expression
::AngleUnit::
Degree
),
8
m_displayMode(PrintFloat::
Mode
::
Decimal
),
9
m_complexFormat(
Expression
::ComplexFormat::
Cartesian
),
10
m_numberOfSignificantDigits(PrintFloat::k_numberOfPrintedSignificantDigits)
11
{
12
}
13
14
Preferences
*
Preferences::sharedPreferences
() {
15
static
Preferences
preferences;
16
return
&preferences;
17
}
18
19
Expression::AngleUnit
Preferences::angleUnit
()
const
{
20
return
m_angleUnit;
21
}
22
23
void
Preferences::setAngleUnit
(
Expression::AngleUnit
angleUnit) {
24
m_angleUnit =
angleUnit
;
25
}
26
27
PrintFloat::Mode
Preferences::displayMode
()
const
{
28
return
m_displayMode;
29
}
30
31
void
Preferences::setDisplayMode
(
PrintFloat::Mode
mode) {
32
m_displayMode = mode;
33
}
34
35
Expression::ComplexFormat
Preferences::complexFormat
()
const
{
36
return
m_complexFormat;
37
}
38
39
void
Preferences::setComplexFormat
(
Expression::ComplexFormat
complexFormat) {
40
m_complexFormat =
complexFormat
;
41
}
42
43
char
Preferences::numberOfSignificantDigits
()
const
{
44
return
m_numberOfSignificantDigits;
45
}
46
47
void
Preferences::setNumberOfSignificantDigits
(
char
numberOfSignificantDigits) {
48
m_numberOfSignificantDigits =
numberOfSignificantDigits
;
49
}
50
51
}
Poincare::Preferences::sharedPreferences
static Preferences * sharedPreferences()
Definition:
preferences.cpp:14
complex.h
Poincare::Preferences::angleUnit
Expression::AngleUnit angleUnit() const
Definition:
preferences.cpp:19
Poincare::Preferences::complexFormat
Expression::ComplexFormat complexFormat() const
Definition:
preferences.cpp:35
Poincare
Definition:
absolute_value.h:8
Cartesian
constexpr Expression::ComplexFormat Cartesian
Definition:
convert_expression_to_text.cpp:13
Poincare::Preferences::setAngleUnit
void setAngleUnit(Expression::AngleUnit angleUnit)
Definition:
preferences.cpp:23
Poincare::Preferences::setComplexFormat
void setComplexFormat(Expression::ComplexFormat complexFormat)
Definition:
preferences.cpp:39
Poincare::PrintFloat::Mode
Mode
Definition:
print_float.h:15
Poincare::Expression::ComplexFormat
ComplexFormat
Definition:
expression.h:148
Poincare::Preferences::setNumberOfSignificantDigits
void setNumberOfSignificantDigits(char numberOfSignificantDigits)
Definition:
preferences.cpp:47
Poincare::Preferences
Definition:
preferences.h:8
Poincare::Expression::AngleUnit
AngleUnit
Definition:
expression.h:153
Poincare::Decimal
Definition:
decimal.h:14
preferences.h
Poincare::Preferences::numberOfSignificantDigits
char numberOfSignificantDigits() const
Definition:
preferences.cpp:43
Poincare::Preferences::displayMode
PrintFloat::Mode displayMode() const
Definition:
preferences.cpp:27
Poincare::Expression
Definition:
expression.h:16
Poincare::Preferences::Preferences
Preferences()
Definition:
preferences.cpp:6
Degree
constexpr Poincare::Expression::AngleUnit Degree
Definition:
helper.h:3
Poincare::Preferences::setDisplayMode
void setDisplayMode(PrintFloat::Mode mode)
Definition:
preferences.cpp:31
epsilon
poincare
src
preferences.cpp
Generated by
1.8.14