52 #ifndef VTRANSLATEVARS_H
53 #define VTRANSLATEVARS_H
55 #include <qcompilerdetection.h>
66 bool VariablesFromUser(QString &newFormula,
int position,
const QString &token,
int &bias)
const;
68 bool FunctionsFromUser(QString &newFormula,
int position,
const QString &token,
int &bias)
const;
69 bool VariablesToUser(QString &newFormula,
int position,
const QString &token,
int &bias)
const;
77 QString
VarToUser(
const QString &var)
const;
86 QString
FormulaFromUser(
const QString &formula,
bool osSeparator)
const;
88 QString
FormulaToUser(
const QString &formula,
bool osSeparator)
const;
113 void InitSystem(const QString &code, const
qmu::QmuTranslation &name, const
qmu::QmuTranslation &author,
114 const
qmu::QmuTranslation &book);
QString VarToUser(const QString &var) const
QString PlaceholderFromUserText(QString text) const
QString PMSystemName(const QString &code) const
QString PlaceholderToUserText(QString text) const
QString VarFromUser(const QString &var) const
virtual ~VTranslateVars() Q_DECL_OVERRIDE
QMap< QString, qmu::QmuTranslation > functions
virtual void Retranslate() Q_DECL_OVERRIDE
QString InternalVarToUser(const QString &var) const
QMap< QString, qmu::QmuTranslation > getFunctions() const
QMap< QString, qmu::QmuTranslation > PMSystemAuthors
void InitSystem(const QString &code, const qmu::QmuTranslation &name, const qmu::QmuTranslation &author, const qmu::QmuTranslation &book)
void InitPostfixOperators()
void CorrectionsPositions(int position, int bias, QMap< int, QString > &tokens, QMap< int, QString > &numbers) const
CorrectionsPositions correct position tokens in expression after token translation.
void InitPatternMakingSystems()
QMap< QString, qmu::QmuTranslation > PMSystemNames
QMap< QString, qmu::QmuTranslation > PMSystemBooks
static QString TryFormulaFromUser(const QString &formula, bool osSeparator)
bool PostfixOperatorsFromUser(QString &newFormula, int position, const QString &token, int &bias) const
PostfixOperatorsFromUser translate postfix operator to internal look.
bool FunctionsFromUser(QString &newFormula, int position, const QString &token, int &bias) const
FunctionsFromUser translate function name to internal look.
QString PlaceholderToUser(const QString &var) const
QMap< QString, qmu::QmuTranslation > placeholders
QString FormulaToUser(const QString &formula, bool osSeparator) const
FormulaToUser replace all known tokens in formula to user look. Also change decimal separator in numb...
bool VariablesFromUser(QString &newFormula, int position, const QString &token, int &bias) const
VariablesFromUser translate variable to internal look.
QMap< QString, qmu::QmuTranslation > postfixOperators
bool VariablesToUser(QString &newFormula, int position, const QString &token, int &bias) const
VariablesToUser translate variable name to user.
QString FormulaFromUser(const QString &formula, bool osSeparator) const
FormulaFromUser replace all known tokens in formula to internal look. Also change decimal separator i...
static void BiasTokens(int position, int bias, QMap< int, QString > &tokens)
BiasTokens change position for each token that have position more then "position".
QString PostfixOperator(const QString &name) const
QMap< QString, qmu::QmuTranslation > variables
QString PMSystemBook(const QString &code) const
QMap< QString, qmu::QmuTranslation > stDescriptions
QString PMSystemAuthor(const QString &code) const
Namespace for mathematical applications.