OSDN Git Service

Implement issue #1413: "Move" needs options "Left to Right" or "Right… (#1732)
[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_bIgnoreNumbers;
37         bool    m_bIgnoreBlankLines;
38         int     m_nIgnoreWhite;
39         bool    m_bMovedBlocks;
40         bool    m_bMatchSimilarLines;
41         bool    m_bFilterCommentsLines;
42         int     m_nDiffAlgorithm;
43         bool    m_bIndentHeuristic;
44         bool    m_bCompleteBlankOutIgnoredChanges;
45         //}}AFX_DATA
46
47
48 // Overrides
49         // ClassWizard generated virtual function overrides
50         //{{AFX_VIRTUAL(PropCompare)
51         protected:
52         virtual void DoDataExchange(CDataExchange* pDX);    // DDX/DDV support
53         //}}AFX_VIRTUAL
54
55 // Implementation
56 protected:
57         // Generated message map functions
58         //{{AFX_MSG(PropCompare)
59         afx_msg BOOL OnInitDialog() override;
60         afx_msg void OnDefaults();
61         afx_msg void OnCbnSelchangeDiffAlgorithm();
62         //}}AFX_MSG
63         DECLARE_MESSAGE_MAP()
64
65         void UpdateControls();
66 };