]> git.saurik.com Git - wxWidgets.git/blame_incremental - wxPython/src/_defs.i
merged fixes for accel and command event non propagation from 2.2
[wxWidgets.git] / wxPython / src / _defs.i
... / ...
CommitLineData
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
18class wxAcceleratorEntry;
19class wxAcceleratorTable;
20class wxActivateEvent;
21class wxBitmapButton;
22class wxBitmap;
23class wxBrush;
24class wxButton;
25class wxCalculateLayoutEvent;
26class wxCaret;
27class wxCheckBox;
28class wxCheckListBox;
29class wxChoice;
30class wxClientDC;
31class wxCloseEvent;
32class wxColourData;
33class wxColourDialog;
34class wxColour;
35class wxComboBox;
36class wxCommandEvent;
37class wxConfig;
38class wxControl;
39class wxCursor;
40class wxDC;
41class wxDialog;
42class wxDirDialog;
43class wxDropFilesEvent;
44class wxEraseEvent;
45class wxEvent;
46class wxEvtHandler;
47class wxFileDialog;
48class wxFocusEvent;
49class wxFontData;
50class wxFontDialog;
51class wxFont;
52class wxFrame;
53class wxGauge;
54class wxGridCell;
55class wxGridEvent;
56class wxGrid;
57class wxIconizeEvent;
58class wxIcon;
59class wxIdleEvent;
60class wxImageList;
61class wxIndividualLayoutConstraint;
62class wxInitDialogEvent;
63class wxJoystickEvent;
64class wxKeyEvent;
65class wxLayoutAlgorithm;
66class wxLayoutConstraints;
67class wxListBox;
68class wxListCtrl;
69class wxListEvent;
70class wxListItem;
71class wxMDIChildFrame;
72class wxMDIClientWindow;
73class wxMDIParentFrame;
74class wxMask;
75class wxMaximizeEvent;
76class wxMemoryDC;
77class wxMenuBar;
78class wxMenuEvent;
79class wxMenuItem;
80class wxMenu;
81class wxMessageDialog;
82class wxMetaFileDC;
83class wxMiniFrame;
84class wxMouseEvent;
85class wxMoveEvent;
86class wxNotebookEvent;
87class wxNotebook;
88class wxPageSetupData;
89class wxPageSetupDialog;
90class wxPaintDC;
91class wxPaintEvent;
92class wxPalette;
93class wxPanel;
94class wxPen;
95class wxPoint;
96class wxPostScriptDC;
97class wxPrintData;
98class wxPrintDialog;
99class wxPrinterDC;
100class wxQueryLayoutInfoEvent;
101class wxRadioBox;
102class wxRadioButton;
103class wxRealPoint;
104class wxRect;
105class wxRegionIterator;
106class wxRegion;
107class wxSashEvent;
108class wxSashLayoutWindow;
109class wxSashWindow;
110class wxScreenDC;
111class wxScrollBar;
112class wxScrollEvent;
113class wxScrollWinEvent;
114class wxScrolledWindow;
115class wxShowEvent;
116class wxSingleChoiceDialog;
117class wxSizeEvent;
118class wxSize;
119class wxSlider;
120class wxSpinButton;
121class wxSpinEvent;
122class wxSplitterWindow;
123class wxStaticBitmap;
124class wxStaticBox;
125class wxStaticText;
126class wxStatusBar;
127class wxSysColourChangedEvent;
128class wxTaskBarIcon;
129class wxTextCtrl;
130class wxTextEntryDialog;
131class wxTimer;
132class wxToolBarTool;
133class wxToolBar;
134class wxToolTip;
135class wxTreeCtrl;
136class wxTreeEvent;
137class wxTreeItemData;
138class wxTreeItemId;
139class wxUpdateUIEvent;
140class wxWindowDC;
141class wxWindow;
142class wxSizer;
143class wxBoxSizer;
144class wxStaticBoxSizer;
145
146class wxPyApp;
147class wxPyMenu;
148class wxPyTimer;
149
150
151//---------------------------------------------------------------------------
152
153// some definitions for SWIG only
154typedef unsigned char byte;
155typedef short int WXTYPE;
156typedef int wxWindowID;
157typedef unsigned int uint;
158typedef signed int EBool;
159typedef unsigned int size_t
160typedef unsigned int time_t
161typedef int wxPrintQuality;
162typedef int wxCoord;
163typedef 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
171enum {
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 wxOPEN,
429 wxSAVE,
430 wxHIDE_READONLY,
431 wxOVERWRITE_PROMPT,
432 wxFILE_MUST_EXIST,
433 wxMULTIPLE,
434 wxCHANGE_DIR,
435
436 wxACCEL_ALT,
437 wxACCEL_CTRL,
438 wxACCEL_SHIFT,
439 wxACCEL_NORMAL,
440
441 wxPD_AUTO_HIDE,
442 wxPD_APP_MODAL,
443 wxPD_CAN_ABORT,
444 wxPD_ELAPSED_TIME,
445 wxPD_ESTIMATED_TIME,
446 wxPD_REMAINING_TIME,
447
448 wxMENU_TEAROFF,
449 wxMB_DOCKABLE,
450 wxNO_FULL_REPAINT_ON_RESIZE,
451
452 wxLEFT,
453 wxRIGHT,
454 wxUP,
455 wxDOWN,
456 wxALL,
457 wxTOP,
458 wxBOTTOM,
459
460 wxNORTH,
461 wxSOUTH,
462 wxEAST,
463 wxWEST,
464
465 wxSTRETCH_NOT,
466 wxSHRINK,
467 wxGROW,
468 wxEXPAND,
469
470 wxNB_FIXEDWIDTH,
471 wxNB_LEFT,
472 wxNB_RIGHT,
473 wxNB_BOTTOM,
474
475 wxLI_HORIZONTAL,
476 wxLI_VERTICAL,
477
478 wxHW_SCROLLBAR_NEVER,
479 wxHW_SCROLLBAR_AUTO,
480
481 wxJOYSTICK1,
482 wxJOYSTICK2,
483 wxJOY_BUTTON1,
484 wxJOY_BUTTON2,
485 wxJOY_BUTTON3,
486 wxJOY_BUTTON4,
487 wxJOY_BUTTON_ANY,
488
489 wxWS_EX_VALIDATE_RECURSIVELY,
490
491};
492
493
494// // Standard error codes
495// enum ErrCode
496// {
497// ERR_PARAM = (-4000),
498// ERR_NODATA,
499// ERR_CANCEL,
500// ERR_SUCCESS = 0
501// };
502
503
504enum {
505 wxDEFAULT ,
506 wxDECORATIVE,
507 wxROMAN,
508 wxSCRIPT,
509 wxSWISS,
510 wxMODERN,
511 wxTELETYPE,
512 wxVARIABLE,
513 wxFIXED,
514 wxNORMAL,
515 wxLIGHT,
516 wxBOLD,
517 wxITALIC,
518 wxSLANT,
519 wxSOLID,
520 wxDOT,
521 wxLONG_DASH,
522 wxSHORT_DASH,
523 wxDOT_DASH,
524 wxUSER_DASH,
525 wxTRANSPARENT,
526 wxSTIPPLE,
527 wxBDIAGONAL_HATCH,
528 wxCROSSDIAG_HATCH,
529 wxFDIAGONAL_HATCH,
530 wxCROSS_HATCH,
531 wxHORIZONTAL_HATCH,
532 wxVERTICAL_HATCH,
533 wxJOIN_BEVEL,
534 wxJOIN_MITER,
535 wxJOIN_ROUND,
536 wxCAP_ROUND,
537 wxCAP_PROJECTING,
538 wxCAP_BUTT
539};
540
541typedef enum {
542 wxCLEAR, // 0
543 wxXOR, // src XOR dst
544 wxINVERT, // NOT dst
545 wxOR_REVERSE, // src OR (NOT dst)
546 wxAND_REVERSE,// src AND (NOT dst)
547 wxCOPY, // src
548 wxAND, // src AND dst
549 wxAND_INVERT, // (NOT src) AND dst
550 wxNO_OP, // dst
551 wxNOR, // (NOT src) AND (NOT dst)
552 wxEQUIV, // (NOT src) XOR dst
553 wxSRC_INVERT, // (NOT src)
554 wxOR_INVERT, // (NOT src) OR dst
555 wxNAND, // (NOT src) OR (NOT dst)
556 wxOR, // src OR dst
557 wxSET, // 1
558// wxSRC_OR, // source _bitmap_ OR destination
559// wxSRC_AND // source _bitmap_ AND destination
560} form_ops_t;
561
562enum _Virtual_keycodes {
563 WXK_BACK = 8,
564 WXK_TAB = 9,
565 WXK_RETURN = 13,
566 WXK_ESCAPE = 27,
567 WXK_SPACE = 32,
568 WXK_DELETE = 127,
569
570 WXK_START = 300,
571 WXK_LBUTTON,
572 WXK_RBUTTON,
573 WXK_CANCEL,
574 WXK_MBUTTON,
575 WXK_CLEAR,
576 WXK_SHIFT,
577 WXK_CONTROL,
578 WXK_MENU,
579 WXK_PAUSE,
580 WXK_CAPITAL,
581 WXK_PRIOR, // Page up
582 WXK_NEXT, // Page down
583 WXK_END,
584 WXK_HOME,
585 WXK_LEFT,
586 WXK_UP,
587 WXK_RIGHT,
588 WXK_DOWN,
589 WXK_SELECT,
590 WXK_PRINT,
591 WXK_EXECUTE,
592 WXK_SNAPSHOT,
593 WXK_INSERT,
594 WXK_HELP,
595 WXK_NUMPAD0,
596 WXK_NUMPAD1,
597 WXK_NUMPAD2,
598 WXK_NUMPAD3,
599 WXK_NUMPAD4,
600 WXK_NUMPAD5,
601 WXK_NUMPAD6,
602 WXK_NUMPAD7,
603 WXK_NUMPAD8,
604 WXK_NUMPAD9,
605 WXK_MULTIPLY,
606 WXK_ADD,
607 WXK_SEPARATOR,
608 WXK_SUBTRACT,
609 WXK_DECIMAL,
610 WXK_DIVIDE,
611 WXK_F1,
612 WXK_F2,
613 WXK_F3,
614 WXK_F4,
615 WXK_F5,
616 WXK_F6,
617 WXK_F7,
618 WXK_F8,
619 WXK_F9,
620 WXK_F10,
621 WXK_F11,
622 WXK_F12,
623 WXK_F13,
624 WXK_F14,
625 WXK_F15,
626 WXK_F16,
627 WXK_F17,
628 WXK_F18,
629 WXK_F19,
630 WXK_F20,
631 WXK_F21,
632 WXK_F22,
633 WXK_F23,
634 WXK_F24,
635 WXK_NUMLOCK,
636 WXK_SCROLL,
637 WXK_PAGEUP,
638 WXK_PAGEDOWN
639};
640
641
642// Bitmap flags
643enum wxBitmapType
644{
645 wxBITMAP_TYPE_INVALID, // should be == 0 for compatibility!
646 wxBITMAP_TYPE_BMP,
647 wxBITMAP_TYPE_BMP_RESOURCE,
648 wxBITMAP_TYPE_RESOURCE = wxBITMAP_TYPE_BMP_RESOURCE,
649 wxBITMAP_TYPE_ICO,
650 wxBITMAP_TYPE_ICO_RESOURCE,
651 wxBITMAP_TYPE_CUR,
652 wxBITMAP_TYPE_CUR_RESOURCE,
653 wxBITMAP_TYPE_XBM,
654 wxBITMAP_TYPE_XBM_DATA,
655 wxBITMAP_TYPE_XPM,
656 wxBITMAP_TYPE_XPM_DATA,
657 wxBITMAP_TYPE_TIF,
658 wxBITMAP_TYPE_TIF_RESOURCE,
659 wxBITMAP_TYPE_GIF,
660 wxBITMAP_TYPE_GIF_RESOURCE,
661 wxBITMAP_TYPE_PNG,
662 wxBITMAP_TYPE_PNG_RESOURCE,
663 wxBITMAP_TYPE_JPEG,
664 wxBITMAP_TYPE_JPEG_RESOURCE,
665 wxBITMAP_TYPE_PNM,
666 wxBITMAP_TYPE_PNM_RESOURCE,
667 wxBITMAP_TYPE_PCX,
668 wxBITMAP_TYPE_PCX_RESOURCE,
669 wxBITMAP_TYPE_PICT,
670 wxBITMAP_TYPE_PICT_RESOURCE,
671 wxBITMAP_TYPE_ICON,
672 wxBITMAP_TYPE_ICON_RESOURCE,
673 wxBITMAP_TYPE_MACCURSOR,
674 wxBITMAP_TYPE_MACCURSOR_RESOURCE,
675 wxBITMAP_TYPE_ANY = 50
676};
677
678
679
680
681// Standard cursors
682enum wxStockCursor
683{
684 wxCURSOR_NONE, // should be 0
685 wxCURSOR_ARROW,
686 wxCURSOR_BULLSEYE,
687 wxCURSOR_CHAR,
688 wxCURSOR_CROSS,
689 wxCURSOR_HAND,
690 wxCURSOR_IBEAM,
691 wxCURSOR_LEFT_BUTTON,
692 wxCURSOR_MAGNIFIER,
693 wxCURSOR_MIDDLE_BUTTON,
694 wxCURSOR_NO_ENTRY,
695 wxCURSOR_PAINT_BRUSH,
696 wxCURSOR_PENCIL,
697 wxCURSOR_POINT_LEFT,
698 wxCURSOR_POINT_RIGHT,
699 wxCURSOR_QUESTION_ARROW,
700 wxCURSOR_RIGHT_BUTTON,
701 wxCURSOR_SIZENESW,
702 wxCURSOR_SIZENS,
703 wxCURSOR_SIZENWSE,
704 wxCURSOR_SIZEWE,
705 wxCURSOR_SIZING,
706 wxCURSOR_SPRAYCAN,
707 wxCURSOR_WAIT,
708 wxCURSOR_WATCH,
709 wxCURSOR_BLANK,
710 wxCURSOR_DEFAULT,
711// // Not yet implemented for Windows
712// wxCURSOR_CROSS_REVERSE,
713// wxCURSOR_DOUBLE_ARROW,
714// wxCURSOR_BASED_ARROW_UP,
715// wxCURSOR_BASED_ARROW_DOWN,
716
717 wxCURSOR_ARROWWAIT,
718 wxCURSOR_MAX
719};
720
721
722
723typedef enum {
724 wxPAPER_NONE, // Use specific dimensions
725 wxPAPER_LETTER, // Letter, 8 1/2 by 11 inches
726 wxPAPER_LEGAL, // Legal, 8 1/2 by 14 inches
727 wxPAPER_A4, // A4 Sheet, 210 by 297 millimeters
728 wxPAPER_CSHEET, // C Sheet, 17 by 22 inches
729 wxPAPER_DSHEET, // D Sheet, 22 by 34 inches
730 wxPAPER_ESHEET, // E Sheet, 34 by 44 inches
731 wxPAPER_LETTERSMALL, // Letter Small, 8 1/2 by 11 inches
732 wxPAPER_TABLOID, // Tabloid, 11 by 17 inches
733 wxPAPER_LEDGER, // Ledger, 17 by 11 inches
734 wxPAPER_STATEMENT, // Statement, 5 1/2 by 8 1/2 inches
735 wxPAPER_EXECUTIVE, // Executive, 7 1/4 by 10 1/2 inches
736 wxPAPER_A3, // A3 sheet, 297 by 420 millimeters
737 wxPAPER_A4SMALL, // A4 small sheet, 210 by 297 millimeters
738 wxPAPER_A5, // A5 sheet, 148 by 210 millimeters
739 wxPAPER_B4, // B4 sheet, 250 by 354 millimeters
740 wxPAPER_B5, // B5 sheet, 182-by-257-millimeter paper
741 wxPAPER_FOLIO, // Folio, 8-1/2-by-13-inch paper
742 wxPAPER_QUARTO, // Quarto, 215-by-275-millimeter paper
743 wxPAPER_10X14, // 10-by-14-inch sheet
744 wxPAPER_11X17, // 11-by-17-inch sheet
745 wxPAPER_NOTE, // Note, 8 1/2 by 11 inches
746 wxPAPER_ENV_9, // #9 Envelope, 3 7/8 by 8 7/8 inches
747 wxPAPER_ENV_10, // #10 Envelope, 4 1/8 by 9 1/2 inches
748 wxPAPER_ENV_11, // #11 Envelope, 4 1/2 by 10 3/8 inches
749 wxPAPER_ENV_12, // #12 Envelope, 4 3/4 by 11 inches
750 wxPAPER_ENV_14, // #14 Envelope, 5 by 11 1/2 inches
751 wxPAPER_ENV_DL, // DL Envelope, 110 by 220 millimeters
752 wxPAPER_ENV_C5, // C5 Envelope, 162 by 229 millimeters
753 wxPAPER_ENV_C3, // C3 Envelope, 324 by 458 millimeters
754 wxPAPER_ENV_C4, // C4 Envelope, 229 by 324 millimeters
755 wxPAPER_ENV_C6, // C6 Envelope, 114 by 162 millimeters
756 wxPAPER_ENV_C65, // C65 Envelope, 114 by 229 millimeters
757 wxPAPER_ENV_B4, // B4 Envelope, 250 by 353 millimeters
758 wxPAPER_ENV_B5, // B5 Envelope, 176 by 250 millimeters
759 wxPAPER_ENV_B6, // B6 Envelope, 176 by 125 millimeters
760 wxPAPER_ENV_ITALY, // Italy Envelope, 110 by 230 millimeters
761 wxPAPER_ENV_MONARCH, // Monarch Envelope, 3 7/8 by 7 1/2 inches
762 wxPAPER_ENV_PERSONAL, // 6 3/4 Envelope, 3 5/8 by 6 1/2 inches
763 wxPAPER_FANFOLD_US, // US Std Fanfold, 14 7/8 by 11 inches
764 wxPAPER_FANFOLD_STD_GERMAN, // German Std Fanfold, 8 1/2 by 12 inches
765 wxPAPER_FANFOLD_LGL_GERMAN, // German Legal Fanfold, 8 1/2 by 13 inches
766
767 wxPAPER_ISO_B4, // B4 (ISO) 250 x 353 mm
768 wxPAPER_JAPANESE_POSTCARD, // Japanese Postcard 100 x 148 mm
769 wxPAPER_9X11, // 9 x 11 in
770 wxPAPER_10X11, // 10 x 11 in
771 wxPAPER_15X11, // 15 x 11 in
772 wxPAPER_ENV_INVITE, // Envelope Invite 220 x 220 mm
773 wxPAPER_LETTER_EXTRA, // Letter Extra 9 \275 x 12 in
774 wxPAPER_LEGAL_EXTRA, // Legal Extra 9 \275 x 15 in
775 wxPAPER_TABLOID_EXTRA, // Tabloid Extra 11.69 x 18 in
776 wxPAPER_A4_EXTRA, // A4 Extra 9.27 x 12.69 in
777 wxPAPER_LETTER_TRANSVERSE, // Letter Transverse 8 \275 x 11 in
778 wxPAPER_A4_TRANSVERSE, // A4 Transverse 210 x 297 mm
779 wxPAPER_LETTER_EXTRA_TRANSVERSE, // Letter Extra Transverse 9\275 x 12 in
780 wxPAPER_A_PLUS, // SuperA/SuperA/A4 227 x 356 mm
781 wxPAPER_B_PLUS, // SuperB/SuperB/A3 305 x 487 mm
782 wxPAPER_LETTER_PLUS, // Letter Plus 8.5 x 12.69 in
783 wxPAPER_A4_PLUS, // A4 Plus 210 x 330 mm
784 wxPAPER_A5_TRANSVERSE, // A5 Transverse 148 x 210 mm
785 wxPAPER_B5_TRANSVERSE, // B5 (JIS) Transverse 182 x 257 mm
786 wxPAPER_A3_EXTRA, // A3 Extra 322 x 445 mm
787 wxPAPER_A5_EXTRA, // A5 Extra 174 x 235 mm
788 wxPAPER_B5_EXTRA, // B5 (ISO) Extra 201 x 276 mm
789 wxPAPER_A2, // A2 420 x 594 mm
790 wxPAPER_A3_TRANSVERSE, // A3 Transverse 297 x 420 mm
791 wxPAPER_A3_EXTRA_TRANSVERSE // A3 Extra Transverse 322 x 445 mm
792
793} wxPaperSize ;
794
795typedef enum {
796 wxDUPLEX_SIMPLEX, // Non-duplex
797 wxDUPLEX_HORIZONTAL,
798 wxDUPLEX_VERTICAL
799} wxDuplexMode;
800
801
802
803#define FALSE 0
804#define false 0
805#define TRUE 1
806#define true 1
807
808const char* wxVERSION_STRING;
809
810//---------------------------------------------------------------------------
811//---------------------------------------------------------------------------
812
813/*
814 * Event types
815 *
816 */
817enum wxEventType {
818 wxEVT_NULL = 0,
819 wxEVT_FIRST = 10000,
820
821 // New names
822 wxEVT_COMMAND_BUTTON_CLICKED,
823 wxEVT_COMMAND_CHECKBOX_CLICKED,
824 wxEVT_COMMAND_CHOICE_SELECTED,
825 wxEVT_COMMAND_LISTBOX_SELECTED,
826 wxEVT_COMMAND_LISTBOX_DOUBLECLICKED,
827 wxEVT_COMMAND_CHECKLISTBOX_TOGGLED,
828 wxEVT_COMMAND_SPINCTRL_UPDATED,
829 wxEVT_COMMAND_TEXT_UPDATED,
830 wxEVT_COMMAND_TEXT_ENTER,
831 wxEVT_COMMAND_MENU_SELECTED,
832 wxEVT_COMMAND_SLIDER_UPDATED,
833 wxEVT_COMMAND_RADIOBOX_SELECTED,
834 wxEVT_COMMAND_RADIOBUTTON_SELECTED,
835// wxEVT_COMMAND_SCROLLBAR_UPDATED is now obsolete since we use wxEVT_SCROLL... events
836 wxEVT_COMMAND_SCROLLBAR_UPDATED,
837 wxEVT_COMMAND_VLBOX_SELECTED,
838 wxEVT_COMMAND_COMBOBOX_SELECTED,
839 wxEVT_COMMAND_TOOL_CLICKED,
840 wxEVT_COMMAND_TOOL_RCLICKED,
841 wxEVT_COMMAND_TOOL_ENTER,
842 wxEVT_SET_FOCUS,
843 wxEVT_KILL_FOCUS,
844 wxEVT_MOUSEWHEEL,
845
846/* Mouse event types */
847 wxEVT_LEFT_DOWN,
848 wxEVT_LEFT_UP,
849 wxEVT_MIDDLE_DOWN,
850 wxEVT_MIDDLE_UP,
851 wxEVT_RIGHT_DOWN,
852 wxEVT_RIGHT_UP,
853 wxEVT_MOTION,
854 wxEVT_ENTER_WINDOW,
855 wxEVT_LEAVE_WINDOW,
856 wxEVT_LEFT_DCLICK,
857 wxEVT_MIDDLE_DCLICK,
858 wxEVT_RIGHT_DCLICK,
859
860 // Non-client mouse events
861 wxEVT_NC_LEFT_DOWN,
862 wxEVT_NC_LEFT_UP,
863 wxEVT_NC_MIDDLE_DOWN,
864 wxEVT_NC_MIDDLE_UP,
865 wxEVT_NC_RIGHT_DOWN,
866 wxEVT_NC_RIGHT_UP,
867 wxEVT_NC_MOTION,
868 wxEVT_NC_ENTER_WINDOW,
869 wxEVT_NC_LEAVE_WINDOW,
870 wxEVT_NC_LEFT_DCLICK,
871 wxEVT_NC_MIDDLE_DCLICK,
872 wxEVT_NC_RIGHT_DCLICK,
873
874/* Character input event type */
875 wxEVT_CHAR,
876 wxEVT_KEY_DOWN,
877 wxEVT_KEY_UP,
878 wxEVT_CHAR_HOOK,
879
880 /*
881 * Scrollbar event identifiers
882 */
883 wxEVT_SCROLL_TOP,
884 wxEVT_SCROLL_BOTTOM,
885 wxEVT_SCROLL_LINEUP,
886 wxEVT_SCROLL_LINEDOWN,
887 wxEVT_SCROLL_PAGEUP,
888 wxEVT_SCROLL_PAGEDOWN,
889 wxEVT_SCROLL_THUMBTRACK,
890 wxEVT_SCROLL_THUMBRELEASE,
891
892 /*
893 * Scrolled Window
894 */
895 wxEVT_SCROLLWIN_TOP,
896 wxEVT_SCROLLWIN_BOTTOM,
897 wxEVT_SCROLLWIN_LINEUP,
898 wxEVT_SCROLLWIN_LINEDOWN,
899 wxEVT_SCROLLWIN_PAGEUP,
900 wxEVT_SCROLLWIN_PAGEDOWN,
901 wxEVT_SCROLLWIN_THUMBTRACK,
902 wxEVT_SCROLLWIN_THUMBRELEASE,
903
904 wxEVT_SIZE = wxEVT_FIRST + 200,
905 wxEVT_MOVE,
906 wxEVT_CLOSE_WINDOW,
907 wxEVT_END_SESSION,
908 wxEVT_QUERY_END_SESSION,
909 wxEVT_ACTIVATE_APP,
910 wxEVT_POWER,
911 wxEVT_ACTIVATE,
912 wxEVT_CREATE,
913 wxEVT_DESTROY,
914 wxEVT_SHOW,
915 wxEVT_ICONIZE,
916 wxEVT_MAXIMIZE,
917 wxEVT_MOUSE_CAPTURE_CHANGED,
918 wxEVT_PAINT,
919 wxEVT_ERASE_BACKGROUND,
920 wxEVT_NC_PAINT,
921 wxEVT_PAINT_ICON,
922 wxEVT_MENU_CHAR,
923 wxEVT_MENU_INIT,
924 wxEVT_MENU_HIGHLIGHT,
925 wxEVT_POPUP_MENU_INIT,
926 wxEVT_CONTEXT_MENU,
927 wxEVT_SYS_COLOUR_CHANGED,
928 wxEVT_SETTING_CHANGED,
929 wxEVT_QUERY_NEW_PALETTE,
930 wxEVT_PALETTE_CHANGED,
931 wxEVT_JOY_BUTTON_DOWN,
932 wxEVT_JOY_BUTTON_UP,
933 wxEVT_JOY_MOVE,
934 wxEVT_JOY_ZMOVE,
935 wxEVT_DROP_FILES,
936 wxEVT_DRAW_ITEM,
937 wxEVT_MEASURE_ITEM,
938 wxEVT_COMPARE_ITEM,
939 wxEVT_INIT_DIALOG,
940 wxEVT_HELP,
941 wxEVT_DETAILED_HELP,
942 wxEVT_IDLE,
943 wxEVT_UPDATE_UI,
944
945
946 /* Generic command events */
947 // Note: a click is a higher-level event
948 // than button down/up
949 wxEVT_COMMAND_LEFT_CLICK,
950 wxEVT_COMMAND_LEFT_DCLICK,
951 wxEVT_COMMAND_RIGHT_CLICK,
952 wxEVT_COMMAND_RIGHT_DCLICK,
953 wxEVT_COMMAND_SET_FOCUS,
954 wxEVT_COMMAND_KILL_FOCUS,
955 wxEVT_COMMAND_ENTER,
956
957 wxEVT_NAVIGATION_KEY,
958
959 wxEVT_TIMER,
960
961};
962
963
964
965
966//----------------------------------------------------------------------