VAPOR3 3.9.4
Signals | Public Member Functions | Protected Slots | Protected Member Functions | Protected Attributes | List of all members
VDoubleLineEdit Class Reference

A wrapper for a QLineEdit that handles user input of type double, and provides Vapor's standard setters, getters, and signals. More...

#include <VDoubleLineEdit.h>

Inheritance diagram for VDoubleLineEdit:
VNumericLineEdit VStringLineEdit VHBoxWidget

Signals

void ValueChanged (double value)
 
- Signals inherited from VNumericLineEdit
void DecimalDigitsChanged (int decimalDigits)
 
void SciNotationChanged (bool sciNotation)
 
- Signals inherited from VStringLineEdit
void ValueChanged (const std::string &value)
 

Public Member Functions

 VDoubleLineEdit (double value=0.0)
 
void SetValueDouble (double value)
 Set the current double value in the line edit.
 
double GetValueDouble () const
 Get the current double value in the line edit.
 
void SetRange (double min, double max)
 
- Public Member Functions inherited from VNumericLineEdit
int GetNumDigits () const
 If the line edit is numeric, get the number of digits of the number being displayed.
 
void SetNumDigits (int digits)
 If the line edit is numeric, set the number of digits of the number being displayed.
 
bool GetSciNotation () const
 If the line edit is numeric, get whether the display is in scientific notation.
 
void SetSciNotation (bool sciNotation)
 If the line edit is numeric, set whether the display is in scientific notation.
 
- Public Member Functions inherited from VStringLineEdit
 VStringLineEdit (std::string value="")
 
void SetValueString (std::string value)
 Set the current string value in the line edit.
 
std::string GetValueString () const
 Get the current value in the line edit.
 
void RemoveContextMenu ()
 Remove the current context menu.
 
void SetCustomContextMenu ()
 Create a custom context menu for the QLineEdit.
 
void SetReadOnly (bool b)
 
void Clear ()
 
void SetAutoTooltip (bool on)
 

Protected Slots

void _valueChanged () override
 
- Protected Slots inherited from VNumericLineEdit
virtual void _valueChanged ()=0
 
virtual void _showMenu (const QPoint &pos)
 Show a custom context menu.
 
- Protected Slots inherited from VStringLineEdit
virtual void _valueChanged ()
 

Protected Member Functions

std::string _formatValue (double value)
 
- Protected Member Functions inherited from VNumericLineEdit
 VNumericLineEdit (int decimals=5)
 
- Protected Member Functions inherited from VStringLineEdit
std::string _getText () const
 
- Protected Member Functions inherited from VHBoxWidget
 VHBoxWidget ()
 

Protected Attributes

double _value
 
double _min = -std::numeric_limits<double>::max()
 
double _max = std::numeric_limits<double>::max()
 
- Protected Attributes inherited from VNumericLineEdit
VNumericFormatMenu_menu
 
bool _sciNotation
 
int _decimalDigits
 

Detailed Description

A wrapper for a QLineEdit that handles user input of type double, and provides Vapor's standard setters, getters, and signals.

Definition at line 18 of file VDoubleLineEdit.h.

Constructor & Destructor Documentation

◆ VDoubleLineEdit()

VDoubleLineEdit::VDoubleLineEdit ( double  value = 0.0)

Member Function Documentation

◆ _formatValue()

std::string VDoubleLineEdit::_formatValue ( double  value)
protected

◆ _valueChanged

void VDoubleLineEdit::_valueChanged ( )
overrideprotectedslot

◆ GetValueDouble()

double VDoubleLineEdit::GetValueDouble ( ) const

Get the current double value in the line edit.

◆ SetRange()

void VDoubleLineEdit::SetRange ( double  min,
double  max 
)

◆ SetValueDouble()

void VDoubleLineEdit::SetValueDouble ( double  value)

Set the current double value in the line edit.

◆ ValueChanged

void VDoubleLineEdit::ValueChanged ( double  value)
signal

Member Data Documentation

◆ _max

double VDoubleLineEdit::_max = std::numeric_limits<double>::max()
protected

Definition at line 37 of file VDoubleLineEdit.h.

◆ _min

double VDoubleLineEdit::_min = -std::numeric_limits<double>::max()
protected

Definition at line 36 of file VDoubleLineEdit.h.

◆ _value

double VDoubleLineEdit::_value
protected

Definition at line 35 of file VDoubleLineEdit.h.


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