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

#include <BuildList.h>

Inherits COptionsPanel, and PopupSliderOwner.

Public Types

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

Public Member Functions

 BuildList (CWnd *pParent=NULL)
 standard constructor
 
 ~BuildList (void)
 standard destructor
 
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 addBuilding (Coord3D loc, Real angle, AsciiString name)
 
static void update (void)
 
static void setSelectedBuildList (BuildListInfo *pInfo)
 

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 OnInitDialog ()
 Modeless dialogs don't close on ESC, so eat this for modeless.
 
afx_msg void OnSelchangeSidesCombo ()
 
afx_msg void OnMoveUp ()
 
afx_msg void OnMoveDown ()
 
afx_msg void OnAddBuilding ()
 
afx_msg void OnSelchangeBuildList ()
 
afx_msg void OnAlreadyBuild ()
 
afx_msg void OnDeleteBuilding ()
 
afx_msg void OnSelendokRebuilds ()
 
afx_msg void OnEditchangeRebuilds ()
 
afx_msg void OnDblclkBuildList ()
 
afx_msg void OnChangeZOffset ()
 
afx_msg void OnChangeAngle ()
 
afx_msg void OnExport ()
 
void loadSides (void)
 Load the sides in the sides list.
 
void updateCurSide (void)
 Updates the current side, loading it's build list.
 
- 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

Int m_curSide
 
Int m_curBuildList
 
WBPopupSliderButton m_heightSlider
 
WBPopupSliderButton m_angleSlider
 
Real m_angle
 
Real m_height
 

Static Protected Attributes

static BuildListm_staticThis = NULL
 
static Bool m_updating = false
 

Detailed Description

Definition at line 37 of file BuildList.h.

Member Enumeration Documentation

◆ anonymous enum

anonymous enum
Enumerator
NAME_MAX_LEN 

Definition at line 44 of file BuildList.h.

◆ anonymous enum

anonymous enum
Enumerator
IDD 

Definition at line 47 of file BuildList.h.

Constructor & Destructor Documentation

◆ BuildList()

BuildList::BuildList ( CWnd * pParent = NULL)

standard constructor

Definition at line 48 of file BuildList.cpp.

◆ ~BuildList()

BuildList::~BuildList ( void )

standard destructor

Definition at line 56 of file BuildList.cpp.

Member Function Documentation

◆ addBuilding()

void BuildList::addBuilding ( Coord3D loc,
Real angle,
AsciiString name )
static

Definition at line 272 of file BuildList.cpp.

◆ DoDataExchange()

void BuildList::DoDataExchange ( CDataExchange * pDX)
protectedvirtual

Reimplemented from COptionsPanel.

Definition at line 61 of file BuildList.cpp.

◆ GetPopSliderInfo()

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

Implements PopupSliderOwner.

Definition at line 612 of file BuildList.cpp.

◆ loadSides()

void BuildList::loadSides ( void )
protected

Load the sides in the sides list.

Definition at line 116 of file BuildList.cpp.

◆ OnAddBuilding()

void BuildList::OnAddBuilding ( )
protected

Definition at line 266 of file BuildList.cpp.

◆ OnAlreadyBuild()

void BuildList::OnAlreadyBuild ( )
protected

Definition at line 484 of file BuildList.cpp.

◆ OnCancel()

virtual void BuildList::OnCancel ( )
inlineprotectedvirtual

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

Definition at line 58 of file BuildList.h.

◆ OnChangeAngle()

void BuildList::OnChangeAngle ( )
protected

Definition at line 709 of file BuildList.cpp.

◆ OnChangeZOffset()

void BuildList::OnChangeZOffset ( )
protected

Definition at line 680 of file BuildList.cpp.

◆ OnDblclkBuildList()

void BuildList::OnDblclkBuildList ( )
protected

Definition at line 588 of file BuildList.cpp.

◆ OnDeleteBuilding()

void BuildList::OnDeleteBuilding ( )
protected

Definition at line 507 of file BuildList.cpp.

◆ OnEditchangeRebuilds()

void BuildList::OnEditchangeRebuilds ( )
protected

Definition at line 563 of file BuildList.cpp.

◆ OnExport()

void BuildList::OnExport ( )
protected

Definition at line 735 of file BuildList.cpp.

◆ OnInitDialog()

BOOL BuildList::OnInitDialog ( )
protectedvirtual

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

Setup the controls in the dialog.

Definition at line 97 of file BuildList.cpp.

◆ OnMoveDown()

void BuildList::OnMoveDown ( )
protected

Definition at line 230 of file BuildList.cpp.

◆ OnMoveUp()

void BuildList::OnMoveUp ( )
protected

Definition at line 197 of file BuildList.cpp.

◆ OnOK()

virtual void BuildList::OnOK ( )
inlineprotectedvirtual

Definition at line 57 of file BuildList.h.

◆ OnSelchangeBuildList()

void BuildList::OnSelchangeBuildList ( )
protected

Definition at line 326 of file BuildList.cpp.

◆ OnSelchangeSidesCombo()

void BuildList::OnSelchangeSidesCombo ( )
protected

Definition at line 174 of file BuildList.cpp.

◆ OnSelendokRebuilds()

void BuildList::OnSelendokRebuilds ( )
protected

Definition at line 539 of file BuildList.cpp.

◆ PopSliderChanged()

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

Implements PopupSliderOwner.

Definition at line 637 of file BuildList.cpp.

◆ PopSliderFinished()

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

Implements PopupSliderOwner.

Definition at line 665 of file BuildList.cpp.

◆ setSelectedBuildList()

void BuildList::setSelectedBuildList ( BuildListInfo * pInfo)
static

Definition at line 297 of file BuildList.cpp.

◆ update()

static void BuildList::update ( void )
inlinestatic

Definition at line 101 of file BuildList.h.

◆ updateCurSide()

void BuildList::updateCurSide ( void )
protected

Updates the current side, loading it's build list.

Definition at line 140 of file BuildList.cpp.

Member Data Documentation

◆ m_angle

Real BuildList::m_angle
protected

Definition at line 89 of file BuildList.h.

◆ m_angleSlider

WBPopupSliderButton BuildList::m_angleSlider
protected

Definition at line 88 of file BuildList.h.

◆ m_curBuildList

Int BuildList::m_curBuildList
protected

Definition at line 86 of file BuildList.h.

◆ m_curSide

Int BuildList::m_curSide
protected

Definition at line 85 of file BuildList.h.

◆ m_height

Real BuildList::m_height
protected

Definition at line 90 of file BuildList.h.

◆ m_heightSlider

WBPopupSliderButton BuildList::m_heightSlider
protected

Definition at line 87 of file BuildList.h.

◆ m_staticThis

BuildList * BuildList::m_staticThis = NULL
staticprotected

Definition at line 92 of file BuildList.h.

◆ m_updating

Bool BuildList::m_updating = false
staticprotected

Definition at line 93 of file BuildList.h.


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