SOFA API  c76874b7
Open source framework for multi-physics simuation
WDoubleLineEdit Class Reference

#include <WDoubleLineEdit.h>

Inheritance diagram for WDoubleLineEdit:

Protected Attributes

int m_iPercent
 
double m_fMinValue
 
double m_fMaxValue
 
bool m_bFirst
 
double m_fValue
 
QDoubleValidator * m_DblValid
 
double m_bInternal
 
bool m_isDragging
 
QPoint m_prevMousePosition
 

Public Member Functions

 WDoubleLineEdit (QWidget *parent, const char *name)
 
double minValue () const
 
double getMinValue ()
 
void setMinValue (double f)
 
double maxValue () const
 
double getMaxValue ()
 
void setMaxValue (double f)
 
double Value () const
 
double getValue ()
 
void setValue (double f)
 
int intValue () const
 
int getIntValue ()
 
void setIntValue (int f)
 
int valuePercent ()
 
double getDisplayedValue ()
 
int getIntDisplayedValue ()
 

Protected Member Functions

void checkValue ()
 
void keyPressEvent (QKeyEvent *) override
 
void mouseMoveEvent (QMouseEvent *) override
 
void mousePressEvent (QMouseEvent *) override
 
void mouseReleaseEvent (QMouseEvent *) override
 

Signals

void valueEdited (double)
 
void valueChanged (double)
 
void valuePercentChanged (int)
 

Public Slots

void setValuePercent (int p)
 

Protected Slots

void slotCalcValue (const QString &)
 
void slotCalcValue (double, bool isEditted=false)
 
void slotReturnPressed ()
 

Properties

double minValue
 
double maxValue
 
double Value
 
int intValue
 

Attribute details

bool WDoubleLineEdit::m_bFirst
protected
double WDoubleLineEdit::m_bInternal
protected
QDoubleValidator* WDoubleLineEdit::m_DblValid
protected
double WDoubleLineEdit::m_fMaxValue
protected
double WDoubleLineEdit::m_fMinValue
protected
double WDoubleLineEdit::m_fValue
mutableprotected
int WDoubleLineEdit::m_iPercent
protected
bool WDoubleLineEdit::m_isDragging
protected
QPoint WDoubleLineEdit::m_prevMousePosition
protected

Property details

int WDoubleLineEdit::intValue
readwrite
double WDoubleLineEdit::maxValue
readwrite
double WDoubleLineEdit::minValue
readwrite
double WDoubleLineEdit::Value
readwrite

Constructor details

WDoubleLineEdit::WDoubleLineEdit ( QWidget parent,
const char *  name 
)

Function details

void WDoubleLineEdit::checkValue ( )
protected
double WDoubleLineEdit::getDisplayedValue ( )
inline
int WDoubleLineEdit::getIntDisplayedValue ( )
inline
int WDoubleLineEdit::getIntValue ( )
inline
double WDoubleLineEdit::getMaxValue ( )
inline
double WDoubleLineEdit::getMinValue ( )
inline
double WDoubleLineEdit::getValue ( )
inline
int WDoubleLineEdit::intValue ( ) const
inline
void WDoubleLineEdit::keyPressEvent ( QKeyEvent *  e)
overrideprotected
double WDoubleLineEdit::maxValue ( ) const
inline
double WDoubleLineEdit::minValue ( ) const
inline
void WDoubleLineEdit::mouseMoveEvent ( QMouseEvent *  event)
overrideprotected
void WDoubleLineEdit::mousePressEvent ( QMouseEvent *  event)
overrideprotected
void WDoubleLineEdit::mouseReleaseEvent ( QMouseEvent *  event)
overrideprotected
void WDoubleLineEdit::setIntValue ( int  f)
void WDoubleLineEdit::setMaxValue ( double  f)
inline
void WDoubleLineEdit::setMinValue ( double  f)
inline
void WDoubleLineEdit::setValue ( double  f)
void WDoubleLineEdit::setValuePercent ( int  p)
slot
void WDoubleLineEdit::slotCalcValue ( const QString &  s)
protectedslot
void WDoubleLineEdit::slotCalcValue ( double  f,
bool  isEditted = false 
)
protectedslot
void WDoubleLineEdit::slotReturnPressed ( )
protectedslot
double WDoubleLineEdit::Value ( ) const
inline
void WDoubleLineEdit::valueChanged ( double  )
signal
void WDoubleLineEdit::valueEdited ( double  )
signal
int WDoubleLineEdit::valuePercent ( )
void WDoubleLineEdit::valuePercentChanged ( int  )
signal