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 | Protected Member Functions | Private Member Functions | Private Attributes | List of all members
CPreviewDlg Class Reference

#include <PreviewDlg.h>

Inheritance diagram for CPreviewDlg:

Public Types

enum  {
  MODELS, GUIS, SOUNDS, MATERIALS,
  SCRIPTS, SOUNDPARENT, WAVES, PARTICLES,
  MODELPARENT, GUIPARENT, COMMENTED, SKINS
}
 
enum  { IDD = IDD_DIALOG_PREVIEW }
 

Public Member Functions

 CPreviewDlg (CWnd *pParent=NULL)
 
virtual ~CPreviewDlg ()
 
void SetMode (int mode, const char *preSelect=NULL)
 
void RebuildTree (const char *data)
 
void SetDisablePreview (bool b)
 
bool Waiting ()
 
void SetModal ()
 
afx_msg void OnTvnSelchangedTreeMedia (NMHDR *pNMHDR, LRESULT *pResult)
 
virtual BOOL Create (LPCTSTR lpszTemplateName, CWnd *pParentWnd=NULL)
 
afx_msg void OnBnClickedButtonReload ()
 
afx_msg void OnBnClickedButtonAdd ()
 
afx_msg void OnBnClickedButtonPlay ()
 

Public Attributes

idStr mediaName
 
int returnCode
 

Protected Member Functions

virtual void DoDataExchange (CDataExchange *pDX)
 
void BuildTree ()
 
void AddStrList (const char *root, const idStrList &list, int type)
 
void AddSounds (bool rootItems)
 
void AddMaterials (bool rootItems)
 
void AddParticles (bool rootItems)
 
void AddSkins (bool rootItems)
 
virtual void OnCancel ()
 
virtual void OnOK ()
 
virtual void OnShowWindow (BOOL bShow, UINT status)
 

Private Member Functions

virtual BOOL OnInitDialog ()
 
void AddCommentedItems ()
 

Private Attributes

CTreeCtrl treeMedia
 
CEdit editInfo
 
HTREEITEM commentItem
 
CImageList m_image
 
idGLDrawable m_testDrawable
 
idGLDrawableMaterial m_drawMaterial
 
idGLDrawableModel m_drawModel
 
idGLWidget wndPreview
 
idHashTable< HTREEITEM > quickTree
 
idList< CommentedItemitems
 
int currentMode
 
idStr data
 
bool disablePreview
 

Detailed Description

Definition at line 41 of file PreviewDlg.h.

Member Enumeration Documentation

anonymous enum
Enumerator
MODELS 
GUIS 
SOUNDS 
MATERIALS 
SCRIPTS 
SOUNDPARENT 
WAVES 
PARTICLES 
MODELPARENT 
GUIPARENT 
COMMENTED 
SKINS 

Definition at line 44 of file PreviewDlg.h.

anonymous enum
Enumerator
IDD 

Definition at line 59 of file PreviewDlg.h.

Constructor & Destructor Documentation

CPreviewDlg::CPreviewDlg ( CWnd *  pParent = NULL)

Definition at line 45 of file PreviewDlg.cpp.

CPreviewDlg::~CPreviewDlg ( )
virtual

Definition at line 52 of file PreviewDlg.cpp.

Member Function Documentation

void CPreviewDlg::AddCommentedItems ( )
private

Definition at line 141 of file PreviewDlg.cpp.

void CPreviewDlg::AddMaterials ( bool  rootItems)
protected

Definition at line 596 of file PreviewDlg.cpp.

void CPreviewDlg::AddParticles ( bool  rootItems)
protected

Definition at line 616 of file PreviewDlg.cpp.

void CPreviewDlg::AddSkins ( bool  rootItems)
protected

Definition at line 634 of file PreviewDlg.cpp.

void CPreviewDlg::AddSounds ( bool  rootItems)
protected

Definition at line 490 of file PreviewDlg.cpp.

void CPreviewDlg::AddStrList ( const char *  root,
const idStrList list,
int  type 
)
protected

