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

#include <VFileSelector.h>

Inheritance diagram for VFileSelector:
VHBoxWidget VDirSelector VFileReader VFileWriter

Public Slots

void OpenFileDialog ()
 
void SetPathFromLineEdit (const std::string &value)
 

Signals

void ValueChanged (const std::string &path)
 

Public Member Functions

std::string GetValue () const
 
bool SetValue (const std::string &file)
 
void HideLineEdit (bool hide)
 

Protected Member Functions

 VFileSelector (const std::string &buttonText, const std::string &defaultPath, const std::string &filter)
 
- Protected Member Functions inherited from VHBoxWidget
 VHBoxWidget ()
 

Protected Attributes

VLineEdit_Deprecated_lineEdit
 
VPushButton_pushButton
 
std::string _filePath
 
std::string _filter
 

Detailed Description

class VFileSelector

An abstract class for reading and writing files, or selecting directory paths. This class wraps a VLineEdit_Deprecated to display the current selection, and a VPushButton to open file dialogs. It also provides vaporgui's standard setter/getter functions and signals.

Definition at line 18 of file VFileSelector.h.

Constructor & Destructor Documentation

◆ VFileSelector()

VFileSelector::VFileSelector ( const std::string &  buttonText,
const std::string &  defaultPath,
const std::string &  filter 
)
protected

Member Function Documentation

◆ GetValue()

std::string VFileSelector::GetValue ( ) const

◆ HideLineEdit()

void VFileSelector::HideLineEdit ( bool  hide)

◆ OpenFileDialog

void VFileSelector::OpenFileDialog ( )
slot

◆ SetPathFromLineEdit

void VFileSelector::SetPathFromLineEdit ( const std::string &  value)
slot

◆ SetValue()

bool VFileSelector::SetValue ( const std::string &  file)

◆ ValueChanged

void VFileSelector::ValueChanged ( const std::string &  path)
signal

Member Data Documentation

◆ _filePath

std::string VFileSelector::_filePath
protected

Definition at line 33 of file VFileSelector.h.

◆ _filter

std::string VFileSelector::_filter
protected

Definition at line 34 of file VFileSelector.h.

◆ _lineEdit

VLineEdit_Deprecated* VFileSelector::_lineEdit
protected

Definition at line 30 of file VFileSelector.h.

◆ _pushButton

VPushButton* VFileSelector::_pushButton
protected

Definition at line 31 of file VFileSelector.h.


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