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

ContourOptions modeless (floating) dialog - allows entry and display of brush width and feather. More...

#include <ContourOptions.h>

Inherits CDialog.

Public Types

enum  {
  MIN_CONTOUR_STEP =1 , MAX_CONTOUR_STEP =10 , MIN_CONTOUR_OFFSET =-10 , MAX_CONTOUR_OFFSET =+10 ,
  MIN_WIDTH =1 , MAX_WIDTH =6
}
 
enum  { IDD = IDD_CONTOUR_OPTIONS }
 

Public Member Functions

 ContourOptions (CWnd *pParent=NULL)
 ContourOptions dialog trivial construstor - Create does the real work.
 

Static Public Member Functions

static Int getContourWidth (void)
 
static Int getContourOffset (void)
 Returns width.
 
static Int getContourStep (void)
 Returns offset.
 

Protected Member Functions

virtual void DoDataExchange (CDataExchange *pDX)
 Windows default stuff.
 
virtual BOOL OnInitDialog ()
 Dialog UI initialization.
 
afx_msg void OnHScroll (UINT nSBCode, UINT nPos, CScrollBar *pScrollBar)
 Handles slider ui messages.
 
afx_msg void OnShowContours ()
 

Protected Attributes

Bool m_updating
 true if the ui is updating itself.
 
CSliderCtrl m_contourStepSlider
 Feather slider control.
 
CSliderCtrl m_contourOffsetSlider
 Brush width slider control.
 
CSliderCtrl m_contourWidthSlider
 Brush width slider control.
 

Static Protected Attributes

static Int m_contourStep = 5
 current contour step in the ui.
 
static Int m_contourOffset = 0
 current contour offset in the ui.
 
static Int m_contourWidth = 1
 current contour offset in the ui.
 

Detailed Description

ContourOptions modeless (floating) dialog - allows entry and display of brush width and feather.

Definition at line 31 of file ContourOptions.h.

Member Enumeration Documentation

◆ anonymous enum

anonymous enum
Enumerator
MIN_CONTOUR_STEP 
MAX_CONTOUR_STEP 
MIN_CONTOUR_OFFSET 
MAX_CONTOUR_OFFSET 
MIN_WIDTH 
MAX_WIDTH 

Definition at line 35 of file ContourOptions.h.

◆ anonymous enum

anonymous enum
Enumerator
IDD 

Definition at line 46 of file ContourOptions.h.

Constructor & Destructor Documentation

◆ ContourOptions()

ContourOptions::ContourOptions ( CWnd * pParent = NULL)

ContourOptions dialog trivial construstor - Create does the real work.

Definition at line 36 of file ContourOptions.cpp.

Member Function Documentation

◆ DoDataExchange()

void ContourOptions::DoDataExchange ( CDataExchange * pDX)
protectedvirtual

Windows default stuff.

Definition at line 45 of file ContourOptions.cpp.

◆ getContourOffset()

static Int ContourOptions::getContourOffset ( void )
inlinestatic

Returns width.

Definition at line 81 of file ContourOptions.h.

◆ getContourStep()

static Int ContourOptions::getContourStep ( void )
inlinestatic

Returns offset.

Definition at line 82 of file ContourOptions.h.

◆ getContourWidth()

static Int ContourOptions::getContourWidth ( void )
inlinestatic

Definition at line 80 of file ContourOptions.h.

◆ OnHScroll()

void ContourOptions::OnHScroll ( UINT nSBCode,
UINT nPos,
CScrollBar * pScrollBar )
protected

Handles slider ui messages.

Gets the info, determines if it is the feather or width slider, gets the new value, and updates the correspondig edit control and the brush tool.

Definition at line 113 of file ContourOptions.cpp.

◆ OnInitDialog()

BOOL ContourOptions::OnInitDialog ( )
protectedvirtual

Dialog UI initialization.

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

Definition at line 61 of file ContourOptions.cpp.

◆ OnShowContours()

void ContourOptions::OnShowContours ( )
protected

Definition at line 151 of file ContourOptions.cpp.

Member Data Documentation

◆ m_contourOffset

Int ContourOptions::m_contourOffset = 0
staticprotected

current contour offset in the ui.

Definition at line 71 of file ContourOptions.h.

◆ m_contourOffsetSlider

CSliderCtrl ContourOptions::m_contourOffsetSlider
protected

Brush width slider control.

Definition at line 76 of file ContourOptions.h.

◆ m_contourStep

Int ContourOptions::m_contourStep = 5
staticprotected

current contour step in the ui.

Definition at line 70 of file ContourOptions.h.

◆ m_contourStepSlider

CSliderCtrl ContourOptions::m_contourStepSlider
protected

Feather slider control.

Definition at line 75 of file ContourOptions.h.

◆ m_contourWidth

Int ContourOptions::m_contourWidth = 1
staticprotected

current contour offset in the ui.

Definition at line 72 of file ContourOptions.h.

◆ m_contourWidthSlider

CSliderCtrl ContourOptions::m_contourWidthSlider
protected

Brush width slider control.

Definition at line 77 of file ContourOptions.h.

◆ m_updating

Bool ContourOptions::m_updating
protected

true if the ui is updating itself.

Definition at line 74 of file ContourOptions.h.


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