20#ifndef RMATHLINEEDIT_H_
21#define RMATHLINEEDIT_H_
39Q_PROPERTY(
bool angle READ isAngle WRITE setAngle);
40Q_PROPERTY(
bool scale READ isScale WRITE setScale);
41Q_PROPERTY(
bool integer READ isInteger WRITE setInteger);
71 void setValue(
double v,
int precision=6);
84 void setToolTip(
const QString& toolTip);
86 QColor getNormalTextColor()
const;
87 void setTextColor(
bool error);
102 virtual void keyPressEvent(QKeyEvent* event);
103 virtual void keyReleaseEvent(QKeyEvent* event);
107 void slotTextChanged(
const QString& text);
108 void slotTextEdited(
const QString& text);
Q_DECLARE_METATYPE(RMath *)
static bool isSane(double v)
Definition RMath.cpp:157
static bool isNaN(double v)
Definition RMath.cpp:134
Copyright (c) 2011-2018 by Andrew Mustun.
Definition RMathLineEdit.h:34
bool isValid()
Definition RMathLineEdit.h:76
QString error
Definition RMathLineEdit.h:122
void setScale(bool on)
Definition RMathLineEdit.h:60
double value
Definition RMathLineEdit.h:120
void setAngle(bool on)
Definition RMathLineEdit.h:53
QPalette oriPalette
Definition RMathLineEdit.h:116
bool isScale() const
Definition RMathLineEdit.h:57
bool isAngle() const
Definition RMathLineEdit.h:50
bool isSane()
Definition RMathLineEdit.h:80
void valueChanged(double value, const QString &error)
bool isInteger() const
Definition RMathLineEdit.h:64
bool noEmit
Definition RMathLineEdit.h:124
bool noResultInToolTip
Definition RMathLineEdit.h:125
QString originalToolTip
Definition RMathLineEdit.h:123
void setInteger(bool on)
Definition RMathLineEdit.h:67
void scale(void e, void factor, void focusPoint)
Scales the given entity or shape by the given factor with the given focus point.
Definition simple_modify.js:15
#define QCADGUI_EXPORT
Definition gui_global.h:10
#define NULL
Definition opennurbs_system.h:256