SystemLibraryWidget.hpp
1 #pragma once
2 #include <QTreeView>
3 class QFileSystemModel;
4 class QSortFilterProxyModel;
5 
6 namespace score
7 {
8 struct GUIApplicationContext;
9 }
10 
11 namespace Library
12 {
13 class FileSystemModel;
14 class FileSystemRecursiveFilterProxy;
15 class SystemLibraryWidget : public QWidget
16 {
17 public:
18  SystemLibraryWidget(const score::GUIApplicationContext& ctx, QWidget* parent);
20 
21  void setRoot(QString path);
22 
23 private:
24  FileSystemModel* m_model{};
26  QTreeView m_tv;
27  QWidget m_preview;
28  QWidget* m_previewChild{};
29 };
30 
31 void setupFilesystemContextMenu(
32  QTreeView& m_tv, FileSystemModel& model, FileSystemRecursiveFilterProxy& proxy);
33 }
Definition: FileSystemModel.hpp:21
Definition: RecursiveFilterProxy.hpp:80
Definition: SystemLibraryWidget.hpp:16
Base toolkit upon which the software is built.
Definition: Application.cpp:90
Specializes ApplicationContext with the QMainWindow.
Definition: GUIApplicationContext.hpp:15