DlgBrowseByClass.h 2.9 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192
  1. /* Copyright (c) 2002-2012 Croteam Ltd.
  2. This program is free software; you can redistribute it and/or modify
  3. it under the terms of version 2 of the GNU General Public License as published by
  4. the Free Software Foundation
  5. This program is distributed in the hope that it will be useful,
  6. but WITHOUT ANY WARRANTY; without even the implied warranty of
  7. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  8. GNU General Public License for more details.
  9. You should have received a copy of the GNU General Public License along
  10. with this program; if not, write to the Free Software Foundation, Inc.,
  11. 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. */
  12. #if !defined(AFX_DLGBROWSEBYCLASS_H__A1C15CF4_D8A2_11D1_8270_000000000000__INCLUDED_)
  13. #define AFX_DLGBROWSEBYCLASS_H__A1C15CF4_D8A2_11D1_8270_000000000000__INCLUDED_
  14. #if _MSC_VER >= 1000
  15. #pragma once
  16. #endif // _MSC_VER >= 1000
  17. // DlgBrowseByClass.h : header file
  18. //
  19. /////////////////////////////////////////////////////////////////////////////
  20. // CDlgBrowseByClass dialog
  21. class CDlgBrowseByClass : public CDialog
  22. {
  23. // Construction
  24. public:
  25. CDlgBrowseByClass(CWnd* pParent = NULL); // standard constructor
  26. ~CDlgBrowseByClass();
  27. void AddEntity( CEntity *pen);
  28. void FillListWithEntities(void);
  29. void InitializePluggins(void);
  30. void InitializeListColumns(void);
  31. CTString GetItemValue(CEntity *pen, INDEX iColumn, BOOL &bNumber);
  32. CDynamicContainer<class CEntity> *GetCurrentContainer(void);
  33. BOOL m_bCenterSelected;
  34. // Dialog Data
  35. //{{AFX_DATA(CDlgBrowseByClass)
  36. enum { IDD = IDD_BROWSE_BY_CLASS };
  37. CComboBox m_ctrlPluggins;
  38. CListCtrl m_listEntities;
  39. CString m_strEntitiesInVolume;
  40. BOOL m_bShowVolume;
  41. BOOL m_bShowImportants;
  42. //}}AFX_DATA
  43. // Overrides
  44. // ClassWizard generated virtual function overrides
  45. //{{AFX_VIRTUAL(CDlgBrowseByClass)
  46. public:
  47. virtual BOOL PreTranslateMessage(MSG* pMsg);
  48. protected:
  49. virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
  50. //}}AFX_VIRTUAL
  51. // Implementation
  52. protected:
  53. // Generated message map functions
  54. //{{AFX_MSG(CDlgBrowseByClass)
  55. virtual BOOL OnInitDialog();
  56. afx_msg void OnDblclkEntityList(NMHDR* pNMHDR, LRESULT* pResult);
  57. virtual void OnOK();
  58. afx_msg void OnColumnclickEntityList(NMHDR* pNMHDR, LRESULT* pResult);
  59. afx_msg void OnRclickEntityList(NMHDR* pNMHDR, LRESULT* pResult);
  60. afx_msg void OnClickEntityList(NMHDR* pNMHDR, LRESULT* pResult);
  61. afx_msg void OnRemove();
  62. afx_msg void OnLeave();
  63. afx_msg void OnSelectAll();
  64. afx_msg void OnFeedVolume();
  65. afx_msg void OnRevert();
  66. afx_msg void OnSelectSectors();
  67. afx_msg void OnDeleteBrowseByClass();
  68. afx_msg void OnDisplayVolume();
  69. afx_msg void OnSelendokPluggins();
  70. afx_msg void OnDisplayImportants();
  71. //}}AFX_MSG
  72. DECLARE_MESSAGE_MAP()
  73. };
  74. //{{AFX_INSERT_LOCATION}}
  75. // Microsoft Developer Studio will insert additional declarations immediately before the previous line.
  76. #endif // !defined(AFX_DLGBROWSEBYCLASS_H__A1C15CF4_D8A2_11D1_8270_000000000000__INCLUDED_)