ProjectLibraryWidget.hpp
1 #pragma once
2 #include <QTreeView>
3 class QFileSystemModel;
4 class QSortFilterProxyModel;
5 
6 namespace score
7 {
8 struct GUIApplicationContext;
9 struct DocumentMetadata;
10 }
11 
12 namespace Library
13 {
14 class FileSystemModel;
15 class FileSystemRecursiveFilterProxy;
16 class ProjectLibraryWidget : public QWidget
17 {
18 public:
19  ProjectLibraryWidget(const score::GUIApplicationContext& ctx, QWidget* parent);
21 
22  void setRoot(score::DocumentMetadata& meta);
23  void unsetRoot();
24 
25 private:
26  FileSystemModel* m_model{};
28  QTreeView m_tv;
29  QMetaObject::Connection m_con;
30 };
31 }
Definition: FileSystemModel.hpp:21
Definition: RecursiveFilterProxy.hpp:80
Definition: ProjectLibraryWidget.hpp:17
Base toolkit upon which the software is built.
Definition: Application.cpp:90
Document-wide metadata.
Definition: DocumentMetadata.hpp:16
Specializes ApplicationContext with the QMainWindow.
Definition: GUIApplicationContext.hpp:15