52 bool hasClosedCallback =
false;
53 std::function<void(
const std::string&)> closedCallback;
55 std::vector<std::string> files;
61 const char* openButtonName;
A window where a hymn can be selected.
Definition: SelectHymnWindow.hpp:9
void SetVisible(bool visible)
Set whether the window should be visible.
Definition: SelectHymnWindow.cpp:53
void Show()
Show the window and let the user select a hymn.
Definition: SelectHymnWindow.cpp:18
void SetTitle(const char *title)
Set window title.
Definition: SelectHymnWindow.cpp:58
void SetClosedCallback(const std::function< void(const std::string &)> &callback)
Set function to call when closed.
Definition: SelectHymnWindow.cpp:44
void Scan()
Scan the save directory for hymns.
Definition: SelectHymnWindow.cpp:14
void SetOpenButtonName(const char *openButtonName)
Set the name of the open button.
Definition: SelectHymnWindow.cpp:62
bool IsVisible() const
Get whether the window is visible.
Definition: SelectHymnWindow.cpp:49
SelectHymnWindow()
Constructor.
Definition: SelectHymnWindow.cpp:10
Definition: AssetEditor.hpp:9