Source code of Windows XP (NT5)
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

73 lines
1.9 KiB

  1. #if !defined(AFX_VARSETEDITDLG_H__19229D90_30B5_11D3_8AE6_00A0C9AFE114__INCLUDED_)
  2. #define AFX_VARSETEDITDLG_H__19229D90_30B5_11D3_8AE6_00A0C9AFE114__INCLUDED_
  3. #if _MSC_VER > 1000
  4. #pragma once
  5. #endif // _MSC_VER > 1000
  6. // VarSetEditDlg.h : header file
  7. //
  8. /////////////////////////////////////////////////////////////////////////////
  9. // CVarSetEditDlg dialog
  10. class CVarSetEditDlg : public CDialog
  11. {
  12. // Construction
  13. public:
  14. CVarSetEditDlg(CWnd* pParent = NULL); // standard constructor
  15. ~CVarSetEditDlg()
  16. {
  17. if ( m_varset )
  18. {
  19. m_varset->Release();
  20. m_varset = NULL;
  21. }
  22. }
  23. // Dialog Data
  24. //{{AFX_DATA(CVarSetEditDlg)
  25. enum { IDD = IDD_VARSET_EDITOR };
  26. CListBox m_List;
  27. BOOL m_bCaseSensitive;
  28. CString m_Filename;
  29. CString m_Key;
  30. CString m_Value;
  31. BOOL m_bIndexed;
  32. //}}AFX_DATA
  33. IVarSet * m_varset;
  34. // Overrides
  35. // ClassWizard generated virtual function overrides
  36. //{{AFX_VIRTUAL(CVarSetEditDlg)
  37. protected:
  38. virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
  39. //}}AFX_VIRTUAL
  40. public:
  41. IVarSet * GetVarSet() { if ( m_varset ) m_varset->AddRef(); return m_varset; }
  42. void SetVarSet(IVarSet * pVS) { if ( pVS ) pVS->AddRef(); if ( m_varset) m_varset->Release(); m_varset = pVS; }
  43. // Implementation
  44. protected:
  45. void DoEnum(IVarSet * pVs);
  46. // Generated message map functions
  47. //{{AFX_MSG(CVarSetEditDlg)
  48. afx_msg void OnCaseSensitive();
  49. afx_msg void OnClear();
  50. afx_msg void OnDump();
  51. afx_msg void OnEnum();
  52. afx_msg void OnGetCount();
  53. afx_msg void OnGetvalue();
  54. afx_msg void OnIndexed();
  55. afx_msg void OnLoad();
  56. afx_msg void OnSave();
  57. afx_msg void OnSetvalue();
  58. virtual void OnOK();
  59. virtual BOOL OnInitDialog();
  60. //}}AFX_MSG
  61. DECLARE_MESSAGE_MAP()
  62. };
  63. //{{AFX_INSERT_LOCATION}}
  64. // Microsoft Visual C++ will insert additional declarations immediately before the previous line.
  65. #endif // !defined(AFX_VARSETEDITDLG_H__19229D90_30B5_11D3_8AE6_00A0C9AFE114__INCLUDED_)