19 #ifndef RQT_MULTIPLOT_FILE_SCHEME_H 20 #define RQT_MULTIPLOT_FILE_SCHEME_H 23 #include <QFileSystemModel> 32 FileScheme(QObject* parent = 0,
const QString& prefix =
"file",
const 33 QString& rootPath =
"/", QDir::Filters filter = QDir::NoFilter);
43 QVariant
getHostData(
const QModelIndex& index,
int role)
const;
45 size_t getNumPaths(
const QModelIndex& hostIndex,
const QModelIndex&
47 QModelIndex
getPathIndex(
const QModelIndex& hostIndex,
size_t row,
48 const QModelIndex& parent = QModelIndex())
const;
49 QVariant
getPathData(
const QModelIndex& index,
int role)
const;
51 QString
getHost(
const QModelIndex& hostIndex)
const;
52 QString
getPath(
const QModelIndex& hostIndex,
const QModelIndex&
55 QString
getFilePath(
const QModelIndex& hostIndex,
const QModelIndex&
57 QString
getFilePath(
const QString& host,
const QString& path)
const;
void setFilter(QDir::Filters filter)
QVariant getPathData(const QModelIndex &index, int role) const
QString getFilePath(const QModelIndex &hostIndex, const QModelIndex &pathIndex) const
void modelDirectoryLoaded(const QString &path)
FileScheme(QObject *parent=0, const QString &prefix="file", const QString &rootPath="/", QDir::Filters filter=QDir::NoFilter)
QString getPath(const QModelIndex &hostIndex, const QModelIndex &pathIndex) const
QVariant getHostData(const QModelIndex &index, int role) const
QString getRootPath() const
void setRootPath(const QString &rootPath)
QDir::Filters getFilter() const
QModelIndex getHostIndex(size_t row) const
QFileSystemModel * model_
QString getHost(const QModelIndex &hostIndex) const
QModelIndex getPathIndex(const QModelIndex &hostIndex, size_t row, const QModelIndex &parent=QModelIndex()) const
size_t getNumPaths(const QModelIndex &hostIndex, const QModelIndex &parent) const
size_t getNumHosts() const