33 #ifndef _pqFileDialog_h 34 #define _pqFileDialog_h 36 #include "pqCoreModule.h" 38 #include <QStringList> 88 typedef QDialog Superclass;
102 enum FileMode { AnyFile, ExistingFile, ExistingFiles, Directory };
110 const QString& Title = QString(),
111 const QString& Directory = QString(),
112 const QString& Filter = QString());
119 void setRecentlyUsedExtension(
const QString& fileExtension);
122 QStringList getSelectedFiles(
int index=0);
125 QList<QStringList> getAllSelectedFiles();
131 bool selectFile(
const QString&);
134 void setShowHidden(
const bool& hidden);
137 bool getShowHidden();
141 static QString getSaveFileName(
142 pqServer* server, QWidget* parentWdg,
143 const QString& title = QString(),
144 const QString& directory = QString(),
145 const QString& filter = QString());
148 void filesSelected(
const QList<QStringList> &);
155 void filesSelected(
const QStringList &);
160 void fileAccepted(
const QString&);
163 bool acceptExistingFiles();
164 bool acceptDefault(
const bool &checkForGrouping);
166 QStringList buildFileGroup(
const QString &filename);
168 virtual void showEvent( QShowEvent *showEvent );
172 void onNavigate(
const QString&);
174 void onNavigateBack();
175 void onNavigateForward();
176 void onNavigateDown(
const QModelIndex&);
177 void onFilterChange(
const QString&);
179 void onClickedRecent(
const QModelIndex&);
180 void onClickedFavorite(
const QModelIndex&);
181 void onClickedFile(
const QModelIndex&);
183 void onActivateFavorite(
const QModelIndex&);
184 void onActivateRecent(
const QModelIndex&);
185 void onDoubleClickFile(
const QModelIndex& );
187 void onTextEdited(
const QString&);
189 void onShowHiddenFiles(
const bool &hide );
192 void fileSelectionChanged();
195 void onContextMenuRequested(
const QPoint &pos);
198 void onCreateNewFolder();
201 void addToFilesSelected(
const QStringList&);
204 void emitFilesSelectionDone();
210 class pqImplementation;
211 pqImplementation*
const Implementation;
214 bool acceptInternal(
const QStringList& selected_files,
const bool &doubleclicked);
215 QString fixFileExtension(
const QString& filename,
const QString& filter);
224 #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...