Added shadows to box attributes, and relevant controls in the Background page.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@78280 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Julian Smart
2014-12-17 16:04:03 +00:00
parent ddce6780f6
commit 08f8f5311f
7 changed files with 2778 additions and 19 deletions

View File

@@ -80,6 +80,21 @@ public:
////@begin wxRichTextBackgroundPage event handler declarations
/// wxEVT_UPDATE_UI event handler for ID_RICHTEXT_SHADOW_HORIZONTAL_OFFSET
void OnRichtextShadowUpdate( wxUpdateUIEvent& event );
/// wxEVT_UPDATE_UI event handler for ID_RICHTEXTSHADOWCOLOURSWATCHCTRL
void OnRichtextshadowcolourswatchctrlUpdate( wxUpdateUIEvent& event );
/// wxEVT_UPDATE_UI event handler for ID_RICHTEXT_SHADOW_SPREAD
void OnRichtextShadowSpreadUpdate( wxUpdateUIEvent& event );
/// wxEVT_UPDATE_UI event handler for ID_RICHTEXT_SHADOW_BLUR_DISTANCE
void OnRichtextShadowBlurUpdate( wxUpdateUIEvent& event );
/// wxEVT_UPDATE_UI event handler for ID_RICHTEXT_SHADOW_OPACITY
void OnRichtextShadowOpacityUpdate( wxUpdateUIEvent& event );
////@end wxRichTextBackgroundPage event handler declarations
////@begin wxRichTextBackgroundPage member function declarations
@@ -97,11 +112,42 @@ public:
////@begin wxRichTextBackgroundPage member variables
wxCheckBox* m_backgroundColourCheckBox;
wxRichTextColourSwatchCtrl* m_backgroundColourSwatch;
wxBoxSizer* m_shadowBox;
wxCheckBox* m_useShadow;
wxTextCtrl* m_offsetX;
wxComboBox* m_unitsHorizontalOffset;
wxTextCtrl* m_offsetY;
wxComboBox* m_unitsVerticalOffset;
wxCheckBox* m_shadowColourCheckBox;
wxRichTextColourSwatchCtrl* m_shadowColourSwatch;
wxCheckBox* m_useShadowSpread;
wxTextCtrl* m_spread;
wxComboBox* m_unitsShadowSpread;
wxCheckBox* m_useBlurDistance;
wxTextCtrl* m_blurDistance;
wxComboBox* m_unitsBlurDistance;
wxCheckBox* m_useShadowOpacity;
wxTextCtrl* m_opacity;
/// Control identifiers
enum {
ID_RICHTEXTBACKGROUNDPAGE = 10845,
ID_RICHTEXT_BACKGROUND_COLOUR_CHECKBOX = 10846,
ID_RICHTEXT_BACKGROUND_COLOUR_SWATCH = 10847
ID_RICHTEXT_BACKGROUND_COLOUR_SWATCH = 10847,
ID_RICHTEXT_USE_SHADOW = 10840,
ID_RICHTEXT_SHADOW_HORIZONTAL_OFFSET = 10703,
ID_RICHTEXT_SHADOW_HORIZONTAL_OFFSET_UNITS = 10712,
ID_RICHTEXT_SHADOW_VERTICAL_OFFSET = 10841,
ID_RICHTEXT_SHADOW_VERTICAL_OFFSET_UNITS = 10842,
ID_RICHTEXT_USE_SHADOW_COLOUR = 10843,
ID_RICHTEXTSHADOWCOLOURSWATCHCTRL = 10844,
ID_RICHTEXT_USE_SHADOW_SPREAD = 10851,
ID_RICHTEXT_SHADOW_SPREAD = 10848,
ID_RICHTEXT_SHADOW_SPREAD_UNITS = 10849,
ID_RICHTEXT_USE_BLUR_DISTANCE = 10855,
ID_RICHTEXT_SHADOW_BLUR_DISTANCE = 10852,
ID_RICHTEXT_SHADOW_BLUR_DISTANCE_UNITS = 10853,
ID_RICHTEXT_USE_SHADOW_OPACITY = 10856,
ID_RICHTEXT_SHADOW_OPACITY = 10854
};
////@end wxRichTextBackgroundPage member variables
};