Developer Documentation
VSI::FilenameWidget Class Reference

#include <Plugin-VSI/types/filenameWidget.hh>

Inheritance diagram for VSI::FilenameWidget:
VSI::TypeWidget

Public Member Functions

 FilenameWidget (QMap< QString, QString > &_hints, const QString &_typeName, QWidget *_parent=NULL)
 Constructor. More...
 
 ~FilenameWidget ()
 Destructor. More...
 
QString toValue () override
 Convert current value to string. More...
 
void fromValue (QString _from) override
 Read value from string. More...
 
void toDefault () override
 Reset to default. More...
 
- Public Member Functions inherited from VSI::TypeWidget
 TypeWidget (QMap< QString, QString > &_hints, const QString &_typeName, QWidget *_parent=NULL)
 Constructor. More...
 
virtual ~TypeWidget ()
 Destructor. More...
 
virtual QString toValue ()=0
 Return the type configuration result to a string. More...
 
virtual void fromValue (QString _from)=0
 Set configuration to the value of the given string. More...
 
virtual void toDefault ()=0
 reset the widget to default More...
 

Private Slots

void showDialog ()
 

Private Attributes

QString default_
 
QLineEdit * line_
 
QPushButton * selectButton_
 
QFileDialog::AcceptMode mode_
 
QString filter_
 
QString defaultSuffix_
 
bool dirOnly_
 

Detailed Description

Widget to configure filename inputs

Definition at line 64 of file filenameWidget.hh.

Constructor & Destructor Documentation

◆ FilenameWidget()

VSI::FilenameWidget::FilenameWidget ( QMap< QString, QString > &  _hints,
const QString &  _typeName,
QWidget *  _parent = NULL 
)

Constructor.

Definition at line 61 of file filenameWidget.cc.

◆ ~FilenameWidget()

VSI::FilenameWidget::~FilenameWidget ( )

Destructor.

Definition at line 106 of file filenameWidget.cc.

Member Function Documentation

◆ fromValue()

void VSI::FilenameWidget::fromValue ( QString  _from)
overridevirtual

Read value from string.

Implements VSI::TypeWidget.

Definition at line 121 of file filenameWidget.cc.

◆ showDialog

void VSI::FilenameWidget::showDialog ( )
privateslot

Definition at line 146 of file filenameWidget.cc.

◆ toDefault()

void VSI::FilenameWidget::toDefault ( )
overridevirtual

Reset to default.

Implements VSI::TypeWidget.

Definition at line 138 of file filenameWidget.cc.

◆ toValue()

QString VSI::FilenameWidget::toValue ( )
overridevirtual

Convert current value to string.

Implements VSI::TypeWidget.

Definition at line 113 of file filenameWidget.cc.

Member Data Documentation

◆ default_

QString VSI::FilenameWidget::default_
private

Definition at line 90 of file filenameWidget.hh.

◆ defaultSuffix_

QString VSI::FilenameWidget::defaultSuffix_
private

Definition at line 97 of file filenameWidget.hh.

◆ dirOnly_

bool VSI::FilenameWidget::dirOnly_
private

Definition at line 98 of file filenameWidget.hh.

◆ filter_

QString VSI::FilenameWidget::filter_
private

Definition at line 96 of file filenameWidget.hh.

◆ line_

QLineEdit* VSI::FilenameWidget::line_
private

Definition at line 92 of file filenameWidget.hh.

◆ mode_

QFileDialog::AcceptMode VSI::FilenameWidget::mode_
private

Definition at line 95 of file filenameWidget.hh.

◆ selectButton_

QPushButton* VSI::FilenameWidget::selectButton_
private

Definition at line 93 of file filenameWidget.hh.


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