wavelength 1.0.0
Loading...
Searching...
No Matches
remixdownloadlist.h
Go to the documentation of this file.
1#pragma once
2
3#include <list>
4
5#include "game/songentry.h"
6#include "met/freqlist.h"
8#include "script/dataarray.h"
9
18public:
25 ~RemixDownloadList() override = default;
26
35 RemixDownloadList(DataArray *pData, const char *pszPanel);
36
48 static UIComponent *New(DataArray *pData, const char *pszPanel) {
49 return new RemixDownloadList(pData, pszPanel);
50 }
51
60 void UpdateRow(int nRow, int nItem) override;
61
68 void UpdateCursor() override;
69
77 void SetNoteShowing(int nShowing);
78
86 void SetRemixes(const std::list<NetRepoRemix> &remixes);
87
88private:
89 std::list<NetRepoRemix> mRemixes;
90 const char *mPicPanel;
91 int mNoteShowing;
92 SongEntry mSong;
93};
Reference-counted array of script data nodes.
Definition dataarray.h:20
FreqList(DataArray *pData, const char *pszPanel)
Construct the list from its script description.
RemixDownloadList(DataArray *pData, const char *pszPanel)
Construct the list from its script description, listing no remix and showing the note.
void UpdateRow(int nRow, int nItem) override
Fill a row with the month and the day of a remix and its name.
static UIComponent * New(DataArray *pData, const char *pszPanel)
Create a list from its script description.
Definition remixdownloadlist.h:48
void SetRemixes(const std::list< NetRepoRemix > &remixes)
Replace the listed remixes and show them.
void SetNoteShowing(int nShowing)
Show either the note of the selection or the band picture of its song.
~RemixDownloadList() override=default
Destroy the object.
void UpdateCursor() override
Move the cursor and show the selected remix and its note in mPicPanel.
View of the entry of one song in the "songs" section of the configuration.
Definition songentry.h:13
UIComponent(DataArray *pData)
Construct a showing component in the normal state.
Definition uicomponent.h:37