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