blob: a32ef5986133cd55159975a01e7ea59042594f2e (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
|
#pragma once
#include "StarSongbook.hpp"
#include "StarPane.hpp"
#include "StarListener.hpp"
namespace Star {
STAR_CLASS(Player);
STAR_CLASS(SongbookInterface);
class SongbookInterface : public Pane {
public:
SongbookInterface(PlayerPtr player);
void update(float dt) override;
private:
PlayerPtr m_player;
StringList m_files;
String m_lastSearch;
CallbackListenerPtr m_reloadListener;
bool play();
void refresh(bool reloadFiles = false);
};
}
|