33 #ifndef _pqFileDialog_h 34 #define _pqFileDialog_h 36 #include "pqCoreModule.h" 38 #include <QStringList> 87 typedef QDialog Superclass;
118 const QString& Directory = QString(),
const QString& Filter = QString());
129 void setRecentlyUsedExtension(
const QString& fileExtension);
134 QStringList getSelectedFiles(
int index = 0);
139 QList<QStringList> getAllSelectedFiles();
149 bool selectFile(
const QString&);
154 void setShowHidden(
const bool& hidden);
159 bool getShowHidden();
165 static QString getSaveFileName(
pqServer* server, QWidget* parentWdg,
166 const QString& title = QString(),
const QString& directory = QString(),
167 const QString& filter = QString());
172 void filesSelected(
const QList<QStringList>&);
181 void filesSelected(
const QStringList&);
188 void fileAccepted(
const QString&);
191 bool acceptExistingFiles();
192 bool acceptDefault(
const bool& checkForGrouping);
194 QStringList buildFileGroup(
const QString& filename);
196 virtual void showEvent(QShowEvent* showEvent);
200 void onNavigate(
const QString&);
202 void onNavigateBack();
203 void onNavigateForward();
204 void onNavigateDown(
const QModelIndex&);
205 void onFilterChange(
const QString&);
207 void onClickedRecent(
const QModelIndex&);
208 void onClickedFavorite(
const QModelIndex&);
209 void onClickedFile(
const QModelIndex&);
211 void onActivateFavorite(
const QModelIndex&);
212 void onActivateRecent(
const QModelIndex&);
213 void onDoubleClickFile(
const QModelIndex&);
215 void onTextEdited(
const QString&);
217 void onShowHiddenFiles(
const bool& hide);
220 void fileSelectionChanged();
223 void onContextMenuRequested(
const QPoint& pos);
226 void onCreateNewFolder();
231 void addToFilesSelected(
const QStringList&);
236 void emitFilesSelectionDone();
242 class pqImplementation;
243 pqImplementation*
const Implementation;
246 bool acceptInternal(
const QStringList& selected_files,
const bool& doubleclicked);
247 QString fixFileExtension(
const QString& filename,
const QString& filter);
260 #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...