LibrePCB Developers Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
FileDialog Class Referencefinal

Wrapper around QFileDialog to slightly change its behaviour. More...

#include <filedialog.h>

+ Collaboration diagram for FileDialog:

Public Member Functions

 FileDialog ()=delete
 
 FileDialog (const FileDialog &other)=delete
 
 ~FileDialog ()=delete
 

Static Public Member Functions

static QString getOpenFileName (QWidget *parent=0, const QString &caption=QString(), const QString &dir=QString(), const QString &filter=QString(), QString *selectedFilter=0, QFileDialog::Options options=0)
 
static QStringList getOpenFileNames (QWidget *parent=0, const QString &caption=QString(), const QString &dir=QString(), const QString &filter=QString(), QString *selectedFilter=0, QFileDialog::Options options=0)
 
static QString getSaveFileName (QWidget *parent=0, const QString &caption=QString(), const QString &dir=QString(), const QString &filter=QString(), QString *selectedFilter=0, QFileDialog::Options options=0)
 
static QString getExistingDirectory (QWidget *parent=0, const QString &caption=QString(), const QString &dir=QString(), QFileDialog::Options options=QFileDialog::ShowDirsOnly)
 

Static Private Member Functions

static void patchOptions (QFileDialog::Options &options) noexcept
 

Detailed Description

Wrapper around QFileDialog to slightly change its behaviour.

Using these methods ensures that no native file dialogs are used if the environment variable LIBREPCB_DISABLE_NATIVE_DIALOGS is set to "1". This is needed for automatic functional testing, as native dialogs are hard to test.

Constructor & Destructor Documentation

FileDialog ( )
delete
FileDialog ( const FileDialog other)
delete
~FileDialog ( )
delete

Member Function Documentation

QString getOpenFileName ( QWidget *  parent = 0,
const QString &  caption = QString(),
const QString &  dir = QString(),
const QString &  filter = QString(),
QString *  selectedFilter = 0,
QFileDialog::Options  options = 0 
)
static

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

QStringList getOpenFileNames ( QWidget *  parent = 0,
const QString &  caption = QString(),
const QString &  dir = QString(),
const QString &  filter = QString(),
QString *  selectedFilter = 0,
QFileDialog::Options  options = 0 
)
static

+ Here is the call graph for this function:

QString getSaveFileName ( QWidget *  parent = 0,
const QString &  caption = QString(),
const QString &  dir = QString(),
const QString &  filter = QString(),
QString *  selectedFilter = 0,
QFileDialog::Options  options = 0 
)
static

+ Here is the call graph for this function:

QString getExistingDirectory ( QWidget *  parent = 0,
const QString &  caption = QString(),
const QString &  dir = QString(),
QFileDialog::Options  options = QFileDialog::ShowDirsOnly 
)
static

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void patchOptions ( QFileDialog::Options &  options)
staticprivatenoexcept

+ Here is the caller graph for this function:


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