Definition at line 179 of file PreviewDlg.cpp.

void CPreviewDlg::BuildTree ( )
protected

Definition at line 102 of file PreviewDlg.cpp.

BOOL CPreviewDlg::Create ( LPCTSTR  lpszTemplateName,
CWnd *  pParentWnd = NULL 
)
virtual

Definition at line 409 of file PreviewDlg.cpp.

void CPreviewDlg::DoDataExchange ( CDataExchange *  pDX)
protectedvirtual

Definition at line 56 of file PreviewDlg.cpp.

void CPreviewDlg::OnBnClickedButtonAdd ( )

Definition at line 454 of file PreviewDlg.cpp.

void CPreviewDlg::OnBnClickedButtonPlay ( )

Definition at line 592 of file PreviewDlg.cpp.

void CPreviewDlg::OnBnClickedButtonReload ( )

Definition at line 448 of file PreviewDlg.cpp.

void CPreviewDlg::OnCancel ( )
protectedvirtual

Definition at line 416 of file PreviewDlg.cpp.

BOOL CPreviewDlg::OnInitDialog ( )
privatevirtual

Definition at line 75 of file PreviewDlg.cpp.

void CPreviewDlg::OnOK ( )
protectedvirtual

Definition at line 428 of file PreviewDlg.cpp.

void CPreviewDlg::OnShowWindow ( BOOL  bShow,
UINT  status 
)
protectedvirtual

Definition at line 665 of file PreviewDlg.cpp.

void CPreviewDlg::OnTvnSelchangedTreeMedia ( NMHDR *  pNMHDR,
LRESULT *  pResult 
)

Definition at line 279 of file PreviewDlg.cpp.

void CPreviewDlg::RebuildTree ( const char *  data)

Definition at line 135 of file PreviewDlg.cpp.

void CPreviewDlg::SetDisablePreview ( bool  b)
inline

Definition at line 49 of file PreviewDlg.h.

void CPreviewDlg::SetModal ( )

Definition at line 445 of file PreviewDlg.cpp.

void CPreviewDlg::SetMode ( int  mode,
const char *  preSelect = NULL 
)

Definition at line 527 of file PreviewDlg.cpp.

bool CPreviewDlg::Waiting ( )

Definition at line 440 of file PreviewDlg.cpp.

Member Data Documentation

HTREEITEM CPreviewDlg::commentItem
private

Definition at line 65 of file PreviewDlg.h.

int CPreviewDlg::currentMode
private

Definition at line 74 of file PreviewDlg.h.

idStr CPreviewDlg::data
private

Definition at line 76 of file PreviewDlg.h.

bool CPreviewDlg::disablePreview
private

Definition at line 77 of file PreviewDlg.h.

CEdit CPreviewDlg::editInfo
private

Definition at line 64 of file PreviewDlg.h.

idList<CommentedItem> CPreviewDlg::items
private

Definition at line 72 of file PreviewDlg.h.

idGLDrawableMaterial CPreviewDlg::m_drawMaterial
private

Definition at line 68 of file PreviewDlg.h.

idGLDrawableModel CPreviewDlg::m_drawModel
private

Definition at line 69 of file PreviewDlg.h.

CImageList CPreviewDlg::m_image
private

Definition at line 66 of file PreviewDlg.h.

idGLDrawable CPreviewDlg::m_testDrawable
private

Definition at line 67 of file PreviewDlg.h.

idStr CPreviewDlg::mediaName

Definition at line 53 of file PreviewDlg.h.

idHashTable<HTREEITEM> CPreviewDlg::quickTree
private

Definition at line 71 of file PreviewDlg.h.

int CPreviewDlg::returnCode

Definition at line 54 of file PreviewDlg.h.

CTreeCtrl CPreviewDlg::treeMedia
private

Definition at line 63 of file PreviewDlg.h.

idGLWidget CPreviewDlg::wndPreview
private

Definition at line 70 of file PreviewDlg.h.


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