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

#include <DialogDeclBrowser.h>

Inheritance diagram for DialogDeclBrowser:

Public Member Functions

 DialogDeclBrowser (CWnd *pParent=NULL)
 
virtual ~DialogDeclBrowser ()
 
void ReloadDeclarations (void)
 
bool CompareDecl (HTREEITEM item, const char *name) const
 
virtual BOOL OnInitDialog ()
 
virtual void DoDataExchange (CDataExchange *pDX)
 

Protected Member Functions

afx_msg BOOL OnToolTipNotify (UINT id, NMHDR *pNMHDR, LRESULT *pResult)
 
afx_msg void OnSetFocus (CWnd *pOldWnd)
 
afx_msg void OnDestroy ()
 
afx_msg void OnActivate (UINT nState, CWnd *pWndOther, BOOL bMinimized)
 
afx_msg void OnMove (int x, int y)
 
afx_msg void OnSize (UINT nType, int cx, int cy)
 
afx_msg void OnSizing (UINT nSide, LPRECT lpRect)
 
afx_msg void OnTreeSelChanged (NMHDR *pNMHDR, LRESULT *pResult)
 
afx_msg void OnTreeDblclk (NMHDR *pNMHDR, LRESULT *pResult)
 
afx_msg void OnBnClickedFind ()
 
afx_msg void OnBnClickedEdit ()
 
afx_msg void OnBnClickedNew ()
 
afx_msg void OnBnClickedReload ()
 
afx_msg void OnBnClickedOk ()
 
afx_msg void OnBnClickedCancel ()
 

Private Types

enum  { IDD = IDD_DIALOG_DECLBROWSER }
 

Private Member Functions

void AddDeclTypeToTree (declType_t type, const char *root, CPathTreeCtrl &tree)
 
void AddScriptsToTree (CPathTreeCtrl &tree)
 
void AddGUIsToTree (CPathTreeCtrl &tree)
 
void InitBaseDeclTree (void)
 
void GetDeclName (HTREEITEM item, idStr &typeName, idStr &declName) const
 
const idDeclGetDeclFromTreeItem (HTREEITEM item) const
 
const idDeclGetSelectedDecl (void) const
 
void EditSelected (void) const
 

Private Attributes

CStatusBarCtrl statusBar
 
CPathTreeCtrl declTree
 
CStatic findNameStatic
 
CStatic findTextStatic
 
CEdit findNameEdit
 
CEdit findTextEdit
 
CButton findButton
 
CButton editButton
 
CButton newButton
 
CButton reloadButton
 
CButton cancelButton
 
CRect initialRect
 
CPathTreeCtrl baseDeclTree
 
int numListedDecls
 
idStr findNameString
 
idStr findTextString
 
TCHAR * m_pchTip
 
WCHAR * m_pwchTip
 

Static Private Attributes

static toolTip_t toolTips []
 

Detailed Description

Definition at line 36 of file DialogDeclBrowser.h.

Member Enumeration Documentation

anonymous enum
private
Enumerator
IDD 

Definition at line 76 of file DialogDeclBrowser.h.

Constructor & Destructor Documentation

DialogDeclBrowser::DialogDeclBrowser ( CWnd *  pParent = NULL)

Definition at line 80 of file DialogDeclBrowser.cpp.

DialogDeclBrowser::~DialogDeclBrowser ( )
virtual

Definition at line 92 of file DialogDeclBrowser.cpp.

Member Function Documentation

void DialogDeclBrowser::AddDeclTypeToTree ( declType_t  type,
const char *  root,
CPathTreeCtrl tree 
)
private

Definition at line 128 of file DialogDeclBrowser.cpp.

void DialogDeclBrowser::AddGUIsToTree ( CPathTreeCtrl tree)
private

Definition at line 187 of file DialogDeclBrowser.cpp.

void DialogDeclBrowser::AddScriptsToTree ( CPathTreeCtrl tree)
private

Definition at line 160 of file DialogDeclBrowser.cpp.

bool DialogDeclBrowser::CompareDecl ( HTREEITEM  item,
const char *  name 
) const

Definition at line 363 of file DialogDeclBrowser.cpp.

void DialogDeclBrowser::DoDataExchange ( CDataExchange *  pDX)
virtual

Definition at line 102 of file DialogDeclBrowser.cpp.

void DialogDeclBrowser::EditSelected ( void  ) const
private

Definition at line 288 of file DialogDeclBrowser.cpp.

const idDecl * DialogDeclBrowser::GetDeclFromTreeItem ( HTREEITEM  item) const
private

Definition at line 252 of file DialogDeclBrowser.cpp.

void DialogDeclBrowser::GetDeclName ( HTREEITEM  item,
idStr typeName,
idStr declName 
) const
private

Definition at line 233 of file DialogDeclBrowser.cpp.

const idDecl * DialogDeclBrowser::GetSelectedDecl ( void  ) const
private

Definition at line 279 of file DialogDeclBrowser.cpp.

void DialogDeclBrowser::InitBaseDeclTree ( void  )
private

Definition at line 214 of file DialogDeclBrowser.cpp.

void DialogDeclBrowser::OnActivate ( UINT  nState,
CWnd *  pWndOther,
BOOL  bMinimized 
)
protected

Definition at line 551 of file DialogDeclBrowser.cpp.

void DialogDeclBrowser::OnBnClickedCancel ( )
protected

Definition at line 945 of file DialogDeclBrowser.cpp.

