Planeshift
Public Member Functions | Protected Member Functions | Protected Attributes

pawsConfigCamera Class Reference

#include <pawsconfigcamera.h>

List of all members.

Public Member Functions

virtual bool Initialize ()
virtual bool LoadConfig ()
 sets content of dialog according to current configuration
virtual bool OnButtonPressed (int mouseButton, int keyModifier, pawsWidget *widget)
 Called whenever a button is pressed.
 pawsConfigCamera ()
virtual bool SaveConfig ()
 remembers settings in-game and saves them permanently to a file also
virtual void SetDefault ()
 sets content of dialog according to default configuration
virtual ~pawsConfigCamera ()

Protected Member Functions

bool CreateTree ()
 Creates the tree that makes the whole GUI.
void CreateTreeWidgets (pawsTreeNode *subtreeRoot)
float GetCameraSetting (const csString &settingName, int mode) const
 Grabs a camera setting from the camera.
void SaveConfigByTreeNodes (pawsTreeNode *subtreeRoot)
 a recursive function to apply the tree's settings to the camera
void SetCameraSetting (const csString &settingName, float value, int mode) const
 applies a camera setting to the camera
void SetCameraValues (pawsTreeNode *subtreeRoot)
 Sets all values to the ones that have the camera (in subtree with root 'subtreeRoot')
void SetLabels (pawsTreeNode *subtreeRoot)

Protected Attributes

float inputWidth
float labelWidth
pawsTreetree

Detailed Description

Definition at line 40 of file pawsconfigcamera.h.


Constructor & Destructor Documentation

pawsConfigCamera::pawsConfigCamera ( )
virtual pawsConfigCamera::~pawsConfigCamera ( ) [virtual]

Member Function Documentation

bool pawsConfigCamera::CreateTree ( ) [protected]

Creates the tree that makes the whole GUI.

Returns:
success.
void pawsConfigCamera::CreateTreeWidgets ( pawsTreeNode subtreeRoot) [protected]
float pawsConfigCamera::GetCameraSetting ( const csString &  settingName,
int  mode 
) const [protected]

Grabs a camera setting from the camera.

Parameters:
settingNamethe name of the setting
modethe camera mode
Returns:
the value of the specific camera setting (for bool: +ve means true, -ve means false)
virtual bool pawsConfigCamera::Initialize ( ) [virtual]
virtual bool pawsConfigCamera::LoadConfig ( ) [virtual]

sets content of dialog according to current configuration

Implements pawsConfigSectionWindow.

virtual bool pawsConfigCamera::OnButtonPressed ( int  button,
int  keyModifier,
pawsWidget widget 
) [virtual]

Called whenever a button is pressed.

Parameters:
buttonThe button pressed.
keyModifierModifier key in effect.
widgetThe widget the button belongs to.
Returns:
bool Parent's result or FALSE if no parent.

Reimplemented from pawsWidget.

virtual bool pawsConfigCamera::SaveConfig ( ) [virtual]

remembers settings in-game and saves them permanently to a file also

Implements pawsConfigSectionWindow.

void pawsConfigCamera::SaveConfigByTreeNodes ( pawsTreeNode subtreeRoot) [protected]

a recursive function to apply the tree's settings to the camera

Parameters:
subtreeRootthe root of the current subtree
void pawsConfigCamera::SetCameraSetting ( const csString &  settingName,
float  value,
int  mode 
) const [protected]

applies a camera setting to the camera

Parameters:
settingNamethe name of the setting
valuethe new value (for bool: +ve means true, -ve means false)
modethe camera mode
void pawsConfigCamera::SetCameraValues ( pawsTreeNode subtreeRoot) [protected]

Sets all values to the ones that have the camera (in subtree with root 'subtreeRoot')

virtual void pawsConfigCamera::SetDefault ( ) [virtual]

sets content of dialog according to default configuration

Implements pawsConfigSectionWindow.

void pawsConfigCamera::SetLabels ( pawsTreeNode subtreeRoot) [protected]

Member Data Documentation

Definition at line 94 of file pawsconfigcamera.h.

Definition at line 93 of file pawsconfigcamera.h.

Definition at line 96 of file pawsconfigcamera.h.


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