wavelength 1.0.0
Loading...
Searching...
No Matches
freqloadlist.h
Go to the documentation of this file.
1#pragma once
2
3#include <vector>
4
5#include "game/campaign.h"
6#include "met/freqlist.h"
7#include "script/dataarray.h"
8
17class FreqLoadList : public FreqList {
18public:
25 ~FreqLoadList() override = default;
26
35 FreqLoadList(DataArray *pData, const char *pszPanel);
36
48 static UIComponent *New(DataArray *pData, const char *pszPanel) {
49 return new FreqLoadList(pData, pszPanel);
50 }
51
60 void UpdateRow(int nRow, int nItem) override;
61
69 void UpdateCursor() override;
70
78 void SetProfiles(const std::vector<Campaign> &profiles);
79
80private:
81 std::vector<Campaign> mProfiles;
82};
Reference-counted array of script data nodes.
Definition dataarray.h:20
FreqList(DataArray *pData, const char *pszPanel)
Construct the list from its script description.
void UpdateCursor() override
Move the cursor, and show the creation date, the account state, the Freq, and the rank of the selecte...
void SetProfiles(const std::vector< Campaign > &profiles)
Replace the listed Freqs and show them.
~FreqLoadList() override=default
Destroy the object.
FreqLoadList(DataArray *pData, const char *pszPanel)
Construct the list from its script description, listing no Freq.
void UpdateRow(int nRow, int nItem) override
Fill a row with the name of a Freq.
static UIComponent * New(DataArray *pData, const char *pszPanel)
Create a list from its script description.
Definition freqloadlist.h:48
UIComponent(DataArray *pData)
Construct a showing component in the normal state.
Definition uicomponent.h:37