]> git.saurik.com Git - wxWidgets.git/blob - include/wx/richtext/richtextbackgroundpage.h
Convert wxFSW_EVENT_{WARNING,ERROR} to string correctly.
[wxWidgets.git] / include / wx / richtext / richtextbackgroundpage.h
1 /////////////////////////////////////////////////////////////////////////////
2 // Name: wx/richtext/richtextbackgroundpage.h
3 // Purpose:
4 // Author: Julian Smart
5 // Modified by:
6 // Created: 13/11/2010 11:17:25
7 // RCS-ID:
8 // Copyright: (c) Julian Smart
9 // Licence:
10 /////////////////////////////////////////////////////////////////////////////
11
12 #ifndef _RICHTEXTBACKGROUNDPAGE_H_
13 #define _RICHTEXTBACKGROUNDPAGE_H_
14
15 /*!
16 * Includes
17 */
18
19 #include "wx/richtext/richtextdialogpage.h"
20
21 ////@begin includes
22 #include "wx/statline.h"
23 ////@end includes
24
25 /*!
26 * Forward declarations
27 */
28
29 class WXDLLIMPEXP_FWD_RICHTEXT wxRichTextColourSwatchCtrl;
30
31 /*!
32 * Control identifiers
33 */
34
35 ////@begin control identifiers
36 #define SYMBOL_WXRICHTEXTBACKGROUNDPAGE_STYLE wxTAB_TRAVERSAL
37 #define SYMBOL_WXRICHTEXTBACKGROUNDPAGE_TITLE wxEmptyString
38 #define SYMBOL_WXRICHTEXTBACKGROUNDPAGE_IDNAME ID_RICHTEXTBACKGROUNDPAGE
39 #define SYMBOL_WXRICHTEXTBACKGROUNDPAGE_SIZE wxSize(400, 300)
40 #define SYMBOL_WXRICHTEXTBACKGROUNDPAGE_POSITION wxDefaultPosition
41 ////@end control identifiers
42
43
44 /*!
45 * wxRichTextBackgroundPage class declaration
46 */
47
48 class WXDLLIMPEXP_RICHTEXT wxRichTextBackgroundPage: public wxRichTextDialogPage
49 {
50 DECLARE_DYNAMIC_CLASS( wxRichTextBackgroundPage )
51 DECLARE_EVENT_TABLE()
52 DECLARE_HELP_PROVISION()
53
54 public:
55 /// Constructors
56 wxRichTextBackgroundPage();
57 wxRichTextBackgroundPage( wxWindow* parent, wxWindowID id = SYMBOL_WXRICHTEXTBACKGROUNDPAGE_IDNAME, const wxPoint& pos = SYMBOL_WXRICHTEXTBACKGROUNDPAGE_POSITION, const wxSize& size = SYMBOL_WXRICHTEXTBACKGROUNDPAGE_SIZE, long style = SYMBOL_WXRICHTEXTBACKGROUNDPAGE_STYLE );
58
59 /// Creation
60 bool Create( wxWindow* parent, wxWindowID id = SYMBOL_WXRICHTEXTBACKGROUNDPAGE_IDNAME, const wxPoint& pos = SYMBOL_WXRICHTEXTBACKGROUNDPAGE_POSITION, const wxSize& size = SYMBOL_WXRICHTEXTBACKGROUNDPAGE_SIZE, long style = SYMBOL_WXRICHTEXTBACKGROUNDPAGE_STYLE );
61
62 /// Destructor
63 ~wxRichTextBackgroundPage();
64
65 /// Initialises member variables
66 void Init();
67
68 /// Creates the controls and sizers
69 void CreateControls();
70
71 /// Gets the attributes from the formatting dialog
72 wxRichTextAttr* GetAttributes();
73
74 /// Data transfer
75 virtual bool TransferDataToWindow();
76 virtual bool TransferDataFromWindow();
77
78 /// Respond to colour swatch click
79 void OnColourSwatch(wxCommandEvent& event);
80
81 ////@begin wxRichTextBackgroundPage event handler declarations
82
83 ////@end wxRichTextBackgroundPage event handler declarations
84
85 ////@begin wxRichTextBackgroundPage member function declarations
86
87 /// Retrieves bitmap resources
88 wxBitmap GetBitmapResource( const wxString& name );
89
90 /// Retrieves icon resources
91 wxIcon GetIconResource( const wxString& name );
92 ////@end wxRichTextBackgroundPage member function declarations
93
94 /// Should we show tooltips?
95 static bool ShowToolTips();
96
97 ////@begin wxRichTextBackgroundPage member variables
98 wxCheckBox* m_backgroundColourCheckBox;
99 wxRichTextColourSwatchCtrl* m_backgroundColourSwatch;
100 /// Control identifiers
101 enum {
102 ID_RICHTEXTBACKGROUNDPAGE = 10845,
103 ID_RICHTEXT_BACKGROUND_COLOUR_CHECKBOX = 10846,
104 ID_RICHTEXT_BACKGROUND_COLOUR_SWATCH = 10847
105 };
106 ////@end wxRichTextBackgroundPage member variables
107 };
108
109 #endif
110 // _RICHTEXTBACKGROUNDPAGE_H_