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

#include <BlendMaterial.h>

Inherits COptionsPanel.

Public Types

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

Public Member Functions

 BlendMaterial (CWnd *pParent=NULL)
 
Bool setTerrainTreeViewSelection (HTREEITEM parent, Int selection)
 Set the selected texture in the tree view.
 
- Public Member Functions inherited from COptionsPanel
 COptionsPanel (Int dlgid=0, CWnd *pParent=NULL)
 

Static Public Member Functions

static Int getBlendTexClass (void)
 
static void setBlendTexClass (Int texClass)
 Set foreground texture and invalidate swatches.
 

Protected Types

enum  { MIN_TILE_SIZE =2 , MAX_TILE_SIZE = 100 }
 

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.
 
void updateTextures (void)
 
void addTerrain (const char *pPath, Int terrainNdx, HTREEITEM parent)
 
HTREEITEM findOrAdd (HTREEITEM parent, char *pLabel)
 
- 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
 
CTreeCtrl m_terrainTreeView
 

Static Protected Attributes

static BlendMaterialm_staticThis = NULL
 
static Int m_currentBlendTexture
 

Detailed Description

Definition at line 35 of file BlendMaterial.h.

Member Enumeration Documentation

◆ anonymous enum

anonymous enum
protected
Enumerator
MIN_TILE_SIZE 
MAX_TILE_SIZE 

Definition at line 60 of file BlendMaterial.h.

◆ anonymous enum

anonymous enum
Enumerator
IDD 

Definition at line 43 of file BlendMaterial.h.

Constructor & Destructor Documentation

◆ BlendMaterial()

BlendMaterial::BlendMaterial ( CWnd * pParent = NULL)

Definition at line 43 of file BlendMaterial.cpp.

Member Function Documentation

◆ addTerrain()

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

Add the terrain path to the tree view.

Definition at line 172 of file BlendMaterial.cpp.

◆ DoDataExchange()

void BlendMaterial::DoDataExchange ( CDataExchange * pDX)
protectedvirtual

Reimplemented from COptionsPanel.

Definition at line 52 of file BlendMaterial.cpp.

◆ findOrAdd()

HTREEITEM BlendMaterial::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 141 of file BlendMaterial.cpp.

◆ getBlendTexClass()

static Int BlendMaterial::getBlendTexClass ( void )
inlinestatic

Definition at line 80 of file BlendMaterial.h.

◆ OnCancel()

virtual void BlendMaterial::OnCancel ( )
inlineprotectedvirtual

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

Definition at line 54 of file BlendMaterial.h.

◆ OnInitDialog()

BOOL BlendMaterial::OnInitDialog ( )
protectedvirtual

Setup the controls in the dialog.

Definition at line 110 of file BlendMaterial.cpp.

◆ OnNotify()

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

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

Definition at line 253 of file BlendMaterial.cpp.

◆ OnOK()

virtual void BlendMaterial::OnOK ( )
inlineprotectedvirtual

Definition at line 53 of file BlendMaterial.h.

◆ setBlendTexClass()

void BlendMaterial::setBlendTexClass ( Int texClass)
static

Set foreground texture and invalidate swatches.

Definition at line 70 of file BlendMaterial.cpp.

◆ setTerrainTreeViewSelection()

Bool BlendMaterial::setTerrainTreeViewSelection ( HTREEITEM parent,
Int selection )

Set the selected texture in the tree view.

Definition at line 81 of file BlendMaterial.cpp.

◆ updateTextures()

void BlendMaterial::updateTextures ( void )
protected

Definition at line 231 of file BlendMaterial.cpp.

Member Data Documentation

◆ m_currentBlendTexture

Int BlendMaterial::m_currentBlendTexture
staticprotected

Definition at line 71 of file BlendMaterial.h.

◆ m_staticThis

BlendMaterial * BlendMaterial::m_staticThis = NULL
staticprotected

Definition at line 69 of file BlendMaterial.h.

◆ m_terrainTreeView

CTreeCtrl BlendMaterial::m_terrainTreeView
protected

Definition at line 72 of file BlendMaterial.h.

◆ m_updating

Bool BlendMaterial::m_updating
protected

Definition at line 70 of file BlendMaterial.h.


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