#include <pgmessagebox.h>
Inheritance diagram for PG_MessageBox:

Public Member Functions | |
| PG_MessageBox (PG_Widget *parent, const PG_Rect &r, const std::string &windowtitle, const std::string &windowtext, const PG_Rect &btn1, const std::string &btn1text, const PG_Rect &btn2, const std::string &btn2text, PG_Label::TextAlign textalign=PG_Label::CENTER, const std::string &style="MessageBox") | |
| Creates a PopUp with 2 Buttons. | |
| PG_MessageBox (PG_Widget *parent, const PG_Rect &r, const std::string &windowtitle, const std::string &windowtext, const PG_Rect &btn1, const std::string &btn1text, PG_Label::TextAlign textalign=PG_Label::CENTER, const std::string &style="MessageBox") | |
| Creates a PopUp with 1 Button. | |
| ~PG_MessageBox () | |
| Destructor. | |
| void | LoadThemeStyle (const std::string &widgettype) |
| Load a specific themestyle. | |
| int | WaitForClick () |
| OBSOLETE - Waits for a button click and returns Button ID. | |
Protected Member Functions | |
| virtual bool | handleButton (PG_Button *button) |
| Checks if button is pressed. | |
Protected Attributes | |
| PG_Button * | my_btnok |
| PG_Button * | my_btncancel |
Definition at line 47 of file pgmessagebox.h.
|
||||||||||||||||||||||||||||||||||||||||||||
|
Creates a PopUp with 2 Buttons.
Definition at line 35 of file pgmessagebox.cpp. References handleButton(), my_btncancel, my_btnok, PG_Widget::SetID(), and PG_Button::sigClick. |
|
||||||||||||||||||||||||||||||||||||
|
Creates a PopUp with 1 Button.
Definition at line 49 of file pgmessagebox.cpp. References handleButton(), my_btncancel, my_btnok, PG_Widget::SetID(), and PG_Button::sigClick. |
|
|
Destructor.
Definition at line 61 of file pgmessagebox.cpp. References my_btncancel, and my_btnok. |
|
|
Checks if button is pressed.
Definition at line 89 of file pgmessagebox.cpp. References PG_Widget::GetID(), PG_Widget::QuitModal(), and PG_Widget::SetModalStatus(). Referenced by PG_MessageBox(). |
|
|
Load a specific themestyle.
Reimplemented from PG_Window. Definition at line 79 of file pgmessagebox.cpp. References PG_Button::LoadThemeStyle(), PG_Window::LoadThemeStyle(), my_btncancel, and my_btnok. |
|
|
OBSOLETE - Waits for a button click and returns Button ID. This method is obsolete. Please use the RunModal method. Definition at line 90 of file pgmessagebox.h. References PG_Widget::RunModal(). |
|
|
Definition at line 105 of file pgmessagebox.h. Referenced by LoadThemeStyle(), PG_MessageBox(), and ~PG_MessageBox(). |
|
|
Definition at line 103 of file pgmessagebox.h. Referenced by LoadThemeStyle(), PG_MessageBox(), and ~PG_MessageBox(). |
1.4.2