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