OSDN Git Service

Fix issue #940: Replace slow (2)
[winmerge-jp/winmerge-jp.git] / Src / PropCompare.h
1 /** 
2  * @file  PropCompare.h
3  *
4  * @brief Declaration of PropCompare propertysheet
5  */
6 #pragma once
7
8 #include "OptionsPanel.h"
9
10 class COptionsMgr;
11
12 /**
13  * @brief Property page to set compare options for WinMerge.
14  *
15  * Whitespace compare:
16  *  - Compare all whitespaces, recommended for merging!
17  *  - Ignore changes in whitespaces (amount of spaces etc)
18  *  - Ignore all whitespace characters
19  */
20 class PropCompare : public OptionsPanel
21 {
22 // Construction
23 public:
24         explicit PropCompare(COptionsMgr *optionsMgr);
25
26 // Implement IOptionsPanel
27         virtual void ReadOptions() override;
28         virtual void WriteOptions() override;
29
30 // Dialog Data
31         //{{AFX_DATA(PropCompare)
32         enum { IDD = IDD_PROPPAGE_COMPARE };
33         bool    m_bIgnoreCodepage;
34         bool    m_bIgnoreEol;
35         bool    m_bIgnoreCase;
36         bool    m_bIgnoreBlankLines;
37         int     m_nIgnoreWhite;
38         bool    m_bMovedBlocks;
39         bool    m_bMatchSimilarLines;
40         bool    m_bFilterCommentsLines;
41         int     m_nDiffAlgorithm;
42         bool    m_bIndentHeuristic;
43         bool    m_bCompleteBlankOutIgnoredChanges;
44         //}}AFX_DATA
45
46
47 // Overrides
48         // ClassWizard generated virtual function overrides
49         //{{AFX_VIRTUAL(PropCompare)
50         protected:
51         virtual void DoDataExchange(CDataExchange* pDX);    // DDX/DDV support
52         //}}AFX_VIRTUAL
53
54 // Implementation
55 protected:
56         // Generated message map functions
57         //{{AFX_MSG(PropCompare)
58         afx_msg BOOL OnInitDialog() override;
59         afx_msg void OnDefaults();
60         afx_msg void OnCbnSelchangeDiffAlgorithm();
61         //}}AFX_MSG
62         DECLARE_MESSAGE_MAP()
63
64         void UpdateControls();
65 };