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