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

#include <TerrainModal.h>

Inherits CDialog.

Public Types

enum  { IDD = IDD_TERRAIN_MODAL }
 

Public Member Functions

 TerrainModal (AsciiString path, WorldHeightMapEdit *pMap, CWnd *pParent=NULL)
 
Int getNewNdx (void)
 

Protected Member Functions

virtual void DoDataExchange (CDataExchange *pDX)
 
virtual BOOL OnNotify (WPARAM wParam, LPARAM lParam, LRESULT *pResult)
 
virtual BOOL OnInitDialog ()
 Setup the controls in the dialog.
 
void addTerrain (char *pPath, Int terrainNdx, HTREEITEM parent)
 
HTREEITEM findOrAdd (HTREEITEM parent, char *pLabel)
 
void updateLabel (void)
 
void updateTextures (void)
 
Bool setTerrainTreeViewSelection (HTREEITEM parent, Int selection)
 Set the selected texture in the tree view.
 

Protected Attributes

Int m_currentFgTexture
 
AsciiString m_pathToReplace
 
CTreeCtrl m_terrainTreeView
 
TerrainSwatches m_terrainSwatches
 
WorldHeightMapEditm_map
 

Detailed Description

Definition at line 34 of file TerrainModal.h.

Member Enumeration Documentation

◆ anonymous enum

anonymous enum
Enumerator
IDD 

Definition at line 42 of file TerrainModal.h.

Constructor & Destructor Documentation

◆ TerrainModal()

TerrainModal::TerrainModal ( AsciiString path,
WorldHeightMapEdit * pMap,
CWnd * pParent = NULL )

Definition at line 37 of file TerrainModal.cpp.

Member Function Documentation

◆ addTerrain()

void TerrainModal::addTerrain ( char * pPath,
Int terrainNdx,
HTREEITEM parent )
protected

Add the terrain path to the tree view.

Definition at line 147 of file TerrainModal.cpp.

◆ DoDataExchange()

void TerrainModal::DoDataExchange ( CDataExchange * pDX)
protectedvirtual

Definition at line 48 of file TerrainModal.cpp.

◆ findOrAdd()

HTREEITEM TerrainModal::findOrAdd ( HTREEITEM parent,
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 116 of file TerrainModal.cpp.

◆ getNewNdx()

Int TerrainModal::getNewNdx ( void )
inline

Definition at line 79 of file TerrainModal.h.

◆ OnInitDialog()

BOOL TerrainModal::OnInitDialog ( )
protectedvirtual

Setup the controls in the dialog.

Definition at line 83 of file TerrainModal.cpp.

◆ OnNotify()

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

Definition at line 270 of file TerrainModal.cpp.

◆ setTerrainTreeViewSelection()

Bool TerrainModal::setTerrainTreeViewSelection ( HTREEITEM parent,
Int selection )
protected

Set the selected texture in the tree view.

Definition at line 244 of file TerrainModal.cpp.

◆ updateLabel()

void TerrainModal::updateLabel ( void )
protected

Definition at line 57 of file TerrainModal.cpp.

◆ updateTextures()

void TerrainModal::updateTextures ( void )
protected

Definition at line 224 of file TerrainModal.cpp.

Member Data Documentation

◆ m_currentFgTexture

Int TerrainModal::m_currentFgTexture
protected

Definition at line 65 of file TerrainModal.h.

◆ m_map

WorldHeightMapEdit* TerrainModal::m_map
protected

Definition at line 69 of file TerrainModal.h.

◆ m_pathToReplace

AsciiString TerrainModal::m_pathToReplace
protected

Definition at line 66 of file TerrainModal.h.

◆ m_terrainSwatches

TerrainSwatches TerrainModal::m_terrainSwatches
protected

Definition at line 68 of file TerrainModal.h.

◆ m_terrainTreeView

CTreeCtrl TerrainModal::m_terrainTreeView
protected

Definition at line 67 of file TerrainModal.h.


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