]> git.saurik.com Git - wxWidgets.git/blame - src/stc/stc.h.in
rename wxBK_BUTTONBAR to wxTBK_BUTTONBAR as it's wxToolBook-specific and documented it
[wxWidgets.git] / src / stc / stc.h.in
CommitLineData
f97d84a6
RD
1////////////////////////////////////////////////////////////////////////////
2// Name: stc.h
be698f50 3// Purpose: A wxWidgets implementation of Scintilla. This class is the
f97d84a6
RD
4// one meant to be used directly by wx applications. It does not
5// derive directly from the Scintilla classes, and in fact there
6// is no mention of Scintilla classes at all in this header.
7// This class delegates all method calls and events to the
8// Scintilla objects and so forth. This allows the use of
9// Scintilla without polluting the namespace with all the
10// classes and itentifiers from Scintilla.
11//
12// Author: Robin Dunn
13//
14// Created: 13-Jan-2000
15// RCS-ID: $Id$
16// Copyright: (c) 2000 by Total Control Software
17// Licence: wxWindows license
18/////////////////////////////////////////////////////////////////////////////
19
ea88e9bc
VS
20#ifndef _WX_STC_STC_H_
21#define _WX_STC_STC_H_
f97d84a6 22
29825f5f 23#include "wx/defs.h"
f97d84a6 24
29825f5f
PC
25#if wxUSE_STC
26
27#include "wx/control.h"
d6655166 28#include "wx/dnd.h"
29825f5f 29#include "wx/stopwatch.h"
f97d84a6 30
7e0c58e9 31class WXDLLIMPEXP_FWD_CORE wxScrollBar;
2b5f62a0 32
9d41f689
RD
33// SWIG can't handle "#if" type of conditionals, only "#ifdef"
34#ifdef SWIG
35#define STC_USE_DND 1
36#else
37#if wxUSE_DRAG_AND_DROP
38#define STC_USE_DND 1
39#endif
40#endif
41
9c46ea66
RD
42//----------------------------------------------------------------------
43
44// Should a wxPopupWindow be used for the call tips and autocomplete windows?
45#ifndef wxSTC_USE_POPUP
46#define wxSTC_USE_POPUP 1
47#endif
48
f97d84a6
RD
49//----------------------------------------------------------------------
50// BEGIN generated section. The following code is automatically generated
51// by gen_iface.py. Do not edit this file. Edit stc.h.in instead
52// and regenerate
53
54%(VALUES)s
55
2b5f62a0
VZ
56
57//-----------------------------------------
58// Commands that can be bound to keystrokes
88a8b04e 59
2b5f62a0
VZ
60%(CMDS)s
61
62
f97d84a6 63// END of generated section
f97d84a6
RD
64//----------------------------------------------------------------------
65
66class ScintillaWX; // forward declare
67class WordList;
68struct SCNotification;
69
2b5f62a0 70#ifndef SWIG
7ba1412f 71extern WXDLLIMPEXP_STC const wxChar* wxSTCNameStr;
7e0c58e9
RD
72class WXDLLIMPEXP_FWD_STC wxStyledTextCtrl;
73class WXDLLIMPEXP_FWD_STC wxStyledTextEvent;
2b5f62a0 74#endif
f97d84a6
RD
75
76//----------------------------------------------------------------------
77
ba8a4f66 78class WXDLLIMPEXP_STC wxStyledTextCtrl : public wxControl {
f97d84a6
RD
79public:
80
81#ifdef SWIG
faadde7e
RD
82 %%pythonAppend wxStyledTextCtrl "self._setOORInfo(self)"
83 %%pythonAppend wxStyledTextCtrl() ""
39c0acb6 84
f325fa52 85 wxStyledTextCtrl(wxWindow *parent, wxWindowID id=wxID_ANY,
f97d84a6
RD
86 const wxPoint& pos = wxDefaultPosition,
87 const wxSize& size = wxDefaultSize, long style = 0,
137b5242 88 const wxString& name = wxPySTCNameStr);
3c1705d9 89 %%RenameCtor(PreStyledTextCtrl, wxStyledTextCtrl());
dc8005e2 90
f97d84a6 91#else
f325fa52 92 wxStyledTextCtrl(wxWindow *parent, wxWindowID id=wxID_ANY,
f97d84a6
RD
93 const wxPoint& pos = wxDefaultPosition,
94 const wxSize& size = wxDefaultSize, long style = 0,
95 const wxString& name = wxSTCNameStr);
39c0acb6
RD
96 wxStyledTextCtrl() { m_swx = NULL; }
97 ~wxStyledTextCtrl();
dc8005e2 98
f97d84a6
RD
99#endif
100
a48cb415
RD
101 bool Create(wxWindow *parent, wxWindowID id=wxID_ANY,
102 const wxPoint& pos = wxDefaultPosition,
103 const wxSize& size = wxDefaultSize, long style = 0,
104 const wxString& name = wxSTCNameStr);
f97d84a6 105
f97d84a6
RD
106
107//----------------------------------------------------------------------
108// BEGIN generated section. The following code is automatically generated
109// by gen_iface.py. Do not edit this file. Edit stc.h.in instead
110// and regenerate
111
112%(METHOD_DEFS)s
113
114// END of generated section
115//----------------------------------------------------------------------
116// Others...
117
118
119 // Returns the line number of the line with the caret.
120 int GetCurrentLine();
121
122 // Extract style settings from a spec-string which is composed of one or
123 // more of the following comma separated elements:
124 //
125 // bold turns on bold
126 // italic turns on italics
5ee1d760
RD
127 // fore:[name or #RRGGBB] sets the foreground colour
128 // back:[name or #RRGGBB] sets the background colour
f97d84a6
RD
129 // face:[facename] sets the font face name to use
130 // size:[num] sets the font size in points
131 // eol turns on eol filling
132 // underline turns on underlining
133 //
134 void StyleSetSpec(int styleNum, const wxString& spec);
135
136
7e0c58e9
RD
137 // Get the font of a style.
138 wxFont StyleGetFont(int style);
139
f97d84a6
RD
140
141 // Set style size, face, bold, italic, and underline attributes from
142 // a wxFont's attributes.
143 void StyleSetFont(int styleNum, wxFont& font);
144
145
146
147 // Set all font style attributes at once.
148 void StyleSetFontAttr(int styleNum, int size,
149 const wxString& faceName,
150 bool bold, bool italic,
3727c043
RD
151 bool underline,
152 wxFontEncoding encoding=wxFONTENCODING_DEFAULT);
f97d84a6
RD
153
154
3727c043
RD
155 // Set the character set of the font in a style. Converts the Scintilla
156 // character set values to a wxFontEncoding.
157 void StyleSetCharacterSet(int style, int characterSet);
158
159 // Set the font encoding to be used by a style.
160 void StyleSetFontEncoding(int style, wxFontEncoding encoding);
161
f97d84a6
RD
162
163 // Perform one of the operations defined by the wxSTC_CMD_* constants.
164 void CmdKeyExecute(int cmd);
165
166
f97d84a6
RD
167 // Set the left and right margin in the edit area, measured in pixels.
168 void SetMargins(int left, int right);
169
170
171 // Retrieve the start and end positions of the current selection.
172#ifdef SWIG
173 void GetSelection(int* OUTPUT, int* OUTPUT);
174#else
175 void GetSelection(int* startPos, int* endPos);
176#endif
177
178 // Retrieve the point in the window where a position is displayed.
179 wxPoint PointFromPosition(int pos);
180
181
182 // Scroll enough to make the given line visible
183 void ScrollToLine(int line);
184
185
186 // Scroll enough to make the given column visible
187 void ScrollToColumn(int column);
188
65ec6247
RD
189
190 // Send a message to Scintilla
191 long SendMsg(int msg, long wp=0, long lp=0);
192
5fa4613c
RD
193
194 // Set the vertical scrollbar to use instead of the ont that's built-in.
ccfc3219 195 void SetVScrollBar(wxScrollBar* bar);
5fa4613c
RD
196
197
198 // Set the horizontal scrollbar to use instead of the ont that's built-in.
ccfc3219 199 void SetHScrollBar(wxScrollBar* bar);
5fa4613c 200
0b9dfbc0
RD
201 // Can be used to prevent the EVT_CHAR handler from adding the char
202 bool GetLastKeydownProcessed() { return m_lastKeyDownConsumed; }
203 void SetLastKeydownProcessed(bool val) { m_lastKeyDownConsumed = val; }
204
51566b0b
RD
205 // Write the contents of the editor to filename
206 bool SaveFile(const wxString& filename);
207
208 // Load the contents of filename into the editor
209 bool LoadFile(const wxString& filename);
210
9d41f689 211#ifdef STC_USE_DND
4a65f2c8 212 // Allow for simulating a DnD DragOver
dc8005e2 213 wxDragResult DoDragOver(wxCoord x, wxCoord y, wxDragResult def);
4a65f2c8
RD
214
215 // Allow for simulating a DnD DropText
216 bool DoDropText(long x, long y, const wxString& data);
2fcce896
MB
217#endif
218
d1558f3d
RD
219 // Specify whether anti-aliased fonts should be used. Will have no effect
220 // on some platforms, but on some (wxMac for example) can greatly improve
221 // performance.
222 void SetUseAntiAliasing(bool useAA);
4a65f2c8 223
d1558f3d
RD
224 // Returns the current UseAntiAliasing setting.
225 bool GetUseAntiAliasing();
dc8005e2 226
0b9dfbc0 227
41a499cd
RD
228
229 // The following methods are nearly equivallent to their similarly named
230 // cousins above. The difference is that these methods bypass wxString
231 // and always use a char* even if used in a unicode build of wxWidgets.
232 // In that case the character data will be utf-8 encoded since that is
233 // what is used internally by Scintilla in unicode builds.
234
235 // Add text to the document at current position.
236 void AddTextRaw(const char* text);
237
238 // Insert string at a position.
239 void InsertTextRaw(int pos, const char* text);
240
241 // Retrieve the text of the line containing the caret.
242 // Returns the index of the caret on the line.
243#ifdef SWIG
244 wxCharBuffer GetCurLineRaw(int* OUTPUT);
245#else
246 wxCharBuffer GetCurLineRaw(int* linePos=NULL);
247#endif
248
249 // Retrieve the contents of a line.
250 wxCharBuffer GetLineRaw(int line);
251
252 // Retrieve the selected text.
253 wxCharBuffer GetSelectedTextRaw();
254
255 // Retrieve a range of text.
256 wxCharBuffer GetTextRangeRaw(int startPos, int endPos);
257
258 // Replace the contents of the document with the argument text.
259 void SetTextRaw(const char* text);
260
261 // Retrieve all the text in the document.
262 wxCharBuffer GetTextRaw();
263
264 // Append a string to the end of the document without changing the selection.
265 void AppendTextRaw(const char* text);
266
1ce1bd84 267#ifdef SWIG
f2ccce28 268 %%pythoncode "_stc_utf8_methods.py"
1ce1bd84 269#endif
f97d84a6
RD
270//----------------------------------------------------------------------
271
272
273#ifndef SWIG
5e6880e6 274protected:
f97d84a6
RD
275 // Event handlers
276 void OnPaint(wxPaintEvent& evt);
277 void OnScrollWin(wxScrollWinEvent& evt);
5fa4613c 278 void OnScroll(wxScrollEvent& evt);
f97d84a6
RD
279 void OnSize(wxSizeEvent& evt);
280 void OnMouseLeftDown(wxMouseEvent& evt);
281 void OnMouseMove(wxMouseEvent& evt);
282 void OnMouseLeftUp(wxMouseEvent& evt);
ddf2da08 283 void OnMouseRightUp(wxMouseEvent& evt);
2b5f62a0 284 void OnMouseMiddleUp(wxMouseEvent& evt);
65ec6247 285 void OnContextMenu(wxContextMenuEvent& evt);
37d62433 286 void OnMouseWheel(wxMouseEvent& evt);
f97d84a6
RD
287 void OnChar(wxKeyEvent& evt);
288 void OnKeyDown(wxKeyEvent& evt);
289 void OnLoseFocus(wxFocusEvent& evt);
290 void OnGainFocus(wxFocusEvent& evt);
291 void OnSysColourChanged(wxSysColourChangedEvent& evt);
292 void OnEraseBackground(wxEraseEvent& evt);
293 void OnMenu(wxCommandEvent& evt);
294 void OnListBox(wxCommandEvent& evt);
8e54aaed 295 void OnIdle(wxIdleEvent& evt);
dc8005e2 296
8ae4f086 297 virtual wxSize DoGetBestSize() const;
f97d84a6
RD
298
299 // Turn notifications from Scintilla into events
300 void NotifyChange();
301 void NotifyParent(SCNotification* scn);
302
5e6880e6 303private:
f97d84a6 304 DECLARE_EVENT_TABLE()
ba8a4f66 305 DECLARE_DYNAMIC_CLASS(wxStyledTextCtrl)
f97d84a6 306
9e730a78
RD
307protected:
308
f97d84a6
RD
309 ScintillaWX* m_swx;
310 wxStopWatch m_stopWatch;
5fa4613c
RD
311 wxScrollBar* m_vScrollBar;
312 wxScrollBar* m_hScrollBar;
f97d84a6 313
d6582821 314 bool m_lastKeyDownConsumed;
f97d84a6
RD
315
316 friend class ScintillaWX;
317 friend class Platform;
318#endif
319};
320
321//----------------------------------------------------------------------
322
ba8a4f66 323class WXDLLIMPEXP_STC wxStyledTextEvent : public wxCommandEvent {
f97d84a6
RD
324public:
325 wxStyledTextEvent(wxEventType commandType=0, int id=0);
4161723f
RD
326#ifndef SWIG
327 wxStyledTextEvent(const wxStyledTextEvent& event);
328#endif
f97d84a6
RD
329 ~wxStyledTextEvent() {}
330
a29a241f
RD
331 void SetPosition(int pos) { m_position = pos; }
332 void SetKey(int k) { m_key = k; }
333 void SetModifiers(int m) { m_modifiers = m; }
334 void SetModificationType(int t) { m_modificationType = t; }
10ef30eb 335 void SetText(const wxString& t) { m_text = t; }
a29a241f
RD
336 void SetLength(int len) { m_length = len; }
337 void SetLinesAdded(int num) { m_linesAdded = num; }
338 void SetLine(int val) { m_line = val; }
339 void SetFoldLevelNow(int val) { m_foldLevelNow = val; }
340 void SetFoldLevelPrev(int val) { m_foldLevelPrev = val; }
341 void SetMargin(int val) { m_margin = val; }
342 void SetMessage(int val) { m_message = val; }
343 void SetWParam(int val) { m_wParam = val; }
344 void SetLParam(int val) { m_lParam = val; }
345 void SetListType(int val) { m_listType = val; }
346 void SetX(int val) { m_x = val; }
347 void SetY(int val) { m_y = val; }
348 void SetDragText(const wxString& val) { m_dragText = val; }
349 void SetDragAllowMove(bool val) { m_dragAllowMove = val; }
92bbd64f 350#ifdef STC_USE_DND
a29a241f 351 void SetDragResult(wxDragResult val) { m_dragResult = val; }
92bbd64f 352#endif
f97d84a6
RD
353
354 int GetPosition() const { return m_position; }
355 int GetKey() const { return m_key; }
356 int GetModifiers() const { return m_modifiers; }
357 int GetModificationType() const { return m_modificationType; }
358 wxString GetText() const { return m_text; }
359 int GetLength() const { return m_length; }
360 int GetLinesAdded() const { return m_linesAdded; }
361 int GetLine() const { return m_line; }
362 int GetFoldLevelNow() const { return m_foldLevelNow; }
363 int GetFoldLevelPrev() const { return m_foldLevelPrev; }
364 int GetMargin() const { return m_margin; }
365 int GetMessage() const { return m_message; }
366 int GetWParam() const { return m_wParam; }
367 int GetLParam() const { return m_lParam; }
65ec6247
RD
368 int GetListType() const { return m_listType; }
369 int GetX() const { return m_x; }
370 int GetY() const { return m_y; }
a29a241f
RD
371 wxString GetDragText() { return m_dragText; }
372 bool GetDragAllowMove() { return m_dragAllowMove; }
92bbd64f 373#ifdef STC_USE_DND
a29a241f 374 wxDragResult GetDragResult() { return m_dragResult; }
92bbd64f 375#endif
f97d84a6
RD
376
377 bool GetShift() const;
378 bool GetControl() const;
379 bool GetAlt() const;
380
5fa4613c 381 virtual wxEvent* Clone() const { return new wxStyledTextEvent(*this); }
f97d84a6
RD
382
383#ifndef SWIG
384private:
385 DECLARE_DYNAMIC_CLASS(wxStyledTextEvent)
386
387 int m_position;
388 int m_key;
389 int m_modifiers;
390
391 int m_modificationType; // wxEVT_STC_MODIFIED
392 wxString m_text;
393 int m_length;
394 int m_linesAdded;
395 int m_line;
396 int m_foldLevelNow;
397 int m_foldLevelPrev;
398
399 int m_margin; // wxEVT_STC_MARGINCLICK
400
401 int m_message; // wxEVT_STC_MACRORECORD
402 int m_wParam;
403 int m_lParam;
65ec6247
RD
404
405 int m_listType;
406 int m_x;
407 int m_y;
a29a241f
RD
408
409 wxString m_dragText; // wxEVT_STC_START_DRAG, wxEVT_STC_DO_DROP
410 bool m_dragAllowMove; // wxEVT_STC_START_DRAG
411
92bbd64f 412#if wxUSE_DRAG_AND_DROP
a29a241f 413 wxDragResult m_dragResult; // wxEVT_STC_DRAG_OVER,wxEVT_STC_DO_DROP
f97d84a6 414#endif
92bbd64f 415#endif
f97d84a6
RD
416};
417
9e730a78
RD
418
419
d25f5fbb
RD
420#ifndef SWIG
421BEGIN_DECLARE_EVENT_TYPES()
7ba1412f
RD
422 DECLARE_EXPORTED_EVENT_TYPE(WXDLLIMPEXP_STC, wxEVT_STC_CHANGE, 1650)
423 DECLARE_EXPORTED_EVENT_TYPE(WXDLLIMPEXP_STC, wxEVT_STC_STYLENEEDED, 1651)
424 DECLARE_EXPORTED_EVENT_TYPE(WXDLLIMPEXP_STC, wxEVT_STC_CHARADDED, 1652)
425 DECLARE_EXPORTED_EVENT_TYPE(WXDLLIMPEXP_STC, wxEVT_STC_SAVEPOINTREACHED, 1653)
426 DECLARE_EXPORTED_EVENT_TYPE(WXDLLIMPEXP_STC, wxEVT_STC_SAVEPOINTLEFT, 1654)
427 DECLARE_EXPORTED_EVENT_TYPE(WXDLLIMPEXP_STC, wxEVT_STC_ROMODIFYATTEMPT, 1655)
428 DECLARE_EXPORTED_EVENT_TYPE(WXDLLIMPEXP_STC, wxEVT_STC_KEY, 1656)
429 DECLARE_EXPORTED_EVENT_TYPE(WXDLLIMPEXP_STC, wxEVT_STC_DOUBLECLICK, 1657)
430 DECLARE_EXPORTED_EVENT_TYPE(WXDLLIMPEXP_STC, wxEVT_STC_UPDATEUI, 1658)
431 DECLARE_EXPORTED_EVENT_TYPE(WXDLLIMPEXP_STC, wxEVT_STC_MODIFIED, 1659)
432 DECLARE_EXPORTED_EVENT_TYPE(WXDLLIMPEXP_STC, wxEVT_STC_MACRORECORD, 1660)
433 DECLARE_EXPORTED_EVENT_TYPE(WXDLLIMPEXP_STC, wxEVT_STC_MARGINCLICK, 1661)
434 DECLARE_EXPORTED_EVENT_TYPE(WXDLLIMPEXP_STC, wxEVT_STC_NEEDSHOWN, 1662)
7ba1412f
RD
435 DECLARE_EXPORTED_EVENT_TYPE(WXDLLIMPEXP_STC, wxEVT_STC_PAINTED, 1664)
436 DECLARE_EXPORTED_EVENT_TYPE(WXDLLIMPEXP_STC, wxEVT_STC_USERLISTSELECTION, 1665)
437 DECLARE_EXPORTED_EVENT_TYPE(WXDLLIMPEXP_STC, wxEVT_STC_URIDROPPED, 1666)
438 DECLARE_EXPORTED_EVENT_TYPE(WXDLLIMPEXP_STC, wxEVT_STC_DWELLSTART, 1667)
439 DECLARE_EXPORTED_EVENT_TYPE(WXDLLIMPEXP_STC, wxEVT_STC_DWELLEND, 1668)
440 DECLARE_EXPORTED_EVENT_TYPE(WXDLLIMPEXP_STC, wxEVT_STC_START_DRAG, 1669)
441 DECLARE_EXPORTED_EVENT_TYPE(WXDLLIMPEXP_STC, wxEVT_STC_DRAG_OVER, 1670)
442 DECLARE_EXPORTED_EVENT_TYPE(WXDLLIMPEXP_STC, wxEVT_STC_DO_DROP, 1671)
443 DECLARE_EXPORTED_EVENT_TYPE(WXDLLIMPEXP_STC, wxEVT_STC_ZOOM, 1672)
444 DECLARE_EXPORTED_EVENT_TYPE(WXDLLIMPEXP_STC, wxEVT_STC_HOTSPOT_CLICK, 1673)
445 DECLARE_EXPORTED_EVENT_TYPE(WXDLLIMPEXP_STC, wxEVT_STC_HOTSPOT_DCLICK, 1674)
446 DECLARE_EXPORTED_EVENT_TYPE(WXDLLIMPEXP_STC, wxEVT_STC_CALLTIP_CLICK, 1675)
1e9bafca 447 DECLARE_EXPORTED_EVENT_TYPE(WXDLLIMPEXP_STC, wxEVT_STC_AUTOCOMP_SELECTION, 1676)
7e0c58e9
RD
448 DECLARE_EXPORTED_EVENT_TYPE(WXDLLIMPEXP_STC, wxEVT_STC_INDICATOR_CLICK, 1677)
449 DECLARE_EXPORTED_EVENT_TYPE(WXDLLIMPEXP_STC, wxEVT_STC_INDICATOR_RELEASE, 1678)
d25f5fbb
RD
450END_DECLARE_EVENT_TYPES()
451#else
452 enum {
453 wxEVT_STC_CHANGE,
454 wxEVT_STC_STYLENEEDED,
455 wxEVT_STC_CHARADDED,
d25f5fbb
RD
456 wxEVT_STC_SAVEPOINTREACHED,
457 wxEVT_STC_SAVEPOINTLEFT,
458 wxEVT_STC_ROMODIFYATTEMPT,
65ec6247 459 wxEVT_STC_KEY,
d25f5fbb 460 wxEVT_STC_DOUBLECLICK,
65ec6247 461 wxEVT_STC_UPDATEUI,
d25f5fbb 462 wxEVT_STC_MODIFIED,
d25f5fbb
RD
463 wxEVT_STC_MACRORECORD,
464 wxEVT_STC_MARGINCLICK,
465 wxEVT_STC_NEEDSHOWN,
65ec6247
RD
466 wxEVT_STC_PAINTED,
467 wxEVT_STC_USERLISTSELECTION,
468 wxEVT_STC_URIDROPPED,
469 wxEVT_STC_DWELLSTART,
470 wxEVT_STC_DWELLEND,
a29a241f
RD
471 wxEVT_STC_START_DRAG,
472 wxEVT_STC_DRAG_OVER,
473 wxEVT_STC_DO_DROP,
a834585d 474 wxEVT_STC_ZOOM,
9e730a78
RD
475 wxEVT_STC_HOTSPOT_CLICK,
476 wxEVT_STC_HOTSPOT_DCLICK,
1e9bafca 477 wxEVT_STC_CALLTIP_CLICK,
7e0c58e9
RD
478 wxEVT_STC_AUTOCOMP_SELECTION,
479 wxEVT_STC_INDICATOR_CLICK,
480 wxEVT_STC_INDICATOR_RELEASE
d25f5fbb
RD
481 };
482#endif
f97d84a6 483
f97d84a6
RD
484
485
486#ifndef SWIG
487typedef void (wxEvtHandler::*wxStyledTextEventFunction)(wxStyledTextEvent&);
488
dc8005e2
RD
489#define EVT_STC_CHANGE(id, fn) DECLARE_EVENT_TABLE_ENTRY( wxEVT_STC_CHANGE, id, wxID_ANY, (wxObjectEventFunction) (wxEventFunction) wxStaticCastEvent( wxStyledTextEventFunction, & fn ), (wxObject *) NULL ),
490#define EVT_STC_STYLENEEDED(id, fn) DECLARE_EVENT_TABLE_ENTRY( wxEVT_STC_STYLENEEDED, id, wxID_ANY, (wxObjectEventFunction) (wxEventFunction) wxStaticCastEvent( wxStyledTextEventFunction, & fn ), (wxObject *) NULL ),
491#define EVT_STC_CHARADDED(id, fn) DECLARE_EVENT_TABLE_ENTRY( wxEVT_STC_CHARADDED, id, wxID_ANY, (wxObjectEventFunction) (wxEventFunction) wxStaticCastEvent( wxStyledTextEventFunction, & fn ), (wxObject *) NULL ),
492#define EVT_STC_SAVEPOINTREACHED(id, fn) DECLARE_EVENT_TABLE_ENTRY( wxEVT_STC_SAVEPOINTREACHED, id, wxID_ANY, (wxObjectEventFunction) (wxEventFunction) wxStaticCastEvent( wxStyledTextEventFunction, & fn ), (wxObject *) NULL ),
493#define EVT_STC_SAVEPOINTLEFT(id, fn) DECLARE_EVENT_TABLE_ENTRY( wxEVT_STC_SAVEPOINTLEFT, id, wxID_ANY, (wxObjectEventFunction) (wxEventFunction) wxStaticCastEvent( wxStyledTextEventFunction, & fn ), (wxObject *) NULL ),
494#define EVT_STC_ROMODIFYATTEMPT(id, fn) DECLARE_EVENT_TABLE_ENTRY( wxEVT_STC_ROMODIFYATTEMPT, id, wxID_ANY, (wxObjectEventFunction) (wxEventFunction) wxStaticCastEvent( wxStyledTextEventFunction, & fn ), (wxObject *) NULL ),
495#define EVT_STC_KEY(id, fn) DECLARE_EVENT_TABLE_ENTRY( wxEVT_STC_KEY, id, wxID_ANY, (wxObjectEventFunction) (wxEventFunction) wxStaticCastEvent( wxStyledTextEventFunction, & fn ), (wxObject *) NULL ),
496#define EVT_STC_DOUBLECLICK(id, fn) DECLARE_EVENT_TABLE_ENTRY( wxEVT_STC_DOUBLECLICK, id, wxID_ANY, (wxObjectEventFunction) (wxEventFunction) wxStaticCastEvent( wxStyledTextEventFunction, & fn ), (wxObject *) NULL ),
497#define EVT_STC_UPDATEUI(id, fn) DECLARE_EVENT_TABLE_ENTRY( wxEVT_STC_UPDATEUI, id, wxID_ANY, (wxObjectEventFunction) (wxEventFunction) wxStaticCastEvent( wxStyledTextEventFunction, & fn ), (wxObject *) NULL ),
498#define EVT_STC_MODIFIED(id, fn) DECLARE_EVENT_TABLE_ENTRY( wxEVT_STC_MODIFIED, id, wxID_ANY, (wxObjectEventFunction) (wxEventFunction) wxStaticCastEvent( wxStyledTextEventFunction, & fn ), (wxObject *) NULL ),
499#define EVT_STC_MACRORECORD(id, fn) DECLARE_EVENT_TABLE_ENTRY( wxEVT_STC_MACRORECORD, id, wxID_ANY, (wxObjectEventFunction) (wxEventFunction) wxStaticCastEvent( wxStyledTextEventFunction, & fn ), (wxObject *) NULL ),
500#define EVT_STC_MARGINCLICK(id, fn) DECLARE_EVENT_TABLE_ENTRY( wxEVT_STC_MARGINCLICK, id, wxID_ANY, (wxObjectEventFunction) (wxEventFunction) wxStaticCastEvent( wxStyledTextEventFunction, & fn ), (wxObject *) NULL ),
501#define EVT_STC_NEEDSHOWN(id, fn) DECLARE_EVENT_TABLE_ENTRY( wxEVT_STC_NEEDSHOWN, id, wxID_ANY, (wxObjectEventFunction) (wxEventFunction) wxStaticCastEvent( wxStyledTextEventFunction, & fn ), (wxObject *) NULL ),
502#define EVT_STC_PAINTED(id, fn) DECLARE_EVENT_TABLE_ENTRY( wxEVT_STC_PAINTED, id, wxID_ANY, (wxObjectEventFunction) (wxEventFunction) wxStaticCastEvent( wxStyledTextEventFunction, & fn ), (wxObject *) NULL ),
503#define EVT_STC_USERLISTSELECTION(id, fn) DECLARE_EVENT_TABLE_ENTRY( wxEVT_STC_USERLISTSELECTION, id, wxID_ANY, (wxObjectEventFunction) (wxEventFunction) wxStaticCastEvent( wxStyledTextEventFunction, & fn ), (wxObject *) NULL ),
504#define EVT_STC_URIDROPPED(id, fn) DECLARE_EVENT_TABLE_ENTRY( wxEVT_STC_URIDROPPED, id, wxID_ANY, (wxObjectEventFunction) (wxEventFunction) wxStaticCastEvent( wxStyledTextEventFunction, & fn ), (wxObject *) NULL ),
505#define EVT_STC_DWELLSTART(id, fn) DECLARE_EVENT_TABLE_ENTRY( wxEVT_STC_DWELLSTART, id, wxID_ANY, (wxObjectEventFunction) (wxEventFunction) wxStaticCastEvent( wxStyledTextEventFunction, & fn ), (wxObject *) NULL ),
506#define EVT_STC_DWELLEND(id, fn) DECLARE_EVENT_TABLE_ENTRY( wxEVT_STC_DWELLEND, id, wxID_ANY, (wxObjectEventFunction) (wxEventFunction) wxStaticCastEvent( wxStyledTextEventFunction, & fn ), (wxObject *) NULL ),
507#define EVT_STC_START_DRAG(id, fn) DECLARE_EVENT_TABLE_ENTRY( wxEVT_STC_START_DRAG, id, wxID_ANY, (wxObjectEventFunction) (wxEventFunction) wxStaticCastEvent( wxStyledTextEventFunction, & fn ), (wxObject *) NULL ),
508#define EVT_STC_DRAG_OVER(id, fn) DECLARE_EVENT_TABLE_ENTRY( wxEVT_STC_DRAG_OVER, id, wxID_ANY, (wxObjectEventFunction) (wxEventFunction) wxStaticCastEvent( wxStyledTextEventFunction, & fn ), (wxObject *) NULL ),
509#define EVT_STC_DO_DROP(id, fn) DECLARE_EVENT_TABLE_ENTRY( wxEVT_STC_DO_DROP, id, wxID_ANY, (wxObjectEventFunction) (wxEventFunction) wxStaticCastEvent( wxStyledTextEventFunction, & fn ), (wxObject *) NULL ),
510#define EVT_STC_ZOOM(id, fn) DECLARE_EVENT_TABLE_ENTRY( wxEVT_STC_ZOOM, id, wxID_ANY, (wxObjectEventFunction) (wxEventFunction) wxStaticCastEvent( wxStyledTextEventFunction, & fn ), (wxObject *) NULL ),
511#define EVT_STC_HOTSPOT_CLICK(id, fn) DECLARE_EVENT_TABLE_ENTRY( wxEVT_STC_HOTSPOT_CLICK, id, wxID_ANY, (wxObjectEventFunction) (wxEventFunction) wxStaticCastEvent( wxStyledTextEventFunction, & fn ), (wxObject *) NULL ),
512#define EVT_STC_HOTSPOT_DCLICK(id, fn) DECLARE_EVENT_TABLE_ENTRY( wxEVT_STC_HOTSPOT_DCLICK, id, wxID_ANY, (wxObjectEventFunction) (wxEventFunction) wxStaticCastEvent( wxStyledTextEventFunction, & fn ), (wxObject *) NULL ),
513#define EVT_STC_CALLTIP_CLICK(id, fn)) DECLARE_EVENT_TABLE_ENTRY( wxEVT_STC_CALLTIP_CLICK id, wxID_ANY, (wxObjectEventFunction) (wxEventFunction) wxStaticCastEvent( wxStyledTextEventFunction, & fn ), (wxObject *) NULL ),
1e9bafca 514#define EVT_STC_AUTOCOMP_SELECTION(id, fn) DECLARE_EVENT_TABLE_ENTRY( wxEVT_STC_AUTOCOMP_SELECTION id, wxID_ANY, (wxObjectEventFunction) (wxEventFunction) wxStaticCastEvent( wxStyledTextEventFunction, & fn ), (wxObject *) NULL ),
7e0c58e9
RD
515#define EVT_STC_INDICATOR_CLICK(id, fn) DECLARE_EVENT_TABLE_ENTRY( wxEVT_STC_INDICATOR_CLICK id, wxID_ANY, (wxObjectEventFunction) (wxEventFunction) wxStaticCastEvent( wxStyledTextEventFunction, & fn ), (wxObject *) NULL ),
516#define EVT_STC_INDICATOR_RELEASE(id, fn) DECLARE_EVENT_TABLE_ENTRY( wxEVT_STC_INDICATOR_RELEASE id, wxID_ANY, (wxObjectEventFunction) (wxEventFunction) wxStaticCastEvent( wxStyledTextEventFunction, & fn ), (wxObject *) NULL ),
517
1bc32508 518#endif
f97d84a6 519
29825f5f 520#endif // wxUSE_STC
ea88e9bc
VS
521
522#endif // _WX_STC_STC_H_