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 Types | Protected Attributes | List of all members
CPropTreeItem Class Reference

#include <PropTreeItem.h>

Inheritance diagram for CPropTreeItem:
CPropTreeItemButton CPropTreeItemCheck CPropTreeItemColor CPropTreeItemCombo CPropTreeItemEdit CPropTreeItemStatic CPropTreeItemEditButton CPropTreeItemFileEdit

Public Types

enum  { ACTIVATE_TYPE_KEYBOARD, ACTIVATE_TYPE_MOUSE }
 

Public Member Functions

 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)
 
virtual BOOL HitButton (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 ()
 
virtual LONG DrawItem (CDC *pDC, const RECT &rc, LONG x, LONG y)
 
void CommitChanges ()
 
void Activate (int activateType, CPoint point)
 
virtual void DrawAttribute (CDC *pDC, const RECT &rc)
 
virtual LONG GetHeight ()
 
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 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 Types

enum  TreeItemStates {
  TreeItemSelected = 0x00000001, TreeItemExpanded = 0x00000002, TreeItemCheckbox = 0x00000004, TreeItemChecked = 0x00000008,
  TreeItemActivated = 0x00000010, TreeItemReadOnly = 0x00000020
}
 

Protected Attributes

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
 

Detailed Description

Definition at line 24 of file PropTreeItem.h.

Member Enumeration Documentation

anonymous enum
Enumerator
ACTIVATE_TYPE_KEYBOARD 
ACTIVATE_TYPE_MOUSE 

Definition at line 91 of file PropTreeItem.h.

Enumerator
TreeItemSelected 
TreeItemExpanded 
TreeItemCheckbox 
TreeItemChecked 
TreeItemActivated 
TreeItemReadOnly 

Definition at line 168 of file PropTreeItem.h.

Constructor & Destructor Documentation

CPropTreeItem::CPropTreeItem ( )

Definition at line 81 of file PropTreeItem.cpp.

CPropTreeItem::~CPropTreeItem ( )
virtual

Definition at line 103 of file PropTreeItem.cpp.

Member Function Documentation

void CPropTreeItem::Activate ( int  activateType,
CPoint  point 
)

Definition at line 298 of file PropTreeItem.cpp.

void CPropTreeItem::Check ( BOOL  bCheck = TRUE)

Definition at line 156 of file PropTreeItem.cpp.

void CPropTreeItem::CommitChanges ( )

Definition at line 307 of file PropTreeItem.cpp.

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

Reimplemented in CPropTreeItemEditButton, and CPropTreeItemButton.

Definition at line 391 of file PropTreeItem.cpp.

void CPropTreeItem::Expand ( BOOL  bExpand = TRUE)

Definition at line 147 of file PropTreeItem.cpp.

CPropTreeItem * CPropTreeItem::GetChild ( void  )

Definition at line 355 of file PropTreeItem.cpp.

UINT CPropTreeItem::GetCtrlID ( )

Definition at line 255 of file PropTreeItem.cpp.

LONG CPropTreeItem::GetHeight ( void  )
virtual

Definition at line 261 of file PropTreeItem.cpp.

LPCTSTR CPropTreeItem::GetInfoText ( )

Definition at line 243 of file PropTreeItem.cpp.

LPARAM CPropTreeItem::GetItemValue ( )
virtual
LPCTSTR CPropTreeItem::GetLabelText ( )

Definition at line 231 of file PropTreeItem.cpp.

const POINT & CPropTreeItem::GetLocation ( void  )

Definition at line 337 of file PropTreeItem.cpp.

CPropTreeItem * CPropTreeItem::GetNextVisible ( )

Definition at line 361 of file PropTreeItem.cpp.

CPropTreeItem * CPropTreeItem::GetParent ( void  )

Definition at line 343 of file PropTreeItem.cpp.

CPropTreeItem * CPropTreeItem::GetSibling ( void  )

Definition at line 349 of file PropTreeItem.cpp.

LONG CPropTreeItem::GetTotalHeight ( )

Definition at line 208 of file PropTreeItem.cpp.

void CPropTreeItem::HasCheckBox ( BOOL  bCheckbox = TRUE)

Definition at line 180 of file PropTreeItem.cpp.

virtual BOOL CPropTreeItem::HitButton ( const POINT pt)
inlinevirtual

Reimplemented in CPropTreeItemEditButton, and CPropTreeItemButton.

Definition at line 58 of file PropTreeItem.h.

BOOL CPropTreeItem::HitCheckBox ( const POINT pt)

Definition at line 195 of file PropTreeItem.cpp.

BOOL CPropTreeItem::HitExpand ( const POINT pt)

Definition at line 189 of file PropTreeItem.cpp.

BOOL CPropTreeItem::IsActivated ( )

Definition at line 132 of file PropTreeItem.cpp.

BOOL CPropTreeItem::IsCheckBox ( )

Definition at line 174 of file PropTreeItem.cpp.

BOOL CPropTreeItem::IsChecked ( void  )

Definition at line 120 of file PropTreeItem.cpp.

BOOL CPropTreeItem::IsExpanded ( )

Definition at line 108 of file PropTreeItem.cpp.

BOOL CPropTreeItem::IsReadOnly ( )

Definition at line 126 of file PropTreeItem.cpp.

BOOL CPropTreeItem::IsRootLevel ( )

Definition at line 201 of file PropTreeItem.cpp.

BOOL CPropTreeItem::IsSelected ( )

Definition at line 114 of file PropTreeItem.cpp.

void CPropTreeItem::OnActivate ( int  activateType,
CPoint  point 
)
virtual
void CPropTreeItem::OnCommit ( )
virtual
void CPropTreeItem::OnMove ( )
virtual
void CPropTreeItem::OnRefresh ( )
virtual
void CPropTreeItem::ReadOnly ( BOOL  bReadOnly = TRUE)

Definition at line 165 of file PropTreeItem.cpp.

void CPropTreeItem::Select ( BOOL  bSelect = TRUE)

Definition at line 138 of file PropTreeItem.cpp.

void CPropTreeItem::SetChild ( CPropTreeItem pChild)

Definition at line 379 of file PropTreeItem.cpp.

void CPropTreeItem::SetCtrlID ( UINT  nCtrlID)

Definition at line 249 of file PropTreeItem.cpp.

void CPropTreeItem::SetInfoText ( LPCTSTR  sInfo)

Definition at line 237 of file PropTreeItem.cpp.

void CPropTreeItem::SetItemValue ( LPARAM  lParam)
virtual
void CPropTreeItem::SetLabelText ( LPCTSTR  sLabel)

Definition at line 225 of file PropTreeItem.cpp.

void CPropTreeItem::SetNextVisible ( CPropTreeItem pVis)

Definition at line 385 of file PropTreeItem.cpp.

void CPropTreeItem::SetParent ( CPropTreeItem pParent)

Definition at line 367 of file PropTreeItem.cpp.

void CPropTreeItem::SetPropOwner ( CPropTree pProp)

Definition at line 331 of file PropTreeItem.cpp.

void CPropTreeItem::SetSibling ( CPropTreeItem pSibling)

Definition at line 373 of file PropTreeItem.cpp.

Member Data Documentation

BOOL CPropTreeItem::m_bActivated
protected

Definition at line 182 of file PropTreeItem.h.

BOOL CPropTreeItem::m_bCommitOnce
protected

Definition at line 185 of file PropTreeItem.h.

DWORD CPropTreeItem::m_dwState
protected

Definition at line 179 of file PropTreeItem.h.

CPoint CPropTreeItem::m_loc
protected

Definition at line 156 of file PropTreeItem.h.

LPARAM CPropTreeItem::m_lParam
protected

Definition at line 162 of file PropTreeItem.h.

UINT CPropTreeItem::m_nCtrlID
protected

Definition at line 165 of file PropTreeItem.h.

CPropTreeItem* CPropTreeItem::m_pChild
protected

Definition at line 199 of file PropTreeItem.h.

CPropTreeItem* CPropTreeItem::m_pParent
protected

Definition at line 197 of file PropTreeItem.h.

CPropTree* CPropTreeItem::m_pProp
protected

Definition at line 147 of file PropTreeItem.h.

CPropTreeItem* CPropTreeItem::m_pSibling
protected

Definition at line 198 of file PropTreeItem.h.

CPropTreeItem* CPropTreeItem::m_pVis
protected

Definition at line 200 of file PropTreeItem.h.

CRect CPropTreeItem::m_rc
protected

Definition at line 159 of file PropTreeItem.h.

CRect CPropTreeItem::m_rcButton
protected

Definition at line 194 of file PropTreeItem.h.

CRect CPropTreeItem::m_rcCheckbox
protected

Definition at line 191 of file PropTreeItem.h.

CRect CPropTreeItem::m_rcExpand
protected

Definition at line 188 of file PropTreeItem.h.

CString CPropTreeItem::m_sInfo
protected

Definition at line 153 of file PropTreeItem.h.

CString CPropTreeItem::m_sLabel
protected

Definition at line 150 of file PropTreeItem.h.


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