OpenTwin 0.1
OpenTwin
 
Loading...
Searching...
No Matches
ot::FilePathEdit Class Reference

#include "FilePathEdit.h"

Inheritance diagram for ot::FilePathEdit:
ot::QWidgetInterface

Public Types

enum  FileMode { OpenFileMode , SaveFileMode }
 

Public Slots

void slotBrowse (void)
 

Signals

void fileChanged (void)
 

Public Member Functions

 FilePathEdit (FileMode _mode, QWidget *_parent=(QWidget *) nullptr)
 
 FilePathEdit (const QString &_filePath, FileMode _mode, QWidget *_parent=(QWidget *) nullptr)
 
virtual ~FilePathEdit ()
 
virtual QWidget * getQWidget (void) override
 Returns a pointer to the root widget of this object.
 
virtual const QWidget * getQWidget (void) const override
 
void setFilePath (const QString &_file)
 
const QString & getFilePath (void) const
 
void setBrowseTitle (const QString &_title)
 
const QString & getBrowseTitle (void) const
 
void setFileFilter (const QString &_filter)
 
const QString & getFileFilter (void) const
 
LineEditgetLineEdit (void)
 
PushButtongetPushButton (void)
 
- Public Member Functions inherited from ot::QWidgetInterface
 QWidgetInterface ()
 
virtual ~QWidgetInterface ()
 
void setOTWidgetFlags (const WidgetFlags &_flags)
 
const WidgetFlagsotWidgetFlags (void) const
 

Additional Inherited Members

- Protected Member Functions inherited from ot::QWidgetInterface
virtual void otWidgetFlagsChanged (const WidgetFlags &_flags)
 

Member Enumeration Documentation

◆ FileMode

Enumerator
OpenFileMode 
SaveFileMode 

Constructor & Destructor Documentation

◆ FilePathEdit() [1/2]

ot::FilePathEdit::FilePathEdit ( FileMode _mode,
QWidget * _parent = (QWidget*)nullptr )

◆ FilePathEdit() [2/2]

ot::FilePathEdit::FilePathEdit ( const QString & _filePath,
FileMode _mode,
QWidget * _parent = (QWidget*)nullptr )

◆ ~FilePathEdit()

ot::FilePathEdit::~FilePathEdit ( )
virtual

Member Function Documentation

◆ fileChanged

void ot::FilePathEdit::fileChanged ( void )
signal

◆ getBrowseTitle()

const QString & ot::FilePathEdit::getBrowseTitle ( void ) const
inline

◆ getFileFilter()

const QString & ot::FilePathEdit::getFileFilter ( void ) const
inline

◆ getFilePath()

const QString & ot::FilePathEdit::getFilePath ( void ) const
inline

◆ getLineEdit()

LineEdit * ot::FilePathEdit::getLineEdit ( void )
inline

◆ getPushButton()

PushButton * ot::FilePathEdit::getPushButton ( void )
inline

◆ getQWidget() [1/2]

virtual const QWidget * ot::FilePathEdit::getQWidget ( void ) const
inlineoverridevirtual

Implements ot::QWidgetInterface.

◆ getQWidget() [2/2]

virtual QWidget * ot::FilePathEdit::getQWidget ( void )
inlineoverridevirtual

Returns a pointer to the root widget of this object.

Implements ot::QWidgetInterface.

◆ setBrowseTitle()

void ot::FilePathEdit::setBrowseTitle ( const QString & _title)
inline

◆ setFileFilter()

void ot::FilePathEdit::setFileFilter ( const QString & _filter)
inline

◆ setFilePath()

void ot::FilePathEdit::setFilePath ( const QString & _file)

◆ slotBrowse

void ot::FilePathEdit::slotBrowse ( void )
slot

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