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

#include <MoundOptions.h>

Inherits COptionsPanel, and PopupSliderOwner.

Public Types

enum  { MIN_MOUND_HEIGHT =1 , MAX_MOUND_HEIGHT =21 }
 
enum  { MIN_BRUSH_SIZE =1 , MAX_BRUSH_SIZE =51 , MIN_FEATHER =0 , MAX_FEATHER =20 }
 
enum  { IDD = IDD_BRUSH_OPTIONS }
 
- Public Types inherited from COptionsPanel
enum  { IDD = IDD_NO_OPTIONS }
 

Public Member Functions

 MoundOptions (CWnd *pParent=NULL)
 MoundOptions 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 setWidth (Int width)
 Sets the brush width value in the dialog.
 
static void setFeather (Int feather)
 Sets the feather value in the dialog.
 
static void setHeight (Int height)
 

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 OnChangeFeatherEdit ()
 Handles feather edit ui messages.
 
afx_msg void OnChangeSizeEdit ()
 Handles width edit ui messages.
 
afx_msg void OnChangeHeightEdit ()
 Handles width edit ui messages.
 
- 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_brushWidthPopup
 
WBPopupSliderButton m_brushFeatherPopup
 
WBPopupSliderButton m_brushHeightPopup
 

Static Protected Attributes

static MoundOptionsm_staticThis = NULL
 Reference to the floating panel so SetWidth and SetFeather can be static.
 
static Int m_currentWidth = 0
 current brush width in the ui.
 
static Int m_currentFeather = 0
 current feather width in the ui.
 
static Int m_currentHeight = 0
 

Detailed Description

Definition at line 33 of file MoundOptions.h.

Member Enumeration Documentation

◆ anonymous enum

anonymous enum
Enumerator
MIN_BRUSH_SIZE 
MAX_BRUSH_SIZE 
MIN_FEATHER 
MAX_FEATHER 

Definition at line 43 of file MoundOptions.h.

◆ anonymous enum

anonymous enum
Enumerator
IDD 

Definition at line 52 of file MoundOptions.h.

◆ anonymous enum

anonymous enum
Enumerator
MIN_MOUND_HEIGHT 
MAX_MOUND_HEIGHT 

Definition at line 37 of file MoundOptions.h.

Constructor & Destructor Documentation

◆ MoundOptions()

MoundOptions::MoundOptions ( CWnd * pParent = NULL)

MoundOptions dialog trivial construstor - Create does the real work.

Definition at line 37 of file MoundOptions.cpp.

Member Function Documentation

◆ DoDataExchange()

void MoundOptions::DoDataExchange ( CDataExchange * pDX)
protectedvirtual

Windows default stuff.

Reimplemented from COptionsPanel.

Definition at line 45 of file MoundOptions.cpp.

◆ GetPopSliderInfo()

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

Implements PopupSliderOwner.

Definition at line 186 of file MoundOptions.cpp.

◆ OnCancel()

virtual void MoundOptions::OnCancel ( )
inlineprotectedvirtual

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

Definition at line 63 of file MoundOptions.h.

◆ OnChangeFeatherEdit()

void MoundOptions::OnChangeFeatherEdit ( )
protected

Handles feather edit ui messages.

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

Definition at line 120 of file MoundOptions.cpp.

◆ OnChangeHeightEdit()

void MoundOptions::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 166 of file MoundOptions.cpp.

◆ OnChangeSizeEdit()

void MoundOptions::OnChangeSizeEdit ( )
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 143 of file MoundOptions.cpp.

◆ OnInitDialog()

BOOL MoundOptions::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 98 of file MoundOptions.cpp.

◆ OnOK()

virtual void MoundOptions::OnOK ( )
inlineprotectedvirtual

Definition at line 62 of file MoundOptions.h.

◆ PopSliderChanged()

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

Implements PopupSliderOwner.

Definition at line 218 of file MoundOptions.cpp.

◆ PopSliderFinished()

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

Implements PopupSliderOwner.

Definition at line 255 of file MoundOptions.cpp.

◆ setFeather()

void MoundOptions::setFeather ( Int feather)
static

Sets the feather value in the dialog.

Update the value in the edit control and the slider.

Definition at line 55 of file MoundOptions.cpp.

◆ setHeight()

void MoundOptions::setHeight ( Int height)
static

Definition at line 79 of file MoundOptions.cpp.

◆ setWidth()

void MoundOptions::setWidth ( Int width)
static

Sets the brush width value in the dialog.

Update the value in the edit control and the slider.

Definition at line 68 of file MoundOptions.cpp.

Member Data Documentation

◆ m_brushFeatherPopup

WBPopupSliderButton MoundOptions::m_brushFeatherPopup
protected

Definition at line 86 of file MoundOptions.h.

◆ m_brushHeightPopup

WBPopupSliderButton MoundOptions::m_brushHeightPopup
protected

Definition at line 87 of file MoundOptions.h.

◆ m_brushWidthPopup

WBPopupSliderButton MoundOptions::m_brushWidthPopup
protected

Definition at line 85 of file MoundOptions.h.

◆ m_currentFeather

Int MoundOptions::m_currentFeather = 0
staticprotected

current feather width in the ui.

Definition at line 81 of file MoundOptions.h.

◆ m_currentHeight

Int MoundOptions::m_currentHeight = 0
staticprotected

Definition at line 82 of file MoundOptions.h.

◆ m_currentWidth

Int MoundOptions::m_currentWidth = 0
staticprotected

current brush width in the ui.

Definition at line 80 of file MoundOptions.h.

◆ m_staticThis

MoundOptions * MoundOptions::m_staticThis = NULL
staticprotected

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

Definition at line 79 of file MoundOptions.h.

◆ m_updating

Bool MoundOptions::m_updating
protected

true if the ui is updating itself.

Definition at line 84 of file MoundOptions.h.


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