|
wiRedPanda
Logic Circuit Simulator
|
#include <FileDialogProvider.h>
Public Member Functions | |
| virtual QString | getOpenFileName (QWidget *parent, const QString &caption, const QString &dir, const QString &filter)=0 |
| virtual FileDialogResult | getSaveFileName (QWidget *parent, const QString &caption, const QString &dir, const QString &filter)=0 |
| virtual | ~FileDialogProvider ()=default |
Abstract interface for file dialog operations.
Production code uses the global accessor FileDialogs::provider() which returns a RealFileDialogProvider by default. Tests swap in a stub via FileDialogs::setProvider().
Definition at line 25 of file FileDialogProvider.h.
|
virtualdefault |
|
pure virtual |
Shows an "Open File" dialog and returns the selected file path. Returns an empty string if the user cancels.
Implemented in RealFileDialogProvider.
Referenced by ICController::addEmbeddedICFromFile(), ICController::addICFromFile(), ElementEditor::audioBox(), WorkspaceManager::openFile(), and ElementEditor::updateElementAppearance().
|
pure virtual |
Shows a "Save File" dialog and returns the selected path and filter. Returns an empty fileName if the user cancels.
Implemented in RealFileDialogProvider.
Referenced by ExportController::exportArduinoDialog(), ExportController::exportImageDialog(), ExportController::exportPdfDialog(), ExportController::exportSystemVerilogDialog(), ICController::extractICByBlobName(), ICController::extractSelectedIC(), WorkspaceManager::save(), WorkspaceManager::saveFile(), and WorkspaceManager::saveFileAs().