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

#include <DialogTextures.h>

Inheritance diagram for CDialogTextures:

Public Types

enum  {
  NONE, TEXTURES, MATERIALS, MODELS,
  SCRIPTS, SOUNDS, SOUNDPARENT, GUIS,
  PARTICLES, FX, NUMIDS
}
 
enum  { IDD = IDD_DIALOG_TEXTURELIST }
 

Public Member Functions

 CDialogTextures (CWnd *pParent=NULL)
 
void OnCancel ()
 
void CollapseEditor ()
 
void SelectCurrentItem (bool collapse, const char *name, int id)
 
virtual BOOL PreTranslateMessage (MSG *pMsg)
 
afx_msg void OnSetFocus (CWnd *pOldWnd)
 
afx_msg void OnNMRclickTreeTextures (NMHDR *pNMHDR, LRESULT *pResult)
 

Public Attributes

CButton m_chkHideRoot
 
CButton m_btnRefresh
 
CButton m_btnLoad
 
idGLWidget m_wndPreview
 
CTreeCtrl m_treeTextures
 
CImageList m_image
 
idGLDrawable m_testDrawable
 
idGLDrawableMaterial m_drawMaterial
 
idGLDrawableModel m_drawModel
 
const idMaterialeditMaterial
 
idStr editGui
 
idStr currentFile
 
idStr mediaName
 
bool setTexture
 
bool ignoreCollapse
 
int mode
 

Static Public Attributes

static const char * TypeNames [NUMIDS]
 

Protected Member Functions

virtual void DoDataExchange (CDataExchange *pDX)
 
virtual BOOL PreCreateWindow (CREATESTRUCT &cs)
 
void addStrList (const char *root, const idStrList &list, int id)
 
void addScripts (bool rootItems)
 
void addModels (bool rootItems)
 
void addMaterials (bool rootItems)
 
void addSounds (bool rootItems)
 
void addGuis (bool rootItems)
 
void addParticles (bool rootItems)
 
void BuildTree ()
 
void CollapseChildren (HTREEITEM parent)
 
const char * buildItemName (HTREEITEM item, const char *rootName)
 
bool loadTree (HTREEITEM item, const idStr &name, CWaitDlg *dlg)
 
HTREEITEM findItem (const char *name, HTREEITEM item, HTREEITEM *foundItem)
 
virtual void OnOK ()
 
virtual BOOL OnInitDialog ()
 
afx_msg void OnLoad ()
 
afx_msg void OnRefresh ()
 
afx_msg void OnClickTreeTextures (NMHDR *pNMHDR, LRESULT *pResult)
 
afx_msg void OnSelchangedTreeTextures (NMHDR *pNMHDR, LRESULT *pResult)
 
afx_msg void OnDblclkTreeTextures (NMHDR *pNMHDR, LRESULT *pResult)
 
afx_msg void OnPreview ()
 
afx_msg void OnMaterialEdit ()
 
afx_msg void OnMaterialInfo ()
 
afx_msg int OnCreate (LPCREATESTRUCT lpCreateStruct)
 
afx_msg void OnSize (UINT nType, int cx, int cy)
 
afx_msg void OnCheckHideroot ()
 

Protected Attributes

idHashTable< HTREEITEM > quickTree
 
idStr itemName
 

Detailed Description

Definition at line 40 of file DialogTextures.h.

Member Enumeration Documentation

anonymous enum
Enumerator
NONE 
TEXTURES 
MATERIALS 
MODELS 
SCRIPTS 
SOUNDS 
SOUNDPARENT 
GUIS 
PARTICLES 
FX 
NUMIDS 

Definition at line 44 of file DialogTextures.h.

anonymous enum
Enumerator
IDD 

Definition at line 52 of file DialogTextures.h.

Constructor & Destructor Documentation

CDialogTextures::CDialogTextures ( CWnd *  pParent = NULL)

Definition at line 66 of file DialogTextures.cpp.

Member Function Documentation

void CDialogTextures::addGuis ( bool  rootItems)
protected

Definition at line 840 of file DialogTextures.cpp.

void CDialogTextures::addMaterials ( bool  rootItems)
protected

Definition at line 635 of file DialogTextures.cpp.

void CDialogTextures::addModels ( bool  rootItems)
protected

Definition at line 828 of file DialogTextures.cpp.

void CDialogTextures::addParticles ( bool  rootItems)
protected

Definition at line 669 of file DialogTextures.cpp.

void CDialogTextures::addScripts ( bool  rootItems)
protected

Definition at line 856 of file DialogTextures.cpp.

void CDialogTextures::addSounds ( bool  rootItems)
protected

Definition at line 691 of file DialogTextures.cpp.

void CDialogTextures::addStrList ( const char *  root,
const idStrList list,
int  id 
)
protected

Definition at line 724 of file DialogTextures.cpp.

const char * CDialogTextures::buildItemName ( HTREEITEM  item,
const char *  rootName 
)
protected

Definition at line 299 of file DialogTextures.cpp.

void CDialogTextures::BuildTree ( )
protected

Definition at line 445 of file DialogTextures.cpp.

void CDialogTextures::CollapseChildren ( HTREEITEM  parent)
protected

Definition at line 221 of file DialogTextures.cpp.

void CDialogTextures::CollapseEditor ( )

Definition at line 975 of file DialogTextures.cpp.

