Data_deduplication_service
Service that will use hashes to deduplicate files
windows::FileLineEdit Class Reference

Class for file name selection. More...

#include <FileLineEdit.h>

+ Inheritance diagram for windows::FileLineEdit:
+ Collaboration diagram for windows::FileLineEdit:

Signals

void contentChanged (const QString &str)
 

Public Member Functions

 FileLineEdit (QWidget *parent=nullptr, const QString &dirPath=QDir::currentPath(), bool saveFile=false, bool readOnly=true)
 
QString getContent ()
 
bool isEmpty ()
 
 ~FileLineEdit () override=default
 
void setSaveFile (bool saveFile)
 
bool isSaveFile () const
 
EntryType getType ()
 

Protected Slots

virtual void onBrowse ()
 

Protected Member Functions

void setUpUi ()
 

Protected Attributes

QString dirPath
 
QHBoxLayout * mainLayout
 
QLineEdit * lineEdit
 
QPushButton * pushButton
 
bool saveFile
 
EntryType type
 

Detailed Description

Class for file name selection.

Constructor & Destructor Documentation

◆ FileLineEdit()

windows::FileLineEdit::FileLineEdit ( QWidget *  parent = nullptr,
const QString &  dirPath = QDir::currentPath(),
bool  saveFile = false,
bool  readOnly = true 
)
explicit
+ Here is the call graph for this function:

◆ ~FileLineEdit()

windows::FileLineEdit::~FileLineEdit ( )
overridedefault

Member Function Documentation

◆ contentChanged

void windows::FileLineEdit::contentChanged ( const QString &  str)
signal
+ Here is the caller graph for this function:

◆ getContent()

QString windows::FileLineEdit::getContent ( )
inline

◆ getType()

EntryType windows::FileLineEdit::getType ( )
inline

◆ isEmpty()

bool windows::FileLineEdit::isEmpty ( )
inline

◆ isSaveFile()

bool windows::FileLineEdit::isSaveFile ( ) const

◆ onBrowse

void windows::FileLineEdit::onBrowse ( )
protectedvirtualslot
+ Here is the caller graph for this function:

◆ setSaveFile()

void windows::FileLineEdit::setSaveFile ( bool  saveFile)

◆ setUpUi()

void windows::FileLineEdit::setUpUi ( )
protected
+ Here is the caller graph for this function:

Member Data Documentation

◆ dirPath

QString windows::FileLineEdit::dirPath
protected

◆ lineEdit

QLineEdit* windows::FileLineEdit::lineEdit
protected

◆ mainLayout

QHBoxLayout* windows::FileLineEdit::mainLayout
protected

◆ pushButton

QPushButton* windows::FileLineEdit::pushButton
protected

◆ saveFile

bool windows::FileLineEdit::saveFile
protected

◆ type

EntryType windows::FileLineEdit::type
protected

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