void DialogDeclBrowser::OnBnClickedEdit ( )
protected

Definition at line 865 of file DialogDeclBrowser.cpp.

void DialogDeclBrowser::OnBnClickedFind ( )
protected

Definition at line 844 of file DialogDeclBrowser.cpp.

void DialogDeclBrowser::OnBnClickedNew ( )
protected

Definition at line 874 of file DialogDeclBrowser.cpp.

void DialogDeclBrowser::OnBnClickedOk ( )
protected

Definition at line 932 of file DialogDeclBrowser.cpp.

void DialogDeclBrowser::OnBnClickedReload ( )
protected

Definition at line 920 of file DialogDeclBrowser.cpp.

void DialogDeclBrowser::OnDestroy ( )
protected

Definition at line 620 of file DialogDeclBrowser.cpp.

BOOL DialogDeclBrowser::OnInitDialog ( )
virtual

Definition at line 409 of file DialogDeclBrowser.cpp.

void DialogDeclBrowser::OnMove ( int  x,
int  y 
)
protected

Definition at line 632 of file DialogDeclBrowser.cpp.

void DialogDeclBrowser::OnSetFocus ( CWnd *  pOldWnd)
protected

Definition at line 611 of file DialogDeclBrowser.cpp.

void DialogDeclBrowser::OnSize ( UINT  nType,
int  cx,
int  cy 
)
protected

Definition at line 650 of file DialogDeclBrowser.cpp.

void DialogDeclBrowser::OnSizing ( UINT  nSide,
LPRECT  lpRect 
)
protected

Definition at line 770 of file DialogDeclBrowser.cpp.

BOOL DialogDeclBrowser::OnToolTipNotify ( UINT  id,
NMHDR *  pNMHDR,
LRESULT *  pResult 
)
protected

Definition at line 560 of file DialogDeclBrowser.cpp.

void DialogDeclBrowser::OnTreeDblclk ( NMHDR *  pNMHDR,
LRESULT *  pResult 
)
protected

Definition at line 832 of file DialogDeclBrowser.cpp.

void DialogDeclBrowser::OnTreeSelChanged ( NMHDR *  pNMHDR,
LRESULT *  pResult 
)
protected

Definition at line 809 of file DialogDeclBrowser.cpp.

void DialogDeclBrowser::ReloadDeclarations ( void  )

Definition at line 520 of file DialogDeclBrowser.cpp.

Member Data Documentation

CPathTreeCtrl DialogDeclBrowser::baseDeclTree
private

Definition at line 93 of file DialogDeclBrowser.h.

CButton DialogDeclBrowser::cancelButton
private

Definition at line 87 of file DialogDeclBrowser.h.

CPathTreeCtrl DialogDeclBrowser::declTree
private

Definition at line 78 of file DialogDeclBrowser.h.

CButton DialogDeclBrowser::editButton
private

Definition at line 84 of file DialogDeclBrowser.h.

CButton DialogDeclBrowser::findButton
private

Definition at line 83 of file DialogDeclBrowser.h.

CEdit DialogDeclBrowser::findNameEdit
private

Definition at line 81 of file DialogDeclBrowser.h.

CStatic DialogDeclBrowser::findNameStatic
private

Definition at line 79 of file DialogDeclBrowser.h.

idStr DialogDeclBrowser::findNameString
private

Definition at line 95 of file DialogDeclBrowser.h.

CEdit DialogDeclBrowser::findTextEdit
private

Definition at line 82 of file DialogDeclBrowser.h.

CStatic DialogDeclBrowser::findTextStatic
private

Definition at line 80 of file DialogDeclBrowser.h.

idStr DialogDeclBrowser::findTextString
private

Definition at line 96 of file DialogDeclBrowser.h.

CRect DialogDeclBrowser::initialRect
private

Definition at line 92 of file DialogDeclBrowser.h.

TCHAR* DialogDeclBrowser::m_pchTip
private

Definition at line 98 of file DialogDeclBrowser.h.

WCHAR* DialogDeclBrowser::m_pwchTip
private

Definition at line 99 of file DialogDeclBrowser.h.

CButton DialogDeclBrowser::newButton
private

Definition at line 85 of file DialogDeclBrowser.h.

int DialogDeclBrowser::numListedDecls
private

Definition at line 94 of file DialogDeclBrowser.h.

CButton DialogDeclBrowser::reloadButton
private

Definition at line 86 of file DialogDeclBrowser.h.

CStatusBarCtrl DialogDeclBrowser::statusBar
private

Definition at line 77 of file DialogDeclBrowser.h.

toolTip_t DialogDeclBrowser::toolTips
staticprivate
Initial value:
= {
{ IDC_DECLBROWSER_TREE, "decl browser" },
{ IDC_DECLBROWSER_EDIT_SEARCH_NAMES, "search for declarations with matching name, use meta characters: *, ? and [abc...]" },
{ IDC_DECLBROWSER_EDIT_SEARCH_TEXT, "search for declarations containing text" },
{ IDC_DECLBROWSER_BUTTON_FIND, "find declarations matching the search strings" },
{ IDC_DECLBROWSER_BUTTON_EDIT, "edit selected declaration" },
{ IDC_DECLBROWSER_BUTTON_NEW, "create new declaration" },
{ IDC_DECLBROWSER_BUTTON_RELOAD, "reload declarations" },
{ IDOK, "ok" },
{ IDCANCEL, "cancel" },
{ 0, NULL }
}

Definition at line 90 of file DialogDeclBrowser.h.


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