33 #ifndef _pqFileDialogModel_h 34 #define _pqFileDialogModel_h 36 #include "pqCoreModule.h" 37 #include <QAbstractItemModel> 38 #include <QFileIconProvider> 41 #include "vtkPVFileInformation.h" 42 class vtkProcessModule;
57 typedef QAbstractItemModel base;
68 void setCurrentPath(
const QString&);
71 QString getCurrentPath();
74 bool isHidden(
const QModelIndex& );
77 bool isDir(
const QModelIndex&);
80 bool mkdir(
const QString& dirname);
83 bool rmdir(
const QString& dirname);
86 bool rename(
const QString& oldname,
const QString& newname);
90 bool fileExists(
const QString& file, QString& fullpath);
94 bool dirExists(
const QString& dir, QString& fullpath);
98 QChar separator()
const;
101 QString absoluteFilePath(
const QString&);
106 QStringList getFilePaths(
const QModelIndex&);
112 bool setData(
const QModelIndex& idx,
const QVariant& value,
int role);
117 int columnCount(
const QModelIndex&)
const;
119 QVariant data(
const QModelIndex & idx,
int role)
const;
121 QModelIndex index(
int row,
int column,
const QModelIndex&)
const;
123 QModelIndex parent(
const QModelIndex&)
const;
125 int rowCount(
const QModelIndex&)
const;
127 bool hasChildren(
const QModelIndex& p)
const;
129 QVariant headerData(
int section, Qt::Orientation,
int role)
const;
131 Qt::ItemFlags flags(
const QModelIndex& idx)
const;
134 class pqImplementation;
135 pqImplementation*
const Implementation;
142 enum IconType { Computer, Drive, Folder, File, FolderLink, FileLink,
146 QIcon icon(vtkPVFileInformation::FileTypes f)
const;
149 QIcon icon(
const QFileInfo& info)
const;
150 QIcon icon(QFileIconProvider::IconType ico)
const;
159 #endif // !_pqFileDialogModel_h
pqFileDialogModel allows remote browsing of a connected ParaView server's filesystem, as well as browsing of the local file system.
pqServer (should be renamed to pqSession) is a pqServerManagerModelItem subclass that represents a vt...