Richard Boegli's CnC_Generals_Zero_Hour Fork WIP
This is documentation of Richard Boegil's Zero Hour Fork
 
Loading...
Searching...
No Matches
WaterOptions Class Reference

#include <WaterOptions.h>

Inherits COptionsPanel, and PopupSliderOwner.

Public Types

enum  { IDD = IDD_WATER_OPTIONS }
 
- Public Types inherited from COptionsPanel
enum  { IDD = IDD_NO_OPTIONS }
 

Public Member Functions

 WaterOptions (CWnd *pParent=NULL)
 WaterOptions dialog trivial construstor - Create does the real work.
 
virtual void GetPopSliderInfo (const long sliderID, long *pMin, long *pMax, long *pLineSize, long *pInitial)
 
virtual void PopSliderChanged (const long sliderID, long theVal)
 
virtual void PopSliderFinished (const long sliderID, long theVal)
 
- Public Member Functions inherited from COptionsPanel
 COptionsPanel (Int dlgid=0, CWnd *pParent=NULL)
 

Static Public Member Functions

static void update (void)
 
static void setHeight (Int height)
 
static Int getHeight (void)
 
static Int getSpacing (void)
 
static Bool getCreatingWaterAreas (void)
 

Protected Member Functions

virtual void DoDataExchange (CDataExchange *pDX)
 Windows default stuff.
 
virtual void OnOK ()
 
virtual void OnCancel ()
 Modeless dialogs don't OK, so eat this for modeless.
 
virtual BOOL OnInitDialog ()
 Modeless dialogs don't close on ESC, so eat this for modeless.
 
afx_msg void OnChangeWaterEdit ()
 
afx_msg void OnChangeHeightEdit ()
 Handles width edit ui messages.
 
afx_msg void OnChangeSpacingEdit ()
 Handles width edit ui messages.
 
afx_msg void OnWaterPolygon ()
 
afx_msg void OnMakeRiver ()
 
void updateTheUI (void)
 
void startUpdateHeight (void)
 
void updateHeight (void)
 
void endUpdateHeight (void)
 
PolygonTriggeradjustCount (PolygonTrigger *trigger, Int firstPt, Int lastPt, Int desiredPointCount)
 Adjust the spacing.
 
- Protected Member Functions inherited from COptionsPanel
afx_msg void OnMove (int x, int y)
 
afx_msg void OnEditRedo ()
 
afx_msg void OnUpdateEditRedo (CCmdUI *pCmdUI)
 
afx_msg void OnEditUndo ()
 
afx_msg void OnUpdateEditUndo (CCmdUI *pCmdUI)
 

Protected Attributes

Bool m_updating
 true if the ui is updating itself.
 
WBPopupSliderButton m_waterHeightPopup
 
MovePolygonUndoablem_moveUndoable
 
Int m_originalHeight
 

Static Protected Attributes

static WaterOptionsm_staticThis = NULL
 Reference to the floating panel so SetWidth and SetFeather can be static.
 
static Int m_waterHeight = 7
 
static Int m_waterPointSpacing = MAP_XY_FACTOR
 
static Bool m_creatingWaterAreas = false
 True if we are creating flood fill water polygons, rather than dropping single points.
 

Detailed Description

Definition at line 37 of file WaterOptions.h.

Member Enumeration Documentation

◆ anonymous enum

anonymous enum
Enumerator
IDD 

Definition at line 46 of file WaterOptions.h.

Constructor & Destructor Documentation

◆ WaterOptions()

WaterOptions::WaterOptions ( CWnd * pParent = NULL)

WaterOptions dialog trivial construstor - Create does the real work.

Definition at line 45 of file WaterOptions.cpp.

Member Function Documentation

◆ adjustCount()

PolygonTrigger * WaterOptions::adjustCount ( PolygonTrigger * trigger,
Int firstPt,
Int lastPt,
Int desiredPointCount )
protected

Adjust the spacing.

Definition at line 266 of file WaterOptions.cpp.

◆ DoDataExchange()

void WaterOptions::DoDataExchange ( CDataExchange * pDX)
protectedvirtual

Windows default stuff.

Reimplemented from COptionsPanel.

Definition at line 54 of file WaterOptions.cpp.

◆ endUpdateHeight()

void WaterOptions::endUpdateHeight ( void )
protected

Definition at line 460 of file WaterOptions.cpp.

◆ getCreatingWaterAreas()

static Bool WaterOptions::getCreatingWaterAreas ( void )
inlinestatic

Definition at line 95 of file WaterOptions.h.

◆ getHeight()

static Int WaterOptions::getHeight ( void )
inlinestatic

