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

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

#include <VIntLineEdit.h>

Inheritance diagram for VIntLineEdit:
VNumericLineEdit VStringLineEdit VHBoxWidget

Signals

void ValueChanged (int 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

 VIntLineEdit (int value=0)
 
void SetValueInt (int value)
 Set the current int value in the line edit.
 
int GetValueInt () const
 Get the current int value in the line iedit.
 
- 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 Member Functions

virtual void _valueChanged ()
 
std::string _formatValue (int value)
 
bool _checkOverflow (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

int _value
 
- Protected Attributes inherited from VNumericLineEdit
VNumericFormatMenu_menu
 
bool _sciNotation
 
int _decimalDigits
 

Additional Inherited Members

- 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 ()
 

Detailed Description

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

Definition at line 18 of file VIntLineEdit.h.

Constructor & Destructor Documentation

◆ VIntLineEdit()

VIntLineEdit::VIntLineEdit ( int  value = 0)

Member Function Documentation

◆ _checkOverflow()

bool VIntLineEdit::_checkOverflow ( double  value)
protected

◆ _formatValue()

std::string VIntLineEdit::_formatValue ( int  value)
protected

◆ _valueChanged()

virtual void VIntLineEdit::_valueChanged ( )
protectedvirtual

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

Implements VNumericLineEdit.

◆ GetValueInt()

int VIntLineEdit::GetValueInt ( ) const

Get the current int value in the line iedit.

◆ SetValueInt()

void VIntLineEdit::SetValueInt ( int  value)

Set the current int value in the line edit.

◆ ValueChanged

void VIntLineEdit::ValueChanged ( int  value)
signal

Member Data Documentation

◆ _value

int VIntLineEdit::_value
protected

Definition at line 36 of file VIntLineEdit.h.


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