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