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

#include <FenceOptions.h>

Inherits COptionsPanel.

Public Types

enum  { NAME_MAX_LEN = 64 }
 
enum  { IDD = IDD_FENCE_OPTIONS }
 
- Public Types inherited from COptionsPanel
enum  { IDD = IDD_NO_OPTIONS }
 

Public Member Functions

 FenceOptions (CWnd *pParent=NULL)
 standard constructor
 
 ~FenceOptions (void)
 standard destructor
 
- Public Member Functions inherited from COptionsPanel
 COptionsPanel (Int dlgid=0, CWnd *pParent=NULL)
 

Static Public Member Functions

static void update (void)
 
static Bool hasSelectedObject (void)
 
static Real getFenceSpacing (void)
 
static Real getFenceOffset (void)
 

Protected Member Functions

virtual void DoDataExchange (CDataExchange *pDX)
 
virtual void OnOK ()
 
virtual void OnCancel ()
 Modeless dialogs don't OK, so eat this for modeless.
 
virtual BOOL OnNotify (WPARAM wParam, LPARAM lParam, LRESULT *pResult)
 Modeless dialogs don't close on ESC, so eat this for modeless.
 
virtual BOOL OnInitDialog ()
 Setup the controls in the dialog.
 
afx_msg void OnChangeFenceSpacingEdit ()
 
void addObject (MapObject *mapObject, const char *pPath, const char *name, Int objectNdx, HTREEITEM parent)
 
HTREEITEM findOrAdd (HTREEITEM parent, const char *pLabel)
 
Bool setObjectTreeViewSelection (HTREEITEM parent, Int selection)
 Set the selected object in the tree view.
 
void updateObjectOptions ()
 
- 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

CTreeCtrl m_objectTreeView
 
MapObjectm_objectsList
 
Bool m_customSpacing
 

Static Protected Attributes

static FenceOptionsm_staticThis = NULL
 
static Bool m_updating = false
 
static Int m_currentObjectIndex =-1
 
static Real m_fenceSpacing =1
 
static Real m_fenceOffset =0
 

Detailed Description

Definition at line 36 of file FenceOptions.h.

Member Enumeration Documentation

◆ anonymous enum

anonymous enum
Enumerator
NAME_MAX_LEN 

Definition at line 43 of file FenceOptions.h.

◆ anonymous enum

anonymous enum
Enumerator
IDD 

Definition at line 46 of file FenceOptions.h.

Constructor & Destructor Documentation

◆ FenceOptions()

FenceOptions::FenceOptions ( CWnd * pParent = NULL)

standard constructor

Definition at line 59 of file FenceOptions.cpp.

◆ ~FenceOptions()

FenceOptions::~FenceOptions ( void )

standard destructor

Definition at line 69 of file FenceOptions.cpp.

Member Function Documentation

◆ addObject()

void FenceOptions::addObject ( MapObject * mapObject,
const char * pPath,
const char * name,
Int terrainNdx,
HTREEITEM parent )
protected

Add the object hierarchy paths to the tree view.

Definition at line 238 of file FenceOptions.cpp.

◆ DoDataExchange()

void FenceOptions::DoDataExchange ( CDataExchange * pDX)
protectedvirtual

Reimplemented from COptionsPanel.

Definition at line 78 of file FenceOptions.cpp.

◆ findOrAdd()

HTREEITEM FenceOptions::findOrAdd ( HTREEITEM parent,
const char * pLabel )
protected

Locate the child item in tree item parent with name pLabel. If not found, add it. Either way, return child.

Definition at line 205 of file FenceOptions.cpp.

◆ getFenceOffset()

static Real FenceOptions::getFenceOffset ( void )
inlinestatic

Definition at line 94 of file FenceOptions.h.

◆ getFenceSpacing()

static Real FenceOptions::getFenceSpacing ( void )
inlinestatic

Definition at line 93 of file FenceOptions.h.

◆ hasSelectedObject()

Bool FenceOptions::hasSelectedObject ( void )
static

Definition at line 312 of file FenceOptions.cpp.

◆ OnCancel()

virtual void FenceOptions::OnCancel ( )
inlineprotectedvirtual

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

Definition at line 57 of file FenceOptions.h.

◆ OnChangeFenceSpacingEdit()

void FenceOptions::OnChangeFenceSpacingEdit ( )
protected

Definition at line 404 of file FenceOptions.cpp.

◆ OnInitDialog()

BOOL FenceOptions::OnInitDialog ( )
protectedvirtual

Setup the controls in the dialog.

Definition at line 137 of file FenceOptions.cpp.

◆ OnNotify()

BOOL FenceOptions::OnNotify ( WPARAM wParam,
LPARAM lParam,
LRESULT * pResult )
protectedvirtual

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

Definition at line 361 of file FenceOptions.cpp.

◆ OnOK()

virtual void FenceOptions::OnOK ( )
inlineprotectedvirtual

Definition at line 56 of file FenceOptions.h.

◆ setObjectTreeViewSelection()

Bool FenceOptions::setObjectTreeViewSelection ( HTREEITEM parent,
Int selection )
protected

Set the selected object in the tree view.

Definition at line 334 of file FenceOptions.cpp.

◆ update()

void FenceOptions::update ( void )
static

Definition at line 96 of file FenceOptions.cpp.

◆ updateObjectOptions()

void FenceOptions::updateObjectOptions ( )
protected

Definition at line 103 of file FenceOptions.cpp.

Member Data Documentation

◆ m_currentObjectIndex

Int FenceOptions::m_currentObjectIndex =-1
staticprotected

Definition at line 75 of file FenceOptions.h.

◆ m_customSpacing

Bool FenceOptions::m_customSpacing
protected

Definition at line 81 of file FenceOptions.h.

◆ m_fenceOffset

Real FenceOptions::m_fenceOffset =0
staticprotected

Definition at line 77 of file FenceOptions.h.

◆ m_fenceSpacing

Real FenceOptions::m_fenceSpacing =1
staticprotected

Definition at line 76 of file FenceOptions.h.

◆ m_objectsList

MapObject* FenceOptions::m_objectsList
protected

Definition at line 80 of file FenceOptions.h.

◆ m_objectTreeView

CTreeCtrl FenceOptions::m_objectTreeView
protected

Definition at line 79 of file FenceOptions.h.

◆ m_staticThis

FenceOptions * FenceOptions::m_staticThis = NULL
staticprotected

Definition at line 73 of file FenceOptions.h.

◆ m_updating

Bool FenceOptions::m_updating = false
staticprotected

Definition at line 74 of file FenceOptions.h.


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