]> git.saurik.com Git - wxWidgets.git/blob - wxPython/src/_defs.i
Fixed Tim's patch so it will compile when using a Python version < 2.0
[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 wxHORIZONTAL,
195 wxVERTICAL,
196 wxBOTH,
197 wxCENTER_FRAME,
198 wxCENTRE_ON_SCREEN,
199 wxCENTER_ON_SCREEN,
200
201 wxSTAY_ON_TOP,
202 wxICONIZE,
203 wxMINIMIZE,
204 wxMAXIMIZE,
205 wxTHICK_FRAME,
206 wxSYSTEM_MENU,
207 wxMINIMIZE_BOX,
208 wxMAXIMIZE_BOX,
209 wxTINY_CAPTION_HORIZ,
210 wxTINY_CAPTION_VERT,
211 wxRESIZE_BOX,
212 wxRESIZE_BORDER,
213 wxDIALOG_MODAL,
214 wxDIALOG_MODELESS,
215 wxDEFAULT_FRAME_STYLE,
216 wxDEFAULT_DIALOG_STYLE,
217
218 wxFRAME_TOOL_WINDOW,
219 wxFRAME_FLOAT_ON_PARENT,
220 wxFRAME_NO_WINDOW_MENU,
221 wxFRAME_NO_TASKBAR,
222 wxFRAME_EX_CONTEXTHELP,
223 wxED_CLIENT_MARGIN,
224 wxED_BUTTONS_BOTTOM,
225 wxED_BUTTONS_RIGHT,
226 wxED_STATIC_LINE,
227 wxEXT_DIALOG_STYLE,
228
229 wxCLIP_CHILDREN,
230
231 wxRETAINED,
232 wxBACKINGSTORE,
233 wxTB_3DBUTTONS,
234 wxTB_HORIZONTAL,
235 wxTB_VERTICAL,
236 wxTB_FLAT,
237 wxTB_DOCKABLE,
238 wxCOLOURED,
239 wxFIXED_LENGTH,
240 wxALIGN_LEFT,
241 wxALIGN_CENTER_HORIZONTAL,
242 wxALIGN_CENTRE_HORIZONTAL,
243 wxALIGN_RIGHT,
244 wxALIGN_BOTTOM,
245 wxALIGN_CENTER_VERTICAL,
246 wxALIGN_CENTRE_VERTICAL,
247 wxALIGN_TOP,
248 wxALIGN_CENTER,
249 wxALIGN_CENTRE,
250 wxSHAPED,
251 wxADJUST_MINSIZE,
252
253 wxLB_NEEDED_SB,
254 wxLB_ALWAYS_SB,
255 wxLB_SORT,
256 wxLB_SINGLE,
257 wxLB_MULTIPLE,
258 wxLB_EXTENDED,
259 wxLB_OWNERDRAW,
260 wxLB_HSCROLL,
261 wxPROCESS_ENTER,
262 wxPASSWORD,
263 wxTE_PROCESS_ENTER,
264 wxTE_PROCESS_TAB,
265 wxTE_PASSWORD,
266 wxTE_READONLY,
267 wxTE_RICH,
268 wxTE_MULTILINE,
269 wxTE_AUTO_SCROLL,
270 wxTE_NO_VSCROLL,
271 wxCB_SIMPLE,
272 wxCB_DROPDOWN,
273 wxCB_SORT,
274 wxCB_READONLY,
275 wxRA_HORIZONTAL,
276 wxRA_VERTICAL,
277 wxRA_SPECIFY_ROWS,
278 wxRA_SPECIFY_COLS,
279 wxRB_GROUP,
280 wxGA_PROGRESSBAR,
281 wxGA_HORIZONTAL,
282 wxGA_VERTICAL,
283 wxGA_SMOOTH,
284 wxSL_HORIZONTAL,
285 wxSL_VERTICAL,
286 wxSL_AUTOTICKS,
287 wxSL_LABELS,
288 wxSL_LEFT,
289 wxSL_TOP,
290 wxSL_RIGHT,
291 wxSL_BOTTOM,
292 wxSL_BOTH,
293 wxSL_SELRANGE,
294 wxSB_HORIZONTAL,
295 wxSB_VERTICAL,
296 wxST_SIZEGRIP,
297 wxST_NO_AUTORESIZE,
298 wxBU_AUTODRAW,
299 wxBU_NOAUTODRAW,
300 wxTR_HAS_BUTTONS,
301 wxTR_EDIT_LABELS,
302 wxTR_LINES_AT_ROOT,
303 wxTR_MULTIPLE,
304 wxTR_SINGLE,
305 wxTR_HAS_VARIABLE_ROW_HEIGHT,
306 wxLC_ICON,
307 wxLC_SMALL_ICON,
308 wxLC_LIST,
309 wxLC_REPORT,
310 wxLC_ALIGN_TOP,
311 wxLC_ALIGN_LEFT,
312 wxLC_AUTOARRANGE,
313 wxLC_USER_TEXT,
314 wxLC_EDIT_LABELS,
315 wxLC_NO_HEADER,
316 wxLC_NO_SORT_HEADER,
317 wxLC_SINGLE_SEL,
318 wxLC_SORT_ASCENDING,
319 wxLC_SORT_DESCENDING,
320 wxLC_MASK_TYPE,
321 wxLC_MASK_ALIGN,
322 wxLC_MASK_SORT,
323 wxLC_HRULES,
324 wxLC_VRULES,
325 wxSP_VERTICAL,
326 wxSP_HORIZONTAL,
327 wxSP_ARROW_KEYS,
328 wxSP_WRAP,
329 wxSP_NOBORDER,
330 wxSP_3D,
331 wxSP_3DSASH,
332 wxSP_3DBORDER,
333 wxSP_FULLSASH,
334 wxSP_BORDER,
335 wxSP_LIVE_UPDATE,
336 wxSP_PERMIT_UNSPLIT,
337 wxFLOOD_SURFACE,
338 wxFLOOD_BORDER,
339 wxODDEVEN_RULE,
340 wxWINDING_RULE,
341 wxTOOL_TOP,
342 wxTOOL_BOTTOM,
343 wxTOOL_LEFT,
344 wxTOOL_RIGHT,
345 wxOK,
346 wxYES_NO,
347 wxCANCEL,
348 wxYES,
349 wxNO,
350 wxNO_DEFAULT,
351 wxYES_DEFAULT,
352 wxICON_EXCLAMATION,
353 wxICON_HAND,
354 wxICON_QUESTION,
355 wxICON_INFORMATION,
356 wxICON_STOP,
357 wxICON_ASTERISK,
358 wxICON_MASK,
359 wxICON_WARNING,
360 wxICON_ERROR,
361
362 wxFORWARD,
363 wxBACKWARD,
364 wxRESET,
365 wxHELP,
366 wxMORE,
367 wxSETUP,
368
369
370 wxCENTRE,
371 wxCENTER,
372 wxSIZE_AUTO_WIDTH,
373 wxSIZE_AUTO_HEIGHT,
374 wxSIZE_AUTO,
375 wxSIZE_USE_EXISTING,
376 wxSIZE_ALLOW_MINUS_ONE,
377 wxPORTRAIT,
378 wxLANDSCAPE,
379 wxPRINT_QUALITY_HIGH,
380 wxPRINT_QUALITY_MEDIUM,
381 wxPRINT_QUALITY_LOW,
382 wxPRINT_QUALITY_DRAFT,
383 wxID_OPEN,
384 wxID_CLOSE,
385 wxID_NEW,
386 wxID_SAVE,
387 wxID_SAVEAS,
388 wxID_REVERT,
389 wxID_EXIT,
390 wxID_UNDO,
391 wxID_REDO,
392 wxID_HELP,
393 wxID_PRINT,
394 wxID_PRINT_SETUP,
395 wxID_PREVIEW,
396 wxID_ABOUT,
397 wxID_HELP_CONTENTS,
398 wxID_HELP_COMMANDS,
399 wxID_HELP_PROCEDURES,
400 wxID_HELP_CONTEXT,
401 wxID_CUT,
402 wxID_COPY,
403 wxID_PASTE,
404 wxID_CLEAR,
405 wxID_FIND,
406 wxID_FILE1,
407 wxID_FILE2,
408 wxID_FILE3,
409 wxID_FILE4,
410 wxID_FILE5,
411 wxID_FILE6,
412 wxID_FILE7,
413 wxID_FILE8,
414 wxID_FILE9,
415 wxID_OK,
416 wxID_CANCEL,
417 wxID_APPLY,
418 wxID_YES,
419 wxID_NO,
420 wxID_STATIC,
421 wxID_SEPARATOR,
422 wxID_FORWARD,
423 wxID_BACKWARD,
424 wxID_SETUP,
425 wxID_MORE,
426
427
428 wxBITMAP_TYPE_BMP,
429 wxBITMAP_TYPE_BMP_RESOURCE,
430 wxBITMAP_TYPE_ICO,
431 wxBITMAP_TYPE_ICO_RESOURCE,
432 wxBITMAP_TYPE_CUR,
433 wxBITMAP_TYPE_CUR_RESOURCE,
434 wxBITMAP_TYPE_XBM,
435 wxBITMAP_TYPE_XBM_DATA,
436 wxBITMAP_TYPE_XPM,
437 wxBITMAP_TYPE_XPM_DATA,
438 wxBITMAP_TYPE_TIF,
439 wxBITMAP_TYPE_TIF_RESOURCE,
440 wxBITMAP_TYPE_GIF,
441 wxBITMAP_TYPE_GIF_RESOURCE,
442 wxBITMAP_TYPE_PNG,
443 wxBITMAP_TYPE_PNG_RESOURCE,
444 wxBITMAP_TYPE_ANY,
445 wxBITMAP_TYPE_RESOURCE,
446 wxBITMAP_TYPE_JPEG,
447 wxBITMAP_TYPE_PCX,
448
449 wxOPEN,
450 wxSAVE,
451 wxHIDE_READONLY,
452 wxOVERWRITE_PROMPT,
453 wxFILE_MUST_EXIST,
454 wxMULTIPLE,
455 wxCHANGE_DIR,
456
457 wxACCEL_ALT,
458 wxACCEL_CTRL,
459 wxACCEL_SHIFT,
460 wxACCEL_NORMAL,
461
462 wxPD_AUTO_HIDE,
463 wxPD_APP_MODAL,
464 wxPD_CAN_ABORT,
465 wxPD_ELAPSED_TIME,
466 wxPD_ESTIMATED_TIME,
467 wxPD_REMAINING_TIME,
468
469 wxMENU_TEAROFF,
470 wxMB_DOCKABLE,
471 wxNO_FULL_REPAINT_ON_RESIZE,
472
473 wxLEFT,
474 wxRIGHT,
475 wxUP,
476 wxDOWN,
477 wxALL,
478 wxTOP,
479 wxBOTTOM,
480
481 wxNORTH,
482 wxSOUTH,
483 wxEAST,
484 wxWEST,
485
486 wxSTRETCH_NOT,
487 wxSHRINK,
488 wxGROW,
489 wxEXPAND,
490
491 wxNB_FIXEDWIDTH,
492 wxNB_LEFT,
493 wxNB_RIGHT,
494 wxNB_BOTTOM,
495
496 wxLI_HORIZONTAL,
497 wxLI_VERTICAL,
498
499 wxHW_SCROLLBAR_NEVER,
500 wxHW_SCROLLBAR_AUTO,
501
502 wxJOYSTICK1,
503 wxJOYSTICK2,
504 wxJOY_BUTTON1,
505 wxJOY_BUTTON2,
506 wxJOY_BUTTON3,
507 wxJOY_BUTTON4,
508 wxJOY_BUTTON_ANY,
509
510 };
511
512
513 // // Standard error codes
514 // enum ErrCode
515 // {
516 // ERR_PARAM = (-4000),
517 // ERR_NODATA,
518 // ERR_CANCEL,
519 // ERR_SUCCESS = 0
520 // };
521
522
523 enum {
524 wxDEFAULT ,
525 wxDECORATIVE,
526 wxROMAN,
527 wxSCRIPT,
528 wxSWISS,
529 wxMODERN,
530 wxTELETYPE,
531 wxVARIABLE,
532 wxFIXED,
533 wxNORMAL,
534 wxLIGHT,
535 wxBOLD,
536 wxITALIC,
537 wxSLANT,
538 wxSOLID,
539 wxDOT,
540 wxLONG_DASH,
541 wxSHORT_DASH,
542 wxDOT_DASH,
543 wxUSER_DASH,
544 wxTRANSPARENT,
545 wxSTIPPLE,
546 wxBDIAGONAL_HATCH,
547 wxCROSSDIAG_HATCH,
548 wxFDIAGONAL_HATCH,
549 wxCROSS_HATCH,
550 wxHORIZONTAL_HATCH,
551 wxVERTICAL_HATCH,
552 wxJOIN_BEVEL,
553 wxJOIN_MITER,
554 wxJOIN_ROUND,
555 wxCAP_ROUND,
556 wxCAP_PROJECTING,
557 wxCAP_BUTT
558 };
559
560 typedef enum {
561 wxCLEAR, // 0
562 wxXOR, // src XOR dst
563 wxINVERT, // NOT dst
564 wxOR_REVERSE, // src OR (NOT dst)
565 wxAND_REVERSE,// src AND (NOT dst)
566 wxCOPY, // src
567 wxAND, // src AND dst
568 wxAND_INVERT, // (NOT src) AND dst
569 wxNO_OP, // dst
570 wxNOR, // (NOT src) AND (NOT dst)
571 wxEQUIV, // (NOT src) XOR dst
572 wxSRC_INVERT, // (NOT src)
573 wxOR_INVERT, // (NOT src) OR dst
574 wxNAND, // (NOT src) OR (NOT dst)
575 wxOR, // src OR dst
576 wxSET, // 1
577 // wxSRC_OR, // source _bitmap_ OR destination
578 // wxSRC_AND // source _bitmap_ AND destination
579 } form_ops_t;
580
581 enum _Virtual_keycodes {
582 WXK_BACK = 8,
583 WXK_TAB = 9,
584 WXK_RETURN = 13,
585 WXK_ESCAPE = 27,
586 WXK_SPACE = 32,
587 WXK_DELETE = 127,
588
589 WXK_START = 300,
590 WXK_LBUTTON,
591 WXK_RBUTTON,
592 WXK_CANCEL,
593 WXK_MBUTTON,
594 WXK_CLEAR,
595 WXK_SHIFT,
596 WXK_CONTROL,
597 WXK_MENU,
598 WXK_PAUSE,
599 WXK_CAPITAL,
600 WXK_PRIOR, // Page up
601 WXK_NEXT, // Page down
602 WXK_END,
603 WXK_HOME,
604 WXK_LEFT,
605 WXK_UP,
606 WXK_RIGHT,
607 WXK_DOWN,
608 WXK_SELECT,
609 WXK_PRINT,
610 WXK_EXECUTE,
611 WXK_SNAPSHOT,
612 WXK_INSERT,
613 WXK_HELP,
614 WXK_NUMPAD0,
615 WXK_NUMPAD1,
616 WXK_NUMPAD2,
617 WXK_NUMPAD3,
618 WXK_NUMPAD4,
619 WXK_NUMPAD5,
620 WXK_NUMPAD6,
621 WXK_NUMPAD7,
622 WXK_NUMPAD8,
623 WXK_NUMPAD9,
624 WXK_MULTIPLY,
625 WXK_ADD,
626 WXK_SEPARATOR,
627 WXK_SUBTRACT,
628 WXK_DECIMAL,
629 WXK_DIVIDE,
630 WXK_F1,
631 WXK_F2,
632 WXK_F3,
633 WXK_F4,
634 WXK_F5,
635 WXK_F6,
636 WXK_F7,
637 WXK_F8,
638 WXK_F9,
639 WXK_F10,
640 WXK_F11,
641 WXK_F12,
642 WXK_F13,
643 WXK_F14,
644 WXK_F15,
645 WXK_F16,
646 WXK_F17,
647 WXK_F18,
648 WXK_F19,
649 WXK_F20,
650 WXK_F21,
651 WXK_F22,
652 WXK_F23,
653 WXK_F24,
654 WXK_NUMLOCK,
655 WXK_SCROLL,
656 WXK_PAGEUP,
657 WXK_PAGEDOWN
658 };
659
660 typedef enum {
661 wxCURSOR_NONE = 0,
662 wxCURSOR_ARROW = 1,
663 wxCURSOR_BULLSEYE,
664 wxCURSOR_CHAR,
665 wxCURSOR_CROSS,
666 wxCURSOR_HAND,
667 wxCURSOR_IBEAM,
668 wxCURSOR_LEFT_BUTTON,
669 wxCURSOR_MAGNIFIER,
670 wxCURSOR_MIDDLE_BUTTON,
671 wxCURSOR_NO_ENTRY,
672 wxCURSOR_PAINT_BRUSH,
673 wxCURSOR_PENCIL,
674 wxCURSOR_POINT_LEFT,
675 wxCURSOR_POINT_RIGHT,
676 wxCURSOR_QUESTION_ARROW,
677 wxCURSOR_RIGHT_BUTTON,
678 wxCURSOR_SIZENESW,
679 wxCURSOR_SIZENS,
680 wxCURSOR_SIZENWSE,
681 wxCURSOR_SIZEWE,
682 wxCURSOR_SIZING,
683 wxCURSOR_SPRAYCAN,
684 wxCURSOR_WAIT,
685 wxCURSOR_WATCH,
686 wxCURSOR_BLANK
687 // #ifndef __WXMSW__
688 // /* Not yet implemented for Windows */
689 // , wxCURSOR_CROSS_REVERSE,
690 // wxCURSOR_DOUBLE_ARROW,
691 // wxCURSOR_BASED_ARROW_UP,
692 // wxCURSOR_BASED_ARROW_DOWN
693 // #endif
694 } _standard_cursors_t;
695
696
697
698 typedef enum {
699 wxPAPER_NONE, // Use specific dimensions
700 wxPAPER_LETTER, // Letter, 8 1/2 by 11 inches
701 wxPAPER_LEGAL, // Legal, 8 1/2 by 14 inches
702 wxPAPER_A4, // A4 Sheet, 210 by 297 millimeters
703 wxPAPER_CSHEET, // C Sheet, 17 by 22 inches
704 wxPAPER_DSHEET, // D Sheet, 22 by 34 inches
705 wxPAPER_ESHEET, // E Sheet, 34 by 44 inches
706 wxPAPER_LETTERSMALL, // Letter Small, 8 1/2 by 11 inches
707 wxPAPER_TABLOID, // Tabloid, 11 by 17 inches
708 wxPAPER_LEDGER, // Ledger, 17 by 11 inches
709 wxPAPER_STATEMENT, // Statement, 5 1/2 by 8 1/2 inches
710 wxPAPER_EXECUTIVE, // Executive, 7 1/4 by 10 1/2 inches
711 wxPAPER_A3, // A3 sheet, 297 by 420 millimeters
712 wxPAPER_A4SMALL, // A4 small sheet, 210 by 297 millimeters
713 wxPAPER_A5, // A5 sheet, 148 by 210 millimeters
714 wxPAPER_B4, // B4 sheet, 250 by 354 millimeters
715 wxPAPER_B5, // B5 sheet, 182-by-257-millimeter paper
716 wxPAPER_FOLIO, // Folio, 8-1/2-by-13-inch paper
717 wxPAPER_QUARTO, // Quarto, 215-by-275-millimeter paper
718 wxPAPER_10X14, // 10-by-14-inch sheet
719 wxPAPER_11X17, // 11-by-17-inch sheet
720 wxPAPER_NOTE, // Note, 8 1/2 by 11 inches
721 wxPAPER_ENV_9, // #9 Envelope, 3 7/8 by 8 7/8 inches
722 wxPAPER_ENV_10, // #10 Envelope, 4 1/8 by 9 1/2 inches
723 wxPAPER_ENV_11, // #11 Envelope, 4 1/2 by 10 3/8 inches
724 wxPAPER_ENV_12, // #12 Envelope, 4 3/4 by 11 inches
725 wxPAPER_ENV_14, // #14 Envelope, 5 by 11 1/2 inches
726 wxPAPER_ENV_DL, // DL Envelope, 110 by 220 millimeters
727 wxPAPER_ENV_C5, // C5 Envelope, 162 by 229 millimeters
728 wxPAPER_ENV_C3, // C3 Envelope, 324 by 458 millimeters
729 wxPAPER_ENV_C4, // C4 Envelope, 229 by 324 millimeters
730 wxPAPER_ENV_C6, // C6 Envelope, 114 by 162 millimeters
731 wxPAPER_ENV_C65, // C65 Envelope, 114 by 229 millimeters
732 wxPAPER_ENV_B4, // B4 Envelope, 250 by 353 millimeters
733 wxPAPER_ENV_B5, // B5 Envelope, 176 by 250 millimeters
734 wxPAPER_ENV_B6, // B6 Envelope, 176 by 125 millimeters
735 wxPAPER_ENV_ITALY, // Italy Envelope, 110 by 230 millimeters
736 wxPAPER_ENV_MONARCH, // Monarch Envelope, 3 7/8 by 7 1/2 inches
737 wxPAPER_ENV_PERSONAL, // 6 3/4 Envelope, 3 5/8 by 6 1/2 inches
738 wxPAPER_FANFOLD_US, // US Std Fanfold, 14 7/8 by 11 inches
739 wxPAPER_FANFOLD_STD_GERMAN, // German Std Fanfold, 8 1/2 by 12 inches
740 wxPAPER_FANFOLD_LGL_GERMAN, // German Legal Fanfold, 8 1/2 by 13 inches
741
742 wxPAPER_ISO_B4, // B4 (ISO) 250 x 353 mm
743 wxPAPER_JAPANESE_POSTCARD, // Japanese Postcard 100 x 148 mm
744 wxPAPER_9X11, // 9 x 11 in
745 wxPAPER_10X11, // 10 x 11 in
746 wxPAPER_15X11, // 15 x 11 in
747 wxPAPER_ENV_INVITE, // Envelope Invite 220 x 220 mm
748 wxPAPER_LETTER_EXTRA, // Letter Extra 9 \275 x 12 in
749 wxPAPER_LEGAL_EXTRA, // Legal Extra 9 \275 x 15 in
750 wxPAPER_TABLOID_EXTRA, // Tabloid Extra 11.69 x 18 in
751 wxPAPER_A4_EXTRA, // A4 Extra 9.27 x 12.69 in
752 wxPAPER_LETTER_TRANSVERSE, // Letter Transverse 8 \275 x 11 in
753 wxPAPER_A4_TRANSVERSE, // A4 Transverse 210 x 297 mm
754 wxPAPER_LETTER_EXTRA_TRANSVERSE, // Letter Extra Transverse 9\275 x 12 in
755 wxPAPER_A_PLUS, // SuperA/SuperA/A4 227 x 356 mm
756 wxPAPER_B_PLUS, // SuperB/SuperB/A3 305 x 487 mm
757 wxPAPER_LETTER_PLUS, // Letter Plus 8.5 x 12.69 in
758 wxPAPER_A4_PLUS, // A4 Plus 210 x 330 mm
759 wxPAPER_A5_TRANSVERSE, // A5 Transverse 148 x 210 mm
760 wxPAPER_B5_TRANSVERSE, // B5 (JIS) Transverse 182 x 257 mm
761 wxPAPER_A3_EXTRA, // A3 Extra 322 x 445 mm
762 wxPAPER_A5_EXTRA, // A5 Extra 174 x 235 mm
763 wxPAPER_B5_EXTRA, // B5 (ISO) Extra 201 x 276 mm
764 wxPAPER_A2, // A2 420 x 594 mm
765 wxPAPER_A3_TRANSVERSE, // A3 Transverse 297 x 420 mm
766 wxPAPER_A3_EXTRA_TRANSVERSE // A3 Extra Transverse 322 x 445 mm
767
768 } wxPaperSize ;
769
770 typedef enum {
771 wxDUPLEX_SIMPLEX, // Non-duplex
772 wxDUPLEX_HORIZONTAL,
773 wxDUPLEX_VERTICAL
774 } wxDuplexMode;
775
776
777
778 #define FALSE 0
779 #define false 0
780 #define TRUE 1
781 #define true 1
782
783 const char* wxVERSION_STRING;
784
785 //---------------------------------------------------------------------------
786 //---------------------------------------------------------------------------
787
788 /*
789 * Event types
790 *
791 */
792 enum wxEventType {
793 wxEVT_NULL = 0,
794 wxEVT_FIRST = 10000,
795
796 // New names
797 wxEVT_COMMAND_BUTTON_CLICKED,
798 wxEVT_COMMAND_CHECKBOX_CLICKED,
799 wxEVT_COMMAND_CHOICE_SELECTED,
800 wxEVT_COMMAND_LISTBOX_SELECTED,
801 wxEVT_COMMAND_LISTBOX_DOUBLECLICKED,
802 wxEVT_COMMAND_CHECKLISTBOX_TOGGLED,
803 wxEVT_COMMAND_SPINCTRL_UPDATED,
804 wxEVT_COMMAND_TEXT_UPDATED,
805 wxEVT_COMMAND_TEXT_ENTER,
806 wxEVT_COMMAND_MENU_SELECTED,
807 wxEVT_COMMAND_SLIDER_UPDATED,
808 wxEVT_COMMAND_RADIOBOX_SELECTED,
809 wxEVT_COMMAND_RADIOBUTTON_SELECTED,
810 // wxEVT_COMMAND_SCROLLBAR_UPDATED is now obsolete since we use wxEVT_SCROLL... events
811 wxEVT_COMMAND_SCROLLBAR_UPDATED,
812 wxEVT_COMMAND_VLBOX_SELECTED,
813 wxEVT_COMMAND_COMBOBOX_SELECTED,
814 wxEVT_COMMAND_TOOL_CLICKED,
815 wxEVT_COMMAND_TOOL_RCLICKED,
816 wxEVT_COMMAND_TOOL_ENTER,
817 wxEVT_SET_FOCUS,
818 wxEVT_KILL_FOCUS,
819
820 /* Mouse event types */
821 wxEVT_LEFT_DOWN,
822 wxEVT_LEFT_UP,
823 wxEVT_MIDDLE_DOWN,
824 wxEVT_MIDDLE_UP,
825 wxEVT_RIGHT_DOWN,
826 wxEVT_RIGHT_UP,
827 wxEVT_MOTION,
828 wxEVT_ENTER_WINDOW,
829 wxEVT_LEAVE_WINDOW,
830 wxEVT_LEFT_DCLICK,
831 wxEVT_MIDDLE_DCLICK,
832 wxEVT_RIGHT_DCLICK,
833
834 // Non-client mouse events
835 wxEVT_NC_LEFT_DOWN = wxEVT_FIRST + 100,
836 wxEVT_NC_LEFT_UP,
837 wxEVT_NC_MIDDLE_DOWN,
838 wxEVT_NC_MIDDLE_UP,
839 wxEVT_NC_RIGHT_DOWN,
840 wxEVT_NC_RIGHT_UP,
841 wxEVT_NC_MOTION,
842 wxEVT_NC_ENTER_WINDOW,
843 wxEVT_NC_LEAVE_WINDOW,
844 wxEVT_NC_LEFT_DCLICK,
845 wxEVT_NC_MIDDLE_DCLICK,
846 wxEVT_NC_RIGHT_DCLICK,
847
848 /* Character input event type */
849 wxEVT_CHAR,
850 wxEVT_KEY_DOWN,
851 wxEVT_KEY_UP,
852 wxEVT_CHAR_HOOK,
853
854 /*
855 * Scrollbar event identifiers
856 */
857 wxEVT_SCROLL_TOP,
858 wxEVT_SCROLL_BOTTOM,
859 wxEVT_SCROLL_LINEUP,
860 wxEVT_SCROLL_LINEDOWN,
861 wxEVT_SCROLL_PAGEUP,
862 wxEVT_SCROLL_PAGEDOWN,
863 wxEVT_SCROLL_THUMBTRACK,
864 wxEVT_SCROLL_THUMBRELEASE,
865
866 /*
867 * Scrolled Window
868 */
869 wxEVT_SCROLLWIN_TOP,
870 wxEVT_SCROLLWIN_BOTTOM,
871 wxEVT_SCROLLWIN_LINEUP,
872 wxEVT_SCROLLWIN_LINEDOWN,
873 wxEVT_SCROLLWIN_PAGEUP,
874 wxEVT_SCROLLWIN_PAGEDOWN,
875 wxEVT_SCROLLWIN_THUMBTRACK,
876 wxEVT_SCROLLWIN_THUMBRELEASE,
877
878 wxEVT_SIZE = wxEVT_FIRST + 200,
879 wxEVT_MOVE,
880 wxEVT_CLOSE_WINDOW,
881 wxEVT_END_SESSION,
882 wxEVT_QUERY_END_SESSION,
883 wxEVT_ACTIVATE_APP,
884 wxEVT_POWER,
885 wxEVT_ACTIVATE,
886 wxEVT_CREATE,
887 wxEVT_DESTROY,
888 wxEVT_SHOW,
889 wxEVT_ICONIZE,
890 wxEVT_MAXIMIZE,
891 wxEVT_MOUSE_CAPTURE_CHANGED,
892 wxEVT_PAINT,
893 wxEVT_ERASE_BACKGROUND,
894 wxEVT_NC_PAINT,
895 wxEVT_PAINT_ICON,
896 wxEVT_MENU_CHAR,
897 wxEVT_MENU_INIT,
898 wxEVT_MENU_HIGHLIGHT,
899 wxEVT_POPUP_MENU_INIT,
900 wxEVT_CONTEXT_MENU,
901 wxEVT_SYS_COLOUR_CHANGED,
902 wxEVT_SETTING_CHANGED,
903 wxEVT_QUERY_NEW_PALETTE,
904 wxEVT_PALETTE_CHANGED,
905 wxEVT_JOY_BUTTON_DOWN,
906 wxEVT_JOY_BUTTON_UP,
907 wxEVT_JOY_MOVE,
908 wxEVT_JOY_ZMOVE,
909 wxEVT_DROP_FILES,
910 wxEVT_DRAW_ITEM,
911 wxEVT_MEASURE_ITEM,
912 wxEVT_COMPARE_ITEM,
913 wxEVT_INIT_DIALOG,
914 wxEVT_IDLE,
915 wxEVT_UPDATE_UI,
916
917
918 /* Generic command events */
919 // Note: a click is a higher-level event
920 // than button down/up
921 wxEVT_COMMAND_LEFT_CLICK,
922 wxEVT_COMMAND_LEFT_DCLICK,
923 wxEVT_COMMAND_RIGHT_CLICK,
924 wxEVT_COMMAND_RIGHT_DCLICK,
925 wxEVT_COMMAND_SET_FOCUS,
926 wxEVT_COMMAND_KILL_FOCUS,
927 wxEVT_COMMAND_ENTER,
928
929 wxEVT_NAVIGATION_KEY,
930
931 wxEVT_TIMER,
932
933 wxWS_EX_VALIDATE_RECURSIVELY,
934
935 };
936
937
938
939
940 //----------------------------------------------------------------------