NpcIntegerDialog Class Reference
[User interface related classes (windows, dialogs)]

#include <npcintegerdialog.h>

Inheritance diagram for NpcIntegerDialog:

Window

List of all members.


Detailed Description

The npc integer input dialog.

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
IntTextFieldmValueField

Constructor & Destructor Documentation

NpcIntegerDialog::NpcIntegerDialog (  ) 

Constructor.

See also:
Window::Window

Definition at line 38 of file npcintegerdialog.cpp.


Member Function Documentation

void NpcIntegerDialog::action ( const gcn::ActionEvent &  event  ) 

Called when receiving actions from the widgets.

Definition at line 88 of file npcintegerdialog.cpp.

int NpcIntegerDialog::getValue (  ) 

Returns the current value.

Definition at line 78 of file npcintegerdialog.cpp.

void NpcIntegerDialog::reset (  ) 

Resets the integer input field.

Definition at line 83 of file npcintegerdialog.cpp.

void NpcIntegerDialog::setRange ( int  min,
int  max 
)

Prepares the NPC dialog.

Parameters:
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.

Parameters:
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.


Member Data Documentation

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.

Definition at line 91 of file npcintegerdialog.h.


The documentation for this class was generated from the following files:

Generated on Sun Apr 26 17:30:43 2009 for The Mana World by  doxygen 1.5.5