]>
Commit | Line | Data |
---|---|---|
7bf85405 RD |
1 | ///////////////////////////////////////////////////////////////////////////// |
2 | // Name: _defs.i | |
3 | // Purpose: Definitions and stuff | |
4 | // | |
5 | // Author: Robin Dunn | |
6 | // | |
7 | // Created: 6/24/97 | |
8 | // RCS-ID: $Id$ | |
9 | // Copyright: (c) 1998 by Total Control Software | |
10 | // Licence: wxWindows license | |
11 | ///////////////////////////////////////////////////////////////////////////// | |
12 | ||
13 | ||
14 | ||
15 | //--------------------------------------------------------------------------- | |
16 | // Forward declares... | |
17 | ||
18 | class wxPyApp; | |
19 | class wxEvtHandler; | |
20 | class wxWindow; | |
21 | class wxFrame; | |
22 | class wxMiniFrame; | |
23 | class wxPanel; | |
24 | class wxDialog; | |
25 | class wxMenu; | |
26 | class wxPyMenu; | |
27 | class wxMenuBar; | |
28 | class wxMenuItem; | |
29 | class wxEvent; | |
30 | class wxSizeEvent; | |
31 | class wxCloseEvent; | |
32 | class wxCommandEvent; | |
33 | class wxScrollEvent; | |
34 | class wxMouseEvent; | |
35 | class wxKeyEvent; | |
36 | class wxMoveEvent; | |
37 | class wxPaintEvent; | |
38 | class wxEraseEvent; | |
39 | class wxFocusEvent; | |
40 | class wxActivateEvent; | |
41 | class wxInitDialogEvent; | |
42 | class wxMenuEvent; | |
43 | class wxShowEvent; | |
44 | class wxIconizeEvent; | |
45 | class wxMaximizeEvent; | |
46 | class wxJoystickEvent; | |
47 | class wxDropFilesEvent; | |
48 | class wxIdleEvent; | |
49 | class wxUpdateUIEvent; | |
50 | class wxSysColourChangedEvent; | |
51 | class wxSize; | |
52 | class wxRealPoint; | |
53 | class wxPoint; | |
54 | class wxRect; | |
55 | class wxBitmap; | |
56 | class wxMask; | |
57 | class wxIcon; | |
58 | class wxCursor; | |
59 | class wxFont; | |
60 | class wxColour; | |
61 | class wxPen; | |
62 | class wxBrush; | |
63 | class wxDC; | |
64 | class wxMemoryDC; | |
65 | class wxScreenDC; | |
66 | class wxClientDC; | |
67 | class wxPaintDC; | |
68 | class wxPostScriptDC; | |
69 | class wxPrinterDC; | |
70 | class wxMetaFileDC; | |
71 | class wxMDIParentFrame; | |
72 | class wxMDIChildFrame; | |
73 | class wxMDIClientWindow; | |
74 | class wxControl; | |
75 | class wxButton; | |
76 | class wxBitmapButton; | |
77 | class wxCheckBox; | |
78 | class wxChoice; | |
79 | class wxComboBox; | |
80 | class wxGauge; | |
81 | class wxStaticBox; | |
82 | class wxStaticText; | |
83 | class wxListBox; | |
84 | class wxTextCtrl; | |
85 | class wxScrollBar; | |
86 | class wxSpinButton; | |
87 | class wxStaticBitmap; | |
88 | class wxRadioBox; | |
89 | class wxRadioButton; | |
90 | class wxSlider; | |
91 | ||
92 | class wxPyTimer; | |
93 | class wxIndividualLayoutConstraint; | |
94 | class wxLayoutConstraints; | |
9c039d08 RD |
95 | class wxToolBar; |
96 | class wxStatusBar; | |
7bf85405 RD |
97 | |
98 | //--------------------------------------------------------------------------- | |
99 | ||
100 | // some definitions for SWIG only | |
101 | typedef unsigned char byte; | |
102 | typedef short int WXTYPE; | |
103 | typedef int wxWindowID; | |
104 | typedef unsigned int uint; | |
105 | typedef signed int EBool; | |
106 | ||
107 | ||
108 | //--------------------------------------------------------------------------- | |
109 | ||
110 | // General numeric #define's and etc. Making them all enums makes SWIG use the | |
111 | // real macro when making the Python Int | |
112 | ||
113 | enum { | |
114 | wxMAJOR_VERSION, | |
115 | wxMINOR_VERSION, | |
116 | wxRELEASE_NUMBER, | |
117 | ||
7bf85405 RD |
118 | NOT_FOUND, |
119 | ||
120 | wxVSCROLL, | |
121 | wxHSCROLL, | |
122 | wxCAPTION, | |
123 | wxDOUBLE_BORDER, | |
124 | wxSUNKEN_BORDER, | |
125 | wxRAISED_BORDER, | |
126 | wxBORDER, | |
127 | wxSIMPLE_BORDER, | |
128 | wxSTATIC_BORDER, | |
129 | wxTRANSPARENT_WINDOW, | |
130 | wxNO_BORDER, | |
131 | wxUSER_COLOURS, | |
132 | wxNO_3D, | |
133 | //wxOVERRIDE_KEY_TRANSLATIONS, | |
134 | wxTAB_TRAVERSAL, | |
135 | wxHORIZONTAL, | |
136 | wxVERTICAL, | |
137 | wxBOTH, | |
138 | wxCENTER_FRAME, | |
139 | wxSTAY_ON_TOP, | |
140 | wxICONIZE, | |
141 | wxMINIMIZE, | |
142 | wxMAXIMIZE, | |
143 | wxTHICK_FRAME, | |
144 | wxSYSTEM_MENU, | |
145 | wxMINIMIZE_BOX, | |
146 | wxMAXIMIZE_BOX, | |
147 | wxTINY_CAPTION_HORIZ, | |
148 | wxTINY_CAPTION_VERT, | |
149 | wxRESIZE_BOX, | |
150 | wxRESIZE_BORDER, | |
151 | wxDIALOG_MODAL, | |
152 | wxDIALOG_MODELESS, | |
153 | wxDEFAULT_FRAME_STYLE, | |
154 | wxDEFAULT_DIALOG_STYLE, | |
155 | wxRETAINED, | |
156 | wxBACKINGSTORE, | |
157 | wxTB_3DBUTTONS, | |
158 | wxTB_HORIZONTAL, | |
159 | wxTB_VERTICAL, | |
9c039d08 | 160 | wxTB_FLAT, |
7bf85405 RD |
161 | wxCOLOURED, |
162 | wxFIXED_LENGTH, | |
163 | wxALIGN_LEFT, | |
164 | wxALIGN_CENTER, | |
165 | wxALIGN_CENTRE, | |
166 | wxALIGN_RIGHT, | |
7bf85405 RD |
167 | wxLB_NEEDED_SB, |
168 | wxLB_ALWAYS_SB, | |
169 | wxLB_SORT, | |
170 | wxLB_SINGLE, | |
171 | wxLB_MULTIPLE, | |
172 | wxLB_EXTENDED, | |
173 | wxLB_OWNERDRAW, | |
174 | wxLB_HSCROLL, | |
175 | wxPROCESS_ENTER, | |
176 | wxPASSWORD, | |
177 | wxTE_PROCESS_ENTER, | |
178 | wxTE_PASSWORD, | |
179 | wxTE_READONLY, | |
180 | wxTE_MULTILINE, | |
7bf85405 RD |
181 | wxCB_SIMPLE, |
182 | wxCB_DROPDOWN, | |
183 | wxCB_SORT, | |
184 | wxCB_READONLY, | |
185 | wxRA_HORIZONTAL, | |
186 | wxRA_VERTICAL, | |
187 | wxRB_GROUP, | |
188 | wxGA_PROGRESSBAR, | |
189 | wxGA_HORIZONTAL, | |
190 | wxGA_VERTICAL, | |
191 | wxSL_HORIZONTAL, | |
192 | wxSL_VERTICAL, | |
193 | wxSL_AUTOTICKS, | |
194 | wxSL_LABELS, | |
195 | wxSL_LEFT, | |
196 | wxSL_TOP, | |
197 | wxSL_RIGHT, | |
198 | wxSL_BOTTOM, | |
199 | wxSL_BOTH, | |
200 | wxSL_SELRANGE, | |
201 | wxSB_HORIZONTAL, | |
202 | wxSB_VERTICAL, | |
203 | wxBU_AUTODRAW, | |
204 | wxBU_NOAUTODRAW, | |
205 | wxTR_HAS_BUTTONS, | |
206 | wxTR_EDIT_LABELS, | |
207 | wxLC_ICON, | |
208 | wxLC_SMALL_ICON, | |
209 | wxLC_LIST, | |
210 | wxLC_REPORT, | |
211 | wxLC_ALIGN_TOP, | |
212 | wxLC_ALIGN_LEFT, | |
213 | wxLC_AUTOARRANGE, | |
214 | wxLC_USER_TEXT, | |
215 | wxLC_EDIT_LABELS, | |
216 | wxLC_NO_HEADER, | |
217 | wxLC_NO_SORT_HEADER, | |
218 | wxLC_SINGLE_SEL, | |
219 | wxLC_SORT_ASCENDING, | |
220 | wxLC_SORT_DESCENDING, | |
221 | wxLC_MASK_TYPE, | |
222 | wxLC_MASK_ALIGN, | |
223 | wxLC_MASK_SORT, | |
224 | wxSP_VERTICAL, | |
225 | wxSP_HORIZONTAL, | |
226 | wxSP_ARROW_KEYS, | |
227 | wxSP_WRAP, | |
228 | wxSP_NOBORDER, | |
229 | wxSP_3D, | |
230 | wxSP_BORDER, | |
231 | wxTAB_MULTILINE, | |
232 | wxTAB_RIGHTJUSTIFY, | |
233 | wxTAB_FIXEDWIDTH, | |
234 | wxTAB_OWNERDRAW, | |
235 | // wxSB_SIZEGRIP, | |
236 | wxFLOOD_SURFACE, | |
237 | wxFLOOD_BORDER, | |
238 | wxODDEVEN_RULE, | |
239 | wxWINDING_RULE, | |
240 | wxTOOL_TOP, | |
241 | wxTOOL_BOTTOM, | |
242 | wxTOOL_LEFT, | |
243 | wxTOOL_RIGHT, | |
244 | wxOK, | |
245 | wxYES_NO, | |
246 | wxCANCEL, | |
247 | wxYES, | |
248 | wxNO, | |
249 | wxICON_EXCLAMATION, | |
250 | wxICON_HAND, | |
251 | wxICON_QUESTION, | |
252 | wxICON_INFORMATION, | |
253 | wxICON_STOP, | |
254 | wxICON_ASTERISK, | |
255 | wxICON_MASK, | |
256 | wxCENTRE, | |
257 | wxCENTER, | |
258 | wxSIZE_AUTO_WIDTH, | |
259 | wxSIZE_AUTO_HEIGHT, | |
260 | wxSIZE_AUTO, | |
261 | wxSIZE_USE_EXISTING, | |
262 | wxSIZE_ALLOW_MINUS_ONE, | |
263 | wxDF_TEXT, | |
264 | wxDF_BITMAP, | |
265 | wxDF_METAFILE, | |
266 | wxDF_DIB, | |
267 | wxDF_OEMTEXT, | |
268 | wxDF_FILENAME, | |
269 | wxPORTRAIT, | |
270 | wxLANDSCAPE, | |
271 | wxID_OPEN, | |
272 | wxID_CLOSE, | |
273 | wxID_NEW, | |
274 | wxID_SAVE, | |
275 | wxID_SAVEAS, | |
276 | wxID_REVERT, | |
277 | wxID_EXIT, | |
278 | wxID_UNDO, | |
279 | wxID_REDO, | |
280 | wxID_HELP, | |
281 | wxID_PRINT, | |
282 | wxID_PRINT_SETUP, | |
283 | wxID_PREVIEW, | |
284 | wxID_ABOUT, | |
285 | wxID_HELP_CONTENTS, | |
286 | wxID_HELP_COMMANDS, | |
287 | wxID_HELP_PROCEDURES, | |
288 | wxID_HELP_CONTEXT, | |
289 | wxID_CUT, | |
290 | wxID_COPY, | |
291 | wxID_PASTE, | |
292 | wxID_CLEAR, | |
293 | wxID_FIND, | |
294 | wxID_FILE1, | |
295 | wxID_FILE2, | |
296 | wxID_FILE3, | |
297 | wxID_FILE4, | |
298 | wxID_FILE5, | |
299 | wxID_FILE6, | |
300 | wxID_FILE7, | |
301 | wxID_FILE8, | |
302 | wxID_FILE9, | |
303 | wxID_OK, | |
304 | wxID_CANCEL, | |
305 | wxID_APPLY, | |
306 | wxID_YES, | |
307 | wxID_NO, | |
308 | wxBITMAP_TYPE_BMP, | |
309 | wxBITMAP_TYPE_BMP_RESOURCE, | |
310 | wxBITMAP_TYPE_ICO, | |
311 | wxBITMAP_TYPE_ICO_RESOURCE, | |
312 | wxBITMAP_TYPE_CUR, | |
313 | wxBITMAP_TYPE_CUR_RESOURCE, | |
314 | wxBITMAP_TYPE_XBM, | |
315 | wxBITMAP_TYPE_XBM_DATA, | |
316 | wxBITMAP_TYPE_XPM, | |
317 | wxBITMAP_TYPE_XPM_DATA, | |
318 | wxBITMAP_TYPE_TIF, | |
319 | wxBITMAP_TYPE_TIF_RESOURCE, | |
320 | wxBITMAP_TYPE_GIF, | |
321 | wxBITMAP_TYPE_GIF_RESOURCE, | |
322 | wxBITMAP_TYPE_PNG, | |
323 | wxBITMAP_TYPE_PNG_RESOURCE, | |
324 | wxBITMAP_TYPE_ANY, | |
325 | wxBITMAP_TYPE_RESOURCE, | |
326 | ||
327 | wxOPEN, | |
328 | wxSAVE, | |
329 | wxHIDE_READONLY, | |
330 | wxOVERWRITE_PROMPT, | |
331 | ||
853b255a | 332 | #ifdef __WXMSW__ |
7bf85405 RD |
333 | wxACCEL_ALT, |
334 | wxACCEL_CTRL, | |
335 | wxACCEL_SHIFT, | |
853b255a | 336 | #endif |
7bf85405 RD |
337 | |
338 | }; | |
339 | ||
340 | ||
341 | /// Standard error codes | |
342 | enum ErrCode | |
343 | { | |
344 | ERR_PARAM = (-4000), | |
345 | ERR_NODATA, | |
346 | ERR_CANCEL, | |
347 | ERR_SUCCESS = 0 | |
348 | }; | |
349 | ||
350 | ||
351 | enum { | |
352 | wxDEFAULT , | |
353 | wxDECORATIVE, | |
354 | wxROMAN, | |
355 | wxSCRIPT, | |
356 | wxSWISS, | |
357 | wxMODERN, | |
358 | wxTELETYPE, | |
359 | wxVARIABLE, | |
360 | wxFIXED, | |
361 | wxNORMAL, | |
362 | wxLIGHT, | |
363 | wxBOLD, | |
364 | wxITALIC, | |
365 | wxSLANT, | |
366 | wxSOLID, | |
367 | wxDOT, | |
368 | wxLONG_DASH, | |
369 | wxSHORT_DASH, | |
370 | wxDOT_DASH, | |
371 | wxUSER_DASH, | |
372 | wxTRANSPARENT, | |
373 | wxSTIPPLE, | |
374 | wxBDIAGONAL_HATCH, | |
375 | wxCROSSDIAG_HATCH, | |
376 | wxFDIAGONAL_HATCH, | |
377 | wxCROSS_HATCH, | |
378 | wxHORIZONTAL_HATCH, | |
379 | wxVERTICAL_HATCH, | |
380 | wxJOIN_BEVEL, | |
381 | wxJOIN_MITER, | |
382 | wxJOIN_ROUND, | |
383 | wxCAP_ROUND, | |
384 | wxCAP_PROJECTING, | |
385 | wxCAP_BUTT | |
386 | }; | |
387 | ||
388 | typedef enum { | |
389 | wxCLEAR, // 0 | |
390 | wxXOR, // src XOR dst | |
391 | wxINVERT, // NOT dst | |
392 | wxOR_REVERSE, // src OR (NOT dst) | |
393 | wxAND_REVERSE,// src AND (NOT dst) | |
394 | wxCOPY, // src | |
395 | wxAND, // src AND dst | |
396 | wxAND_INVERT, // (NOT src) AND dst | |
397 | wxNO_OP, // dst | |
398 | wxNOR, // (NOT src) AND (NOT dst) | |
399 | wxEQUIV, // (NOT src) XOR dst | |
400 | wxSRC_INVERT, // (NOT src) | |
401 | wxOR_INVERT, // (NOT src) OR dst | |
402 | wxNAND, // (NOT src) OR (NOT dst) | |
403 | wxOR, // src OR dst | |
404 | wxSET, // 1 | |
405 | wxSRC_OR, // source _bitmap_ OR destination | |
406 | wxSRC_AND // source _bitmap_ AND destination | |
407 | } form_ops_t; | |
408 | ||
409 | enum _Virtual_keycodes { | |
410 | WXK_BACK = 8, | |
411 | WXK_TAB = 9, | |
412 | WXK_RETURN = 13, | |
413 | WXK_ESCAPE = 27, | |
414 | WXK_SPACE = 32, | |
415 | WXK_DELETE = 127, | |
416 | ||
417 | WXK_START = 300, | |
418 | WXK_LBUTTON, | |
419 | WXK_RBUTTON, | |
420 | WXK_CANCEL, | |
421 | WXK_MBUTTON, | |
422 | WXK_CLEAR, | |
423 | WXK_SHIFT, | |
424 | WXK_CONTROL, | |
425 | WXK_MENU, | |
426 | WXK_PAUSE, | |
427 | WXK_CAPITAL, | |
428 | WXK_PRIOR, // Page up | |
429 | WXK_NEXT, // Page down | |
430 | WXK_END, | |
431 | WXK_HOME, | |
432 | WXK_LEFT, | |
433 | WXK_UP, | |
434 | WXK_RIGHT, | |
435 | WXK_DOWN, | |
436 | WXK_SELECT, | |
437 | WXK_PRINT, | |
438 | WXK_EXECUTE, | |
439 | WXK_SNAPSHOT, | |
440 | WXK_INSERT, | |
441 | WXK_HELP, | |
442 | WXK_NUMPAD0, | |
443 | WXK_NUMPAD1, | |
444 | WXK_NUMPAD2, | |
445 | WXK_NUMPAD3, | |
446 | WXK_NUMPAD4, | |
447 | WXK_NUMPAD5, | |
448 | WXK_NUMPAD6, | |
449 | WXK_NUMPAD7, | |
450 | WXK_NUMPAD8, | |
451 | WXK_NUMPAD9, | |
452 | WXK_MULTIPLY, | |
453 | WXK_ADD, | |
454 | WXK_SEPARATOR, | |
455 | WXK_SUBTRACT, | |
456 | WXK_DECIMAL, | |
457 | WXK_DIVIDE, | |
458 | WXK_F1, | |
459 | WXK_F2, | |
460 | WXK_F3, | |
461 | WXK_F4, | |
462 | WXK_F5, | |
463 | WXK_F6, | |
464 | WXK_F7, | |
465 | WXK_F8, | |
466 | WXK_F9, | |
467 | WXK_F10, | |
468 | WXK_F11, | |
469 | WXK_F12, | |
470 | WXK_F13, | |
471 | WXK_F14, | |
472 | WXK_F15, | |
473 | WXK_F16, | |
474 | WXK_F17, | |
475 | WXK_F18, | |
476 | WXK_F19, | |
477 | WXK_F20, | |
478 | WXK_F21, | |
479 | WXK_F22, | |
480 | WXK_F23, | |
481 | WXK_F24, | |
482 | WXK_NUMLOCK, | |
483 | WXK_SCROLL, | |
484 | WXK_PAGEUP, | |
485 | WXK_PAGEDOWN | |
486 | }; | |
487 | ||
488 | typedef enum { | |
9c039d08 | 489 | wxCURSOR_NONE = 0, |
7bf85405 RD |
490 | wxCURSOR_ARROW = 1, |
491 | wxCURSOR_BULLSEYE, | |
492 | wxCURSOR_CHAR, | |
493 | wxCURSOR_CROSS, | |
494 | wxCURSOR_HAND, | |
495 | wxCURSOR_IBEAM, | |
496 | wxCURSOR_LEFT_BUTTON, | |
497 | wxCURSOR_MAGNIFIER, | |
498 | wxCURSOR_MIDDLE_BUTTON, | |
499 | wxCURSOR_NO_ENTRY, | |
500 | wxCURSOR_PAINT_BRUSH, | |
501 | wxCURSOR_PENCIL, | |
502 | wxCURSOR_POINT_LEFT, | |
503 | wxCURSOR_POINT_RIGHT, | |
504 | wxCURSOR_QUESTION_ARROW, | |
505 | wxCURSOR_RIGHT_BUTTON, | |
506 | wxCURSOR_SIZENESW, | |
507 | wxCURSOR_SIZENS, | |
508 | wxCURSOR_SIZENWSE, | |
509 | wxCURSOR_SIZEWE, | |
510 | wxCURSOR_SIZING, | |
511 | wxCURSOR_SPRAYCAN, | |
512 | wxCURSOR_WAIT, | |
513 | wxCURSOR_WATCH, | |
514 | wxCURSOR_BLANK | |
9c039d08 RD |
515 | // #ifndef __WXMSW__ |
516 | // /* Not yet implemented for Windows */ | |
517 | // , wxCURSOR_CROSS_REVERSE, | |
518 | // wxCURSOR_DOUBLE_ARROW, | |
519 | // wxCURSOR_BASED_ARROW_UP, | |
520 | // wxCURSOR_BASED_ARROW_DOWN | |
521 | // #endif | |
7bf85405 RD |
522 | } _standard_cursors_t; |
523 | ||
524 | ||
525 | #define FALSE 0 | |
526 | #define false 0 | |
527 | #define TRUE 1 | |
528 | #define true 1 | |
529 | ||
530 | ||
531 | //--------------------------------------------------------------------------- | |
532 | //--------------------------------------------------------------------------- | |
533 | ||
534 | /* | |
535 | * Event types | |
536 | * | |
537 | */ | |
538 | enum wxEventType { | |
539 | wxEVT_NULL = 0, | |
540 | wxEVT_FIRST = 10000, | |
541 | ||
542 | // New names | |
543 | wxEVT_COMMAND_BUTTON_CLICKED, | |
544 | wxEVT_COMMAND_CHECKBOX_CLICKED, | |
545 | wxEVT_COMMAND_CHOICE_SELECTED, | |
546 | wxEVT_COMMAND_LISTBOX_SELECTED, | |
547 | wxEVT_COMMAND_LISTBOX_DOUBLECLICKED, | |
548 | wxEVT_COMMAND_CHECKLISTBOX_TOGGLED, | |
549 | wxEVT_COMMAND_TEXT_UPDATED, | |
550 | wxEVT_COMMAND_TEXT_ENTER, | |
551 | wxEVT_COMMAND_MENU_SELECTED, | |
552 | wxEVT_COMMAND_SLIDER_UPDATED, | |
553 | wxEVT_COMMAND_RADIOBOX_SELECTED, | |
554 | wxEVT_COMMAND_RADIOBUTTON_SELECTED, | |
555 | // wxEVT_COMMAND_SCROLLBAR_UPDATED is now obsolete since we use wxEVT_SCROLL... events | |
556 | wxEVT_COMMAND_SCROLLBAR_UPDATED, | |
557 | wxEVT_COMMAND_VLBOX_SELECTED, | |
558 | wxEVT_COMMAND_COMBOBOX_SELECTED, | |
559 | wxEVT_COMMAND_TOOL_CLICKED, | |
560 | wxEVT_COMMAND_TOOL_RCLICKED, | |
561 | wxEVT_COMMAND_TOOL_ENTER, | |
562 | wxEVT_SET_FOCUS, | |
563 | wxEVT_KILL_FOCUS, | |
564 | ||
565 | /* Mouse event types */ | |
566 | wxEVT_LEFT_DOWN, | |
567 | wxEVT_LEFT_UP, | |
568 | wxEVT_MIDDLE_DOWN, | |
569 | wxEVT_MIDDLE_UP, | |
570 | wxEVT_RIGHT_DOWN, | |
571 | wxEVT_RIGHT_UP, | |
572 | wxEVT_MOTION, | |
573 | wxEVT_ENTER_WINDOW, | |
574 | wxEVT_LEAVE_WINDOW, | |
575 | wxEVT_LEFT_DCLICK, | |
576 | wxEVT_MIDDLE_DCLICK, | |
577 | wxEVT_RIGHT_DCLICK, | |
578 | ||
579 | // Non-client mouse events | |
580 | wxEVT_NC_LEFT_DOWN = wxEVT_FIRST + 100, | |
581 | wxEVT_NC_LEFT_UP, | |
582 | wxEVT_NC_MIDDLE_DOWN, | |
583 | wxEVT_NC_MIDDLE_UP, | |
584 | wxEVT_NC_RIGHT_DOWN, | |
585 | wxEVT_NC_RIGHT_UP, | |
586 | wxEVT_NC_MOTION, | |
587 | wxEVT_NC_ENTER_WINDOW, | |
588 | wxEVT_NC_LEAVE_WINDOW, | |
589 | wxEVT_NC_LEFT_DCLICK, | |
590 | wxEVT_NC_MIDDLE_DCLICK, | |
591 | wxEVT_NC_RIGHT_DCLICK, | |
592 | ||
593 | /* Character input event type */ | |
594 | wxEVT_CHAR, | |
595 | ||
596 | /* | |
597 | * Scrollbar event identifiers | |
598 | */ | |
599 | wxEVT_SCROLL_TOP, | |
600 | wxEVT_SCROLL_BOTTOM, | |
601 | wxEVT_SCROLL_LINEUP, | |
602 | wxEVT_SCROLL_LINEDOWN, | |
603 | wxEVT_SCROLL_PAGEUP, | |
604 | wxEVT_SCROLL_PAGEDOWN, | |
605 | wxEVT_SCROLL_THUMBTRACK, | |
606 | ||
607 | wxEVT_SIZE = wxEVT_FIRST + 200, | |
608 | wxEVT_MOVE, | |
609 | wxEVT_CLOSE_WINDOW, | |
610 | wxEVT_END_SESSION, | |
611 | wxEVT_QUERY_END_SESSION, | |
612 | wxEVT_ACTIVATE_APP, | |
613 | wxEVT_POWER, | |
614 | wxEVT_CHAR_HOOK, | |
615 | wxEVT_KEY_UP, | |
616 | wxEVT_ACTIVATE, | |
617 | wxEVT_CREATE, | |
618 | wxEVT_DESTROY, | |
619 | wxEVT_SHOW, | |
620 | wxEVT_ICONIZE, | |
621 | wxEVT_MAXIMIZE, | |
622 | wxEVT_MOUSE_CAPTURE_CHANGED, | |
623 | wxEVT_PAINT, | |
624 | wxEVT_ERASE_BACKGROUND, | |
625 | wxEVT_NC_PAINT, | |
626 | wxEVT_PAINT_ICON, | |
627 | wxEVT_MENU_CHAR, | |
628 | wxEVT_MENU_INIT, | |
629 | wxEVT_MENU_HIGHLIGHT, | |
630 | wxEVT_POPUP_MENU_INIT, | |
631 | wxEVT_CONTEXT_MENU, | |
632 | wxEVT_SYS_COLOUR_CHANGED, | |
633 | wxEVT_SETTING_CHANGED, | |
634 | wxEVT_QUERY_NEW_PALETTE, | |
635 | wxEVT_PALETTE_CHANGED, | |
636 | wxEVT_JOY_BUTTON_DOWN, | |
637 | wxEVT_JOY_BUTTON_UP, | |
638 | wxEVT_JOY_MOVE, | |
639 | wxEVT_JOY_ZMOVE, | |
640 | wxEVT_DROP_FILES, | |
641 | wxEVT_DRAW_ITEM, | |
642 | wxEVT_MEASURE_ITEM, | |
643 | wxEVT_COMPARE_ITEM, | |
644 | wxEVT_INIT_DIALOG, | |
645 | wxEVT_IDLE, | |
646 | wxEVT_UPDATE_UI, | |
647 | ||
648 | /* Generic command events */ | |
649 | // Note: a click is a higher-level event | |
650 | // than button down/up | |
651 | wxEVT_COMMAND_LEFT_CLICK, | |
652 | wxEVT_COMMAND_LEFT_DCLICK, | |
653 | wxEVT_COMMAND_RIGHT_CLICK, | |
654 | wxEVT_COMMAND_RIGHT_DCLICK, | |
655 | wxEVT_COMMAND_SET_FOCUS, | |
656 | wxEVT_COMMAND_KILL_FOCUS, | |
657 | wxEVT_COMMAND_ENTER, | |
658 | ||
659 | /* Tree control event types */ | |
660 | wxEVT_COMMAND_TREE_BEGIN_DRAG, | |
661 | wxEVT_COMMAND_TREE_BEGIN_RDRAG, | |
662 | wxEVT_COMMAND_TREE_BEGIN_LABEL_EDIT, | |
663 | wxEVT_COMMAND_TREE_END_LABEL_EDIT, | |
664 | wxEVT_COMMAND_TREE_DELETE_ITEM, | |
665 | wxEVT_COMMAND_TREE_GET_INFO, | |
666 | wxEVT_COMMAND_TREE_SET_INFO, | |
667 | wxEVT_COMMAND_TREE_ITEM_EXPANDED, | |
668 | wxEVT_COMMAND_TREE_ITEM_EXPANDING, | |
669 | wxEVT_COMMAND_TREE_SEL_CHANGED, | |
670 | wxEVT_COMMAND_TREE_SEL_CHANGING, | |
671 | wxEVT_COMMAND_TREE_KEY_DOWN, | |
672 | ||
673 | /* List control event types */ | |
674 | wxEVT_COMMAND_LIST_BEGIN_DRAG, | |
675 | wxEVT_COMMAND_LIST_BEGIN_RDRAG, | |
676 | wxEVT_COMMAND_LIST_BEGIN_LABEL_EDIT, | |
677 | wxEVT_COMMAND_LIST_END_LABEL_EDIT, | |
678 | wxEVT_COMMAND_LIST_DELETE_ITEM, | |
679 | wxEVT_COMMAND_LIST_DELETE_ALL_ITEMS, | |
680 | wxEVT_COMMAND_LIST_GET_INFO, | |
681 | wxEVT_COMMAND_LIST_SET_INFO, | |
682 | wxEVT_COMMAND_LIST_ITEM_SELECTED, | |
683 | wxEVT_COMMAND_LIST_ITEM_DESELECTED, | |
684 | wxEVT_COMMAND_LIST_KEY_DOWN, | |
685 | wxEVT_COMMAND_LIST_INSERT_ITEM, | |
686 | wxEVT_COMMAND_LIST_COL_CLICK, | |
687 | ||
688 | /* Tab and notebook control event types */ | |
689 | wxEVT_COMMAND_TAB_SEL_CHANGED, | |
690 | wxEVT_COMMAND_TAB_SEL_CHANGING, | |
691 | wxEVT_COMMAND_NOTEBOOK_PAGE_CHANGED, | |
692 | wxEVT_COMMAND_NOTEBOOK_PAGE_CHANGING | |
693 | }; | |
694 | ||
695 | ||
696 | ||
697 | ||
698 | ///////////////////////////////////////////////////////////////////////////// | |
699 | // | |
700 | // $Log$ | |
9c039d08 RD |
701 | // Revision 1.5 1998/10/02 06:40:32 RD |
702 | // Version 0.4 of wxPython for MSW. | |
703 | // | |
fb5e0af0 RD |
704 | // Revision 1.4 1998/08/18 19:48:11 RD |
705 | // more wxGTK compatibility things. | |
706 | // | |
707 | // It builds now but there are serious runtime problems... | |
708 | // | |
853b255a RD |
709 | // Revision 1.3 1998/08/14 23:36:33 RD |
710 | // Beginings of wxGTK compatibility | |
711 | // | |
2370fac3 RD |
712 | // Revision 1.2 1998/08/14 03:16:35 RD |
713 | // removed some definitions that got removed from defs.h | |
714 | // | |
7bf85405 RD |
715 | // Revision 1.1 1998/08/09 08:25:49 RD |
716 | // Initial version | |
717 | // | |
718 | // |