OSDN Git Service

Merge pull request #93 from GreyMerlin/master
[winmerge-jp/winmerge-jp.git] / Src / PropEditor.h
1 /** 
2  * @file  PropEditor.h
3  *
4  * @brief Declaration file for PropEditor propertyheet
5  *
6  */
7 #pragma once
8
9 #include "OptionsPanel.h"
10 #include "UnicodeString.h"
11
12 class COptionsMgr;
13
14 /**
15  * @brief Property page for editor options.
16  *
17  * Editor options affect to editor behavior. For example syntax highlighting
18  * and tabs.
19  */
20 class PropEditor : public OptionsPanel
21 {
22 // Construction
23 public:
24         explicit PropEditor(COptionsMgr *optionsMgr);
25
26 // Implement IOptionsPanel
27         virtual void ReadOptions();
28         virtual void WriteOptions();
29
30 // Dialog Data
31         //{{AFX_DATA(PropEditor)
32         enum { IDD = IDD_PROPPAGE_EDITOR };
33         bool    m_bHiliteSyntax;
34         int         m_nTabType;
35         unsigned m_nTabSize;
36         bool    m_bAutomaticRescan;
37         bool    m_bAllowMixedEol;
38         bool    m_bViewLineDifferences;
39         bool    m_bBreakOnWords;
40         int     m_nBreakType;
41         String m_breakChars;
42         //}}AFX_DATA
43
44 private:
45 // Implementation methods
46         void LoadBreakTypeStrings();
47         void UpdateDataToWindow() { UpdateData(FALSE); }
48         void UpdateDataFromWindow() { UpdateData(TRUE); }
49         void UpdateLineDiffControls();
50
51 // Overrides
52         // ClassWizard generated virtual function overrides
53         //{{AFX_VIRTUAL(PropEditor)
54         protected:
55         virtual void DoDataExchange(CDataExchange* pDX);    // DDX/DDV support
56         //}}AFX_VIRTUAL
57
58 // Implementation
59 protected:
60
61         // Generated message map functions
62         //{{AFX_MSG(PropEditor)
63         afx_msg BOOL OnInitDialog();
64         afx_msg void OnLineDiffControlClicked();
65         afx_msg void OnEnKillfocusTabEdit();
66         //}}AFX_MSG
67         DECLARE_MESSAGE_MAP()
68 };