#include <messagedialog.h>
Inheritance diagram for MessageDialog:

Public Member Functions | |
| MessageDialog (PG_Widget *parent, const PG_Rect &r, const std::string &windowtitle, const std::string &windowtext, const std::string &btn1text, const std::string &btn2text, PG_Label::TextAlign textalign=PG_Label::CENTER, const std::string &style="MessageBox") | |
| Creates a PopUp with 2 Buttons. | |
| MessageDialog (PG_Widget *parent, const PG_Rect &r, const std::string &windowtitle, const std::string &windowtext, const std::string &btn1text, PG_Label::TextAlign textalign=PG_Label::CENTER, const std::string &style="MessageBox") | |
| Creates a PopUp with 1 Button. | |
| MessageDialog (PG_Widget *parent, const PG_Rect &r, const std::string &windowtitle, const std::string &windowtext, PG_Label::TextAlign textalign=PG_Label::CENTER, const std::string &style="MessageBox") | |
| Creates a PopUp without Buttons. | |
| ~MessageDialog () | |
| void | LoadThemeStyle (const std::string &widgettype) |
| Load a specific themestyle. | |
| PG_Widget * | getTextBox () |
| void | EnableDefaultKeys (bool enable) |
Protected Member Functions | |
| virtual bool | handleButton (PG_Button *button) |
| Checks if button is pressed. | |
| bool | eventKeyDown (const SDL_KeyboardEvent *key) |
| Overridable Eventhandler for a SDL_KeyboardEvent message. | |
Protected Attributes | |
| PG_Button * | my_btnok |
| PG_Button * | my_btncancel |
|
||||||||||||||||||||||||||||||||||||
|
Creates a PopUp with 2 Buttons.
Definition at line 32 of file messagedialog.cpp. References PG_Widget::activateHotkey(), handleButton(), PG_Rect::Height(), min(), my_btncancel, my_btnok, PG_Rect::PG_Rect(), PG_Widget::SetID(), PG_Button::sigClick, and PG_Rect::Width(). |
|
||||||||||||||||||||||||||||||||
|
Creates a PopUp with 1 Button.
Definition at line 56 of file messagedialog.cpp. References PG_Widget::activateHotkey(), handleButton(), PG_Rect::Height(), min(), my_btnok, PG_Rect::PG_Rect(), PG_Widget::SetID(), PG_Button::sigClick, and PG_Rect::Width(). |
|
||||||||||||||||||||||||||||
|
Creates a PopUp without Buttons.
Definition at line 71 of file messagedialog.cpp. |
|
|
Definition at line 109 of file messagedialog.cpp. |
|
|
Definition at line 99 of file messagedialog.cpp. Referenced by new_choice_dlg(). |
|
|
Overridable Eventhandler for a SDL_KeyboardEvent message. This handler is called when a key changed it's state from unpressed to pressed. The default implementation returns 'false' which indicates that this message is not processed by this object.
Reimplemented from ASC_PG_Dialog. Definition at line 78 of file messagedialog.cpp. References ASC_PG_Dialog::quitModalLoop(). |
|
|
Definition at line 104 of file messagedialog.cpp. Referenced by new_choice_dlg(). |
|
|
Checks if button is pressed.
Definition at line 139 of file messagedialog.cpp. References PG_Widget::GetID(), and ASC_PG_Dialog::quitModalLoop(). Referenced by MessageDialog(). |
|
|
Load a specific themestyle.
Reimplemented from PG_Window. Definition at line 128 of file messagedialog.cpp. References PG_Button::LoadThemeStyle(), PG_Window::LoadThemeStyle(), my_btncancel, and my_btnok. |
|
|
Definition at line 90 of file messagedialog.h. Referenced by LoadThemeStyle(), and MessageDialog(). |
|
|
Definition at line 89 of file messagedialog.h. Referenced by LoadThemeStyle(), and MessageDialog(). |
1.4.2