Skip to content

RMathLineEdit

Class in GUI Module
Header: #include <src/gui/RMathLineEdit.h>
Inherits: QLineEdit

All rights reserved.

This file is part of the QCAD project.

QCAD is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.

QCAD is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

You should have received a copy of the GNU General Public License along with QCAD.

Scriptable: This class is available in script environments.

RMathLineEdit(QWidget *parent=NULL)
void clearError()
QString getError()
QColor getNormalTextColor() const
double getValue()
bool isAngle() const
bool isInteger() const
bool isSane()
bool isScale() const
bool isValid()
void setAngle(bool on)
void setInteger(bool on)
void setScale(bool on)
void setTextColor(bool error)
void setToolTip(const QString &toolTip)
void setValue(double v, int precision=6)
void slotTextChanged(const QString &text)
void slotTextEdited(const QString &text)
virtual void keyPressEvent(QKeyEvent *event)
virtual void keyReleaseEvent(QKeyEvent *event)
QString error
bool noEmit
bool noResultInToolTip
QString originalToolTip
QPalette oriPalette
bool plainNumber
QString resultText
double value
void downKeyPressed()
void upKeyPressed()
void valueChanged(double value, const QString &error)
bool angle
bool integer
bool scale

RMathLineEdit::RMathLineEdit(QWidget *parent=NULL)

All rights reserved.

This file is part of the QCAD project.

QCAD is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.

QCAD is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

You should have received a copy of the GNU General Public License along with QCAD.

void RMathLineEdit::clearError()

QString RMathLineEdit::getError()

QColor RMathLineEdit::getNormalTextColor() const

const

double RMathLineEdit::getValue()

bool RMathLineEdit::isAngle() const

inline const

bool RMathLineEdit::isInteger() const

inline const

bool RMathLineEdit::isSane()

inline

bool RMathLineEdit::isScale() const

inline const

bool RMathLineEdit::isValid()

inline

void RMathLineEdit::setAngle(bool on)

inline

void RMathLineEdit::setInteger(bool on)

inline

void RMathLineEdit::setScale(bool on)

inline

void RMathLineEdit::setTextColor(bool error)

void RMathLineEdit::setToolTip(const QString &toolTip)

void RMathLineEdit::setValue(double v, int precision=6)

void RMathLineEdit::slotTextChanged(const QString &text)

void RMathLineEdit::slotTextEdited(const QString &text)

virtual void RMathLineEdit::keyPressEvent(QKeyEvent *event)

virtual protected

virtual void RMathLineEdit::keyReleaseEvent(QKeyEvent *event)

virtual protected

QString RMathLineEdit::error

private

bool RMathLineEdit::noEmit

private

bool RMathLineEdit::noResultInToolTip

private

QString RMathLineEdit::originalToolTip

private

QPalette RMathLineEdit::oriPalette

private

bool RMathLineEdit::plainNumber

private

QString RMathLineEdit::resultText

private

double RMathLineEdit::value

private

void RMathLineEdit::downKeyPressed()

void RMathLineEdit::upKeyPressed()

void RMathLineEdit::valueChanged(double value, const QString &error)

bool RMathLineEdit::angle

bool RMathLineEdit::integer

bool RMathLineEdit::scale