68 struct InputApp :
public uiApp {
70 virtual void addControls() = 0;
71 virtual void calcRequiredSize() = 0;
72 virtual void finalize() = 0;
74 RGB888 backgroundColor;
75 char const * titleText;
76 char const * buttonCancelText;
77 char const * buttonOKText;
81 FontInfo
const * font;
87 uiLabel * autoOKLabel;
96 struct TextInputApp :
public InputApp {
98 void calcRequiredSize();
101 char const * labelText;
118 struct MessageApp :
public InputApp {
120 void calcRequiredSize();
123 char const * messageText;
134 struct SelectApp :
public InputApp {
136 void calcRequiredSize();
139 int countItems(
size_t * maxLength);
141 char const * messageText;
144 StringList * itemsList;
159 struct ProgressApp :
public InputApp {
161 void calcRequiredSize();
164 bool update(
int percentage,
char const * format, ...);
166 static const int progressBarHeight = 16;
169 Delegate<ProgressApp*> execFunc;
173 uiProgressBar * progressBar;
201 void begin(
char const * modeline =
nullptr,
int viewPortWidth = -1,
int viewPortHeight = -1);
247 InputResult textInput(
char const * titleText,
char const * labelText,
char * inOutString,
int maxLength,
char const * buttonCancelText =
"Cancel",
char const * buttonOKText =
"OK",
bool passwordMode =
false);
271 InputResult message(
char const * titleText,
char const * messageText,
char const * buttonCancelText =
nullptr,
char const * buttonOKText =
"OK");
293 InputResult messageFmt(
char const * titleText,
char const * buttonCancelText,
char const * buttonOKText,
const char *format, ...);
316 int select(
char const * titleText,
char const * messageText,
char const * itemsText,
char separator =
';',
char const * buttonCancelText =
"Cancel",
char const * buttonOKText =
"OK",
int OKAfter = 0);
347 InputResult select(
char const * titleText,
char const * messageText, StringList * items,
char const * buttonCancelText =
"Cancel",
char const * buttonOKText =
"OK",
int OKAfter = 0);
367 int menu(
char const * titleText,
char const * messageText,
char const * itemsText,
char separator =
';');
391 int menu(
char const * titleText,
char const * messageText, StringList * items);
419 template <
typename Func>
InputResult progressBox(
char const * titleText,
char const * buttonCancelText,
bool hasProgressBar,
int width, Func execFunc) {
421 app.execFunc = execFunc;
422 return progressBoxImpl(app, titleText, buttonCancelText, hasProgressBar,
width);
427 InputResult progressBoxImpl(ProgressApp & app,
char const * titleText,
char const * buttonCancelText,
bool hasProgressBar,
int width);
Represents a 24 bit RGB color.
This file contains fabgl::PS2Controller definition.
This file contains fabgl::VGA16Controller definition.
This file contains all classes related to FabGL Graphical User Interface.
Represents the base abstract class for bitmapped display controllers.
InputResult
Result of InputBox dialogs helper class.
This file contains some utility classes and functions.
Represents the VGA 16 colors bitmapped controller.
This file contains FabGL library configuration settings, like number of supported colors...