]> git.saurik.com Git - wxWidgets.git/blob - include/wx/richtext/richtexttabspage.h
Make wxGCDC::GetGraphicsContext() const.
[wxWidgets.git] / include / wx / richtext / richtexttabspage.h
1 /////////////////////////////////////////////////////////////////////////////
2 // Name: wx/richtext/richtexttabspage.h
3 // Purpose:
4 // Author: Julian Smart
5 // Modified by:
6 // Created: 10/4/2006 8:03:20 AM
7 // RCS-ID: $Id$
8 // Copyright: (c) Julian Smart
9 // Licence: wxWindows licence
10 /////////////////////////////////////////////////////////////////////////////
11
12 #ifndef _RICHTEXTTABSPAGE_H_
13 #define _RICHTEXTTABSPAGE_H_
14
15 /*!
16 * Includes
17 */
18
19 #include "wx/richtext/richtextdialogpage.h"
20
21 ////@begin includes
22 ////@end includes
23
24 /*!
25 * Forward declarations
26 */
27
28 ////@begin forward declarations
29 ////@end forward declarations
30
31 /*!
32 * Control identifiers
33 */
34
35 ////@begin control identifiers
36 #define SYMBOL_WXRICHTEXTTABSPAGE_STYLE wxRESIZE_BORDER|wxTAB_TRAVERSAL
37 #define SYMBOL_WXRICHTEXTTABSPAGE_TITLE wxEmptyString
38 #define SYMBOL_WXRICHTEXTTABSPAGE_IDNAME ID_RICHTEXTTABSPAGE
39 #define SYMBOL_WXRICHTEXTTABSPAGE_SIZE wxSize(400, 300)
40 #define SYMBOL_WXRICHTEXTTABSPAGE_POSITION wxDefaultPosition
41 ////@end control identifiers
42
43 /*!
44 * wxRichTextTabsPage class declaration
45 */
46
47 class WXDLLIMPEXP_RICHTEXT wxRichTextTabsPage: public wxRichTextDialogPage
48 {
49 DECLARE_DYNAMIC_CLASS( wxRichTextTabsPage )
50 DECLARE_EVENT_TABLE()
51 DECLARE_HELP_PROVISION()
52
53 public:
54 /// Constructors
55 wxRichTextTabsPage( );
56 wxRichTextTabsPage( wxWindow* parent, wxWindowID id = wxID_ANY, const wxPoint& pos = SYMBOL_WXRICHTEXTTABSPAGE_POSITION, const wxSize& size = SYMBOL_WXRICHTEXTTABSPAGE_SIZE, long style = SYMBOL_WXRICHTEXTTABSPAGE_STYLE );
57
58 /// Creation
59 bool Create( wxWindow* parent, wxWindowID id = wxID_ANY, const wxPoint& pos = SYMBOL_WXRICHTEXTTABSPAGE_POSITION, const wxSize& size = SYMBOL_WXRICHTEXTTABSPAGE_SIZE, long style = SYMBOL_WXRICHTEXTTABSPAGE_STYLE );
60
61 /// Creates the controls and sizers
62 void CreateControls();
63
64 /// Initialise members
65 void Init();
66
67 /// Transfer data from/to window
68 virtual bool TransferDataFromWindow();
69 virtual bool TransferDataToWindow();
70
71 /// Sorts the tab array
72 virtual void SortTabs();
73
74 /// Gets the attributes associated with the main formatting dialog
75 wxRichTextAttr* GetAttributes();
76
77 ////@begin wxRichTextTabsPage event handler declarations
78
79 /// wxEVT_COMMAND_LISTBOX_SELECTED event handler for ID_RICHTEXTTABSPAGE_TABLIST
80 void OnTablistSelected( wxCommandEvent& event );
81
82 /// wxEVT_COMMAND_BUTTON_CLICKED event handler for ID_RICHTEXTTABSPAGE_NEW_TAB
83 void OnNewTabClick( wxCommandEvent& event );
84
85 /// wxEVT_UPDATE_UI event handler for ID_RICHTEXTTABSPAGE_NEW_TAB
86 void OnNewTabUpdate( wxUpdateUIEvent& event );
87
88 /// wxEVT_COMMAND_BUTTON_CLICKED event handler for ID_RICHTEXTTABSPAGE_DELETE_TAB
89 void OnDeleteTabClick( wxCommandEvent& event );
90
91 /// wxEVT_UPDATE_UI event handler for ID_RICHTEXTTABSPAGE_DELETE_TAB
92 void OnDeleteTabUpdate( wxUpdateUIEvent& event );
93
94 /// wxEVT_COMMAND_BUTTON_CLICKED event handler for ID_RICHTEXTTABSPAGE_DELETE_ALL_TABS
95 void OnDeleteAllTabsClick( wxCommandEvent& event );
96
97 /// wxEVT_UPDATE_UI event handler for ID_RICHTEXTTABSPAGE_DELETE_ALL_TABS
98 void OnDeleteAllTabsUpdate( wxUpdateUIEvent& event );
99
100 ////@end wxRichTextTabsPage event handler declarations
101
102 ////@begin wxRichTextTabsPage member function declarations
103
104 /// Retrieves bitmap resources
105 wxBitmap GetBitmapResource( const wxString& name );
106
107 /// Retrieves icon resources
108 wxIcon GetIconResource( const wxString& name );
109 ////@end wxRichTextTabsPage member function declarations
110
111 /// Should we show tooltips?
112 static bool ShowToolTips();
113
114 ////@begin wxRichTextTabsPage member variables
115 wxTextCtrl* m_tabEditCtrl;
116 wxListBox* m_tabListCtrl;
117 /// Control identifiers
118 enum {
119 ID_RICHTEXTTABSPAGE = 10200,
120 ID_RICHTEXTTABSPAGE_TABEDIT = 10213,
121 ID_RICHTEXTTABSPAGE_TABLIST = 10214,
122 ID_RICHTEXTTABSPAGE_NEW_TAB = 10201,
123 ID_RICHTEXTTABSPAGE_DELETE_TAB = 10202,
124 ID_RICHTEXTTABSPAGE_DELETE_ALL_TABS = 10203
125 };
126 ////@end wxRichTextTabsPage member variables
127
128 bool m_tabsPresent;
129 };
130
131 #endif
132 // _RICHTEXTTABSPAGE_H_