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.

94 lines
2.3 KiB

  1. // EdDir.h : header file
  2. //
  3. /////////////////////////////////////////////////////////////////////////////
  4. // CDNEdit
  5. class CVDEdit : public CEdit
  6. {
  7. public:
  8. void LoadIllegalChars( int idChars );
  9. protected:
  10. virtual BOOL OnWndMsg(UINT message, WPARAM wParam, LPARAM lParam, LRESULT* pResult);
  11. CString szExclude;
  12. };
  13. /////////////////////////////////////////////////////////////////////////////
  14. // CEditDirectory dialog
  15. class CEditDirectory : public CDialog
  16. {
  17. // Construction
  18. public:
  19. enum {
  20. APPPERM_NONE = 0,
  21. APPPERM_SCRIPTS,
  22. APPPERM_EXECUTE
  23. };
  24. CEditDirectory(CWnd* pParent = NULL); // standard constructor
  25. virtual BOOL OnInitDialog();
  26. // flag to saw if we are editing the root directory
  27. BOOL m_fHome;
  28. // flag to indicate that this is a new item
  29. BOOL m_fNewItem;
  30. // string resource id for the dialog title - if 0, uses the default
  31. INT m_idsTitle;
  32. // path of the directory in the metabase - used to make sure the
  33. // new alias does not step on some existing alias in the metabase
  34. CString m_szMetaPath;
  35. // Dialog Data
  36. //{{AFX_DATA(CEditDirectory)
  37. enum { IDD = IDD_DIRECTORY };
  38. CButton m_cbtn_source;
  39. CVDEdit m_cedit_path;
  40. CVDEdit m_cedit_alias;
  41. CString m_sz_alias;
  42. CString m_sz_path;
  43. BOOL m_bool_read;
  44. BOOL m_bool_source;
  45. BOOL m_bool_write;
  46. int m_int_AppPerms;
  47. //}}AFX_DATA
  48. // Overrides
  49. // ClassWizard generated virtual function overrides
  50. //{{AFX_VIRTUAL(CEditDirectory)
  51. public:
  52. virtual void WinHelp(DWORD dwData, UINT nCmd = HELP_CONTEXT);
  53. protected:
  54. virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
  55. //}}AFX_VIRTUAL
  56. // Implementation
  57. protected:
  58. // Generated message map functions
  59. //{{AFX_MSG(CEditDirectory)
  60. afx_msg void OnBrowse();
  61. virtual void OnOK();
  62. afx_msg void OnRead();
  63. afx_msg void OnSource();
  64. afx_msg void OnWrite();
  65. //}}AFX_MSG
  66. DECLARE_MESSAGE_MAP()
  67. // place holder to store the old value of the source control option
  68. BOOL m_bOldSourceControl;
  69. BOOL VerifyDirectoryPath( CString szPath );
  70. void EnableSourceControl();
  71. // keep a copy of the original alias for later verification
  72. CString m_szOrigAlias;
  73. };