#include <pgradiobutton.h>
Inheritance diagram for PG_RadioButton:

Public Member Functions | |
| PG_RadioButton (PG_Widget *parent, const PG_Rect &r=PG_Rect::null, const std::string &text=PG_NULLSTR, PG_RadioButton *firstOfGroup=NULL, int id=-1, const std::string &style="RadioButton") | |
| ~PG_RadioButton () | |
| void | LoadThemeStyle (const std::string &widgettype) |
| Load a specific themestyle. | |
| bool | GetPressed () |
| void | SetPressed () |
| void | SetAlignment (PG_Label::TextAlign a) |
| Sets text alignment. | |
| void | SetText (const std::string &text) |
| Sets text. | |
| const PG_String & | GetText () |
| Returns text. | |
| void | SetFontColor (const PG_Color &Color) |
| void | SetSizeByText (int Width=0, int Height=0, const std::string &Text=PG_NULLSTR) |
| Set widget size by size of text (should be used before Show() or AddWidget()). | |
| void | AddToGroup (PG_RadioButton *w) |
| PG_RadioButton * | GetFirstOfGroup () |
| Returns first radio button of the group. | |
| PG_RadioButton * | GetNextOfGroup () |
| Returns next radio button in the group. | |
Public Attributes | |
| SignalButtonClick< bool > | sigClick |
Protected Member Functions | |
| void | ReleaseButton () |
| void | eventMouseEnter () |
| eventhandler for mouse movements. | |
| void | eventMouseLeave () |
| eventhandler for mouse movements. | |
| bool | eventMouseButtonUp (const SDL_MouseButtonEvent *button) |
| Overridable Eventhandler for a SDL_MouseButtonEvent message. | |
| virtual bool | handleButtonClick (PG_Button *button) |
Protected Attributes | |
| PG_RadioButton * | my_groupFirst |
| PG_RadioButton * | my_groupNext |
| PG_Button * | my_widgetButton |
| PG_Label * | my_widgetLabel |
| bool | my_isPressed |
Classes | |
| class | SignalButtonClick |
| Signal type declaration. More... | |
Definition at line 56 of file pgradiobutton.h.
|
||||||||||||||||||||||||||||
|
|
Definition at line 92 of file pgradiobutton.cpp. References my_widgetButton, and my_widgetLabel. |
|
|
Definition at line 184 of file pgradiobutton.cpp. References my_groupFirst, and my_groupNext. Referenced by ASCGUI_Window::parsePanelASCTXT(), and PG_RadioButton(). |
|
|
Overridable Eventhandler for a SDL_MouseButtonEvent message. This handler is called when a mouse button is released. The default implementation returns 'false' which indicates that this message is not processed by this object.
Reimplemented from PG_MessageObject. Reimplemented in PG_CheckButton. Definition at line 109 of file pgradiobutton.cpp. References my_groupFirst, my_groupNext, PG_Rect::my_height, PG_Rect::my_width, PG_Rect::my_xpos, PG_Rect::my_ypos, and SetPressed(). |
|
|
eventhandler for mouse movements. This overrideable handler is called everytime the mouse cursor is entering the widget area. Reimplemented from PG_Widget. Definition at line 97 of file pgradiobutton.cpp. References PG_Widget::eventMouseEnter(), PG_ThemeWidget::SetTransparency(), and PG_Widget::Update(). |
|
|
eventhandler for mouse movements. This overrideable handler is called everytime the mouse cursor is leaving the widget area. Reimplemented from PG_Widget. Definition at line 103 of file pgradiobutton.cpp. References PG_Widget::eventMouseLeave(), PG_ThemeWidget::SetTransparency(), and PG_Widget::Update(). |
|
|
Returns first radio button of the group.
Definition at line 97 of file pgradiobutton.h. |
|
|
Returns next radio button in the group.
Definition at line 103 of file pgradiobutton.h. |
|
|
Definition at line 175 of file pgradiobutton.cpp. References my_isPressed. Referenced by PG_PropertyField_Checkbox< B >::Apply(), StartMultiplayerGame::Apply(), ResourcePlacementDialog::buttonEvent(), ReplayRecorderDialog::getAppend(), and CopyMap::paste(). |
|
|
Returns text.
Reimplemented from PG_Widget. Definition at line 200 of file pgradiobutton.cpp. References PG_Widget::GetText(), and my_widgetLabel. |
|
|
Definition at line 146 of file pgradiobutton.cpp. References SetPressed(). Referenced by PG_RadioButton(). |
|
|
Load a specific themestyle.
Reimplemented from PG_ThemeWidget. Definition at line 81 of file pgradiobutton.cpp. References PG_Theme::GetProperty(), PG_Application::GetTheme(), PG_Label::LoadThemeStyle(), PG_Button::LoadThemeStyle(), PG_ThemeWidget::LoadThemeStyle(), my_widgetButton, my_widgetLabel, PG_PropStr::RadioButton, and PG_PropStr::transparency. Referenced by PG_CheckButton::PG_CheckButton(), and PG_RadioButton(). |
|
|
Definition at line 179 of file pgradiobutton.cpp. References my_isPressed, my_widgetButton, and PG_Button::SetPressed(). Referenced by SetPressed(). |
|
|
Sets text alignment.
Definition at line 204 of file pgradiobutton.cpp. References my_widgetLabel, and PG_Label::SetAlignment(). |
|
|
Definition at line 208 of file pgradiobutton.cpp. References my_widgetLabel, and PG_Widget::SetFontColor(). |
|
|
||||||||||||||||
|
Set widget size by size of text (should be used before Show() or AddWidget()).
Reimplemented from PG_Widget. Definition at line 212 of file pgradiobutton.cpp. References PG_Widget::MoveWidget(), PG_Rect::my_height, my_widgetButton, my_widgetLabel, PG_Rect::my_width, PG_MAX, PG_Label::SetSizeByText(), PG_Button::SetSizeByText(), and PG_Widget::SizeWidget(). Referenced by AddWeatherAreaDialog::AddWeatherAreaDialog(), ResourcePlacementDialog::ResourcePlacementDialog(), SaveGameBaseDialog::SaveGameBaseDialog(), and WeatherDialog::WeatherDialog(). |
|
|
Sets text.
Reimplemented from PG_Widget. Definition at line 196 of file pgradiobutton.cpp. References my_widgetLabel, and PG_Widget::SetText(). Referenced by ASCGUI_Window::parsePanelASCTXT(). |
|
|
Definition at line 126 of file pgradiobutton.h. Referenced by AddToGroup(), eventMouseButtonUp(), PG_RadioButton(), and SetPressed(). |
|
|
Definition at line 128 of file pgradiobutton.h. Referenced by AddToGroup(), eventMouseButtonUp(), PG_RadioButton(), and SetPressed(). |
|
|
Definition at line 134 of file pgradiobutton.h. Referenced by PG_CheckButton::eventMouseButtonUp(), GetPressed(), PG_RadioButton(), ReleaseButton(), SetPressed(), and PG_CheckButton::SetUnpressed(). |
|
|
Definition at line 130 of file pgradiobutton.h. Referenced by LoadThemeStyle(), PG_CheckButton::PG_CheckButton(), PG_RadioButton(), ReleaseButton(), SetPressed(), SetSizeByText(), PG_CheckButton::SetUnpressed(), and ~PG_RadioButton(). |
|
|
Definition at line 132 of file pgradiobutton.h. Referenced by GetText(), LoadThemeStyle(), PG_RadioButton(), SetAlignment(), SetFontColor(), SetSizeByText(), SetText(), and ~PG_RadioButton(). |
|
1.4.2