OSDN Git Service

Update CWindowsManagerDialog - check some pointers for null and made … (#824) (2)
[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() override;
28         virtual void WriteOptions() override;
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_bCopyFullLine;
39         bool    m_bViewLineDifferences;
40         bool    m_bBreakOnWords;
41         int     m_nBreakType;
42         String m_breakChars;
43         int     m_nRenderingMode;
44         //}}AFX_DATA
45
46 private:
47 // Implementation methods
48         void LoadComboBoxStrings();
49         void UpdateDataToWindow() { UpdateData(FALSE); }
50         void UpdateDataFromWindow() { UpdateData(TRUE); }
51         void UpdateLineDiffControls();
52
53 // Overrides
54         // ClassWizard generated virtual function overrides
55         //{{AFX_VIRTUAL(PropEditor)
56         protected:
57         virtual void DoDataExchange(CDataExchange* pDX);    // DDX/DDV support
58         //}}AFX_VIRTUAL
59
60 // Implementation
61 protected:
62
63         // Generated message map functions
64         //{{AFX_MSG(PropEditor)
65         afx_msg BOOL OnInitDialog() override;
66         afx_msg void OnLineDiffControlClicked();
67         afx_msg void OnEnKillfocusTabEdit();
68         //}}AFX_MSG
69         DECLARE_MESSAGE_MAP()
70 };