#include <pgspinnerbox.h>
Inheritance diagram for PG_SpinnerBox:

Public Types | |
| enum | { IDSPINNERBOX_UP = PG_WIDGETID_INTERNAL + 12, IDSPINNERBOX_DOWN = PG_WIDGETID_INTERNAL + 13 } |
Public Member Functions | |
| PG_SpinnerBox (PG_Widget *parent, const PG_Rect &r=PG_Rect::null, const std::string &style="SpinnerBox") | |
| void | SetValue (int value) |
| void | SetMinValue (int value) |
| void | SetMaxValue (int value) |
| void | SetMask (const std::string &value) |
| int | GetValue () |
| int | GetMinValue () |
| int | GetMaxValue () |
| const PG_String & | GetMask () |
Public Attributes | |
| SignalChange< int > | sigChange |
Protected Member Functions | |
| bool | handleButtonClick (PG_Button *button) |
| bool | handleEditEnd (PG_LineEdit *edit) |
Classes | |
| class | SignalChange |
| Signal type declaration. More... | |
Registerable Events:
MSG_SPINNER_CHANGE -
Fired when the user clicks either up or down on the spinner buttons. Currently typed modifications are not populated to the value. This will be added soon. Note: using SetValue above will fire this event.
Definition at line 61 of file pgspinnerbox.h.
|
|
Definition at line 71 of file pgspinnerbox.h. |
|
||||||||||||||||
|
Definition at line 38 of file pgspinnerbox.cpp. References handleButtonClick(), handleEditEnd(), IDSPINNERBOX_DOWN, IDSPINNERBOX_UP, PG_Button::LoadThemeStyle(), PG_Rect::my_height, PG_Rect::my_width, PG_Rect::my_xpos, PG_Rect::my_ypos, PG_Widget::SetID(), SetMask(), PG_Rect::SetRect(), PG_MaskEdit::SetText(), PG_LineEdit::SetValidKeys(), PG_Button::sigClick, PG_LineEdit::sigEditEnd, and PG_Widget::SizeWidget(). |
|
|
Definition at line 102 of file pgspinnerbox.h. |
|
|
Definition at line 99 of file pgspinnerbox.h. |
|
|
Definition at line 96 of file pgspinnerbox.h. |
|
|
Definition at line 93 of file pgspinnerbox.h. |
|
|
Definition at line 74 of file pgspinnerbox.cpp. References PG_Widget::GetID(), IDSPINNERBOX_DOWN, and IDSPINNERBOX_UP. Referenced by PG_SpinnerBox(). |
|
|
Definition at line 121 of file pgspinnerbox.cpp. References atoi(), and PG_Widget::GetText(). Referenced by PG_SpinnerBox(). |
|
|
Definition at line 138 of file pgspinnerbox.cpp. References PG_MaskEdit::SetMask(). Referenced by PG_SpinnerBox(), and SetSpinnerBoxAtts(). |
|
|
Definition at line 87 of file pgspinnerbox.h. Referenced by SetSpinnerBoxAtts(). |
|
|
Definition at line 84 of file pgspinnerbox.h. Referenced by SetSpinnerBoxAtts(). |
|
|
Definition at line 80 of file pgspinnerbox.h. Referenced by SetSpinnerBoxAtts(). |
|
|
Definition at line 106 of file pgspinnerbox.h. |
1.4.2