doom3-gpl
Doom 3 GPL source release
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Public Types | Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
CPropTreeItemEditButton Class Reference

#include <PropTreeItemEditButton.h>

Inheritance diagram for CPropTreeItemEditButton:
CPropTreeItemEdit CPropTreeItem

Public Types

enum  ValueFormat { ValueFormatText, ValueFormatNumber, ValueFormatFloatPointer }
 
- Public Types inherited from CPropTreeItemEdit
enum  ValueFormat { ValueFormatText, ValueFormatNumber, ValueFormatFloatPointer }
 
- Public Types inherited from CPropTreeItem
enum  { ACTIVATE_TYPE_KEYBOARD, ACTIVATE_TYPE_MOUSE }
 

Public Member Functions

 CPropTreeItemEditButton ()
 
virtual ~CPropTreeItemEditButton ()
 
virtual LONG DrawItem (CDC *pDC, const RECT &rc, LONG x, LONG y)
 
virtual void DrawAttribute (CDC *pDC, const RECT &rc)
 
virtual LPARAM GetItemValue ()
 
virtual void SetItemValue (LPARAM lParam)
 
virtual void OnMove ()
 
virtual void OnRefresh ()
 
virtual void OnCommit ()
 
virtual void OnActivate (int activateType, CPoint point)
 
void SetValueFormat (ValueFormat nFormat)
 
void SetAsPassword (BOOL bPassword)
 
virtual BOOL HitButton (const POINT &pt)
 
void SetButtonText (LPCSTR text)
 
- Public Member Functions inherited from CPropTreeItemEdit
 CPropTreeItemEdit ()
 
virtual ~CPropTreeItemEdit ()
 
void SetValueFormat (ValueFormat nFormat)
 
void SetAsPassword (BOOL bPassword)
 
- Public Member Functions inherited from CPropTreeItem
 CPropTreeItem ()
 
virtual ~CPropTreeItem ()
 
BOOL IsExpanded ()
 
BOOL IsSelected ()
 
BOOL IsChecked ()
 
BOOL IsReadOnly ()
 
BOOL IsActivated ()
 
void Select (BOOL bSelect=TRUE)
 
void Expand (BOOL bExpand=TRUE)
 
void Check (BOOL bCheck=TRUE)
 
void ReadOnly (BOOL bReadOnly=TRUE)
 
BOOL IsCheckBox ()
 
void HasCheckBox (BOOL bCheckbox=TRUE)
 
BOOL HitExpand (const POINT &pt)
 
BOOL HitCheckBox (const POINT &pt)
 
BOOL IsRootLevel ()
 
LONG GetTotalHeight ()
 
void SetLabelText (LPCTSTR sLabel)
 
LPCTSTR GetLabelText ()
 
void SetInfoText (LPCTSTR sInfo)
 
LPCTSTR GetInfoText ()
 
void SetCtrlID (UINT nCtrlID)
 
UINT GetCtrlID ()
 
void CommitChanges ()
 
void Activate (int activateType, CPoint point)
 
virtual LONG GetHeight ()
 
void SetPropOwner (CPropTree *pProp)
 
const POINTGetLocation ()
 
CPropTreeItemGetParent ()
 
CPropTreeItemGetSibling ()
 
CPropTreeItemGetChild ()
 
CPropTreeItemGetNextVisible ()
 
void SetParent (CPropTreeItem *pParent)
 
void SetSibling (CPropTreeItem *pSibling)
 
void SetChild (CPropTreeItem *pChild)
 
void SetNextVisible (CPropTreeItem *pVis)
 

Protected Member Functions

afx_msg UINT OnGetDlgCode ()
 
afx_msg void OnKeyDown (UINT nChar, UINT nRepCnt, UINT nFlags)
 
afx_msg void OnKillfocus ()
 
- Protected Member Functions inherited from CPropTreeItemEdit
afx_msg UINT OnGetDlgCode ()
 
afx_msg void OnKeyDown (UINT nChar, UINT nRepCnt, UINT nFlags)
 
afx_msg void OnKillfocus ()
 

Protected Attributes

CString m_sEdit
 
float m_fValue
 
ValueFormat m_nFormat
 
BOOL m_bPassword
 
CString buttonText
 
CRect buttonRect
 
CRect hitTestRect
 
bool mouseDown
 
- Protected Attributes inherited from CPropTreeItemEdit
CString m_sEdit
 
float m_fValue
 
ValueFormat m_nFormat
 
BOOL m_bPassword
 
- Protected Attributes inherited from CPropTreeItem
CPropTreem_pProp
 
CString m_sLabel
 
CString m_sInfo
 
CPoint m_loc
 
CRect m_rc
 
LPARAM m_lParam
 
UINT m_nCtrlID
 
DWORD m_dwState
 
BOOL m_bActivated
 
BOOL m_bCommitOnce
 
CRect m_rcExpand
 
CRect m_rcCheckbox
 
CRect m_rcButton
 
CPropTreeItemm_pParent
 
CPropTreeItemm_pSibling
 
