wavelength 1.0.0
Loading...
Searching...
No Matches
uploadnotescreen.h
Go to the documentation of this file.
1#pragma once
2
3#include "met/freqscreen.h"
4#include "met/keyboarduser.h"
6#include "os/string.h"
7#include "script/dataarray.h"
10#include "ui/uiscreen.h"
12
20public:
28 explicit UploadNoteScreen(DataArray *pData);
29
36 ~UploadNoteScreen() override {
37 }
38
47 static UIScreen *New(DataArray *pData) {
48 return new UploadNoteScreen(pData);
49 }
50
59 bool DispatchPriv(Message *pMsg) override;
60
69 void Enter(UIScreen *pPrevScreen, float fTime) override;
70
79 int ReceiveKeyboardText(const char *pszText) override;
80
82 void SetKeyboardText(const char *pszKeyboardText) {
83 mKeyboardText = pszKeyboardText;
84 }
85
86private:
99 bool HandleJoypad(JoypadInputMsg *pMsg);
100
112 bool HandleSelect(UIComponentSelectMsg *pMsg);
113
124 bool HandleFocusChange(UIComponentFocusChangeMsg *pMsg);
125
136 bool HandleTextEntryComplete(UITextEntryCompleteMsg *pMsg);
137
138 String mKeyboardText;
139#ifdef VIDEO_STANDARD_PAL
144 int mIsTool = 0;
145#endif
146};
Reference-counted array of script data nodes.
Definition dataarray.h:20
FreqScreen(DataArray *pData)
Construct a screen from its script description.
Message the controller poll sends when a button is pressed or released.
Definition joypadinputmsg.h:23
Mix-in for a screen that receives the text the player types on the front-end keyboard.
Definition keyboarduser.h:9
Base of every event the game passes between a MsgSource and a MsgSink.
Definition message.h:40
Growable text buffer that is also a PrnStream.
Definition string.h:19
Message a panel sends before it moves its focus to another component.
Definition uicomponentfocuschangemsg.h:26
Message a component sends when the player chooses it.
Definition uicomponentselectmsg.h:28
UIScreen(DataArray *pData)
Construct a screen from its script description.
Message a text entry sends when the player confirms the text.
Definition uitextentrycompletemsg.h:25
void Enter(UIScreen *pPrevScreen, float fTime) override
Enter, give the focus to the note entry, and fill it with the text the keyboard typed.
~UploadNoteScreen() override
Release the screen.
Definition uploadnotescreen.h:36
int ReceiveKeyboardText(const char *pszText) override
Take the text the keyboard typed.
bool DispatchPriv(Message *pMsg) override
Route the controller, choice, focus, and text entry messages.
static UIScreen * New(DataArray *pData)
Produce a screen on the heap.
Definition uploadnotescreen.h:47
void SetKeyboardText(const char *pszKeyboardText)
Definition uploadnotescreen.h:82
UploadNoteScreen(DataArray *pData)
Construct a screen with no note.