33 #ifndef _pqFileDialogModel_h 34 #define _pqFileDialogModel_h 36 #include "pqCoreModule.h" 37 #include <QAbstractItemModel> 38 #include <QFileIconProvider> 56 typedef QAbstractItemModel base;
71 void setCurrentPath(
const QString&);
76 QString getCurrentPath();
81 bool isHidden(
const QModelIndex&);
86 bool isDir(
const QModelIndex&);
89 bool mkdir(
const QString& dirname);
92 bool rmdir(
const QString& dirname);
95 bool rename(
const QString& oldname,
const QString& newname);
101 bool fileExists(
const QString& file, QString& fullpath);
107 bool dirExists(
const QString& dir, QString& fullpath);
113 QChar separator()
const;
118 QString absoluteFilePath(
const QString&);
125 QStringList getFilePaths(
const QModelIndex&);
135 bool setData(
const QModelIndex& idx,
const QVariant& value,
int role);
142 int columnCount(
const QModelIndex&)
const;
146 QVariant data(
const QModelIndex& idx,
int role)
const;
150 QModelIndex index(
int row,
int column,
const QModelIndex&)
const;
154 QModelIndex parent(
const QModelIndex&)
const;
158 int rowCount(
const QModelIndex&)
const;
162 bool hasChildren(
const QModelIndex& p)
const;
166 QVariant headerData(
int section, Qt::Orientation,
int role)
const;
170 Qt::ItemFlags flags(
const QModelIndex& idx)
const;
173 class pqImplementation;
174 pqImplementation*
const Implementation;
197 QIcon icon(
const QFileInfo& info)
const;
198 QIcon icon(QFileIconProvider::IconType ico)
const;
206 #endif // !_pqFileDialogModel_h
pqFileDialogModel allows remote browsing of a connected ParaView server's filesystem, as well as browsing of the local file system.
process initialization and management core for ParaView processes.
pqServer (should be renamed to pqSession) is a pqServerManagerModelItem subclass that represents a vt...