wavelength 1.0.0
Loading...
Searching...
No Matches
saveeditedfreqscreen.h
Go to the documentation of this file.
1#pragma once
2
4#include "os/string.h"
5#include "script/dataarray.h"
7
18public:
27
35
46 static UIScreen *New(DataArray *pData) {
47 return new SaveEditedFreqScreen(pData);
48 }
49
58 bool DispatchPriv(Message *pMsg) override;
59
60#ifdef VIDEO_STANDARD_PAL
69 void OnFreqSaved(int nStatus, int nSpace) override;
70#endif
71
81
83 void SetFreqName(const char *pszFreqName) {
84 mFreqName = pszFreqName;
85 }
86
87private:
88 String mFreqName;
89};
Reference-counted array of script data nodes.
Definition dataarray.h:20
Base of every event the game passes between a MsgSource and a MsgSink.
Definition message.h:40
bool DispatchPriv(Message *pMsg) override
Route the end of the entry, and pass every other message to SaveFreqScreen.
static UIScreen * New(DataArray *pData)
Create a screen from its script description.
Definition saveeditedfreqscreen.h:46
void SetFreqName(const char *pszFreqName)
Definition saveeditedfreqscreen.h:83
SaveEditedFreqScreen(DataArray *pData)
Construct the screen from its script description.
bool HandleTransitionComplete(UITransitionCompleteMsg *pMsg)
Start the save under mFreqName once this screen has entered.
~SaveEditedFreqScreen() override
Destroy the screen.
SaveFreqScreen(DataArray *pData)
Construct the screen from its script description.
void OnFreqSaved(int nStatus, int nSpace) override
Move on when the save ends.
Growable text buffer that is also a PrnStream.
Definition string.h:19
One front-end screen, a set of panels shown together with one panel holding the focus.
Definition uiscreen.h:35
Message a screen sends itself once its panels have finished their entry animations.
Definition uitransitioncompletemsg.h:23