]> git.saurik.com Git - wxWidgets.git/blame - include/wx/richtext/richtexttabspage.h
Implement monitoring of file descriptors in wxMotif event loop.
[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
603f702b
JS
19#include "wx/richtext/richtextdialogpage.h"
20
97ff49b3
JS
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
603f702b 37#define SYMBOL_WXRICHTEXTTABSPAGE_TITLE wxEmptyString
97ff49b3
JS
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
97ff49b3
JS
43/*!
44 * wxRichTextTabsPage class declaration
45 */
46
603f702b 47class WXDLLIMPEXP_RICHTEXT wxRichTextTabsPage: public wxRichTextDialogPage
97ff49b3
JS
48{
49 DECLARE_DYNAMIC_CLASS( wxRichTextTabsPage )
50 DECLARE_EVENT_TABLE()
603f702b 51 DECLARE_HELP_PROVISION()
97ff49b3
JS
52
53public:
54 /// Constructors
55 wxRichTextTabsPage( );
8871035d 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 );
97ff49b3
JS
57
58 /// Creation
8871035d 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 );
97ff49b3
JS
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
24777478 75 wxRichTextAttr* GetAttributes();
97ff49b3
JS
76
77////@begin wxRichTextTabsPage event handler declarations
78
ce7fe42e 79 /// wxEVT_LISTBOX event handler for ID_RICHTEXTTABSPAGE_TABLIST
97ff49b3
JS
80 void OnTablistSelected( wxCommandEvent& event );
81
ce7fe42e 82 /// wxEVT_BUTTON event handler for ID_RICHTEXTTABSPAGE_NEW_TAB
97ff49b3
JS
83 void OnNewTabClick( wxCommandEvent& event );
84
85 /// wxEVT_UPDATE_UI event handler for ID_RICHTEXTTABSPAGE_NEW_TAB
86 void OnNewTabUpdate( wxUpdateUIEvent& event );
87
ce7fe42e 88 /// wxEVT_BUTTON event handler for ID_RICHTEXTTABSPAGE_DELETE_TAB
97ff49b3
JS
89 void OnDeleteTabClick( wxCommandEvent& event );
90
91 /// wxEVT_UPDATE_UI event handler for ID_RICHTEXTTABSPAGE_DELETE_TAB
92 void OnDeleteTabUpdate( wxUpdateUIEvent& event );
93
ce7fe42e 94 /// wxEVT_BUTTON event handler for ID_RICHTEXTTABSPAGE_DELETE_ALL_TABS
97ff49b3
JS
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_