diff options
Diffstat (limited to 'src/Authoring/Qt3DStudio/Palettes/Project/ProjectFileSystemModel.h')
-rw-r--r-- | src/Authoring/Qt3DStudio/Palettes/Project/ProjectFileSystemModel.h | 15 |
1 files changed, 11 insertions, 4 deletions
diff --git a/src/Authoring/Qt3DStudio/Palettes/Project/ProjectFileSystemModel.h b/src/Authoring/Qt3DStudio/Palettes/Project/ProjectFileSystemModel.h index 8e9cefb8..8fb63805 100644 --- a/src/Authoring/Qt3DStudio/Palettes/Project/ProjectFileSystemModel.h +++ b/src/Authoring/Qt3DStudio/Palettes/Project/ProjectFileSystemModel.h @@ -59,10 +59,12 @@ public: DepthRole, ExpandedRole, FileIdRole, - ExtraIconRole + ExtraIconRole, + HasWarningRole }; void setRootPath(const QString &path); + void selectFile(const QString &path); QHash<int, QByteArray> roleNames() const override; int rowCount(const QModelIndex &parent = {}) const override; @@ -71,6 +73,7 @@ public: QString filePath(int row) const; bool isRefreshable(int row) const; + bool isCollapsable(int row) const; bool isCurrentPresentation(const QString &path) const; bool isInitialPresentation(const QString &path) const; QString presentationId(const QString &path) const; @@ -84,18 +87,19 @@ public: Q_INVOKABLE void importUrls(const QList<QUrl> &urls, int row, bool autoSort = true); Q_INVOKABLE bool hasValidUrlsForDropping(const QList<QUrl> &urls) const; - Q_INVOKABLE void showInfo(int row); - Q_INVOKABLE void duplicate(int row); void asyncUpdateReferences(); void onFilesChanged(const Q3DStudio::TFileModificationList &inFileModificationList); + void clearModelData(); + void checkShaders(const int startRow = -1, const int endRow = -1); + void showItemError(const QModelIndex index); Q_SIGNALS: void modelChanged(QAbstractItemModel *model); + void selectFileChanged(int idx); private: void setRootIndex(const QModelIndex &rootIndex); - void clearModelData(); void showModelTopLevelItems(); void showModelChildItems(const QModelIndex &parentItem, int start, int end); int modelIndexRow(const QModelIndex &modelIndex) const; @@ -140,6 +144,7 @@ private: bool expanded; TreeItem *parent; int childCount; + QString error; }; QFileSystemModel *m_model = nullptr; @@ -160,7 +165,9 @@ private: // Value: if true, uip was modified or created. If false, it was removed. QHash<QString, bool> m_projectReferencesUpdateMap; QTimer m_projectReferencesUpdateTimer; + QTimer m_shaderCheckTimer; std::shared_ptr<qt3dsdm::ISignalConnection> m_directoryConnection; + QString m_selectFile; // file to be selected on next layout change }; #endif // TREEVIEWADAPTOR_H |