Planeshift
Public Member Functions | Protected Attributes

pawsConfigMarriage Class Reference

Currently only used to provide an option to always deny marriage invites. More...

#include <pawsconfigmarriage.h>

List of all members.

Public Member Functions

virtual bool Initialize ()
 Loads XML layout from configmarriage.xml.
virtual bool LoadConfig ()
 Sets radio groups settings according to user settings.
virtual bool OnChange (pawsWidget *widget)
 Called whenever a child widget changes.
virtual bool PostSetup ()
 Assign confirmRadioGroup appropriately.
virtual bool SaveConfig ()
 Saves the settings to engine and file.
virtual void SetDefault ()
 Sets the confirmation to allow marriage proposals rather than ignoring all.

Protected Attributes

pawsRadioButtonGroupconfirmRadioGroup

Detailed Description

Currently only used to provide an option to always deny marriage invites.

Options screen for configuring marriages

Definition at line 39 of file pawsconfigmarriage.h.


Member Function Documentation

virtual bool pawsConfigMarriage::Initialize ( ) [virtual]

Loads XML layout from configmarriage.xml.

Returns:
True if the XML successfully loaded, false otherwise

Implements pawsConfigSectionWindow.

virtual bool pawsConfigMarriage::LoadConfig ( ) [virtual]

Sets radio groups settings according to user settings.

Returns:
True

Implements pawsConfigSectionWindow.

virtual bool pawsConfigMarriage::OnChange ( pawsWidget widget) [virtual]

Called whenever a child widget changes.

If the widget is the radio group this window becomes dirty

Returns:
True

Reimplemented from pawsWidget.

virtual bool pawsConfigMarriage::PostSetup ( ) [virtual]

Assign confirmRadioGroup appropriately.

Returns:
False if radio group was not found in XML, True otherwise

Reimplemented from pawsWidget.

virtual bool pawsConfigMarriage::SaveConfig ( ) [virtual]

Saves the settings to engine and file.

Returns:
True

Implements pawsConfigSectionWindow.

virtual void pawsConfigMarriage::SetDefault ( ) [virtual]

Sets the confirmation to allow marriage proposals rather than ignoring all.

Implements pawsConfigSectionWindow.


Member Data Documentation

Definition at line 81 of file pawsconfigmarriage.h.


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