]> git.saurik.com Git - wxWidgets.git/blame - utils/wxPython/src/_defs.i
wxPython 2.0b9, first phase (win32)
[wxWidgets.git] / utils / wxPython / src / _defs.i
CommitLineData
7bf85405
RD
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
af309447
RD
18class wxAcceleratorEntry;
19class wxAcceleratorTable;
20class wxActivateEvent;
21class wxBitmapButton;
22class wxBitmap;
23class wxBrush;
24class wxButton;
25class wxCalculateLayoutEvent;
26class wxCheckBox;
27class wxCheckListBox;
28class wxChoice;
29class wxClientDC;
7bf85405 30class wxCloseEvent;
af309447
RD
31class wxColourData;
32class wxColourDialog;
33class wxColour;
34class wxComboBox;
7bf85405 35class wxCommandEvent;
af309447
RD
36class wxConfig;
37class wxControl;
38class wxCursor;
39class wxDC;
40class wxDialog;
41class wxDirDialog;
42class wxDropFilesEvent;
7bf85405 43class wxEraseEvent;
af309447
RD
44class wxEvent;
45class wxEvtHandler;
46class wxFileDialog;
7bf85405 47class wxFocusEvent;
af309447
RD
48class wxFontData;
49class wxFontDialog;
50class wxFont;
51class wxFrame;
52class wxGauge;
53class wxGridCell;
54class wxGridEvent;
55class wxGrid;
7bf85405 56class wxIconizeEvent;
af309447 57class wxIcon;
7bf85405 58class wxIdleEvent;
af309447
RD
59class wxImageList;
60class wxIndividualLayoutConstraint;
61class wxInitDialogEvent;
62class wxJoystickEvent;
63class wxKeyEvent;
64class wxLayoutAlgorithm;
65class wxLayoutConstraints;
66class wxListBox;
67class wxListCtrl;
68class wxListEvent;
69class wxListItem;
70class wxMDIChildFrame;
71class wxMDIClientWindow;
72class wxMDIParentFrame;
7bf85405 73class wxMask;
af309447 74class wxMaximizeEvent;
7bf85405 75class wxMemoryDC;
af309447
RD
76class wxMenuBar;
77class wxMenuEvent;
78class wxMenuItem;
79class wxMenu;
80class wxMessageDialog;
81class wxMetaFileDC;
82class wxMiniFrame;
83class wxMouseEvent;
84class wxMoveEvent;
85class wxNotebookEvent;
86class wxNotebook;
87class wxPageSetupData;
88class wxPageSetupDialog;
7bf85405 89class wxPaintDC;
af309447
RD
90class wxPaintEvent;
91class wxPalette;
92class wxPanel;
93class wxPen;
94class wxPoint;
7bf85405 95class wxPostScriptDC;
af309447
RD
96class wxPrintData;
97class wxPrintDialog;
7bf85405 98class wxPrinterDC;
af309447 99class wxQueryLayoutInfoEvent;
7bf85405
RD
100class wxRadioBox;
101class wxRadioButton;
af309447
RD
102class wxRealPoint;
103class wxRect;
104class wxRegionIterator;
105class wxRegion;
106class wxSashEvent;
107class wxSashLayoutWindow;
108class wxSashWindow;
109class wxScreenDC;
110class wxScrollBar;
111class wxScrollEvent;
112class wxScrolledWindow;
113class wxShowEvent;
114class wxSingleChoiceDialog;
115class wxSizeEvent;
116class wxSize;
7bf85405 117class wxSlider;
af309447
RD
118class wxSpinButton;
119class wxSpinEvent;
120class wxSplitterWindow;
121class wxStaticBitmap;
122class wxStaticBox;
123class wxStaticText;
124class wxStatusBar;
125class wxSysColourChangedEvent;
126class wxTaskBarIcon;
127class wxTextCtrl;
128class wxTextEntryDialog;
129class wxTimer;
130class wxToolBarTool;
131class wxToolBar;
132class wxToolTip;
133class wxTreeCtrl;
134class wxTreeEvent;
135class wxTreeItemData;
136class wxTreeItemId;
137class wxUpdateUIEvent;
138class wxWindowDC;
139class wxWindow;
7bf85405 140
af309447
RD
141class wxPyApp;
142class wxPyMenu;
7bf85405 143class wxPyTimer;
af309447 144
7bf85405
RD
145
146//---------------------------------------------------------------------------
147
148// some definitions for SWIG only
149typedef unsigned char byte;
150typedef short int WXTYPE;
151typedef int wxWindowID;
152typedef unsigned int uint;
153typedef 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
161enum {
162 wxMAJOR_VERSION,
163 wxMINOR_VERSION,
164 wxRELEASE_NUMBER,
165
08127323 166 wxNOT_FOUND,
7bf85405
RD
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,
b8b8dda7
RD
203
204 wxFRAME_TOOL_WINDOW,
08127323 205 wxCLIP_CHILDREN,
b8b8dda7 206
7bf85405
RD
207 wxRETAINED,
208 wxBACKINGSTORE,
209 wxTB_3DBUTTONS,
210 wxTB_HORIZONTAL,
211 wxTB_VERTICAL,
9c039d08 212 wxTB_FLAT,
7bf85405
RD
213 wxCOLOURED,
214 wxFIXED_LENGTH,
215 wxALIGN_LEFT,
216 wxALIGN_CENTER,
217 wxALIGN_CENTRE,
218 wxALIGN_RIGHT,
7bf85405
RD
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,
7bf85405
RD
233 wxCB_SIMPLE,
234 wxCB_DROPDOWN,
235 wxCB_SORT,
236 wxCB_READONLY,
237 wxRA_HORIZONTAL,
238 wxRA_VERTICAL,
ed175610
RD
239 wxRA_SPECIFY_ROWS,
240 wxRA_SPECIFY_COLS,
7bf85405
RD
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,
cf694132 257 wxST_SIZEGRIP,
7bf85405
RD
258 wxBU_AUTODRAW,
259 wxBU_NOAUTODRAW,
260 wxTR_HAS_BUTTONS,
261 wxTR_EDIT_LABELS,
d5c9047a 262 wxTR_LINES_AT_ROOT,
7bf85405
RD
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,
7bf85405
RD
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,
08127323 314#ifndef __WXGTK__
7bf85405
RD
315 wxDF_TEXT,
316 wxDF_BITMAP,
317 wxDF_METAFILE,
318 wxDF_DIB,
319 wxDF_OEMTEXT,
320 wxDF_FILENAME,
08127323 321#endif
7bf85405
RD
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,
cf694132 361 wxID_STATIC,
7bf85405
RD
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,
cf694132 380 wxBITMAP_TYPE_JPEG,
7bf85405
RD
381
382 wxOPEN,
383 wxSAVE,
384 wxHIDE_READONLY,
385 wxOVERWRITE_PROMPT,
386
387 wxACCEL_ALT,
388 wxACCEL_CTRL,
389 wxACCEL_SHIFT,
7bf85405
RD
390};
391
392
cf694132
RD
393// // Standard error codes
394// enum ErrCode
395// {
396// ERR_PARAM = (-4000),
397// ERR_NODATA,
398// ERR_CANCEL,
399// ERR_SUCCESS = 0
400// };
7bf85405
RD
401
402
403enum {
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
440typedef 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
461enum _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
540typedef enum {
9c039d08 541 wxCURSOR_NONE = 0,
7bf85405
RD
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
9c039d08
RD
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
7bf85405
RD
574} _standard_cursors_t;
575
576
cf694132
RD
577
578typedef 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
7bf85405
RD
652#define FALSE 0
653#define false 0
654#define TRUE 1
655#define true 1
656
af309447 657const char* wxVERSION_STRING;
7bf85405
RD
658
659//---------------------------------------------------------------------------
660//---------------------------------------------------------------------------
661
662/*
663 * Event types
664 *
665 */
666enum 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,
630d84f2
RD
797 wxEVT_COMMAND_TREE_ITEM_COLLAPSED,
798 wxEVT_COMMAND_TREE_ITEM_COLLAPSING,
7bf85405
RD
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
08127323 823
7bf85405
RD
824};
825
826
827
828
829/////////////////////////////////////////////////////////////////////////////
830//
831// $Log$
cf694132
RD
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//
ed175610 850// Revision 1.12 1999/02/27 04:21:58 RD
cf694132 851//
ed175610
RD
852// Added missing wxRA_SPECIFY_ROWS, wxRA_SPECIFY_COLS
853//
af309447
RD
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//
08127323 866// Revision 1.10 1999/01/30 07:30:08 RD
af309447 867//
08127323
RD
868// Added wxSashWindow, wxSashEvent, wxLayoutAlgorithm, etc.
869//
870// Various cleanup, tweaks, minor additions, etc. to maintain
871// compatibility with the current wxWindows.
872//
b8b8dda7
RD
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//
faf3cb35
RD
892// Revision 1.8 1998/11/15 23:03:42 RD
893// Removing some ifdef's for wxGTK
894//
630d84f2 895// Revision 1.7 1998/11/11 03:12:24 RD
faf3cb35 896//
630d84f2
RD
897// Additions for wxTreeCtrl
898//
d5c9047a
RD
899// Revision 1.6 1998/10/20 06:43:53 RD
900// New wxTreeCtrl wrappers (untested)
901// some changes in helpers
902// etc.
903//
9c039d08 904// Revision 1.5 1998/10/02 06:40:32 RD
d5c9047a 905//
9c039d08
RD
906// Version 0.4 of wxPython for MSW.
907//
fb5e0af0
RD
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//
853b255a
RD
913// Revision 1.3 1998/08/14 23:36:33 RD
914// Beginings of wxGTK compatibility
915//
2370fac3
RD
916// Revision 1.2 1998/08/14 03:16:35 RD
917// removed some definitions that got removed from defs.h
918//
7bf85405
RD
919// Revision 1.1 1998/08/09 08:25:49 RD
920// Initial version
921//
922//