KSeExpr 6.0.0.0
|
#include <ExprFileDialog.h>
Public Member Functions | |
ExprFileDialog (QWidget *parent=nullptr) | |
void | addLookInEntries (const QStringList &paths) |
void | saveLookInEntries () |
void | restoreLookInEntries () |
QString | getOpenFileName (const QString &caption=QString(), const QString &startWith=QString(), const QString &filter=QString()) |
QString | getExistingDirectory (const QString &caption=QString(), const QString &startWith=QString(), const QString &filter=QString()) |
QString | getExistingOrNewDirectory (const QString &caption=QString(), const QString &startWith=QString(), const QString &filter=QString()) |
QStringList | getOpenFileNames (const QString &caption=QString(), const QString &startWith=QString(), const QString &filter=QString()) |
QString | getSaveFileName (const QString &caption=QString(), const QString &startWith=QString(), const QString &filter=QString()) |
void | setPreview () |
void | resetPreview () |
void | addCheckBox (const QString &s) |
void | addFavoritesButton (const QString &dirname, const QString &linkname, const QString &linkdir) |
bool | checkBoxStatus () |
void | showCheckBox () |
void | hideCheckBox () |
void | addComboBox (const QString &s, const QStringList &sl) |
void | showComboBox () |
void | hideComboBox () |
QComboBox * | getComboBox () |
void | setButtonName (const QString &str) |
void | addSidebarShortcut (const QString &s) |
Private Slots | |
void | handleOk () |
void | editReturnPress () |
void | gotoFavorites () |
void | selChanged (const QString &path) |
void | resetDir () |
Private Attributes | |
QString | _workingDirectory |
QString | _favDir |
QString | _temppath |
QStringList | _lookInList |
QLineEdit * | _nameEdit {nullptr} |
QPushButton * | _okButton {nullptr} |
std::atomic< bool > | _createDir {} |
ExprPreviewWidget * | _pw {nullptr} |
QCheckBox * | _cb {nullptr} |
QLabel * | _combolabel {nullptr} |
QComboBox * | _combo {nullptr} |
Definition at line 34 of file ExprFileDialog.h.
ExprFileDialog::ExprFileDialog | ( | QWidget * | parent = nullptr | ) |
Definition at line 66 of file ExprFileDialog.cpp.
References _favDir, _nameEdit, _okButton, _temppath, editReturnPress(), handleOk(), and selChanged().
void ExprFileDialog::addCheckBox | ( | const QString & | s | ) |
Definition at line 369 of file ExprFileDialog.cpp.
void ExprFileDialog::addComboBox | ( | const QString & | s, |
const QStringList & | sl | ||
) |
Definition at line 400 of file ExprFileDialog.cpp.
References _combo, and _combolabel.
void ExprFileDialog::addFavoritesButton | ( | const QString & | dirname, |
const QString & | linkname, | ||
const QString & | linkdir | ||
) |
Definition at line 160 of file ExprFileDialog.cpp.
References _favDir, folder_fav, and gotoFavorites().
void ExprFileDialog::addLookInEntries | ( | const QStringList & | paths | ) |
Definition at line 202 of file ExprFileDialog.cpp.
void ExprFileDialog::addSidebarShortcut | ( | const QString & | s | ) |
Definition at line 447 of file ExprFileDialog.cpp.
bool ExprFileDialog::checkBoxStatus | ( | ) |
Definition at line 381 of file ExprFileDialog.cpp.
References _cb.
|
privateslot |
Definition at line 125 of file ExprFileDialog.cpp.
References _nameEdit, and handleOk().
Referenced by ExprFileDialog().
|
inline |
Definition at line 57 of file ExprFileDialog.h.
References _combo.
QString ExprFileDialog::getExistingDirectory | ( | const QString & | caption = QString() , |
const QString & | startWith = QString() , |
||
const QString & | filter = QString() |
||
) |
Definition at line 293 of file ExprFileDialog.cpp.
References _workingDirectory, makeFiltersList(), and resetPreview().
Referenced by StringControl::directoryBrowse(), and getExistingOrNewDirectory().
QString ExprFileDialog::getExistingOrNewDirectory | ( | const QString & | caption = QString() , |
const QString & | startWith = QString() , |
||
const QString & | filter = QString() |
||
) |
Definition at line 317 of file ExprFileDialog.cpp.
References _createDir, getExistingDirectory(), and resetPreview().
QString ExprFileDialog::getOpenFileName | ( | const QString & | caption = QString() , |
const QString & | startWith = QString() , |
||
const QString & | filter = QString() |
||
) |
Definition at line 242 of file ExprFileDialog.cpp.
References _workingDirectory, makeFiltersList(), and resetPreview().
Referenced by StringControl::fileBrowse().
QStringList ExprFileDialog::getOpenFileNames | ( | const QString & | caption = QString() , |
const QString & | startWith = QString() , |
||
const QString & | filter = QString() |
||
) |
Definition at line 267 of file ExprFileDialog.cpp.
References _workingDirectory, makeFiltersList(), and resetPreview().
QString ExprFileDialog::getSaveFileName | ( | const QString & | caption = QString() , |
const QString & | startWith = QString() , |
||
const QString & | filter = QString() |
||
) |
Definition at line 326 of file ExprFileDialog.cpp.
References _workingDirectory, makeFiltersList(), and resetPreview().
|
privateslot |
Definition at line 196 of file ExprFileDialog.cpp.
References _favDir.
Referenced by addFavoritesButton().
|
privateslot |
Definition at line 100 of file ExprFileDialog.cpp.
References _createDir, _nameEdit, _okButton, _temppath, and resetDir().
Referenced by editReturnPress(), and ExprFileDialog().
void ExprFileDialog::hideCheckBox | ( | ) |
Definition at line 394 of file ExprFileDialog.cpp.
References _cb.
void ExprFileDialog::hideComboBox | ( | ) |
Definition at line 427 of file ExprFileDialog.cpp.
References _combo, and _combolabel.
|
inlineprivateslot |
void ExprFileDialog::resetPreview | ( | ) |
Definition at line 363 of file ExprFileDialog.cpp.
References _pw, and ExprPreviewWidget::reset().
Referenced by getExistingDirectory(), getExistingOrNewDirectory(), getOpenFileName(), getOpenFileNames(), and getSaveFileName().
void ExprFileDialog::restoreLookInEntries | ( | ) |
Definition at line 220 of file ExprFileDialog.cpp.
References _lookInList.
void ExprFileDialog::saveLookInEntries | ( | ) |
Definition at line 215 of file ExprFileDialog.cpp.
References _lookInList.
|
privateslot |
Definition at line 435 of file ExprFileDialog.cpp.
References _pw, and ExprPreviewWidget::makePreview().
Referenced by ExprFileDialog().
void ExprFileDialog::setButtonName | ( | const QString & | str | ) |
Definition at line 441 of file ExprFileDialog.cpp.
References _okButton.
void ExprFileDialog::setPreview | ( | ) |
Definition at line 351 of file ExprFileDialog.cpp.
References _pw.
Referenced by StringControl::directoryBrowse(), and StringControl::fileBrowse().
void ExprFileDialog::showCheckBox | ( | ) |
Definition at line 388 of file ExprFileDialog.cpp.
References _cb.
void ExprFileDialog::showComboBox | ( | ) |
Definition at line 419 of file ExprFileDialog.cpp.
References _combo, and _combolabel.
|
private |
Definition at line 84 of file ExprFileDialog.h.
Referenced by addCheckBox(), checkBoxStatus(), hideCheckBox(), and showCheckBox().
|
private |
Definition at line 86 of file ExprFileDialog.h.
Referenced by addCheckBox(), addComboBox(), getComboBox(), hideComboBox(), and showComboBox().
|
private |
Definition at line 85 of file ExprFileDialog.h.
Referenced by addComboBox(), hideComboBox(), and showComboBox().
|
private |
Definition at line 82 of file ExprFileDialog.h.
Referenced by getExistingOrNewDirectory(), and handleOk().
|
private |
Definition at line 77 of file ExprFileDialog.h.
Referenced by addFavoritesButton(), ExprFileDialog(), and gotoFavorites().
|
private |
Definition at line 79 of file ExprFileDialog.h.
Referenced by restoreLookInEntries(), and saveLookInEntries().
|
private |
Definition at line 80 of file ExprFileDialog.h.
Referenced by editReturnPress(), ExprFileDialog(), and handleOk().
|
private |
Definition at line 81 of file ExprFileDialog.h.
Referenced by ExprFileDialog(), handleOk(), and setButtonName().
|
private |
Definition at line 83 of file ExprFileDialog.h.
Referenced by resetPreview(), selChanged(), and setPreview().
|
private |
Definition at line 78 of file ExprFileDialog.h.
Referenced by ExprFileDialog(), handleOk(), and resetDir().
|
private |
Definition at line 77 of file ExprFileDialog.h.
Referenced by getExistingDirectory(), getOpenFileName(), getOpenFileNames(), and getSaveFileName().