33 #ifndef _pqFileDialogModel_h 34 #define _pqFileDialogModel_h 37 #include <QAbstractItemModel> 38 #include <QFileIconProvider> 56 typedef QAbstractItemModel base;
75 void setShowDetailedInfo(
bool show);
76 bool isShowingDetailedInfo();
82 void setCurrentPath(
const QString&);
87 QString getCurrentPath();
92 bool isHidden(
const QModelIndex&);
97 bool isDir(
const QModelIndex&);
100 bool mkdir(
const QString& dirname);
103 bool rmdir(
const QString& dirname);
106 bool rename(
const QString& oldname,
const QString& newname);
112 bool fileExists(
const QString& file, QString& fullpath);
118 bool dirExists(
const QString&
dir, QString& fullpath);
124 QChar separator()
const;
129 QString absoluteFilePath(
const QString&);
136 QStringList getFilePaths(
const QModelIndex&);
146 bool setData(
const QModelIndex& idx,
const QVariant&
value,
int role)
override;
153 int columnCount(
const QModelIndex&)
const override;
157 QVariant
data(
const QModelIndex& idx,
int role)
const override;
161 QModelIndex
index(
int row,
int column,
const QModelIndex&)
const override;
165 QModelIndex parent(
const QModelIndex&)
const override;
169 int rowCount(
const QModelIndex&)
const override;
173 bool hasChildren(
const QModelIndex& p)
const override;
177 QVariant headerData(
int section, Qt::Orientation,
int role)
const override;
181 Qt::ItemFlags flags(
const QModelIndex& idx)
const override;
184 class pqImplementation;
185 pqImplementation*
const Implementation;
208 QIcon icon(
const QFileInfo& info)
const override;
209 QIcon icon(QFileIconProvider::IconType ico)
const override;
217 #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...