/*=========================================================================
* 
* LPDdLoad.hpp :  class LPS_DialogLoad
* 
*
* Version			1.0
* Creation date		16/08/97	
* Revision date
*
* Shaitan
*=======================================================================*/
#ifndef __LPS_D_LOAD_HPP__
#define __LPS_D_LOAD_HPP__

#include "LPSres.h"

class LipSync_Interface;

/*===========================================================================
*		Description:	Class LPS_DialogLoad
*		Creation date:	
*		Author:			Shaitan
*---------------------------------------------------------------------------
*		Revision date:                                                                                          Author:         
*=========================================================================*/

class LPS_DialogLoad : public CDialog
{
protected:
	LipSync_Interface			*m_pOwnerEditor;
    CPA_List<CPA_BaseObject>    m_oObjectsToLoad;
	HTREEITEM					m_hFirstItem;

	CImageList					m_oIconList;

public:
    CPA_BaseObjectList          *m_p_oListOfFamilies;

// Construction
public:
	LPS_DialogLoad (LipSync_Interface *pOwnerEditor, CWnd* pParent = NULL);   

    CPA_List<CPA_BaseObject>  * GetObjectsToLoad (void) { return &m_oObjectsToLoad; }

	HTREEITEM GetCorrespondingItem (CPA_BaseObject *pObject, HTREEITEM hElem = NULL);

// Dialog Data
	//{{AFX_DATA(LPS_DialogLoad)
	enum { IDD = LPS_IDD_DIALOGLIPS };

	CTreeCtrl m_cTree;
	//}}AFX_DATA


// Overrides
	// ClassWizard generated virtual function overrides
	//{{AFX_VIRTUAL(LPS_DialogLoad)
	protected:
	virtual void DoDataExchange(CDataExchange* pDX);   
	//}}AFX_VIRTUAL

// Implementation
protected:

	// Generated message map functions
	//{{AFX_MSG(LPS_DialogLoad)
	virtual BOOL OnInitDialog();
	afx_msg void OnSelchangeTreeControl(NMHDR* pNMHDR, LRESULT* pResult);
	afx_msg void OnRightClkTreeControl(NMHDR* pNMHDR, LRESULT* pResult); 
	//}}AFX_MSG
	DECLARE_MESSAGE_MAP()
};

#endif //__LPS_D_LOAD_HPP__

