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