QCAD
Open Source 2D CAD
Loading...
Searching...
No Matches
RMathComboBox Class Reference

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

#include <RMathComboBox.h>

Inheritance diagram for RMathComboBox:

Public Slots

void slotTextChanged (const QString &text)
 
void slotValueChanged (double value, const QString &error)
 

Signals

void valueChanged (double value, const QString &error)
 

Public Member Functions

void clearError ()
 
QString getError ()
 
RMathLineEditgetMathLineEdit () const
 
double getValue ()
 
bool isAngle () const
 
bool isInteger () const
 
bool isSane ()
 
bool isScale () const
 
bool isValid ()
 
 RMathComboBox (QWidget *parent=NULL)
 Copyright (c) 2011-2018 by Andrew Mustun.
 
void setAngle (bool on)
 
void setInteger (bool on)
 
void setScale (bool on, RS::Unit unit)
 
void setValue (double v, int precision=6)
 

Properties

bool angle
 
bool integer
 

Detailed Description

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

◆ RMathComboBox()

RMathComboBox::RMathComboBox ( 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 RMathComboBox::clearError ( )
inline

◆ getError()

QString RMathComboBox::getError ( )
inline

◆ getMathLineEdit()

RMathLineEdit * RMathComboBox::getMathLineEdit ( ) const
inline

◆ getValue()

double RMathComboBox::getValue ( )
inline

◆ isAngle()

bool RMathComboBox::isAngle ( ) const
inline

◆ isInteger()

bool RMathComboBox::isInteger ( ) const
inline

◆ isSane()

bool RMathComboBox::isSane ( )
inline

◆ isScale()

bool RMathComboBox::isScale ( ) const
inline

◆ isValid()

bool RMathComboBox::isValid ( )
inline

◆ setAngle()

void RMathComboBox::setAngle ( bool on)
inline

◆ setInteger()

void RMathComboBox::setInteger ( bool on)
inline

◆ setScale()

void RMathComboBox::setScale ( bool on,
RS::Unit unit )
inline

◆ setValue()

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

◆ slotTextChanged

void RMathComboBox::slotTextChanged ( const QString & text)
inlineslot

◆ slotValueChanged

void RMathComboBox::slotValueChanged ( double value,
const QString & error )
inlineslot

◆ valueChanged

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

Property Documentation

◆ angle

bool RMathComboBox::angle
readwrite

◆ integer

bool RMathComboBox::integer
readwrite

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