wavelength 1.0.0
Loading...
Searching...
No Matches
dialogpanel.h
Go to the documentation of this file.
1#pragma once
2
3#include "met/freqpanel.h"
4#include "os/string.h"
5#include "rnd/rndview.h"
6#include "script/dataarray.h"
7
18class DialogPanel : public FreqPanel {
19public:
28 DialogPanel(DataArray *pData, const char *pszDir);
29
36 ~DialogPanel() override;
37
49 static UIPanel *New(DataArray *pData, const char *pszDir) {
50 return new DialogPanel(pData, pszDir);
51 }
52
62 void Enter(bool bForce, float fTime) override;
63
71 void FinishLoad() override;
72
81 void SetText(const char *pszText);
82
83private:
84 int mTriCancel;
85 RndView *mPanelView;
86 RndView *mButtonView;
87 String mPendingText;
88};
Reference-counted array of script data nodes.
Definition dataarray.h:20
void SetText(const char *pszText)
Show a text and size the box for it and the buttons, or store the text for the entry while the panel ...
~DialogPanel() override
Destroy the panel.
void FinishLoad() override
Finish loading as the shared dialog objects, focus the focus component, and find the views that size ...
DialogPanel(DataArray *pData, const char *pszDir)
Construct the panel from its script description.
void Enter(bool bForce, float fTime) override
Start the entry, hide the unused rows, and show the text that waits, or the text of the panel's name.
static UIPanel * New(DataArray *pData, const char *pszDir)
Create a panel from its script description.
Definition dialogpanel.h:49
FreqPanel(DataArray *pData, const char *pszDir)
Construct a panel from its script description.
View that shows the children of another view, its children owner, under its own transform and frame.
Definition rndview.h:27
Growable text buffer that is also a PrnStream.
Definition string.h:19
UIPanel(DataArray *pData, const char *pszDir)
Construct a hidden panel from its script description.