Definition at line 93 of file WaterOptions.h.

◆ GetPopSliderInfo()

void WaterOptions::GetPopSliderInfo ( const long sliderID,
long * pMin,
long * pMax,
long * pLineSize,
long * pInitial )
virtual

Implements PopupSliderOwner.

Definition at line 347 of file WaterOptions.cpp.

◆ getSpacing()

static Int WaterOptions::getSpacing ( void )
inlinestatic

Definition at line 94 of file WaterOptions.h.

◆ OnCancel()

virtual void WaterOptions::OnCancel ( )
inlineprotectedvirtual

Modeless dialogs don't OK, so eat this for modeless.

Definition at line 57 of file WaterOptions.h.

◆ OnChangeHeightEdit()

void WaterOptions::OnChangeHeightEdit ( )
protected

Handles width edit ui messages.

Gets the new edit control text, converts it to an int, then updates the slider and brush tool.

Definition at line 469 of file WaterOptions.cpp.

◆ OnChangeSpacingEdit()

void WaterOptions::OnChangeSpacingEdit ( )
protected

Handles width edit ui messages.

Gets the new edit control text, converts it to an int, then updates the slider and brush tool.

Definition at line 491 of file WaterOptions.cpp.

◆ OnChangeWaterEdit()

void WaterOptions::OnChangeWaterEdit ( )
protected

Definition at line 141 of file WaterOptions.cpp.

◆ OnInitDialog()

BOOL WaterOptions::OnInitDialog ( )
protectedvirtual

Modeless dialogs don't close on ESC, so eat this for modeless.

Dialog UI initialization.

Creates the slider controls, and sets the initial values for width and feather in the ui controls.

Definition at line 114 of file WaterOptions.cpp.

◆ OnMakeRiver()

void WaterOptions::OnMakeRiver ( )
protected

Definition at line 194 of file WaterOptions.cpp.

◆ OnOK()

virtual void WaterOptions::OnOK ( )
inlineprotectedvirtual

Definition at line 56 of file WaterOptions.h.

◆ OnWaterPolygon()

void WaterOptions::OnWaterPolygon ( )
protected

Definition at line 188 of file WaterOptions.cpp.

◆ PopSliderChanged()

void WaterOptions::PopSliderChanged ( const long sliderID,
long theVal )
virtual

Implements PopupSliderOwner.

Definition at line 366 of file WaterOptions.cpp.

◆ PopSliderFinished()

void WaterOptions::PopSliderFinished ( const long sliderID,
long theVal )
virtual

Implements PopupSliderOwner.

Definition at line 392 of file WaterOptions.cpp.

◆ setHeight()

void WaterOptions::setHeight ( Int height)
static

Definition at line 62 of file WaterOptions.cpp.

◆ startUpdateHeight()

void WaterOptions::startUpdateHeight ( void )
protected

Definition at line 408 of file WaterOptions.cpp.

◆ update()

void WaterOptions::update ( void )
static

Definition at line 101 of file WaterOptions.cpp.

◆ updateHeight()

void WaterOptions::updateHeight ( void )
protected

Definition at line 435 of file WaterOptions.cpp.

◆ updateTheUI()

void WaterOptions::updateTheUI ( void )
protected

Definition at line 73 of file WaterOptions.cpp.

Member Data Documentation

◆ m_creatingWaterAreas

Bool WaterOptions::m_creatingWaterAreas = false
staticprotected

True if we are creating flood fill water polygons, rather than dropping single points.

Definition at line 82 of file WaterOptions.h.

◆ m_moveUndoable

MovePolygonUndoable* WaterOptions::m_moveUndoable
protected

Definition at line 79 of file WaterOptions.h.

◆ m_originalHeight

Int WaterOptions::m_originalHeight
protected

Definition at line 80 of file WaterOptions.h.

◆ m_staticThis

WaterOptions * WaterOptions::m_staticThis = NULL
staticprotected

Reference to the floating panel so SetWidth and SetFeather can be static.

Definition at line 75 of file WaterOptions.h.

◆ m_updating

Bool WaterOptions::m_updating
protected

true if the ui is updating itself.

Definition at line 76 of file WaterOptions.h.

◆ m_waterHeight

Int WaterOptions::m_waterHeight = 7
staticprotected

Definition at line 77 of file WaterOptions.h.

◆ m_waterHeightPopup

WBPopupSliderButton WaterOptions::m_waterHeightPopup
protected

Definition at line 78 of file WaterOptions.h.

◆ m_waterPointSpacing

Int WaterOptions::m_waterPointSpacing = MAP_XY_FACTOR
staticprotected

Definition at line 81 of file WaterOptions.h.


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