Documentation


WFloatLineEdit Class Reference

#include <WFloatLineEdit.h>

Inheritance diagram for WFloatLineEdit:

QLineEdit List of all members.

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
void setMinFloatValue (float f)
float maxFloatValue () const
void setMaxFloatValue (float f)
float floatValue () const
void setFloatValue (float f)
int intValue () const
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

Constructor & Destructor Documentation

WFloatLineEdit::WFloatLineEdit QWidget parent,
const char *  name
 

Definition at line 8 of file WFloatLineEdit.cpp.

References m_bFirst, m_bInternal, m_DblValid, m_fMaxValue, m_fMinValue, m_fValue, m_iPercent, and slotReturnPressed().


Member Function Documentation

void WFloatLineEdit::checkValue  )  [protected]
 

float WFloatLineEdit::floatValue  )  const [inline]
 

Definition at line 41 of file WFloatLineEdit.h.

References m_fValue.

void WFloatLineEdit::floatValueChanged float   )  [signal]
 

Referenced by slotCalcFloatValue().

int WFloatLineEdit::intValue  )  const [inline]
 

Definition at line 44 of file WFloatLineEdit.h.

References m_fValue.

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

Definition at line 87 of file WFloatLineEdit.cpp.

References m_fValue.

float WFloatLineEdit::maxFloatValue  )  const [inline]
 

Definition at line 38 of file WFloatLineEdit.h.

References m_fMaxValue.

float WFloatLineEdit::minFloatValue  )  const [inline]
 

Definition at line 34 of file WFloatLineEdit.h.

References m_fMinValue.

void WFloatLineEdit::setFloatValue float  f  ) 
 

Definition at line 62 of file WFloatLineEdit.cpp.

References m_bInternal, and slotCalcFloatValue().

Referenced by setIntValue(), X3DTK::Qt::X3DSFVec3fGUI::setValue(), X3DTK::Qt::X3DSFVec2fGUI::setValue(), X3DTK::Qt::X3DSFRotationGUI::setValue(), X3DTK::Qt::SFVector4GUI::setValue(), X3DTK::Qt::SFVector3GUI::setValue(), X3DTK::Qt::SFVector2GUI::setValue(), X3DTK::Qt::SFFloatGUI::setValue(), and setValuePercent().

void WFloatLineEdit::setIntValue int  f  ) 
 

Definition at line 68 of file WFloatLineEdit.cpp.

References setFloatValue().

void WFloatLineEdit::setMaxFloatValue float  f  )  [inline]
 

Definition at line 39 of file WFloatLineEdit.h.

References m_DblValid, and m_fMaxValue.

Referenced by X3DTK::Qt::SFFloatGUI::SFFloatGUI(), X3DTK::Qt::SFVector2GUI::SFVector2GUI(), X3DTK::Qt::SFVector3GUI::SFVector3GUI(), X3DTK::Qt::SFVector4GUI::SFVector4GUI(), X3DTK::Qt::X3DSFRotationGUI::X3DSFRotationGUI(), X3DTK::Qt::X3DSFVec2fGUI::X3DSFVec2fGUI(), and X3DTK::Qt::X3DSFVec3fGUI::X3DSFVec3fGUI().

void WFloatLineEdit::setMinFloatValue float  f  )  [inline]
 

Definition at line 35 of file WFloatLineEdit.h.

References m_DblValid, and m_fMinValue.

Referenced by X3DTK::Qt::SFFloatGUI::SFFloatGUI(), X3DTK::Qt::SFVector2GUI::SFVector2GUI(), X3DTK::Qt::SFVector3GUI::SFVector3GUI(), X3DTK::Qt::SFVector4GUI::SFVector4GUI(), X3DTK::Qt::X3DSFRotationGUI::X3DSFRotationGUI(), X3DTK::Qt::X3DSFVec2fGUI::X3DSFVec2fGUI(), and X3DTK::Qt::X3DSFVec3fGUI::X3DSFVec3fGUI().

void WFloatLineEdit::setValuePercent int  p  )  [slot]
 

Definition at line 73 of file WFloatLineEdit.cpp.

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

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

Definition at line 30 of file WFloatLineEdit.cpp.

References floatValueChanged(), m_bFirst, m_fMaxValue, m_fMinValue, m_fValue, m_iPercent, and valuePercentChanged().

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

Definition at line 57 of file WFloatLineEdit.cpp.

Referenced by setFloatValue(), and slotReturnPressed().

void WFloatLineEdit::slotReturnPressed  )  [protected, slot]
 

Definition at line 23 of file WFloatLineEdit.cpp.

References m_bInternal, and slotCalcFloatValue().

Referenced by WFloatLineEdit().

int WFloatLineEdit::valuePercent  ) 
 

Definition at line 82 of file WFloatLineEdit.cpp.

References m_fMaxValue, m_fMinValue, and m_fValue.

void WFloatLineEdit::valuePercentChanged int   )  [signal]
 

Referenced by slotCalcFloatValue().


Member Data Documentation

bool WFloatLineEdit::m_bFirst [protected]
 

Definition at line 23 of file WFloatLineEdit.h.

Referenced by slotCalcFloatValue(), and WFloatLineEdit().

double WFloatLineEdit::m_bInternal [protected]
 

Definition at line 26 of file WFloatLineEdit.h.

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

QDoubleValidator* WFloatLineEdit::m_DblValid [protected]
 

Definition at line 25 of file WFloatLineEdit.h.

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

float WFloatLineEdit::m_fMaxValue [protected]
 

Definition at line 22 of file WFloatLineEdit.h.

Referenced by maxFloatValue(), setMaxFloatValue(), setValuePercent(), slotCalcFloatValue(), valuePercent(), and WFloatLineEdit().

float WFloatLineEdit::m_fMinValue [protected]
 

Definition at line 21 of file WFloatLineEdit.h.

Referenced by minFloatValue(), setMinFloatValue(), setValuePercent(), slotCalcFloatValue(), valuePercent(), and WFloatLineEdit().

float WFloatLineEdit::m_fValue [mutable, protected]
 

Definition at line 24 of file WFloatLineEdit.h.

Referenced by floatValue(), intValue(), keyPressEvent(), slotCalcFloatValue(), valuePercent(), and WFloatLineEdit().

int WFloatLineEdit::m_iPercent [protected]
 

Definition at line 20 of file WFloatLineEdit.h.

Referenced by slotCalcFloatValue(), and WFloatLineEdit().


The documentation for this class was generated from the following files:
Generated on Thu Dec 23 13:52:29 2004 by doxygen 1.3.6