QCAD
Open Source 2D CAD
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
RMathLineEdit Class Reference

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

#include <RMathLineEdit.h>

List of all members.

Public Slots

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

Signals

void valueChanged (double value, const QString &error)

Public Member Functions

void clearError ()
QString getError ()
double getValue ()
bool isAngle () const
bool isInteger () const
bool isValid ()
 RMathLineEdit (QWidget *parent=NULL)
 Copyright (c) 2011-2014 by Andrew Mustun.
void setAngle (bool on)
void setInteger (bool on)
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

Private Attributes

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

Detailed Description

Copyright (c) 2011-2014 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:
This class is wrapped for script environments.

Constructor & Destructor Documentation

RMathLineEdit::RMathLineEdit ( QWidget *  parent = NULL)

Copyright (c) 2011-2014 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

void RMathLineEdit::clearError ( )
QString RMathLineEdit::getError ( )
double RMathLineEdit::getValue ( )
bool RMathLineEdit::isAngle ( ) const
inline
bool RMathLineEdit::isInteger ( ) const
inline
bool RMathLineEdit::isValid ( )
inline
void RMathLineEdit::keyPressEvent ( QKeyEvent *  event)
protectedvirtual
void RMathLineEdit::keyReleaseEvent ( QKeyEvent *  event)
protectedvirtual
void RMathLineEdit::setAngle ( bool  on)
inline
void RMathLineEdit::setInteger ( bool  on)
inline
void RMathLineEdit::setToolTip ( const QString &  toolTip)
void RMathLineEdit::setValue ( double  v,
int  precision = 6 
)
void RMathLineEdit::slotTextChanged ( const QString &  text)
slot
void RMathLineEdit::slotTextEdited ( const QString &  text)
slot
void RMathLineEdit::valueChanged ( double  value,
const QString &  error 
)
signal

Member Data Documentation

QString RMathLineEdit::error
private
bool RMathLineEdit::integer
private
bool RMathLineEdit::noEmit
private
QString RMathLineEdit::originalToolTip
private
QPalette RMathLineEdit::oriPalette
private
double RMathLineEdit::value
private

Property Documentation

bool RMathLineEdit::angle
readwrite

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