33 #ifndef _pqFileDialog_h 34 #define _pqFileDialog_h 38 #include <QStringList> 87 typedef QDialog Superclass;
115 ExistingFilesAndDirectories
125 const QString& directory = QString(),
const QString& filter = QString());
136 void setRecentlyUsedExtension(
const QString& fileExtension);
141 QStringList getSelectedFiles(
int index = 0);
146 QList<QStringList> getAllSelectedFiles();
151 void accept()
override;
156 bool selectFile(
const QString&);
161 void setShowHidden(
const bool& hidden);
166 bool getShowHidden();
172 static QString getSaveFileName(
pqServer* server, QWidget* parentWdg,
173 const QString& title = QString(),
const QString& directory = QString(),
174 const QString& filter = QString());
179 void filesSelected(
const QList<QStringList>&);
188 void filesSelected(
const QStringList&);
195 void fileAccepted(
const QString&);
198 bool acceptExistingFiles();
199 bool acceptDefault(
const bool& checkForGrouping);
201 QStringList buildFileGroup(
const QString& filename);
203 void showEvent(QShowEvent* showEvent)
override;
207 void onNavigate(
const QString& = QString());
209 void onNavigateBack();
210 void onNavigateForward();
211 void onNavigateDown(
const QModelIndex&);
212 void onFilterChange(
const QString&);
214 void onClickedRecent(
const QModelIndex&);
215 void onClickedFavorite(
const QModelIndex&);
216 void onClickedFile(
const QModelIndex&);
218 void onActivateFavorite(
const QModelIndex&);
219 void onActivateRecent(
const QModelIndex&);
220 void onDoubleClickFile(
const QModelIndex&);
222 void onTextEdited(
const QString&);
224 void onShowHiddenFiles(
const bool& hide);
226 void onShowDetailToggled(
bool show);
229 void fileSelectionChanged();
232 void onContextMenuRequested(
const QPoint& pos);
235 void onCreateNewFolder();
240 void addToFilesSelected(
const QStringList&);
245 void emitFilesSelectionDone();
252 void updateButtonStates();
258 class pqImplementation;
259 pqImplementation*
const Implementation;
262 bool acceptInternal(
const QStringList& selected_files);
263 QString fixFileExtension(
const QString& filename,
const QString& filter);
276 #endif // !_pqFileDialog_h
FileMode
choose mode for selecting file/folder.
Provides a standard file dialog "front-end" for the pqFileDialogModel "back-end", i...
pqServer (should be renamed to pqSession) is a pqServerManagerModelItem subclass that represents a vt...