RMathLineEdit
Class in GUI Module
Header: #include <src/gui/RMathLineEdit.h>
Inherits: QLineEdit
Description
Section titled “Description”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.
Public Functions
Section titled “Public Functions”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) |
Public Slots
Section titled “Public Slots”| void | slotTextChanged(const QString &text) |
| void | slotTextEdited(const QString &text) |
Protected Functions
Section titled “Protected Functions”| virtual void | keyPressEvent(QKeyEvent *event) |
| virtual void | keyReleaseEvent(QKeyEvent *event) |
Private Attributes
Section titled “Private Attributes”| QString | error |
| bool | noEmit |
| bool | noResultInToolTip |
| QString | originalToolTip |
| QPalette | oriPalette |
| bool | plainNumber |
| QString | resultText |
| double | value |
Signals
Section titled “Signals”| void | downKeyPressed() |
| void | upKeyPressed() |
| void | valueChanged(double value, const QString &error) |
Properties
Section titled “Properties”| bool | angle |
| bool | integer |
| bool | scale |
Member Documentation
Section titled “Member Documentation”RMathLineEdit
Section titled “RMathLineEdit”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.
clearError
Section titled “clearError”void RMathLineEdit::clearError()getError
Section titled “getError”QString RMathLineEdit::getError()getNormalTextColor
Section titled “getNormalTextColor”QColor RMathLineEdit::getNormalTextColor() constconst
getValue
Section titled “getValue”double RMathLineEdit::getValue()isAngle
Section titled “isAngle”bool RMathLineEdit::isAngle() constinline const
isInteger
Section titled “isInteger”bool RMathLineEdit::isInteger() constinline const
isSane
Section titled “isSane”bool RMathLineEdit::isSane()inline
isScale
Section titled “isScale”bool RMathLineEdit::isScale() constinline const
isValid
Section titled “isValid”bool RMathLineEdit::isValid()inline
setAngle
Section titled “setAngle”void RMathLineEdit::setAngle(bool on)inline
setInteger
Section titled “setInteger”void RMathLineEdit::setInteger(bool on)inline
setScale
Section titled “setScale”void RMathLineEdit::setScale(bool on)inline
setTextColor
Section titled “setTextColor”void RMathLineEdit::setTextColor(bool error)setToolTip
Section titled “setToolTip”void RMathLineEdit::setToolTip(const QString &toolTip)setValue
Section titled “setValue”void RMathLineEdit::setValue(double v, int precision=6)slotTextChanged
Section titled “slotTextChanged”void RMathLineEdit::slotTextChanged(const QString &text)slotTextEdited
Section titled “slotTextEdited”void RMathLineEdit::slotTextEdited(const QString &text)keyPressEvent
Section titled “keyPressEvent”virtual void RMathLineEdit::keyPressEvent(QKeyEvent *event)virtual protected
keyReleaseEvent
Section titled “keyReleaseEvent”virtual void RMathLineEdit::keyReleaseEvent(QKeyEvent *event)virtual protected
QString RMathLineEdit::errorprivate
noEmit
Section titled “noEmit”bool RMathLineEdit::noEmitprivate
noResultInToolTip
Section titled “noResultInToolTip”bool RMathLineEdit::noResultInToolTipprivate
originalToolTip
Section titled “originalToolTip”QString RMathLineEdit::originalToolTipprivate
oriPalette
Section titled “oriPalette”QPalette RMathLineEdit::oriPaletteprivate
plainNumber
Section titled “plainNumber”bool RMathLineEdit::plainNumberprivate
resultText
Section titled “resultText”QString RMathLineEdit::resultTextprivate
double RMathLineEdit::valueprivate
downKeyPressed
Section titled “downKeyPressed”void RMathLineEdit::downKeyPressed()upKeyPressed
Section titled “upKeyPressed”void RMathLineEdit::upKeyPressed()valueChanged
Section titled “valueChanged”void RMathLineEdit::valueChanged(double value, const QString &error)bool RMathLineEdit::angleinteger
Section titled “integer”bool RMathLineEdit::integerbool RMathLineEdit::scale