Numworks Epsilon  1.4.1
Graphing Calculator Operating System
preferences.h
Go to the documentation of this file.
1 #ifndef POINCARE_PREFERENCES_H
2 #define POINCARE_PREFERENCES_H
3 
4 #include <poincare/expression.h>
5 
6 namespace Poincare {
7 
8 class Preferences {
9 public:
10  Preferences();
11  static Preferences * sharedPreferences();
18  char numberOfSignificantDigits() const;
20 private:
21  Expression::AngleUnit m_angleUnit;
22  PrintFloat::Mode m_displayMode;
23  Expression::ComplexFormat m_complexFormat;
24  char m_numberOfSignificantDigits;
25 };
26 
27 }
28 
29 #endif
static Preferences * sharedPreferences()
Definition: preferences.cpp:14
Expression::AngleUnit angleUnit() const
Definition: preferences.cpp:19
Expression::ComplexFormat complexFormat() const
Definition: preferences.cpp:35
void setAngleUnit(Expression::AngleUnit angleUnit)
Definition: preferences.cpp:23
void setComplexFormat(Expression::ComplexFormat complexFormat)
Definition: preferences.cpp:39
void setNumberOfSignificantDigits(char numberOfSignificantDigits)
Definition: preferences.cpp:47
char numberOfSignificantDigits() const
Definition: preferences.cpp:43
PrintFloat::Mode displayMode() const
Definition: preferences.cpp:27
void setDisplayMode(PrintFloat::Mode mode)
Definition: preferences.cpp:31