OSDN Git Service

Avoid an assertion failure when loading settings from winmerge.ini
[winmerge-jp/winmerge-jp.git] / Src / PropCompareImage.h
1 /** 
2  * @file  PropCompareImage.h
3  *
4  * @brief Declaration of PropCompareImage propertysheet
5  */
6 #pragma once
7
8 #include "OptionsPanel.h"
9 #include "UnicodeString.h"
10
11 class COptionsMgr;
12
13 /**
14  * @brief Property page to set image compare options for WinMerge.
15  */
16 class PropCompareImage : public OptionsPanel
17 {
18 // Construction
19 public:
20         explicit PropCompareImage(COptionsMgr *optionsMgr);
21
22 // Implement IOptionsPanel
23         virtual void ReadOptions() override;
24         virtual void WriteOptions() override;
25
26 // Dialog Data
27         //{{AFX_DATA(PropCompareImage)
28         enum { IDD = IDD_PROPPAGE_COMPARE_IMAGE };
29         CComboBox m_comboPatterns;
30         String m_sFilePatterns;
31         bool m_bEnableImageCompare;
32         int  m_nOcrResultType;
33         //}}AFX_DATA
34
35
36 // Overrides
37         // ClassWizard generated virtual function overrides
38         //{{AFX_VIRTUAL(PropCompareImage)
39         protected:
40         virtual void DoDataExchange(CDataExchange* pDX);    // DDX/DDV support
41         //}}AFX_VIRTUAL
42
43 // Implementation
44 protected:
45         // Generated message map functions
46         //{{AFX_MSG(PropCompareImage)
47         afx_msg BOOL OnInitDialog() override;
48         afx_msg void OnDefaults();
49         afx_msg void OnDropDownPatterns();
50         afx_msg void OnCloseUpPatterns();
51         //}}AFX_MSG
52         DECLARE_MESSAGE_MAP()
53 };