QCAD
Open Source 2D CAD
RMathLineEdit Class Reference

Copyright (c) 2011-2018 by Andrew Mustun. More...

#include <RMathLineEdit.h>

Inheritance diagram for RMathLineEdit:

Public Slots

void slotTextChanged (const QString &text)
 
void slotTextEdited (const QString &text)
 

Signals

void downKeyPressed ()
 
void enterKeyPressed ()
 
void upKeyPressed ()
 
void valueChanged (double value, const QString &error)
 

Public Member Functions

void clearError ()
 
QString getError ()
 
QColor getNormalTextColor () const
 
double getValue ()
 
bool isAngle () const
 
bool isInteger () const
 
bool isSane ()
 
bool isValid ()
 
 RMathLineEdit (QWidget *parent=NULL)
 Copyright (c) 2011-2018 by Andrew Mustun. More...
 
void setAngle (bool on)
 
void setInteger (bool on)
 
void setTextColor (bool error)
 
void setToolTip (const QString &toolTip)
 
void setValue (double v, int precision=6)
 

Protected Member Functions

virtual void keyPressEvent (QKeyEvent *event)
 
virtual void keyReleaseEvent (QKeyEvent *event)
 

Properties

bool angle
 
bool integer
 

Private Attributes

QString error
 
bool noEmit
 
bool noResultInToolTip
 
QString originalToolTip
 
QPalette oriPalette
 
double value
 

Detailed Description

Copyright (c) 2011-2018 by Andrew Mustun.

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:\nThis class is available in script environments.\n

Constructor & Destructor Documentation

◆ RMathLineEdit()

RMathLineEdit::RMathLineEdit ( QWidget *  parent = NULL)

Copyright (c) 2011-2018 by Andrew Mustun.

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.

Member Function Documentation

◆ clearError()

void RMathLineEdit::clearError ( )

◆ downKeyPressed

void RMathLineEdit::downKeyPressed ( )
signal

◆ enterKeyPressed

void RMathLineEdit::enterKeyPressed ( )
signal

◆ getError()

QString RMathLineEdit::getError ( )

◆ getNormalTextColor()

QColor RMathLineEdit::getNormalTextColor ( ) const

◆ getValue()

double RMathLineEdit::getValue ( )

◆ isAngle()

bool RMathLineEdit::isAngle ( ) const
inline

◆ isInteger()

bool RMathLineEdit::isInteger ( ) const
inline

◆ isSane()

bool RMathLineEdit::isSane ( )
inline

◆ isValid()

bool RMathLineEdit::isValid ( )
inline

◆ keyPressEvent()

void RMathLineEdit::keyPressEvent ( QKeyEvent *  event)
protectedvirtual

◆ keyReleaseEvent()

void RMathLineEdit::keyReleaseEvent ( QKeyEvent *  event)
protectedvirtual

◆ setAngle()

void RMathLineEdit::setAngle ( bool  on)
inline

◆ setInteger()

void RMathLineEdit::setInteger ( bool  on)
inline

◆ setTextColor()

void RMathLineEdit::setTextColor ( bool  error)

◆ setToolTip()

void RMathLineEdit::setToolTip ( const QString &  toolTip)

◆ setValue()

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

◆ slotTextChanged

void RMathLineEdit::slotTextChanged ( const QString &  text)
slot

◆ slotTextEdited

void RMathLineEdit::slotTextEdited ( const QString &  text)
slot

◆ upKeyPressed

void RMathLineEdit::upKeyPressed ( )
signal

◆ valueChanged

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

Member Data Documentation

◆ error

QString RMathLineEdit::error
private

◆ noEmit

bool RMathLineEdit::noEmit
private

◆ noResultInToolTip

bool RMathLineEdit::noResultInToolTip
private

◆ originalToolTip

QString RMathLineEdit::originalToolTip
private

◆ oriPalette

QPalette RMathLineEdit::oriPalette
private

◆ value

double RMathLineEdit::value
private

Property Documentation

◆ angle

bool RMathLineEdit::angle
readwrite

◆ integer

bool RMathLineEdit::integer
readwrite

The documentation for this class was generated from the following files: