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