void CDialogTextures::DoDataExchange ( CDataExchange *  pDX)
protectedvirtual

Definition at line 81 of file DialogTextures.cpp.

HTREEITEM CDialogTextures::findItem ( const char *  name,
HTREEITEM  item,
HTREEITEM *  foundItem 
)
protected

Definition at line 182 of file DialogTextures.cpp.

bool CDialogTextures::loadTree ( HTREEITEM  item,
const idStr name,
CWaitDlg dlg 
)
protected

Definition at line 140 of file DialogTextures.cpp.

void CDialogTextures::OnCancel ( )

Definition at line 981 of file DialogTextures.cpp.

void CDialogTextures::OnCheckHideroot ( )
protected

Definition at line 970 of file DialogTextures.cpp.

void CDialogTextures::OnClickTreeTextures ( NMHDR *  pNMHDR,
LRESULT *  pResult 
)
protected

Definition at line 471 of file DialogTextures.cpp.

int CDialogTextures::OnCreate ( LPCREATESTRUCT  lpCreateStruct)
protected

Definition at line 922 of file DialogTextures.cpp.

void CDialogTextures::OnDblclkTreeTextures ( NMHDR *  pNMHDR,
LRESULT *  pResult 
)
protected

Definition at line 872 of file DialogTextures.cpp.

BOOL CDialogTextures::OnInitDialog ( )
protectedvirtual

Definition at line 122 of file DialogTextures.cpp.

void CDialogTextures::OnLoad ( )
protected

Definition at line 285 of file DialogTextures.cpp.

void CDialogTextures::OnMaterialEdit ( )
protected

Definition at line 1023 of file DialogTextures.cpp.

void CDialogTextures::OnMaterialInfo ( )
protected

Definition at line 1036 of file DialogTextures.cpp.

void CDialogTextures::OnNMRclickTreeTextures ( NMHDR *  pNMHDR,
LRESULT *  pResult 
)

Definition at line 1004 of file DialogTextures.cpp.

void CDialogTextures::OnOK ( )
protectedvirtual

Definition at line 114 of file DialogTextures.cpp.

void CDialogTextures::OnPreview ( )
protected

Definition at line 906 of file DialogTextures.cpp.

void CDialogTextures::OnRefresh ( )
protected

Definition at line 323 of file DialogTextures.cpp.

void CDialogTextures::OnSelchangedTreeTextures ( NMHDR *  pNMHDR,
LRESULT *  pResult 
)
protected

Definition at line 503 of file DialogTextures.cpp.

void CDialogTextures::OnSetFocus ( CWnd *  pOldWnd)

Definition at line 998 of file DialogTextures.cpp.

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

Definition at line 932 of file DialogTextures.cpp.

BOOL CDialogTextures::PreCreateWindow ( CREATESTRUCT &  cs)
protectedvirtual

Definition at line 965 of file DialogTextures.cpp.

BOOL CDialogTextures::PreTranslateMessage ( MSG *  pMsg)
virtual

Definition at line 985 of file DialogTextures.cpp.

void CDialogTextures::SelectCurrentItem ( bool  collapse,
const char *  name,
int  id 
)

Definition at line 234 of file DialogTextures.cpp.

Member Data Documentation

idStr CDialogTextures::currentFile

Definition at line 66 of file DialogTextures.h.

idStr CDialogTextures::editGui

Definition at line 65 of file DialogTextures.h.

const idMaterial* CDialogTextures::editMaterial

Definition at line 64 of file DialogTextures.h.

bool CDialogTextures::ignoreCollapse

Definition at line 69 of file DialogTextures.h.

idStr CDialogTextures::itemName
protected

Definition at line 113 of file DialogTextures.h.

CButton CDialogTextures::m_btnLoad

Definition at line 55 of file DialogTextures.h.

CButton CDialogTextures::m_btnRefresh

Definition at line 54 of file DialogTextures.h.

CButton CDialogTextures::m_chkHideRoot

Definition at line 53 of file DialogTextures.h.

idGLDrawableMaterial CDialogTextures::m_drawMaterial

Definition at line 62 of file DialogTextures.h.

idGLDrawableModel CDialogTextures::m_drawModel

Definition at line 63 of file DialogTextures.h.

CImageList CDialogTextures::m_image

Definition at line 60 of file DialogTextures.h.

idGLDrawable CDialogTextures::m_testDrawable

Definition at line 61 of file DialogTextures.h.

CTreeCtrl CDialogTextures::m_treeTextures

Definition at line 57 of file DialogTextures.h.

idGLWidget CDialogTextures::m_wndPreview

Definition at line 56 of file DialogTextures.h.

idStr CDialogTextures::mediaName

Definition at line 67 of file DialogTextures.h.

int CDialogTextures::mode

Definition at line 70 of file DialogTextures.h.

idHashTable<HTREEITEM> CDialogTextures::quickTree
protected

Definition at line 112 of file DialogTextures.h.

bool CDialogTextures::setTexture

Definition at line 68 of file DialogTextures.h.

const char * CDialogTextures::TypeNames
static
Initial value:
= {
"None",
"Textures",
"Materials",
"Models",
"Scripts",
"Sounds",
"SoundParent",
"Guis",
"Particles",
"Fx"
}

Definition at line 45 of file DialogTextures.h.


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