Planeshift
Public Member Functions | Protected Member Functions | Protected Attributes

pawsPromptWindow Class Reference

pawsPromptWindow is the common base for windows that let the user enter one piece of information. More...

#include <pawspromptwindow.h>

List of all members.

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

pawsButtoncancelButton
 The button that is used to cancel the input for the window.
pawsWidgethelperWidget
 A generic widget that simply helps describe or facilitate the inputWidget, does not have to be defined.
pawsWidgetinputWidget
 The primary widget for gathering input from the user.
pawsTextBoxlabel
 The label that is used as a title for the window.
pawsButtonokButton
 The button that is used to accept the input for the window.
int spacing
 The spacing in between each of the widgets.

Detailed Description

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.


Constructor & Destructor Documentation

pawsPromptWindow::pawsPromptWindow ( )

Basic constructor.

pawsPromptWindow::pawsPromptWindow ( const pawsPromptWindow origin)

Member Function Documentation

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.

Returns:
true

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.

Parameters:
labelThe new value for the label/title
void pawsPromptWindow::SetSpacing ( int  spacing)

Sets the spacing in between the widgets.

Parameters:
spacingThe new amount of spacing in between each widget

Member Data Documentation

The button that is used to cancel the input for the window.

Definition at line 76 of file pawspromptwindow.h.

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.

The primary widget for gathering input from the user.

Definition at line 80 of file pawspromptwindow.h.

The label that is used as a title for the window.

Definition at line 72 of file pawspromptwindow.h.

The button that is used to accept the input for the window.

Definition at line 74 of file pawspromptwindow.h.

The spacing in between each of the widgets.

Definition at line 82 of file pawspromptwindow.h.


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