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
"
7
#include "
netflow/netreporemix.h
"
8
#include "
script/dataarray.h
"
9
17
class
RemixDownloadList
:
public
FreqList
{
18
public
:
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
88
private
:
89
std::list<NetRepoRemix> mRemixes;
90
const
char
*mPicPanel;
91
int
mNoteShowing;
92
SongEntry
mSong;
93
};
DataArray
Reference-counted array of script data nodes.
Definition
dataarray.h:20
FreqList::FreqList
FreqList(DataArray *pData, const char *pszPanel)
Construct the list from its script description.
RemixDownloadList::RemixDownloadList
RemixDownloadList(DataArray *pData, const char *pszPanel)
Construct the list from its script description, listing no remix and showing the note.
RemixDownloadList::UpdateRow
void UpdateRow(int nRow, int nItem) override
Fill a row with the month and the day of a remix and its name.
RemixDownloadList::New
static UIComponent * New(DataArray *pData, const char *pszPanel)
Create a list from its script description.
Definition
remixdownloadlist.h:48
RemixDownloadList::SetRemixes
void SetRemixes(const std::list< NetRepoRemix > &remixes)
Replace the listed remixes and show them.
RemixDownloadList::SetNoteShowing
void SetNoteShowing(int nShowing)
Show either the note of the selection or the band picture of its song.
RemixDownloadList::~RemixDownloadList
~RemixDownloadList() override=default
Destroy the object.
RemixDownloadList::UpdateCursor
void UpdateCursor() override
Move the cursor and show the selected remix and its note in mPicPanel.
SongEntry
View of the entry of one song in the "songs" section of the configuration.
Definition
songentry.h:13
UIComponent::UIComponent
UIComponent(DataArray *pData)
Construct a showing component in the normal state.
Definition
uicomponent.h:37
dataarray.h
freqlist.h
netreporemix.h
songentry.h
src
met
remixdownloadlist.h
Generated by
1.15.0