score
Home
Classes
Namespaces
Files
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);
19
~
SystemLibraryWidget
();
20
21
void
setRoot(QString path);
22
23
private
:
24
FileSystemModel
* m_model{};
25
FileSystemRecursiveFilterProxy
* m_proxy{};
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
}
Library::FileSystemModel
Definition:
FileSystemModel.hpp:21
Library::FileSystemRecursiveFilterProxy
Definition:
RecursiveFilterProxy.hpp:80
Library::SystemLibraryWidget
Definition:
SystemLibraryWidget.hpp:16
score
Base toolkit upon which the software is built.
Definition:
Application.cpp:90
score::GUIApplicationContext
Specializes ApplicationContext with the QMainWindow.
Definition:
GUIApplicationContext.hpp:15