Planeshift
|
pawsPromptWindow is the common base for windows that let the user enter one piece of information. More...
#include <pawspromptwindow.h>
Public Member Functions | |
pawsPromptWindow () | |
Basic constructor. | |
pawsPromptWindow (const pawsPromptWindow &origin) | |
virtual bool | PostSetup () |
Executed after the widget is setup. | |
void | SetLabel (const csString &label) |
Sets the label/title for the widget. | |
void | SetSpacing (int spacing) |
Sets the spacing in between the widgets. | |
Protected Member Functions | |
virtual void | LayoutWindow () |
Sets positions of widgets and size of whole window. | |
void | SetAppropriatePos () |
Sets good position on screen (=under mouse cursor) | |
Protected Attributes | |
pawsButton * | cancelButton |
The button that is used to cancel the input for the window. | |
pawsWidget * | helperWidget |
A generic widget that simply helps describe or facilitate the inputWidget, does not have to be defined. | |
pawsWidget * | inputWidget |
The primary widget for gathering input from the user. | |
pawsTextBox * | label |
The label that is used as a title for the window. | |
pawsButton * | okButton |
The button that is used to accept the input for the window. | |
int | spacing |
The spacing in between each of the widgets. |
pawsPromptWindow is the common base for windows that let the user enter one piece of information.
It has a label telling the user what is expected, OK and Cancel buttons and *some* widget that is used to enter the information. Different widgets are used for different kinds of input.
Definition at line 40 of file pawspromptwindow.h.
pawsPromptWindow::pawsPromptWindow | ( | ) |
Basic constructor.
pawsPromptWindow::pawsPromptWindow | ( | const pawsPromptWindow & | origin | ) |
virtual void pawsPromptWindow::LayoutWindow | ( | ) | [protected, virtual] |
Sets positions of widgets and size of whole window.
Reimplemented in pawsNumberPromptWindow.
virtual bool pawsPromptWindow::PostSetup | ( | ) | [virtual] |
Executed after the widget is setup.
Reimplemented from pawsWidget.
Reimplemented in pawsColorPromptWindow, pawsComboPromptWindow, pawsMeterPromptWindow, and pawsNumberPromptWindow.
void pawsPromptWindow::SetAppropriatePos | ( | ) | [protected] |
Sets good position on screen (=under mouse cursor)
void pawsPromptWindow::SetLabel | ( | const csString & | label | ) |
Sets the label/title for the widget.
label | The new value for the label/title |
void pawsPromptWindow::SetSpacing | ( | int | spacing | ) |
Sets the spacing in between the widgets.
spacing | The new amount of spacing in between each widget |
pawsButton* pawsPromptWindow::cancelButton [protected] |
The button that is used to cancel the input for the window.
Definition at line 76 of file pawspromptwindow.h.
pawsWidget* pawsPromptWindow::helperWidget [protected] |
A generic widget that simply helps describe or facilitate the inputWidget, does not have to be defined.
Definition at line 78 of file pawspromptwindow.h.
pawsWidget* pawsPromptWindow::inputWidget [protected] |
The primary widget for gathering input from the user.
Definition at line 80 of file pawspromptwindow.h.
pawsTextBox* pawsPromptWindow::label [protected] |
The label that is used as a title for the window.
Definition at line 72 of file pawspromptwindow.h.
pawsButton* pawsPromptWindow::okButton [protected] |
The button that is used to accept the input for the window.
Definition at line 74 of file pawspromptwindow.h.
int pawsPromptWindow::spacing [protected] |
The spacing in between each of the widgets.
Definition at line 82 of file pawspromptwindow.h.