RMathComboBox
Class in GUI Module
Header: #include <src/gui/RMathComboBox.h>
Inherits: QComboBox
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”RMathComboBox(QWidget *parent=NULL) |
|
| void | clearError() |
| QString | getError() |
| RMathLineEdit * | getMathLineEdit() 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, RS::Unit unit) |
| void | setValue(double v, int precision=6) |
Public Slots
Section titled “Public Slots”| void | slotTextChanged(const QString &text) |
| void | slotValueChanged(double value, const QString &error) |
Signals
Section titled “Signals”| void | valueChanged(double value, const QString &error) |
Properties
Section titled “Properties”| bool | angle |
| bool | integer |
Member Documentation
Section titled “Member Documentation”RMathComboBox
Section titled “RMathComboBox”RMathComboBox::RMathComboBox(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 RMathComboBox::clearError()inline
getError
Section titled “getError”QString RMathComboBox::getError()inline
getMathLineEdit
Section titled “getMathLineEdit”RMathLineEdit * RMathComboBox::getMathLineEdit() constinline const
getValue
Section titled “getValue”double RMathComboBox::getValue()inline
isAngle
Section titled “isAngle”bool RMathComboBox::isAngle() constinline const
isInteger
Section titled “isInteger”bool RMathComboBox::isInteger() constinline const
isSane
Section titled “isSane”bool RMathComboBox::isSane()inline
isScale
Section titled “isScale”bool RMathComboBox::isScale() constinline const
isValid
Section titled “isValid”bool RMathComboBox::isValid()inline
setAngle
Section titled “setAngle”void RMathComboBox::setAngle(bool on)inline
setInteger
Section titled “setInteger”void RMathComboBox::setInteger(bool on)inline
setScale
Section titled “setScale”void RMathComboBox::setScale(bool on, RS::Unit unit)inline
setValue
Section titled “setValue”void RMathComboBox::setValue(double v, int precision=6)inline
slotTextChanged
Section titled “slotTextChanged”void RMathComboBox::slotTextChanged(const QString &text)inline
slotValueChanged
Section titled “slotValueChanged”void RMathComboBox::slotValueChanged(double value, const QString &error)inline
valueChanged
Section titled “valueChanged”void RMathComboBox::valueChanged(double value, const QString &error)bool RMathComboBox::angleinteger
Section titled “integer”bool RMathComboBox::integer