OSDN Git Service

Fix issue #940: Replace slow (2)
[winmerge-jp/winmerge-jp.git] / Src / PropBackups.h
index 33ae3c8..6cf3c9c 100644 (file)
@@ -1,30 +1,27 @@
 /** 
  * @file  PropBackups.h
  *
- * @brief Declaration file for CPropBackups propertyheet
+ * @brief Declaration file for PropBackups propertyheet
  *
  */
-// ID line follows -- this is updated by SVN
-// $Id$
-
-#ifndef _PROPBACKUPS_H_
-#define _PROPBACKUPS_H_
+#pragma once
 
 #include "OptionsPanel.h"
+#include "UnicodeString.h"
 
 class COptionsMgr;
 
 /**
  * @brief A class for Backup file options page.
  */
-class CPropBackups : public OptionsPanel
+class PropBackups : public OptionsPanel
 {
 public:
-       CPropBackups(COptionsMgr *optionsMgr);
+       explicit PropBackups(COptionsMgr *optionsMgr);
 
 // Implement IOptionsPanel
-       virtual void ReadOptions();
-       virtual void WriteOptions();
+       virtual void ReadOptions() override;
+       virtual void WriteOptions() override;
 
 // Dialog Data
        enum { IDD = IDD_PROPPAGE_BACKUPS };
@@ -36,19 +33,16 @@ public:
                FOLDER_GLOBAL,
        };
 
-       BOOL m_bCreateForFolderCmp;
-       BOOL m_bCreateForFileCmp;
-       CString m_sGlobalFolder;
-       BOOL m_bAppendBak;
-       BOOL m_bAppendTime;
+       bool m_bCreateForFolderCmp;
+       bool m_bCreateForFileCmp;
+       String m_sGlobalFolder;
+       bool m_bAppendBak;
+       bool m_bAppendTime;
        int m_nBackupFolder;
 
 protected:
        virtual void DoDataExchange(CDataExchange* pDX);    // DDX/DDV support
-       virtual BOOL OnInitDialog();
        afx_msg void OnBnClickedBackupBrowse();
 
        DECLARE_MESSAGE_MAP()
 };
-
-#endif // _PROPBACKUPS_H_