2 * @file PropTextColors.h
4 * @brief Declaration file for PropTextColors propertyheet
9 #include "ColorButton.h"
10 #include "OptionsPanel.h"
16 /** @brief Property page for colors options; used in options property sheet */
17 class PropTextColors : public OptionsPanel
23 PropTextColors(COptionsMgr *optionsMgr, SyntaxColors *pColors);
25 // Implement IOptionsPanel
26 virtual void ReadOptions() override;
27 virtual void WriteOptions() override;
32 SyntaxColors *m_pTempColors;
33 std::array<COLORREF, 16> m_cCustColors;
35 //{{AFX_DATA(PropTextColors)
36 enum { IDD = IDD_PROPPAGE_COLORS_TEXT };
37 CColorButton m_btnWhitespaceBackground;
38 CColorButton m_btnRegularBackground;
39 CColorButton m_btnRegularText;
40 CColorButton m_btnSelectionBackground;
41 CColorButton m_btnSelectionText;
42 CColorButton m_btnMarginBackground;
47 // ClassWizard generated virtual function overrides
48 //{{AFX_VIRTUAL(PropTextColors)
50 virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
56 typedef enum { SET_DEFAULTS, READ_OPTIONS, LOAD_COLORS } OPERATION;
58 void BrowseColorAndSave(CColorButton & colorButton, int colorIndex);
59 void SerializeColorsToFromScreen(OPERATION op);
60 void SerializeColorToFromScreen(OPERATION op, CColorButton & btn, int colorIndex);
61 void EnableColorButtons(bool bEnable);
63 // Generated message map functions
64 //{{AFX_MSG(PropTextColors)
65 afx_msg void OnWhitespaceBackgroundColor();
66 afx_msg void OnRegularBackgroundColor();
67 afx_msg void OnRegularTextColor();
68 afx_msg void OnSelectionBackgroundColor();
69 afx_msg void OnSelectionTextColor();
70 afx_msg void OnMarginBackgroundColor();
71 afx_msg void OnDefaultsStandardColors();