]> git.saurik.com Git - wxWidgets.git/blob - wxPython/src/_defs.i
implement SetFocusFromKbd() to select all text in the controls whose dialog code...
[wxWidgets.git] / 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 wxCaret;
27 class wxCheckBox;
28 class wxCheckListBox;
29 class wxChoice;
30 class wxClientDC;
31 class wxCloseEvent;
32 class wxColourData;
33 class wxColourDialog;
34 class wxColour;
35 class wxComboBox;
36 class wxCommandEvent;
37 class wxConfig;
38 class wxControl;
39 class wxCursor;
40 class wxDC;
41 class wxDialog;
42 class wxDirDialog;
43 class wxDropFilesEvent;
44 class wxEraseEvent;
45 class wxEvent;
46 class wxEvtHandler;
47 class wxFileDialog;
48 class wxFocusEvent;
49 class wxFontData;
50 class wxFontDialog;
51 class wxFont;
52 class wxFrame;
53 class wxGauge;
54 class wxGridCell;
55 class wxGridEvent;
56 class wxGrid;
57 class wxIconizeEvent;
58 class wxIcon;
59 class wxIdleEvent;
60 class wxImageList;
61 class wxIndividualLayoutConstraint;
62 class wxInitDialogEvent;
63 class wxJoystickEvent;
64 class wxKeyEvent;
65 class wxLayoutAlgorithm;
66 class wxLayoutConstraints;
67 class wxListBox;
68 class wxListCtrl;
69 class wxListEvent;
70 class wxListItem;
71 class wxMDIChildFrame;
72 class wxMDIClientWindow;
73 class wxMDIParentFrame;
74 class wxMask;
75 class wxMaximizeEvent;
76 class wxMemoryDC;
77 class wxMenuBar;
78 class wxMenuEvent;
79 class wxMenuItem;
80 class wxMenu;
81 class wxMessageDialog;
82 class wxMetaFileDC;
83 class wxMiniFrame;
84 class wxMouseEvent;
85 class wxMoveEvent;
86 class wxNotebookEvent;
87 class wxNotebook;
88 class wxPageSetupData;
89 class wxPageSetupDialog;
90 class wxPaintDC;
91 class wxPaintEvent;
92 class wxPalette;
93 class wxPanel;
94 class wxPen;
95 class wxPoint;
96 class wxPostScriptDC;
97 class wxPrintData;
98 class wxPrintDialog;
99 class wxPrinterDC;
100 class wxQueryLayoutInfoEvent;
101 class wxRadioBox;
102 class wxRadioButton;
103 class wxRealPoint;
104 class wxRect;
105 class wxRegionIterator;
106 class wxRegion;
107 class wxSashEvent;
108 class wxSashLayoutWindow;
109 class wxSashWindow;
110 class wxScreenDC;
111 class wxScrollBar;
112 class wxScrollEvent;
113 class wxScrollWinEvent;
114 class wxScrolledWindow;
115 class wxShowEvent;
116 class wxSingleChoiceDialog;
117 class wxSizeEvent;
118 class wxSize;
119 class wxSlider;
120 class wxSpinButton;
121 class wxSpinEvent;
122 class wxSplitterWindow;
123 class wxStaticBitmap;
124 class wxStaticBox;
125 class wxStaticText;
126 class wxStatusBar;
127 class wxSysColourChangedEvent;
128 class wxTaskBarIcon;
129 class wxTextCtrl;
130 class wxTextEntryDialog;
131 class wxTimer;
132 class wxToolBarTool;
133 class wxToolBar;
134 class wxToolTip;
135 class wxTreeCtrl;
136 class wxTreeEvent;
137 class wxTreeItemData;
138 class wxTreeItemId;
139 class wxUpdateUIEvent;
140 class wxWindowDC;
141 class wxWindow;
142 class wxSizer;
143 class wxBoxSizer;
144 class wxStaticBoxSizer;
145
146 class wxPyApp;
147 class wxPyMenu;
148 class wxPyTimer;
149
150
151 //---------------------------------------------------------------------------
152
153 // some definitions for SWIG only
154 typedef unsigned char byte;
155 typedef short int WXTYPE;
156 typedef int wxWindowID;
157 typedef unsigned int uint;
158 typedef signed int EBool;
159 typedef unsigned int size_t
160 typedef unsigned int time_t
161 typedef int wxPrintQuality;
162 typedef int wxCoord;
163 typedef char wxChar;
164
165
166 //---------------------------------------------------------------------------
167
168 // General numeric #define's and etc. Making them all enums makes SWIG use the
169 // real macro when making the Python Int
170
171 enum {
172 wxMAJOR_VERSION,
173 wxMINOR_VERSION,
174 wxRELEASE_NUMBER,
175
176 wxNOT_FOUND,
177
178 wxVSCROLL,
179 wxHSCROLL,
180 wxCAPTION,
181 wxDOUBLE_BORDER,
182 wxSUNKEN_BORDER,
183 wxRAISED_BORDER,
184 wxBORDER,
185 wxSIMPLE_BORDER,
186 wxSTATIC_BORDER,
187 wxTRANSPARENT_WINDOW,
188 wxNO_BORDER,
189 wxUSER_COLOURS,
190 wxNO_3D,
191 //wxOVERRIDE_KEY_TRANSLATIONS,
192 wxTAB_TRAVERSAL,
193 wxWANTS_CHARS,
194 wxPOPUP_WINDOW,
195 wxHORIZONTAL,
196 wxVERTICAL,
197 wxBOTH,
198 wxCENTER_FRAME,
199 wxCENTRE_ON_SCREEN,
200 wxCENTER_ON_SCREEN,
201
202 wxSTAY_ON_TOP,
203 wxICONIZE,
204 wxMINIMIZE,
205 wxMAXIMIZE,
206 wxTHICK_FRAME,
207 wxSYSTEM_MENU,
208 wxMINIMIZE_BOX,
209 wxMAXIMIZE_BOX,
210 wxTINY_CAPTION_HORIZ,
211 wxTINY_CAPTION_VERT,
212 wxRESIZE_BOX,
213 wxRESIZE_BORDER,
214 wxDIALOG_MODAL,
215 wxDIALOG_MODELESS,
216 wxDIALOG_NO_PARENT,
217 wxDEFAULT_FRAME_STYLE,
218 wxDEFAULT_DIALOG_STYLE,
219
220 wxFRAME_TOOL_WINDOW,
221 wxFRAME_FLOAT_ON_PARENT,
222 wxFRAME_NO_WINDOW_MENU,
223 wxFRAME_NO_TASKBAR,
224
225 wxED_CLIENT_MARGIN,
226 wxED_BUTTONS_BOTTOM,
227 wxED_BUTTONS_RIGHT,
228 wxED_STATIC_LINE,
229 wxEXT_DIALOG_STYLE,
230
231 wxCLIP_CHILDREN,
232 wxCLIP_SIBLINGS,
233
234 wxRETAINED,
235 wxBACKINGSTORE,
236
237 wxTB_HORIZONTAL,
238 wxTB_VERTICAL,
239 wxTB_3DBUTTONS,
240 wxTB_FLAT,
241 wxTB_DOCKABLE,
242 wxTB_NOICONS,
243 wxTB_TEXT,
244 wxTB_NODIVIDER,
245 wxTB_NOALIGN,
246
247 wxCOLOURED,
248 wxFIXED_LENGTH,
249 wxALIGN_LEFT,
250 wxALIGN_CENTER_HORIZONTAL,
251 wxALIGN_CENTRE_HORIZONTAL,
252 wxALIGN_RIGHT,
253 wxALIGN_BOTTOM,
254 wxALIGN_CENTER_VERTICAL,
255 wxALIGN_CENTRE_VERTICAL,
256 wxALIGN_TOP,
257 wxALIGN_CENTER,
258 wxALIGN_CENTRE,
259 wxSHAPED,
260 wxADJUST_MINSIZE,
261
262 wxLB_NEEDED_SB,
263 wxLB_ALWAYS_SB,
264 wxLB_SORT,
265 wxLB_SINGLE,
266 wxLB_MULTIPLE,
267 wxLB_EXTENDED,
268 wxLB_OWNERDRAW,
269 wxLB_HSCROLL,
270 wxPROCESS_ENTER,
271 wxPASSWORD,
272
273 wxTE_READONLY,
274 wxTE_MULTILINE,
275 wxTE_PROCESS_TAB,
276 wxTE_RICH,
277 wxTE_RICH2,
278 wxTE_NO_VSCROLL,
279 wxTE_AUTO_SCROLL,
280 wxTE_PROCESS_ENTER,
281 wxTE_PASSWORD,
282 wxTE_AUTO_URL,
283 wxTE_NOHIDESEL,
284 wxTE_DONTWRAP,
285 wxTE_LINEWRAP,
286 wxTE_WORDWRAP,
287
288 wxCB_SIMPLE,
289 wxCB_DROPDOWN,
290 wxCB_SORT,
291 wxCB_READONLY,
292 wxRA_HORIZONTAL,
293 wxRA_VERTICAL,
294 wxRA_SPECIFY_ROWS,
295 wxRA_SPECIFY_COLS,
296 wxRB_GROUP,
297 wxGA_PROGRESSBAR,
298 wxGA_HORIZONTAL,
299 wxGA_VERTICAL,
300 wxGA_SMOOTH,
301 wxSL_HORIZONTAL,
302 wxSL_VERTICAL,
303 wxSL_AUTOTICKS,
304 wxSL_LABELS,
305 wxSL_LEFT,
306 wxSL_TOP,
307 wxSL_RIGHT,
308 wxSL_BOTTOM,
309 wxSL_BOTH,
310 wxSL_SELRANGE,
311 wxSB_HORIZONTAL,
312 wxSB_VERTICAL,
313 wxST_SIZEGRIP,
314 wxST_NO_AUTORESIZE,
315 wxBU_AUTODRAW,
316 wxBU_NOAUTODRAW,
317 wxSP_VERTICAL,
318 wxSP_HORIZONTAL,
319 wxSP_ARROW_KEYS,
320 wxSP_WRAP,
321 wxSP_NOBORDER,
322 wxSP_3D,
323 wxSP_3DSASH,
324 wxSP_3DBORDER,
325 wxSP_FULLSASH,
326 wxSP_BORDER,
327 wxSP_LIVE_UPDATE,
328 wxSP_PERMIT_UNSPLIT,
329 //wxSP_SASH_AQUA,
330 wxFLOOD_SURFACE,
331 wxFLOOD_BORDER,
332 wxODDEVEN_RULE,
333 wxWINDING_RULE,
334 wxTOOL_TOP,
335 wxTOOL_BOTTOM,
336 wxTOOL_LEFT,
337 wxTOOL_RIGHT,
338 wxOK,
339 wxYES_NO,
340 wxCANCEL,
341 wxYES,
342 wxNO,
343 wxNO_DEFAULT,
344 wxYES_DEFAULT,
345 wxICON_EXCLAMATION,
346 wxICON_HAND,
347 wxICON_QUESTION,
348 wxICON_INFORMATION,
349 wxICON_STOP,
350 wxICON_ASTERISK,
351 wxICON_MASK,
352 wxICON_WARNING,
353 wxICON_ERROR,
354
355 wxFORWARD,
356 wxBACKWARD,
357 wxRESET,
358 wxHELP,
359 wxMORE,
360 wxSETUP,
361
362
363 wxCENTRE,
364 wxCENTER,
365 wxSIZE_AUTO_WIDTH,
366 wxSIZE_AUTO_HEIGHT,
367 wxSIZE_AUTO,
368 wxSIZE_USE_EXISTING,
369 wxSIZE_ALLOW_MINUS_ONE,
370 wxPORTRAIT,
371 wxLANDSCAPE,
372 wxPRINT_QUALITY_HIGH,
373 wxPRINT_QUALITY_MEDIUM,
374 wxPRINT_QUALITY_LOW,
375 wxPRINT_QUALITY_DRAFT,
376
377 wxID_OPEN,
378 wxID_CLOSE,
379 wxID_NEW,
380 wxID_SAVE,
381 wxID_SAVEAS,
382 wxID_REVERT,
383 wxID_EXIT,
384 wxID_UNDO,
385 wxID_REDO,
386 wxID_HELP,
387 wxID_PRINT,
388 wxID_PRINT_SETUP,
389 wxID_PREVIEW,
390 wxID_ABOUT,
391 wxID_HELP_CONTENTS,
392 wxID_HELP_COMMANDS,
393 wxID_HELP_PROCEDURES,
394 wxID_HELP_CONTEXT,
395 wxID_CLOSE_ALL,
396
397 wxID_CUT,
398 wxID_COPY,
399 wxID_PASTE,
400 wxID_CLEAR,
401 wxID_FIND,
402 wxID_DUPLICATE,
403 wxID_SELECTALL,
404
405 wxID_FILE1,
406 wxID_FILE2,
407 wxID_FILE3,
408 wxID_FILE4,
409 wxID_FILE5,
410 wxID_FILE6,
411 wxID_FILE7,
412 wxID_FILE8,
413 wxID_FILE9,
414
415 wxID_OK,
416 wxID_CANCEL,
417 wxID_APPLY,
418 wxID_YES,
419 wxID_NO,
420 wxID_STATIC,
421 wxID_FORWARD,
422 wxID_BACKWARD,
423 wxID_DEFAULT,
424 wxID_MORE,
425 wxID_SETUP,
426 wxID_RESET,
427 wxID_CONTEXT_HELP,
428 wxID_YESTOALL,
429 wxID_NOTOALL,
430 wxID_ABORT,
431 wxID_RETRY,
432 wxID_IGNORE,
433
434 wxOPEN,
435 wxSAVE,
436 wxHIDE_READONLY,
437 wxOVERWRITE_PROMPT,
438 wxFILE_MUST_EXIST,
439 wxMULTIPLE,
440 wxCHANGE_DIR,
441
442 wxACCEL_ALT,
443 wxACCEL_CTRL,
444 wxACCEL_SHIFT,
445 wxACCEL_NORMAL,
446
447 wxPD_AUTO_HIDE,
448 wxPD_APP_MODAL,
449 wxPD_CAN_ABORT,
450 wxPD_ELAPSED_TIME,
451 wxPD_ESTIMATED_TIME,
452 wxPD_REMAINING_TIME,
453
454 wxDD_NEW_DIR_BUTTON,
455
456 wxMENU_TEAROFF,
457 wxMB_DOCKABLE,
458 wxNO_FULL_REPAINT_ON_RESIZE,
459
460 wxLEFT,
461 wxRIGHT,
462 wxUP,
463 wxDOWN,
464 wxALL,
465 wxTOP,
466 wxBOTTOM,
467
468 wxNORTH,
469 wxSOUTH,
470 wxEAST,
471 wxWEST,
472
473 wxSTRETCH_NOT,
474 wxSHRINK,
475 wxGROW,
476 wxEXPAND,
477
478 wxNB_FIXEDWIDTH,
479 wxNB_LEFT,
480 wxNB_RIGHT,
481 wxNB_BOTTOM,
482 wxNB_MULTILINE,
483
484 wxLI_HORIZONTAL,
485 wxLI_VERTICAL,
486
487 wxJOYSTICK1,
488 wxJOYSTICK2,
489 wxJOY_BUTTON1,
490 wxJOY_BUTTON2,
491 wxJOY_BUTTON3,
492 wxJOY_BUTTON4,
493 wxJOY_BUTTON_ANY,
494
495 wxWS_EX_VALIDATE_RECURSIVELY,
496 wxWS_EX_BLOCK_EVENTS,
497 wxWS_EX_TRANSIENT,
498
499 // Mapping modes (as per Windows)
500 wxMM_TEXT,
501 wxMM_LOMETRIC,
502 wxMM_HIMETRIC,
503 wxMM_LOENGLISH,
504 wxMM_HIENGLISH,
505 wxMM_TWIPS,
506 wxMM_ISOTROPIC,
507 wxMM_ANISOTROPIC,
508 wxMM_POINTS,
509 wxMM_METRIC,
510
511 };
512
513
514 enum wxBorder
515 {
516 wxBORDER_DEFAULT,
517 wxBORDER_NONE,
518 wxBORDER_STATIC,
519 wxBORDER_SIMPLE,
520 wxBORDER_RAISED,
521 wxBORDER_SUNKEN,
522 wxBORDER_DOUBLE,
523 wxBORDER_MASK,
524 };
525
526
527 // // Standard error codes
528 // enum ErrCode
529 // {
530 // ERR_PARAM = (-4000),
531 // ERR_NODATA,
532 // ERR_CANCEL,
533 // ERR_SUCCESS = 0
534 // };
535
536
537 enum {
538 wxDEFAULT ,
539 wxDECORATIVE,
540 wxROMAN,
541 wxSCRIPT,
542 wxSWISS,
543 wxMODERN,
544 wxTELETYPE,
545 wxVARIABLE,
546 wxFIXED,
547 wxNORMAL,
548 wxLIGHT,
549 wxBOLD,
550 wxITALIC,
551 wxSLANT,
552 wxSOLID,
553 wxDOT,
554 wxLONG_DASH,
555 wxSHORT_DASH,
556 wxDOT_DASH,
557 wxUSER_DASH,
558 wxTRANSPARENT,
559 wxSTIPPLE,
560 wxBDIAGONAL_HATCH,
561 wxCROSSDIAG_HATCH,
562 wxFDIAGONAL_HATCH,
563 wxCROSS_HATCH,
564 wxHORIZONTAL_HATCH,
565 wxVERTICAL_HATCH,
566 wxJOIN_BEVEL,
567 wxJOIN_MITER,
568 wxJOIN_ROUND,
569 wxCAP_ROUND,
570 wxCAP_PROJECTING,
571 wxCAP_BUTT
572 };
573
574 typedef enum {
575 wxCLEAR, // 0
576 wxXOR, // src XOR dst
577 wxINVERT, // NOT dst
578 wxOR_REVERSE, // src OR (NOT dst)
579 wxAND_REVERSE,// src AND (NOT dst)
580 wxCOPY, // src
581 wxAND, // src AND dst
582 wxAND_INVERT, // (NOT src) AND dst
583 wxNO_OP, // dst
584 wxNOR, // (NOT src) AND (NOT dst)
585 wxEQUIV, // (NOT src) XOR dst
586 wxSRC_INVERT, // (NOT src)
587 wxOR_INVERT, // (NOT src) OR dst
588 wxNAND, // (NOT src) OR (NOT dst)
589 wxOR, // src OR dst
590 wxSET, // 1
591 // wxSRC_OR, // source _bitmap_ OR destination
592 // wxSRC_AND // source _bitmap_ AND destination
593 } form_ops_t;
594
595 enum wxKeyCode {
596 WXK_BACK = 8,
597 WXK_TAB = 9,
598 WXK_RETURN = 13,
599 WXK_ESCAPE = 27,
600 WXK_SPACE = 32,
601 WXK_DELETE = 127,
602
603 WXK_START = 300,
604 WXK_LBUTTON,
605 WXK_RBUTTON,
606 WXK_CANCEL,
607 WXK_MBUTTON,
608 WXK_CLEAR,
609 WXK_SHIFT,
610 WXK_ALT,
611 WXK_CONTROL,
612 WXK_MENU,
613 WXK_PAUSE,
614 WXK_CAPITAL,
615 WXK_PRIOR, /* Page up */
616 WXK_NEXT, /* Page down */
617 WXK_END,
618 WXK_HOME,
619 WXK_LEFT,
620 WXK_UP,
621 WXK_RIGHT,
622 WXK_DOWN,
623 WXK_SELECT,
624 WXK_PRINT,
625 WXK_EXECUTE,
626 WXK_SNAPSHOT,
627 WXK_INSERT,
628 WXK_HELP,
629 WXK_NUMPAD0,
630 WXK_NUMPAD1,
631 WXK_NUMPAD2,
632 WXK_NUMPAD3,
633 WXK_NUMPAD4,
634 WXK_NUMPAD5,
635 WXK_NUMPAD6,
636 WXK_NUMPAD7,
637 WXK_NUMPAD8,
638 WXK_NUMPAD9,
639 WXK_MULTIPLY,
640 WXK_ADD,
641 WXK_SEPARATOR,
642 WXK_SUBTRACT,
643 WXK_DECIMAL,
644 WXK_DIVIDE,
645 WXK_F1,
646 WXK_F2,
647 WXK_F3,
648 WXK_F4,
649 WXK_F5,
650 WXK_F6,
651 WXK_F7,
652 WXK_F8,
653 WXK_F9,
654 WXK_F10,
655 WXK_F11,
656 WXK_F12,
657 WXK_F13,
658 WXK_F14,
659 WXK_F15,
660 WXK_F16,
661 WXK_F17,
662 WXK_F18,
663 WXK_F19,
664 WXK_F20,
665 WXK_F21,
666 WXK_F22,
667 WXK_F23,
668 WXK_F24,
669 WXK_NUMLOCK,
670 WXK_SCROLL,
671 WXK_PAGEUP,
672 WXK_PAGEDOWN,
673
674 WXK_NUMPAD_SPACE,
675 WXK_NUMPAD_TAB,
676 WXK_NUMPAD_ENTER,
677 WXK_NUMPAD_F1,
678 WXK_NUMPAD_F2,
679 WXK_NUMPAD_F3,
680 WXK_NUMPAD_F4,
681 WXK_NUMPAD_HOME,
682 WXK_NUMPAD_LEFT,
683 WXK_NUMPAD_UP,
684 WXK_NUMPAD_RIGHT,
685 WXK_NUMPAD_DOWN,
686 WXK_NUMPAD_PRIOR,
687 WXK_NUMPAD_PAGEUP,
688 WXK_NUMPAD_NEXT,
689 WXK_NUMPAD_PAGEDOWN,
690 WXK_NUMPAD_END,
691 WXK_NUMPAD_BEGIN,
692 WXK_NUMPAD_INSERT,
693 WXK_NUMPAD_DELETE,
694 WXK_NUMPAD_EQUAL,
695 WXK_NUMPAD_MULTIPLY,
696 WXK_NUMPAD_ADD,
697 WXK_NUMPAD_SEPARATOR,
698 WXK_NUMPAD_SUBTRACT,
699 WXK_NUMPAD_DECIMAL,
700 WXK_NUMPAD_DIVIDE
701
702 };
703
704
705 // Bitmap flags
706 enum wxBitmapType
707 {
708 wxBITMAP_TYPE_INVALID, // should be == 0 for compatibility!
709 wxBITMAP_TYPE_BMP,
710 wxBITMAP_TYPE_BMP_RESOURCE,
711 wxBITMAP_TYPE_RESOURCE = wxBITMAP_TYPE_BMP_RESOURCE,
712 wxBITMAP_TYPE_ICO,
713 wxBITMAP_TYPE_ICO_RESOURCE,
714 wxBITMAP_TYPE_CUR,
715 wxBITMAP_TYPE_CUR_RESOURCE,
716 wxBITMAP_TYPE_XBM,
717 wxBITMAP_TYPE_XBM_DATA,
718 wxBITMAP_TYPE_XPM,
719 wxBITMAP_TYPE_XPM_DATA,
720 wxBITMAP_TYPE_TIF,
721 wxBITMAP_TYPE_TIF_RESOURCE,
722 wxBITMAP_TYPE_GIF,
723 wxBITMAP_TYPE_GIF_RESOURCE,
724 wxBITMAP_TYPE_PNG,
725 wxBITMAP_TYPE_PNG_RESOURCE,
726 wxBITMAP_TYPE_JPEG,
727 wxBITMAP_TYPE_JPEG_RESOURCE,
728 wxBITMAP_TYPE_PNM,
729 wxBITMAP_TYPE_PNM_RESOURCE,
730 wxBITMAP_TYPE_PCX,
731 wxBITMAP_TYPE_PCX_RESOURCE,
732 wxBITMAP_TYPE_PICT,
733 wxBITMAP_TYPE_PICT_RESOURCE,
734 wxBITMAP_TYPE_ICON,
735 wxBITMAP_TYPE_ICON_RESOURCE,
736 wxBITMAP_TYPE_ANI,
737 wxBITMAP_TYPE_IFF,
738 wxBITMAP_TYPE_MACCURSOR,
739 wxBITMAP_TYPE_MACCURSOR_RESOURCE,
740 wxBITMAP_TYPE_ANY = 50
741 };
742
743
744
745
746 // Standard cursors
747 enum wxStockCursor
748 {
749 wxCURSOR_NONE,
750 wxCURSOR_ARROW,
751 wxCURSOR_RIGHT_ARROW,
752 wxCURSOR_BULLSEYE,
753 wxCURSOR_CHAR,
754 wxCURSOR_CROSS,
755 wxCURSOR_HAND,
756 wxCURSOR_IBEAM,
757 wxCURSOR_LEFT_BUTTON,
758 wxCURSOR_MAGNIFIER,
759 wxCURSOR_MIDDLE_BUTTON,
760 wxCURSOR_NO_ENTRY,
761 wxCURSOR_PAINT_BRUSH,
762 wxCURSOR_PENCIL,
763 wxCURSOR_POINT_LEFT,
764 wxCURSOR_POINT_RIGHT,
765 wxCURSOR_QUESTION_ARROW,
766 wxCURSOR_RIGHT_BUTTON,
767 wxCURSOR_SIZENESW,
768 wxCURSOR_SIZENS,
769 wxCURSOR_SIZENWSE,
770 wxCURSOR_SIZEWE,
771 wxCURSOR_SIZING,
772 wxCURSOR_SPRAYCAN,
773 wxCURSOR_WAIT,
774 wxCURSOR_WATCH,
775 wxCURSOR_BLANK,
776 wxCURSOR_DEFAULT,
777 wxCURSOR_ARROWWAIT,
778 wxCURSOR_MAX
779 };
780
781
782
783 typedef enum {
784 wxPAPER_NONE, // Use specific dimensions
785 wxPAPER_LETTER, // Letter, 8 1/2 by 11 inches
786 wxPAPER_LEGAL, // Legal, 8 1/2 by 14 inches
787 wxPAPER_A4, // A4 Sheet, 210 by 297 millimeters
788 wxPAPER_CSHEET, // C Sheet, 17 by 22 inches
789 wxPAPER_DSHEET, // D Sheet, 22 by 34 inches
790 wxPAPER_ESHEET, // E Sheet, 34 by 44 inches
791 wxPAPER_LETTERSMALL, // Letter Small, 8 1/2 by 11 inches
792 wxPAPER_TABLOID, // Tabloid, 11 by 17 inches
793 wxPAPER_LEDGER, // Ledger, 17 by 11 inches
794 wxPAPER_STATEMENT, // Statement, 5 1/2 by 8 1/2 inches
795 wxPAPER_EXECUTIVE, // Executive, 7 1/4 by 10 1/2 inches
796 wxPAPER_A3, // A3 sheet, 297 by 420 millimeters
797 wxPAPER_A4SMALL, // A4 small sheet, 210 by 297 millimeters
798 wxPAPER_A5, // A5 sheet, 148 by 210 millimeters
799 wxPAPER_B4, // B4 sheet, 250 by 354 millimeters
800 wxPAPER_B5, // B5 sheet, 182-by-257-millimeter paper
801 wxPAPER_FOLIO, // Folio, 8-1/2-by-13-inch paper
802 wxPAPER_QUARTO, // Quarto, 215-by-275-millimeter paper
803 wxPAPER_10X14, // 10-by-14-inch sheet
804 wxPAPER_11X17, // 11-by-17-inch sheet
805 wxPAPER_NOTE, // Note, 8 1/2 by 11 inches
806 wxPAPER_ENV_9, // #9 Envelope, 3 7/8 by 8 7/8 inches
807 wxPAPER_ENV_10, // #10 Envelope, 4 1/8 by 9 1/2 inches
808 wxPAPER_ENV_11, // #11 Envelope, 4 1/2 by 10 3/8 inches
809 wxPAPER_ENV_12, // #12 Envelope, 4 3/4 by 11 inches
810 wxPAPER_ENV_14, // #14 Envelope, 5 by 11 1/2 inches
811 wxPAPER_ENV_DL, // DL Envelope, 110 by 220 millimeters
812 wxPAPER_ENV_C5, // C5 Envelope, 162 by 229 millimeters
813 wxPAPER_ENV_C3, // C3 Envelope, 324 by 458 millimeters
814 wxPAPER_ENV_C4, // C4 Envelope, 229 by 324 millimeters
815 wxPAPER_ENV_C6, // C6 Envelope, 114 by 162 millimeters
816 wxPAPER_ENV_C65, // C65 Envelope, 114 by 229 millimeters
817 wxPAPER_ENV_B4, // B4 Envelope, 250 by 353 millimeters
818 wxPAPER_ENV_B5, // B5 Envelope, 176 by 250 millimeters
819 wxPAPER_ENV_B6, // B6 Envelope, 176 by 125 millimeters
820 wxPAPER_ENV_ITALY, // Italy Envelope, 110 by 230 millimeters
821 wxPAPER_ENV_MONARCH, // Monarch Envelope, 3 7/8 by 7 1/2 inches
822 wxPAPER_ENV_PERSONAL, // 6 3/4 Envelope, 3 5/8 by 6 1/2 inches
823 wxPAPER_FANFOLD_US, // US Std Fanfold, 14 7/8 by 11 inches
824 wxPAPER_FANFOLD_STD_GERMAN, // German Std Fanfold, 8 1/2 by 12 inches
825 wxPAPER_FANFOLD_LGL_GERMAN, // German Legal Fanfold, 8 1/2 by 13 inches
826
827 wxPAPER_ISO_B4, // B4 (ISO) 250 x 353 mm
828 wxPAPER_JAPANESE_POSTCARD, // Japanese Postcard 100 x 148 mm
829 wxPAPER_9X11, // 9 x 11 in
830 wxPAPER_10X11, // 10 x 11 in
831 wxPAPER_15X11, // 15 x 11 in
832 wxPAPER_ENV_INVITE, // Envelope Invite 220 x 220 mm
833 wxPAPER_LETTER_EXTRA, // Letter Extra 9 \275 x 12 in
834 wxPAPER_LEGAL_EXTRA, // Legal Extra 9 \275 x 15 in
835 wxPAPER_TABLOID_EXTRA, // Tabloid Extra 11.69 x 18 in
836 wxPAPER_A4_EXTRA, // A4 Extra 9.27 x 12.69 in
837 wxPAPER_LETTER_TRANSVERSE, // Letter Transverse 8 \275 x 11 in
838 wxPAPER_A4_TRANSVERSE, // A4 Transverse 210 x 297 mm
839 wxPAPER_LETTER_EXTRA_TRANSVERSE, // Letter Extra Transverse 9\275 x 12 in
840 wxPAPER_A_PLUS, // SuperA/SuperA/A4 227 x 356 mm
841 wxPAPER_B_PLUS, // SuperB/SuperB/A3 305 x 487 mm
842 wxPAPER_LETTER_PLUS, // Letter Plus 8.5 x 12.69 in
843 wxPAPER_A4_PLUS, // A4 Plus 210 x 330 mm
844 wxPAPER_A5_TRANSVERSE, // A5 Transverse 148 x 210 mm
845 wxPAPER_B5_TRANSVERSE, // B5 (JIS) Transverse 182 x 257 mm
846 wxPAPER_A3_EXTRA, // A3 Extra 322 x 445 mm
847 wxPAPER_A5_EXTRA, // A5 Extra 174 x 235 mm
848 wxPAPER_B5_EXTRA, // B5 (ISO) Extra 201 x 276 mm
849 wxPAPER_A2, // A2 420 x 594 mm
850 wxPAPER_A3_TRANSVERSE, // A3 Transverse 297 x 420 mm
851 wxPAPER_A3_EXTRA_TRANSVERSE // A3 Extra Transverse 322 x 445 mm
852
853 } wxPaperSize ;
854
855 typedef enum {
856 wxDUPLEX_SIMPLEX, // Non-duplex
857 wxDUPLEX_HORIZONTAL,
858 wxDUPLEX_VERTICAL
859 } wxDuplexMode;
860
861
862
863 // menu and toolbar item kinds
864 enum wxItemKind
865 {
866 wxITEM_SEPARATOR = -1,
867 wxITEM_NORMAL,
868 wxITEM_CHECK,
869 wxITEM_RADIO,
870 wxITEM_MAX
871 };
872
873 enum wxHitTest
874 {
875 wxHT_NOWHERE,
876
877 // scrollbar
878 wxHT_SCROLLBAR_FIRST = wxHT_NOWHERE,
879 wxHT_SCROLLBAR_ARROW_LINE_1, // left or upper arrow to scroll by line
880 wxHT_SCROLLBAR_ARROW_LINE_2, // right or down
881 wxHT_SCROLLBAR_ARROW_PAGE_1, // left or upper arrow to scroll by page
882 wxHT_SCROLLBAR_ARROW_PAGE_2, // right or down
883 wxHT_SCROLLBAR_THUMB, // on the thumb
884 wxHT_SCROLLBAR_BAR_1, // bar to the left/above the thumb
885 wxHT_SCROLLBAR_BAR_2, // bar to the right/below the thumb
886 wxHT_SCROLLBAR_LAST,
887
888 // window
889 wxHT_WINDOW_OUTSIDE, // not in this window at all
890 wxHT_WINDOW_INSIDE, // in the client area
891 wxHT_WINDOW_VERT_SCROLLBAR, // on the vertical scrollbar
892 wxHT_WINDOW_HORZ_SCROLLBAR, // on the horizontal scrollbar
893 wxHT_WINDOW_CORNER, // on the corner between 2 scrollbars
894
895 wxHT_MAX
896 };
897
898
899
900 #define FALSE 0
901 #define false 0
902 #define TRUE 1
903 #define true 1
904
905
906 //---------------------------------------------------------------------------
907 //---------------------------------------------------------------------------
908
909 /*
910 * Event types
911 *
912 */
913 enum wxEventType {
914 wxEVT_NULL = 0,
915 wxEVT_FIRST = 10000,
916
917 // New names
918 wxEVT_COMMAND_BUTTON_CLICKED,
919 wxEVT_COMMAND_CHECKBOX_CLICKED,
920 wxEVT_COMMAND_CHOICE_SELECTED,
921 wxEVT_COMMAND_LISTBOX_SELECTED,
922 wxEVT_COMMAND_LISTBOX_DOUBLECLICKED,
923 wxEVT_COMMAND_CHECKLISTBOX_TOGGLED,
924 wxEVT_COMMAND_SPINCTRL_UPDATED,
925 wxEVT_COMMAND_TEXT_UPDATED,
926 wxEVT_COMMAND_TEXT_ENTER,
927 wxEVT_COMMAND_TEXT_URL,
928 wxEVT_COMMAND_TEXT_MAXLEN,
929 wxEVT_COMMAND_MENU_SELECTED,
930 wxEVT_COMMAND_SLIDER_UPDATED,
931 wxEVT_COMMAND_RADIOBOX_SELECTED,
932 wxEVT_COMMAND_RADIOBUTTON_SELECTED,
933 // wxEVT_COMMAND_SCROLLBAR_UPDATED is now obsolete since we use wxEVT_SCROLL... events
934 wxEVT_COMMAND_SCROLLBAR_UPDATED,
935 wxEVT_COMMAND_VLBOX_SELECTED,
936 wxEVT_COMMAND_COMBOBOX_SELECTED,
937 wxEVT_COMMAND_TOOL_CLICKED,
938 wxEVT_COMMAND_TOOL_RCLICKED,
939 wxEVT_COMMAND_TOOL_ENTER,
940 wxEVT_SET_FOCUS,
941 wxEVT_KILL_FOCUS,
942 wxEVT_CHILD_FOCUS,
943 wxEVT_MOUSEWHEEL,
944
945 /* Mouse event types */
946 wxEVT_LEFT_DOWN,
947 wxEVT_LEFT_UP,
948 wxEVT_MIDDLE_DOWN,
949 wxEVT_MIDDLE_UP,
950 wxEVT_RIGHT_DOWN,
951 wxEVT_RIGHT_UP,
952 wxEVT_MOTION,
953 wxEVT_ENTER_WINDOW,
954 wxEVT_LEAVE_WINDOW,
955 wxEVT_LEFT_DCLICK,
956 wxEVT_MIDDLE_DCLICK,
957 wxEVT_RIGHT_DCLICK,
958
959 wxEVT_MOUSE_CAPTURE_CHANGED,
960
961 // Non-client mouse events
962 wxEVT_NC_LEFT_DOWN,
963 wxEVT_NC_LEFT_UP,
964 wxEVT_NC_MIDDLE_DOWN,
965 wxEVT_NC_MIDDLE_UP,
966 wxEVT_NC_RIGHT_DOWN,
967 wxEVT_NC_RIGHT_UP,
968 wxEVT_NC_MOTION,
969 wxEVT_NC_ENTER_WINDOW,
970 wxEVT_NC_LEAVE_WINDOW,
971 wxEVT_NC_LEFT_DCLICK,
972 wxEVT_NC_MIDDLE_DCLICK,
973 wxEVT_NC_RIGHT_DCLICK,
974
975 /* Character input event type */
976 wxEVT_CHAR,
977 wxEVT_KEY_DOWN,
978 wxEVT_KEY_UP,
979 wxEVT_CHAR_HOOK,
980
981 /*
982 * Scrollbar event identifiers
983 */
984 wxEVT_SCROLL_TOP,
985 wxEVT_SCROLL_BOTTOM,
986 wxEVT_SCROLL_LINEUP,
987 wxEVT_SCROLL_LINEDOWN,
988 wxEVT_SCROLL_PAGEUP,
989 wxEVT_SCROLL_PAGEDOWN,
990 wxEVT_SCROLL_THUMBTRACK,
991 wxEVT_SCROLL_THUMBRELEASE,
992
993 /*
994 * Scrolled Window
995 */
996 wxEVT_SCROLLWIN_TOP,
997 wxEVT_SCROLLWIN_BOTTOM,
998 wxEVT_SCROLLWIN_LINEUP,
999 wxEVT_SCROLLWIN_LINEDOWN,
1000 wxEVT_SCROLLWIN_PAGEUP,
1001 wxEVT_SCROLLWIN_PAGEDOWN,
1002 wxEVT_SCROLLWIN_THUMBTRACK,
1003 wxEVT_SCROLLWIN_THUMBRELEASE,
1004
1005 wxEVT_SIZE = wxEVT_FIRST + 200,
1006 wxEVT_MOVE,
1007 wxEVT_CLOSE_WINDOW,
1008 wxEVT_END_SESSION,
1009 wxEVT_QUERY_END_SESSION,
1010 wxEVT_ACTIVATE_APP,
1011 wxEVT_POWER,
1012 wxEVT_ACTIVATE,
1013 wxEVT_CREATE,
1014 wxEVT_DESTROY,
1015 wxEVT_SHOW,
1016 wxEVT_ICONIZE,
1017 wxEVT_MAXIMIZE,
1018 wxEVT_PAINT,
1019 wxEVT_ERASE_BACKGROUND,
1020 wxEVT_NC_PAINT,
1021 wxEVT_PAINT_ICON,
1022 wxEVT_MENU_OPEN,
1023 wxEVT_MENU_CLOSE,
1024 wxEVT_MENU_HIGHLIGHT,
1025 wxEVT_CONTEXT_MENU,
1026 wxEVT_SYS_COLOUR_CHANGED,
1027 wxEVT_DISPLAY_CHANGED,
1028 wxEVT_SETTING_CHANGED,
1029 wxEVT_QUERY_NEW_PALETTE,
1030 wxEVT_PALETTE_CHANGED,
1031 wxEVT_JOY_BUTTON_DOWN,
1032 wxEVT_JOY_BUTTON_UP,
1033 wxEVT_JOY_MOVE,
1034 wxEVT_JOY_ZMOVE,
1035 wxEVT_DROP_FILES,
1036 wxEVT_DRAW_ITEM,
1037 wxEVT_MEASURE_ITEM,
1038 wxEVT_COMPARE_ITEM,
1039 wxEVT_INIT_DIALOG,
1040 wxEVT_IDLE,
1041 wxEVT_UPDATE_UI,
1042
1043
1044 /* Generic command events */
1045 // Note: a click is a higher-level event
1046 // than button down/up
1047 wxEVT_COMMAND_LEFT_CLICK,
1048 wxEVT_COMMAND_LEFT_DCLICK,
1049 wxEVT_COMMAND_RIGHT_CLICK,
1050 wxEVT_COMMAND_RIGHT_DCLICK,
1051 wxEVT_COMMAND_SET_FOCUS,
1052 wxEVT_COMMAND_KILL_FOCUS,
1053 wxEVT_COMMAND_ENTER,
1054
1055 wxEVT_NAVIGATION_KEY,
1056
1057 wxEVT_TIMER,
1058
1059 };
1060
1061
1062
1063
1064 //----------------------------------------------------------------------