WFloatLineEdit Class Reference

#include <WFloatLineEdit.h>

Inheritance diagram for WFloatLineEdit:

Inheritance graph
[legend]
Collaboration diagram for WFloatLineEdit:

Collaboration graph
[legend]

Public Slots

void setValuePercent (int p)

Signals

void floatValueChanged (float)
void valuePercentChanged (int)

Public Member Functions

 WFloatLineEdit (QWidget *parent, const char *name)
float minFloatValue () const
float getMinFloatValue ()
void setMinFloatValue (float f)
float maxFloatValue () const
float getMaxFloatValue ()
void setMaxFloatValue (float f)
float floatValue () const
float getFloatValue ()
void setFloatValue (float f)
int intValue () const
int getIntValue ()
void setIntValue (int f)
int valuePercent ()

Protected Slots

void slotCalcFloatValue (const QString &)
void slotCalcFloatValue (float)
void slotReturnPressed ()

Protected Member Functions

void checkValue ()
virtual void keyPressEvent (QKeyEvent *)

Protected Attributes

int m_iPercent
float m_fMinValue
float m_fMaxValue
bool m_bFirst
float m_fValue
QDoubleValidator * m_DblValid
double m_bInternal

Properties

float minFloatValue
float maxFloatValue
float floatValue
int intValue

Detailed Description

Definition at line 40 of file WFloatLineEdit.h.


Constructor & Destructor Documentation

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


Member Function Documentation

void WFloatLineEdit::checkValue (  )  [protected]

float WFloatLineEdit::floatValue (  )  const [inline]

Definition at line 73 of file WFloatLineEdit.h.

References m_fValue.

Referenced by getFloatValue().

void WFloatLineEdit::floatValueChanged ( float  _t1  )  [signal]

Definition at line 129 of file moc_WFloatLineEdit.cpp.

Referenced by slotCalcFloatValue().

float WFloatLineEdit::getFloatValue (  )  [inline]

int WFloatLineEdit::getIntValue (  )  [inline]

Definition at line 78 of file WFloatLineEdit.h.

References intValue().

float WFloatLineEdit::getMaxFloatValue (  )  [inline]

Definition at line 70 of file WFloatLineEdit.h.

References maxFloatValue().

float WFloatLineEdit::getMinFloatValue (  )  [inline]

Definition at line 65 of file WFloatLineEdit.h.

References minFloatValue().

int WFloatLineEdit::intValue (  )  const [inline]

Definition at line 77 of file WFloatLineEdit.h.

References m_fValue.

Referenced by getIntValue().

void WFloatLineEdit::keyPressEvent ( QKeyEvent *  e  )  [protected, virtual]

Definition at line 117 of file WFloatLineEdit.cpp.

References m_fValue.

float WFloatLineEdit::maxFloatValue (  )  const [inline]

Definition at line 69 of file WFloatLineEdit.h.

References m_fMaxValue.

Referenced by getMaxFloatValue().

float WFloatLineEdit::minFloatValue (  )  const [inline]

Definition at line 64 of file WFloatLineEdit.h.

Referenced by getMinFloatValue().

void WFloatLineEdit::setFloatValue ( float  f  ) 

void WFloatLineEdit::setIntValue ( int  f  ) 

Definition at line 98 of file WFloatLineEdit.cpp.

References setFloatValue().

void WFloatLineEdit::setMaxFloatValue ( float  f  )  [inline]

void WFloatLineEdit::setMinFloatValue ( float  f  )  [inline]

void WFloatLineEdit::setValuePercent ( int  p  )  [slot]

Definition at line 103 of file WFloatLineEdit.cpp.

References m_bInternal, m_fMaxValue, m_fMinValue, and setFloatValue().

void WFloatLineEdit::slotCalcFloatValue ( float  f  )  [protected, slot]

void WFloatLineEdit::slotCalcFloatValue ( const QString &  s  )  [protected, slot]

Definition at line 87 of file WFloatLineEdit.cpp.

Referenced by setFloatValue(), and slotReturnPressed().

void WFloatLineEdit::slotReturnPressed (  )  [protected, slot]

Definition at line 51 of file WFloatLineEdit.cpp.

References m_bInternal, and slotCalcFloatValue().

Referenced by WFloatLineEdit().

int WFloatLineEdit::valuePercent (  ) 

Definition at line 112 of file WFloatLineEdit.cpp.

References m_fMaxValue, m_fMinValue, and m_fValue.

void WFloatLineEdit::valuePercentChanged ( int  _t1  )  [signal]

Definition at line 136 of file moc_WFloatLineEdit.cpp.

Referenced by slotCalcFloatValue().


Field Documentation

Definition at line 53 of file WFloatLineEdit.h.

Referenced by slotCalcFloatValue(), and WFloatLineEdit().

double WFloatLineEdit::m_bInternal [protected]

Definition at line 56 of file WFloatLineEdit.h.

Referenced by setFloatValue(), setValuePercent(), slotReturnPressed(), and WFloatLineEdit().

QDoubleValidator* WFloatLineEdit::m_DblValid [protected]

Definition at line 55 of file WFloatLineEdit.h.

Referenced by setMaxFloatValue(), setMinFloatValue(), and WFloatLineEdit().

float WFloatLineEdit::m_fMaxValue [protected]

float WFloatLineEdit::m_fMinValue [protected]

float WFloatLineEdit::m_fValue [mutable, protected]

Definition at line 50 of file WFloatLineEdit.h.

Referenced by slotCalcFloatValue(), and WFloatLineEdit().


Property Documentation

float WFloatLineEdit::floatValue [read, write]

Definition at line 45 of file WFloatLineEdit.h.

int WFloatLineEdit::intValue [read, write]

Definition at line 46 of file WFloatLineEdit.h.

float WFloatLineEdit::maxFloatValue [read, write]

Definition at line 44 of file WFloatLineEdit.h.

float WFloatLineEdit::minFloatValue [read, write]

Definition at line 43 of file WFloatLineEdit.h.


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

Generated on Sun Nov 23 04:12:58 2008 for Sofa by  doxygen 1.5.7.1