ResidualVM logo ResidualVM website - Forums - Contact us BuildBot - Doxygen - Wiki curved edge

Simple message dialog ("alert box"): presents a text message in a dialog with up to two buttons. More...

#include <message.h>

Inheritance diagram for GUI::MessageDialog:
Collaboration diagram for GUI::MessageDialog:

List of all members.

Public Member Functions

 MessageDialog (const Common::U32String &message, const Common::U32String &defaultButton=Common::U32String("OK"), const Common::U32String &altButton=Common::U32String(""), Graphics::TextAlign alignment=Graphics::kTextAlignCenter, const char *url=nullptr)
 MessageDialog (const Common::String &message, const Common::String &defaultButton="OK", const Common::String &altButton="", Graphics::TextAlign alignment=Graphics::kTextAlignCenter, const char *url=nullptr)
void handleCommand (CommandSender *sender, uint32 cmd, uint32 data) override

Private Member Functions

void init (const Common::U32String &message, const Common::U32String &defaultButton, const Common::U32String &altButton, Graphics::TextAlign alignment, const char *url)

Private Attributes

const char * _url

Detailed Description

Simple message dialog ("alert box"): presents a text message in a dialog with up to two buttons.

Definition at line 42 of file message.h.


Constructor & Destructor Documentation

GUI::MessageDialog::MessageDialog ( const Common::U32String message,
const Common::U32String defaultButton = Common::U32String("OK"),
const Common::U32String altButton = Common::U32String(""),
Graphics::TextAlign  alignment = Graphics::kTextAlignCenter,
const char *  url = nullptr 
)

Definition at line 104 of file message.cpp.

GUI::MessageDialog::MessageDialog ( const Common::String message,
const Common::String defaultButton = "OK",
const Common::String altButton = "",
Graphics::TextAlign  alignment = Graphics::kTextAlignCenter,
const char *  url = nullptr 
)

Definition at line 110 of file message.cpp.


Member Function Documentation

void GUI::MessageDialog::handleCommand ( CommandSender sender,
uint32  cmd,
uint32  data 
) [override, virtual]

Reimplemented from GUI::Dialog.

Definition at line 116 of file message.cpp.

void GUI::MessageDialog::init ( const Common::U32String message,
const Common::U32String defaultButton,
const Common::U32String altButton,
Graphics::TextAlign  alignment,
const char *  url 
) [private]

Definition at line 42 of file message.cpp.


Member Data Documentation

const char* GUI::MessageDialog::_url [private]

Definition at line 49 of file message.h.


The documentation for this class was generated from the following files:


Generated on Sat Sep 19 2020 05:05:28 for ResidualVM by doxygen 1.7.1
curved edge   curved edge