CPropTreeItemm_pChild
 
CPropTreeItemm_pVis
 

Additional Inherited Members

- Protected Types inherited from CPropTreeItem
enum  TreeItemStates {
  TreeItemSelected = 0x00000001, TreeItemExpanded = 0x00000002, TreeItemCheckbox = 0x00000004, TreeItemChecked = 0x00000008,
  TreeItemActivated = 0x00000010, TreeItemReadOnly = 0x00000020
}
 

Detailed Description

Definition at line 32 of file PropTreeItemEditButton.h.

Member Enumeration Documentation

Enumerator
ValueFormatText 
ValueFormatNumber 
ValueFormatFloatPointer 

Definition at line 66 of file PropTreeItemEditButton.h.

Constructor & Destructor Documentation

CPropTreeItemEditButton::CPropTreeItemEditButton ( )

Definition at line 37 of file PropTreeItemEditButton.cpp.

CPropTreeItemEditButton::~CPropTreeItemEditButton ( )
virtual

Definition at line 46 of file PropTreeItemEditButton.cpp.

Member Function Documentation

void CPropTreeItemEditButton::DrawAttribute ( CDC *  pDC,
const RECT &  rc 
)
virtual

Reimplemented from CPropTreeItemEdit.

Definition at line 98 of file PropTreeItemEditButton.cpp.

LONG CPropTreeItemEditButton::DrawItem ( CDC *  pDC,
const RECT &  rc,
LONG  x,
LONG  y 
)
virtual

Reimplemented from CPropTreeItem.

Definition at line 62 of file PropTreeItemEditButton.cpp.

LPARAM CPropTreeItemEditButton::GetItemValue ( )
virtual

Reimplemented from CPropTreeItemEdit.

Definition at line 144 of file PropTreeItemEditButton.cpp.

BOOL CPropTreeItemEditButton::HitButton ( const POINT pt)
virtual

Reimplemented from CPropTreeItem.

Definition at line 253 of file PropTreeItemEditButton.cpp.

void CPropTreeItemEditButton::OnActivate ( int  activateType,
CPoint  point 
)
virtual

Reimplemented from CPropTreeItemEdit.

Definition at line 212 of file PropTreeItemEditButton.cpp.

void CPropTreeItemEditButton::OnCommit ( )
virtual

Reimplemented from CPropTreeItemEdit.

Definition at line 202 of file PropTreeItemEditButton.cpp.

UINT CPropTreeItemEditButton::OnGetDlgCode ( )
protected

Definition at line 233 of file PropTreeItemEditButton.cpp.

void CPropTreeItemEditButton::OnKeyDown ( UINT  nChar,
UINT  nRepCnt,
UINT  nFlags 
)
protected

Definition at line 239 of file PropTreeItemEditButton.cpp.

void CPropTreeItemEditButton::OnKillfocus ( )
protected

Definition at line 248 of file PropTreeItemEditButton.cpp.

void CPropTreeItemEditButton::OnMove ( )
virtual

Reimplemented from CPropTreeItemEdit.

Definition at line 188 of file PropTreeItemEditButton.cpp.

void CPropTreeItemEditButton::OnRefresh ( )
virtual

Reimplemented from CPropTreeItemEdit.

Definition at line 195 of file PropTreeItemEditButton.cpp.

void CPropTreeItemEditButton::SetAsPassword ( BOOL  bPassword)

Definition at line 132 of file PropTreeItemEditButton.cpp.

void CPropTreeItemEditButton::SetButtonText ( LPCSTR  text)

Definition at line 257 of file PropTreeItemEditButton.cpp.

void CPropTreeItemEditButton::SetItemValue ( LPARAM  lParam)
virtual

Reimplemented from CPropTreeItemEdit.

Definition at line 160 of file PropTreeItemEditButton.cpp.

void CPropTreeItemEditButton::SetValueFormat ( ValueFormat  nFormat)

Definition at line 138 of file PropTreeItemEditButton.cpp.

Member Data Documentation

CRect CPropTreeItemEditButton::buttonRect
protected

Definition at line 93 of file PropTreeItemEditButton.h.

CString CPropTreeItemEditButton::buttonText
protected

Definition at line 92 of file PropTreeItemEditButton.h.

CRect CPropTreeItemEditButton::hitTestRect
protected

Definition at line 94 of file PropTreeItemEditButton.h.

BOOL CPropTreeItemEditButton::m_bPassword
protected

Definition at line 89 of file PropTreeItemEditButton.h.

float CPropTreeItemEditButton::m_fValue
protected

Definition at line 86 of file PropTreeItemEditButton.h.

ValueFormat CPropTreeItemEditButton::m_nFormat
protected

Definition at line 88 of file PropTreeItemEditButton.h.

CString CPropTreeItemEditButton::m_sEdit
protected

Definition at line 85 of file PropTreeItemEditButton.h.

bool CPropTreeItemEditButton::mouseDown
protected

Definition at line 95 of file PropTreeItemEditButton.h.


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