|
Planeshift
|
pawsNumberPromptWindow is window that lets the user enter a number More...
#include <pawsnumberpromptwindow.h>
Public Member Functions | |
| virtual void | Close () |
| Simply calls Hide() unless overidden. | |
| void | Initialize (const csString &label, int number, int minNumber, int maxNumber, iOnNumberEnteredAction *action, const char *name, int param=0) |
| bool | OnButtonPressed (int mouseButton, int keyModifier, pawsWidget *widget) |
| Called whenever a button is pressed. | |
| virtual bool | OnChange (pawsWidget *widget) |
| Called whenever a widget is selected. | |
| virtual bool | OnScroll (int scrollDirection, pawsScrollBar *widget) |
| Called whenever a window is scrolled. | |
| pawsNumberPromptWindow (const pawsNumberPromptWindow &origin) | |
| pawsNumberPromptWindow () | |
| virtual bool | PostSetup () |
| Executed after the widget is setup. | |
Static Public Member Functions | |
| static pawsNumberPromptWindow * | Create (const csString &label, int number, int minNumber, int maxNumber, iOnNumberEnteredAction *action, const char *name, int param=0) |
Protected Member Functions | |
| void | LayoutWindow () |
| Sets positions of widgets and size of whole window. | |
| void | NumberWasEntered (int count) |
| This is called when the user enters final count (which is valid) | |
| void | SetBoundaries (int minNumber, int maxNumber) |
| bool | TextIsValidForEditing (const csString &text) |
| Will we allow user to enter 'text' during editation ? | |
| bool | TextIsValidForOutput (const csString &text) |
| Will we allow user to return 'text' as the final result ? The difference is that TextIsValidForOutput() won't allow zero and empty string. | |
Protected Attributes | |
| iOnNumberEnteredAction * | action |
| pawsEditTextBox * | editBox |
| csString | lastValidText |
| This is last valid input from user - we use it to fall back from invalid input. | |
| int | maxDigits |
| int | maxNumber |
| int | minNumber |
| csString | name |
| The name of this widget. | |
| int | param |
| pawsScrollBar * | scrollBar |
pawsNumberPromptWindow is window that lets the user enter a number
Definition at line 46 of file pawsnumberpromptwindow.h.
| pawsNumberPromptWindow::pawsNumberPromptWindow | ( | ) |
| pawsNumberPromptWindow::pawsNumberPromptWindow | ( | const pawsNumberPromptWindow & | origin | ) |
| virtual void pawsNumberPromptWindow::Close | ( | ) | [virtual] |
Simply calls Hide() unless overidden.
Reimplemented from pawsWidget.
| static pawsNumberPromptWindow* pawsNumberPromptWindow::Create | ( | const csString & | label, |
| int | number, | ||
| int | minNumber, | ||
| int | maxNumber, | ||
| iOnNumberEnteredAction * | action, | ||
| const char * | name, | ||
| int | param = 0 |
||
| ) | [static] |
| void pawsNumberPromptWindow::Initialize | ( | const csString & | label, |
| int | number, | ||
| int | minNumber, | ||
| int | maxNumber, | ||
| iOnNumberEnteredAction * | action, | ||
| const char * | name, | ||
| int | param = 0 |
||
| ) |
| void pawsNumberPromptWindow::LayoutWindow | ( | ) | [protected, virtual] |
Sets positions of widgets and size of whole window.
Reimplemented from pawsPromptWindow.
| void pawsNumberPromptWindow::NumberWasEntered | ( | int | count | ) | [protected] |
This is called when the user enters final count (which is valid)
| bool pawsNumberPromptWindow::OnButtonPressed | ( | int | button, |
| int | keyModifier, | ||
| pawsWidget * | widget | ||
| ) | [virtual] |
Called whenever a button is pressed.
| button | The button pressed. |
| keyModifier | Modifier key in effect. |
| widget | The widget the button belongs to. |
Reimplemented from pawsWidget.
| virtual bool pawsNumberPromptWindow::OnChange | ( | pawsWidget * | widget | ) | [virtual] |
Called whenever a widget is selected.
| widget | The widget acted upon. |
Reimplemented from pawsWidget.
| virtual bool pawsNumberPromptWindow::OnScroll | ( | int | scrollDirection, |
| pawsScrollBar * | widget | ||
| ) | [virtual] |
Called whenever a window is scrolled.
| scrollDirection | The direction to move. |
| widget | The scrollbar widget being manipulated. |
Reimplemented from pawsWidget.
| virtual bool pawsNumberPromptWindow::PostSetup | ( | ) | [virtual] |
| bool pawsNumberPromptWindow::TextIsValidForEditing | ( | const csString & | text | ) | [protected] |
Will we allow user to enter 'text' during editation ?
| bool pawsNumberPromptWindow::TextIsValidForOutput | ( | const csString & | text | ) | [protected] |
Will we allow user to return 'text' as the final result ? The difference is that TextIsValidForOutput() won't allow zero and empty string.
iOnNumberEnteredAction* pawsNumberPromptWindow::action [protected] |
Definition at line 90 of file pawsnumberpromptwindow.h.
pawsEditTextBox* pawsNumberPromptWindow::editBox [protected] |
Definition at line 87 of file pawsnumberpromptwindow.h.
csString pawsNumberPromptWindow::lastValidText [protected] |
This is last valid input from user - we use it to fall back from invalid input.
Definition at line 85 of file pawsnumberpromptwindow.h.
int pawsNumberPromptWindow::maxDigits [protected] |
Definition at line 82 of file pawsnumberpromptwindow.h.
int pawsNumberPromptWindow::maxNumber [protected] |
Definition at line 81 of file pawsnumberpromptwindow.h.
int pawsNumberPromptWindow::minNumber [protected] |
Definition at line 81 of file pawsnumberpromptwindow.h.
csString pawsNumberPromptWindow::name [protected] |
The name of this widget.
Reimplemented from pawsWidget.
Definition at line 91 of file pawsnumberpromptwindow.h.
int pawsNumberPromptWindow::param [protected] |
Definition at line 92 of file pawsnumberpromptwindow.h.
pawsScrollBar* pawsNumberPromptWindow::scrollBar [protected] |
Definition at line 88 of file pawsnumberpromptwindow.h.
1.7.3