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

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

#include <VStringLineEdit.h>

Inheritance diagram for VStringLineEdit:
VHBoxWidget VNumericLineEdit VDoubleLineEdit VIntLineEdit

Signals

void ValueChanged (const std::string &value)
 

Public Member Functions

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

Protected Member Functions

std::string _getText () const
 
- Protected Member Functions inherited from VHBoxWidget
 VHBoxWidget ()
 

Detailed Description

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

Definition at line 19 of file VStringLineEdit.h.

Constructor & Destructor Documentation

◆ VStringLineEdit()

VStringLineEdit::VStringLineEdit ( std::string  value = "")

Member Function Documentation

◆ _getText()

std::string VStringLineEdit::_getText ( ) const
protected

◆ _valueChanged

virtual void VStringLineEdit::_valueChanged ( )
protectedvirtualslot

Reimplemented in VIntLineEdit.

◆ Clear()

void VStringLineEdit::Clear ( )
inline

Definition at line 38 of file VStringLineEdit.h.

References SetValueString().

◆ GetValueString()

std::string VStringLineEdit::GetValueString ( ) const

Get the current value in the line edit.

◆ RemoveContextMenu()

void VStringLineEdit::RemoveContextMenu ( )

Remove the current context menu.

◆ SetAutoTooltip()

void VStringLineEdit::SetAutoTooltip ( bool  on)

◆ SetCustomContextMenu()

void VStringLineEdit::SetCustomContextMenu ( )

Create a custom context menu for the QLineEdit.

◆ SetReadOnly()

void VStringLineEdit::SetReadOnly ( bool  b)
inline

Definition at line 37 of file VStringLineEdit.h.

◆ SetValueString()

void VStringLineEdit::SetValueString ( std::string  value)

Set the current string value in the line edit.

Referenced by Clear().

◆ ValueChanged

void VStringLineEdit::ValueChanged ( const std::string &  value)
signal

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