VAPOR3 3.9.4
Signals | Public Member Functions | Protected Slots | Protected Member Functions | Protected Attributes | List of all members
VNumericLineEdit Class Referenceabstract

#include <VNumericLineEdit.h>

Inheritance diagram for VNumericLineEdit:
VStringLineEdit VHBoxWidget VDoubleLineEdit VIntLineEdit

Signals

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

Public Member Functions

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

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

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

Protected Attributes

VNumericFormatMenu_menu
 
bool _sciNotation
 
int _decimalDigits
 

Detailed Description

Definition at line 21 of file VNumericLineEdit.h.

Constructor & Destructor Documentation

◆ VNumericLineEdit()

VNumericLineEdit::VNumericLineEdit ( int  decimals = 5)
explicitprotected

Member Function Documentation

◆ _showMenu

virtual void VNumericLineEdit::_showMenu ( const QPoint &  pos)
protectedvirtualslot

Show a custom context menu.

◆ _valueChanged

virtual void VNumericLineEdit::_valueChanged ( )
protectedpure virtualslot

Called whenever the line edit's value is changed. Must be reimplemented by derived classes to handle correct formatting

Implemented in VIntLineEdit.

◆ DecimalDigitsChanged

void VNumericLineEdit::DecimalDigitsChanged ( int  decimalDigits)
signal

◆ GetNumDigits()

int VNumericLineEdit::GetNumDigits ( ) const

If the line edit is numeric, get the number of digits of the number being displayed.

◆ GetSciNotation()

bool VNumericLineEdit::GetSciNotation ( ) const

If the line edit is numeric, get whether the display is in scientific notation.

◆ SciNotationChanged

void VNumericLineEdit::SciNotationChanged ( bool  sciNotation)
signal

◆ SetNumDigits()

void VNumericLineEdit::SetNumDigits ( int  digits)

If the line edit is numeric, set the number of digits of the number being displayed.

◆ SetSciNotation()

void VNumericLineEdit::SetSciNotation ( bool  sciNotation)

If the line edit is numeric, set whether the display is in scientific notation.

Member Data Documentation

◆ _decimalDigits

int VNumericLineEdit::_decimalDigits
protected

Definition at line 53 of file VNumericLineEdit.h.

◆ _menu

VNumericFormatMenu* VNumericLineEdit::_menu
protected

Definition at line 50 of file VNumericLineEdit.h.

◆ _sciNotation

bool VNumericLineEdit::_sciNotation
protected

Definition at line 52 of file VNumericLineEdit.h.


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