5 #ifndef pqFileDialogModel_h 6 #define pqFileDialogModel_h 13 #include <QAbstractItemModel> 14 #include <QFileIconProvider> 31 typedef QAbstractItemModel base;
46 void setFileItemFlags(
const Qt::ItemFlags& flags);
51 void setDirectoryItemFlags(
const Qt::ItemFlags& flags);
60 void setShowDetailedInfo(
bool show);
61 bool isShowingDetailedInfo();
69 void setGroupFiles(
bool group);
70 bool isGroupingFiles();
77 void setCurrentPath(
const QString& path,
bool groupFiles);
82 void setCurrentPath(
const QString& path);
87 QString getCurrentPath();
92 bool isHidden(
const QModelIndex&);
97 bool isDir(
const QModelIndex&)
const;
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 bool dirIsEmpty(
const QString& dir, QString& fullpath);
130 QChar separator()
const;
135 QString absoluteFilePath(
const QString&);
140 int fileType(
const QString&);
147 QStringList getFilePaths(
const QModelIndex&);
157 bool setData(
const QModelIndex& idx,
const QVariant&
value,
int role)
override;
164 int columnCount(
const QModelIndex&)
const override;
168 QVariant
data(
const QModelIndex& idx,
int role)
const override;
172 QModelIndex
index(
int row,
int column,
const QModelIndex&)
const override;
176 QModelIndex parent(
const QModelIndex&)
const override;
180 int rowCount(
const QModelIndex&)
const override;
184 bool hasChildren(
const QModelIndex& p)
const override;
188 QVariant headerData(
int section, Qt::Orientation,
int role)
const override;
192 Qt::ItemFlags flags(
const QModelIndex& idx)
const override;
195 class pqImplementation;
196 pqImplementation*
const Implementation;
220 QIcon icon(
const QFileInfo& info)
const override;
221 QIcon icon(QFileIconProvider::IconType ico)
const override;
230 #endif // !pqFileDialogModel_h
#define PARAVIEW_DEPRECATED_IN_5_12_0(reason)
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...