5 #ifndef pqFileDialogModel_h 6 #define pqFileDialogModel_h 12 #include <QAbstractItemModel> 13 #include <QFileIconProvider> 30 typedef QAbstractItemModel base;
45 void setFileItemFlags(
const Qt::ItemFlags& flags);
50 void setDirectoryItemFlags(
const Qt::ItemFlags& flags);
59 void setShowDetailedInfo(
bool show);
60 bool isShowingDetailedInfo();
68 void setGroupFiles(
bool group);
69 bool isGroupingFiles();
75 void setCurrentPath(
const QString& path);
80 QString getCurrentPath();
85 bool isHidden(
const QModelIndex&);
90 bool isDir(
const QModelIndex&)
const;
93 bool mkdir(
const QString& dirname);
96 bool rmdir(
const QString& dirname);
99 bool rename(
const QString& oldname,
const QString& newname);
105 bool fileExists(
const QString& file, QString& fullpath);
111 bool dirExists(
const QString&
dir, QString& fullpath);
117 bool dirIsEmpty(
const QString& dir, QString& fullpath);
123 QChar separator()
const;
128 QString absoluteFilePath(
const QString&);
133 int fileType(
const QString&);
140 QStringList getFilePaths(
const QModelIndex&);
150 bool setData(
const QModelIndex& idx,
const QVariant&
value,
int role)
override;
157 int columnCount(
const QModelIndex&)
const override;
161 QVariant
data(
const QModelIndex& idx,
int role)
const override;
165 QModelIndex
index(
int row,
int column,
const QModelIndex&)
const override;
169 QModelIndex parent(
const QModelIndex&)
const override;
173 int rowCount(
const QModelIndex&)
const override;
177 bool hasChildren(
const QModelIndex& p)
const override;
181 QVariant headerData(
int section, Qt::Orientation,
int role)
const override;
185 Qt::ItemFlags flags(
const QModelIndex& idx)
const override;
188 class pqImplementation;
189 pqImplementation*
const Implementation;
213 QIcon icon(
const QFileInfo& info)
const override;
214 QIcon icon(QFileIconProvider::IconType ico)
const override;
223 #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...