home *** CD-ROM | disk | FTP | other *** search
/ 3D Games - Real-time Rend…ng & Software Technology / 3D Games - Real-time Rendering & Software Technology.iso / flysdk / frontend / flyEditor / flyEditorView.h < prev    next >
Encoding:
C/C++ Source or Header  |  2000-04-01  |  2.4 KB  |  84 lines

  1. // flyEditorView.h : interface of the CFlyEditorView class
  2. //
  3. /////////////////////////////////////////////////////////////////////////////
  4.  
  5. #if !defined(AFX_FLYEDITORVIEW_H__5A2CCB2B_B946_11D2_8077_D12CBD47771D__INCLUDED_)
  6. #define AFX_FLYEDITORVIEW_H__5A2CCB2B_B946_11D2_8077_D12CBD47771D__INCLUDED_
  7.  
  8. #if _MSC_VER > 1000
  9. #pragma once
  10. #endif // _MSC_VER > 1000
  11.  
  12. #define MAX_PARAM 128
  13.  
  14. class CFlyEditorView : public CListView
  15. {
  16. protected: // create from serialization only
  17.     CFlyEditorView();
  18.     DECLARE_DYNCREATE(CFlyEditorView)
  19.  
  20. // Attributes
  21. public:
  22.     CFlyEditorDoc* GetDocument();
  23.     int nparam;
  24.     param_desc pd[MAX_PARAM];
  25.     int colsizes[3],ncol;
  26.  
  27. // Operations
  28. public:
  29.  
  30. // Overrides
  31.     // ClassWizard generated virtual function overrides
  32.     //{{AFX_VIRTUAL(CFlyEditorView)
  33.     public:
  34.     virtual void OnDraw(CDC* pDC);  // overridden to draw this view
  35.     virtual BOOL PreCreateWindow(CREATESTRUCT& cs);
  36.     protected:
  37.     virtual void OnInitialUpdate(); // called first time after construct
  38.     //}}AFX_VIRTUAL
  39.  
  40. // Implementation
  41. public:
  42.     void update_instances(int i);
  43.     void edit_value(int i);
  44.     void edit_list(int i);
  45.     char *edit_files(char *ext,char *filter,char *cur);
  46.     void edit_param(int i);
  47.     void fill_param_list();
  48.     char *get_param_formated(int i);
  49.     void insert_param(char *name,int type,void *data);
  50.     void reset_param_list();
  51.     void set_param_list(bsp_object *o);
  52.     void update_param_list();
  53.  
  54.     virtual ~CFlyEditorView();
  55. #ifdef _DEBUG
  56.     virtual void AssertValid() const;
  57.     virtual void Dump(CDumpContext& dc) const;
  58. #endif
  59.  
  60. protected:
  61.  
  62. // Generated message map functions
  63. protected:
  64.     //{{AFX_MSG(CFlyEditorView)
  65.     afx_msg void OnItemchanged(NMHDR* pNMHDR, LRESULT* pResult);
  66.     afx_msg void OnDblclk(NMHDR* pNMHDR, LRESULT* pResult);
  67.     afx_msg void OnKeydown(NMHDR* pNMHDR, LRESULT* pResult);
  68.     //}}AFX_MSG
  69.     afx_msg void OnStyleChanged(int nStyleType, LPSTYLESTRUCT lpStyleStruct);
  70.     DECLARE_MESSAGE_MAP()
  71. };
  72.  
  73. #ifndef _DEBUG  // debug version in flyEditorView.cpp
  74. inline CFlyEditorDoc* CFlyEditorView::GetDocument()
  75.    { return (CFlyEditorDoc*)m_pDocument; }
  76. #endif
  77.  
  78. /////////////////////////////////////////////////////////////////////////////
  79.  
  80. //{{AFX_INSERT_LOCATION}}
  81. // Microsoft Visual C++ will insert additional declarations immediately before the previous line.
  82.  
  83. #endif // !defined(AFX_FLYEDITORVIEW_H__5A2CCB2B_B946_11D2_8077_D12CBD47771D__INCLUDED_)
  84.