77 virtual ~Dialog(
void) =
default;
100 const std::string title_;
virtual int show(bool center, const CharCursor &corner, const CharArea &dims)=0
Must show the dialog, interact with the user, and close it.
Dialog(ZXEco &zxe, const std::string &title)
Create a dialog with that ecosystem and title.
static const WinColors & winColorsForDialogs(void)
Return the window colors used in all dialogs.
@ kYes
The user clicked on YES.
@ kDesktopClosed
Desktop closed.
@ kSelected
The user clicked to select.
@ kOk
The user clicked on OK.
@ kError
Error processing user's req.
@ kCancel
The user clicked on CANCEL.
@ kNo
The user clicked on NO.
@ kClose
The user clicked on CLOSE.
@ kClickedOutside
The user clicked outside the dialg.
Window::DepthFirstInserter wins_
Note that is not in auto-ID mode.
virtual ~Dialog(void)=default
Just to activate polymorphism in delete.
Window::MngResult openAndInteract(bool closeifout=false, bool center=true, const CharCursor &corner={0, 0}, const CharArea &dims={0, 0})
Open the dialog and interact with the user.
Base class for all dialogs.
Possible results of a dialog after interacting with the user.
Colors used in a GUI window.
To insert widgets in a window in a depth-first fashion.
MngResult
Possible results of calling the manage() method.
std::string nonCtrlString(const std::string &txt, char who='A')
Return a version of TXT without control codes.
Class that provides access to the entire ecosystem: graphics, keyboard, etc.
The main namespace of the library, that spans across all the zx modules.