home *** CD-ROM | disk | FTP | other *** search
/ Xentax forum attachments archive / xentax.7z / 8090 / ModelEdit.7z / WeightEditDlg.h < prev    next >
Encoding:
C/C++ Source or Header  |  2006-03-08  |  1.8 KB  |  74 lines

  1. #if !defined(AFX_WEIGHTEDITDLG_H__4FB2F7D1_1DD4_11D3_999C_00A0C9696F4D__INCLUDED_)
  2. #define AFX_WEIGHTEDITDLG_H__4FB2F7D1_1DD4_11D3_999C_00A0C9696F4D__INCLUDED_
  3.  
  4. #if _MSC_VER > 1000
  5. #pragma once
  6. #endif // _MSC_VER > 1000
  7. // WeightEditDlg.h : header file
  8. //
  9.  
  10. #include "model.h"
  11.  
  12.  
  13. class CModelEditDlg;
  14.  
  15.  
  16. /////////////////////////////////////////////////////////////////////////////
  17. // WeightEditDlg dialog
  18.  
  19.  
  20. class WeightEditDlg : public CDialog
  21. {
  22. // Construction
  23. public:
  24.     WeightEditDlg(CWnd* pParent = NULL);   // standard constructor
  25.  
  26. // Dialog Data
  27.     //{{AFX_DATA(WeightEditDlg)
  28.     enum { IDD = IDD_WEIGHTEDIT };
  29.     CEdit    m_Weight;
  30.     CListBox    m_NodeList;
  31.     CListBox    m_WeightSets;
  32.     //}}AFX_DATA
  33.  
  34.     void        FillWeightSetList(BOOL bPreserveSel);
  35.     void        FillNodeList(BOOL bPreserveSel);
  36.  
  37.     WeightSet*    GetCurSelections(int *pNodes, DWORD nodeListSizeBytes, int &nNodes);
  38.     void        HandleSelChange();
  39.  
  40.     
  41.     CModelEditDlg    *m_pDlg;
  42.     Model            *m_pModel;
  43.     BOOL            m_bUpdateWeights;
  44.     
  45.     // This tells if any changes were made.
  46.     BOOL            m_bChangesMade;
  47.  
  48. // Overrides
  49.     // ClassWizard generated virtual function overrides
  50.     //{{AFX_VIRTUAL(WeightEditDlg)
  51.     protected:
  52.     virtual void DoDataExchange(CDataExchange* pDX);    // DDX/DDV support
  53.     //}}AFX_VIRTUAL
  54.  
  55. // Implementation
  56. protected:
  57.  
  58.     // Generated message map functions
  59.     //{{AFX_MSG(WeightEditDlg)
  60.     afx_msg void OnAddSet();
  61.     afx_msg void OnRemoveSet();
  62.     afx_msg void OnUpdateWeight();
  63.     virtual BOOL OnInitDialog();
  64.     afx_msg void OnSelChangeNodes();
  65.     afx_msg void OnSelchangeWeightsets();
  66.     //}}AFX_MSG
  67.     DECLARE_MESSAGE_MAP()
  68. };
  69.  
  70. //{{AFX_INSERT_LOCATION}}
  71. // Microsoft Visual C++ will insert additional declarations immediately before the previous line.
  72.  
  73. #endif // !defined(AFX_WEIGHTEDITDLG_H__4FB2F7D1_1DD4_11D3_999C_00A0C9696F4D__INCLUDED_)
  74.