#include <npcintegerdialog.h>

Definition at line 36 of file npcintegerdialog.h.
Public Member Functions | |
| NpcIntegerDialog () | |
| Constructor. | |
| void | action (const gcn::ActionEvent &event) |
| Called when receiving actions from the widgets. | |
| int | getValue () |
| Returns the current value. | |
| void | reset () |
| Resets the integer input field. | |
| void | setRange (int min, int max) |
| Prepares the NPC dialog. | |
| void | setDefaultValue (int value) |
| Sets the default value. | |
| bool | isInputFocused () |
| Checks whether NpcStringDialog is Focused or not. | |
| void | requestFocus () |
| Requests the textfield to take focus for input. | |
| void | setVisible (bool visible) |
| Overloads window setVisible by Guichan to allow sticky window handling. | |
Private Attributes | |
| gcn::Button * | mDecButton |
| gcn::Button * | mIncButton |
| IntTextField * | mValueField |
| NpcIntegerDialog::NpcIntegerDialog | ( | ) |
| void NpcIntegerDialog::action | ( | const gcn::ActionEvent & | event | ) |
| int NpcIntegerDialog::getValue | ( | ) |
| void NpcIntegerDialog::reset | ( | ) |
| void NpcIntegerDialog::setRange | ( | int | min, | |
| int | max | |||
| ) |
Prepares the NPC dialog.
| min | The minimum value to allow | |
| max | The maximum value to allow |
Definition at line 73 of file npcintegerdialog.cpp.
| void NpcIntegerDialog::setDefaultValue | ( | int | value | ) |
Sets the default value.
| value | The new default value |
Definition at line 127 of file npcintegerdialog.cpp.
| bool NpcIntegerDialog::isInputFocused | ( | ) |
Checks whether NpcStringDialog is Focused or not.
Definition at line 132 of file npcintegerdialog.cpp.
| void NpcIntegerDialog::requestFocus | ( | ) |
Requests the textfield to take focus for input.
Definition at line 137 of file npcintegerdialog.cpp.
| void NpcIntegerDialog::setVisible | ( | bool | visible | ) |
Overloads window setVisible by Guichan to allow sticky window handling.
Reimplemented from Window.
Definition at line 142 of file npcintegerdialog.cpp.
gcn::Button* NpcIntegerDialog::mDecButton [private] |
Definition at line 89 of file npcintegerdialog.h.
gcn::Button* NpcIntegerDialog::mIncButton [private] |
Definition at line 90 of file npcintegerdialog.h.
IntTextField* NpcIntegerDialog::mValueField [private] |
Definition at line 91 of file npcintegerdialog.h.
1.5.5