]> git.saurik.com Git - wxWidgets.git/blob - wxPython/src/_defs.i
d&d implementation and checklistbox enabled
[wxWidgets.git] / 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 wxCaret;
27 class wxCheckBox;
28 class wxCheckListBox;
29 class wxChoice;
30 class wxClientDC;
31 class wxCloseEvent;
32 class wxColourData;
33 class wxColourDialog;
34 class wxColour;
35 class wxComboBox;
36 class wxCommandEvent;
37 class wxConfig;
38 class wxControl;
39 class wxCursor;
40 class wxDC;
41 class wxDialog;
42 class wxDirDialog;
43 class wxDropFilesEvent;
44 class wxEraseEvent;
45 class wxEvent;
46 class wxEvtHandler;
47 class wxFileDialog;
48 class wxFocusEvent;
49 class wxFontData;
50 class wxFontDialog;
51 class wxFont;
52 class wxFrame;
53 class wxGauge;
54 class wxGridCell;
55 class wxGridEvent;
56 class wxGrid;
57 class wxIconizeEvent;
58 class wxIcon;
59 class wxIdleEvent;
60 class wxImageList;
61 class wxIndividualLayoutConstraint;
62 class wxInitDialogEvent;
63 class wxJoystickEvent;
64 class wxKeyEvent;
65 class wxLayoutAlgorithm;
66 class wxLayoutConstraints;
67 class wxListBox;
68 class wxListCtrl;
69 class wxListEvent;
70 class wxListItem;
71 class wxMDIChildFrame;
72 class wxMDIClientWindow;
73 class wxMDIParentFrame;
74 class wxMask;
75 class wxMaximizeEvent;
76 class wxMemoryDC;
77 class wxMenuBar;
78 class wxMenuEvent;
79 class wxMenuItem;
80 class wxMenu;
81 class wxMessageDialog;
82 class wxMetaFileDC;
83 class wxMiniFrame;
84 class wxMouseEvent;
85 class wxMoveEvent;
86 class wxNotebookEvent;
87 class wxNotebook;
88 class wxPageSetupData;
89 class wxPageSetupDialog;
90 class wxPaintDC;
91 class wxPaintEvent;
92 class wxPalette;
93 class wxPanel;
94 class wxPen;
95 class wxPoint;
96 class wxPostScriptDC;
97 class wxPrintData;
98 class wxPrintDialog;
99 class wxPrinterDC;
100 class wxQueryLayoutInfoEvent;
101 class wxRadioBox;
102 class wxRadioButton;
103 class wxRealPoint;
104 class wxRect;
105 class wxRegionIterator;
106 class wxRegion;
107 class wxSashEvent;
108 class wxSashLayoutWindow;
109 class wxSashWindow;
110 class wxScreenDC;
111 class wxScrollBar;
112 class wxScrollEvent;
113 class wxScrollWinEvent;
114 class wxScrolledWindow;
115 class wxShowEvent;
116 class wxSingleChoiceDialog;
117 class wxSizeEvent;
118 class wxSize;
119 class wxSlider;
120 class wxSpinButton;
121 class wxSpinEvent;
122 class wxSplitterWindow;
123 class wxStaticBitmap;
124 class wxStaticBox;
125 class wxStaticText;
126 class wxStatusBar;
127 class wxSysColourChangedEvent;
128 class wxTaskBarIcon;
129 class wxTextCtrl;
130 class wxTextEntryDialog;
131 class wxTimer;
132 class wxToolBarTool;
133 class wxToolBar;
134 class wxToolTip;
135 class wxTreeCtrl;
136 class wxTreeEvent;
137 class wxTreeItemData;
138 class wxTreeItemId;
139 class wxUpdateUIEvent;
140 class wxWindowDC;
141 class wxWindow;
142 class wxSizer;
143 class wxBoxSizer;
144 class wxStaticBoxSizer;
145
146 class wxPyApp;
147 class wxPyMenu;
148 class wxPyTimer;
149
150
151 //---------------------------------------------------------------------------
152
153 // some definitions for SWIG only
154 typedef unsigned char byte;
155 typedef short int WXTYPE;
156 typedef int wxWindowID;
157 typedef unsigned int uint;
158 typedef signed int EBool;
159 typedef unsigned int size_t
160 typedef unsigned int time_t
161 typedef int wxPrintQuality;
162 typedef int wxCoord;
163 typedef char wxChar;
164
165
166 //---------------------------------------------------------------------------
167
168 // General numeric #define's and etc. Making them all enums makes SWIG use the
169 // real macro when making the Python Int
170
171 enum {
172 wxMAJOR_VERSION,
173 wxMINOR_VERSION,
174 wxRELEASE_NUMBER,
175
176 wxNOT_FOUND,
177
178 wxVSCROLL,
179 wxHSCROLL,
180 wxCAPTION,
181 wxDOUBLE_BORDER,
182 wxSUNKEN_BORDER,
183 wxRAISED_BORDER,
184 wxBORDER,
185 wxSIMPLE_BORDER,
186 wxSTATIC_BORDER,
187 wxTRANSPARENT_WINDOW,
188 wxNO_BORDER,
189 wxUSER_COLOURS,
190 wxNO_3D,
191 //wxOVERRIDE_KEY_TRANSLATIONS,
192 wxTAB_TRAVERSAL,
193 wxWANTS_CHARS,
194 wxPOPUP_WINDOW,
195 wxHORIZONTAL,
196 wxVERTICAL,
197 wxBOTH,
198 wxCENTER_FRAME,
199 wxCENTRE_ON_SCREEN,
200 wxCENTER_ON_SCREEN,
201
202 wxSTAY_ON_TOP,
203 wxICONIZE,
204 wxMINIMIZE,
205 wxMAXIMIZE,
206 wxTHICK_FRAME,
207 wxSYSTEM_MENU,
208 wxMINIMIZE_BOX,
209 wxMAXIMIZE_BOX,
210 wxTINY_CAPTION_HORIZ,
211 wxTINY_CAPTION_VERT,
212 wxRESIZE_BOX,
213 wxRESIZE_BORDER,
214 wxDIALOG_MODAL,
215 wxDIALOG_MODELESS,
216 wxDIALOG_NO_PARENT,
217 wxDEFAULT_FRAME_STYLE,
218 wxDEFAULT_DIALOG_STYLE,
219
220 wxFRAME_TOOL_WINDOW,
221 wxFRAME_FLOAT_ON_PARENT,
222 wxFRAME_NO_WINDOW_MENU,
223 wxFRAME_NO_TASKBAR,
224
225 wxED_CLIENT_MARGIN,
226 wxED_BUTTONS_BOTTOM,
227 wxED_BUTTONS_RIGHT,
228 wxED_STATIC_LINE,
229 wxEXT_DIALOG_STYLE,
230
231 wxCLIP_CHILDREN,
232 wxCLIP_SIBLINGS,
233
234 wxRETAINED,
235 wxBACKINGSTORE,
236 wxTB_3DBUTTONS,
237 wxTB_HORIZONTAL,
238 wxTB_VERTICAL,
239 wxTB_FLAT,
240 wxTB_DOCKABLE,
241 wxCOLOURED,
242 wxFIXED_LENGTH,
243 wxALIGN_LEFT,
244 wxALIGN_CENTER_HORIZONTAL,
245 wxALIGN_CENTRE_HORIZONTAL,
246 wxALIGN_RIGHT,
247 wxALIGN_BOTTOM,
248 wxALIGN_CENTER_VERTICAL,
249 wxALIGN_CENTRE_VERTICAL,
250 wxALIGN_TOP,
251 wxALIGN_CENTER,
252 wxALIGN_CENTRE,
253 wxSHAPED,
254 wxADJUST_MINSIZE,
255
256 wxLB_NEEDED_SB,
257 wxLB_ALWAYS_SB,
258 wxLB_SORT,
259 wxLB_SINGLE,
260 wxLB_MULTIPLE,
261 wxLB_EXTENDED,
262 wxLB_OWNERDRAW,
263 wxLB_HSCROLL,
264 wxPROCESS_ENTER,
265 wxPASSWORD,
266
267 wxTE_READONLY,
268 wxTE_MULTILINE,
269 wxTE_PROCESS_TAB,
270 wxTE_RICH,
271 wxTE_NO_VSCROLL,
272 wxTE_AUTO_SCROLL,
273 wxTE_PROCESS_ENTER,
274 wxTE_PASSWORD,
275 wxTE_AUTO_URL,
276 wxTE_NOHIDESEL,
277 wxTE_DONTWRAP,
278 wxTE_LINEWRAP,
279 wxTE_WORDWRAP,
280
281 wxCB_SIMPLE,
282 wxCB_DROPDOWN,
283 wxCB_SORT,
284 wxCB_READONLY,
285 wxRA_HORIZONTAL,
286 wxRA_VERTICAL,
287 wxRA_SPECIFY_ROWS,
288 wxRA_SPECIFY_COLS,
289 wxRB_GROUP,
290 wxGA_PROGRESSBAR,
291 wxGA_HORIZONTAL,
292 wxGA_VERTICAL,
293 wxGA_SMOOTH,
294 wxSL_HORIZONTAL,
295 wxSL_VERTICAL,
296 wxSL_AUTOTICKS,
297 wxSL_LABELS,
298 wxSL_LEFT,
299 wxSL_TOP,
300 wxSL_RIGHT,
301 wxSL_BOTTOM,
302 wxSL_BOTH,
303 wxSL_SELRANGE,
304 wxSB_HORIZONTAL,
305 wxSB_VERTICAL,
306 wxST_SIZEGRIP,
307 wxST_NO_AUTORESIZE,
308 wxBU_AUTODRAW,
309 wxBU_NOAUTODRAW,
310 wxSP_VERTICAL,
311 wxSP_HORIZONTAL,
312 wxSP_ARROW_KEYS,
313 wxSP_WRAP,
314 wxSP_NOBORDER,
315 wxSP_3D,
316 wxSP_3DSASH,
317 wxSP_3DBORDER,
318 wxSP_FULLSASH,
319 wxSP_BORDER,
320 wxSP_LIVE_UPDATE,
321 wxSP_PERMIT_UNSPLIT,
322 //wxSP_SASH_AQUA,
323 wxFLOOD_SURFACE,
324 wxFLOOD_BORDER,
325 wxODDEVEN_RULE,
326 wxWINDING_RULE,
327 wxTOOL_TOP,
328 wxTOOL_BOTTOM,
329 wxTOOL_LEFT,
330 wxTOOL_RIGHT,
331 wxOK,
332 wxYES_NO,
333 wxCANCEL,
334 wxYES,
335 wxNO,
336 wxNO_DEFAULT,
337 wxYES_DEFAULT,
338 wxICON_EXCLAMATION,
339 wxICON_HAND,
340 wxICON_QUESTION,
341 wxICON_INFORMATION,
342 wxICON_STOP,
343 wxICON_ASTERISK,
344 wxICON_MASK,
345 wxICON_WARNING,
346 wxICON_ERROR,
347
348 wxFORWARD,
349 wxBACKWARD,
350 wxRESET,
351 wxHELP,
352 wxMORE,
353 wxSETUP,
354
355
356 wxCENTRE,
357 wxCENTER,
358 wxSIZE_AUTO_WIDTH,
359 wxSIZE_AUTO_HEIGHT,
360 wxSIZE_AUTO,
361 wxSIZE_USE_EXISTING,
362 wxSIZE_ALLOW_MINUS_ONE,
363 wxPORTRAIT,
364 wxLANDSCAPE,
365 wxPRINT_QUALITY_HIGH,
366 wxPRINT_QUALITY_MEDIUM,
367 wxPRINT_QUALITY_LOW,
368 wxPRINT_QUALITY_DRAFT,
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_DUPLICATE,
393 wxID_SELECTALL,
394 wxID_FILE1,
395 wxID_FILE2,
396 wxID_FILE3,
397 wxID_FILE4,
398 wxID_FILE5,
399 wxID_FILE6,
400 wxID_FILE7,
401 wxID_FILE8,
402 wxID_FILE9,
403 wxID_OK,
404 wxID_CANCEL,
405 wxID_APPLY,
406 wxID_YES,
407 wxID_NO,
408 wxID_STATIC,
409 wxID_SEPARATOR,
410 wxID_FORWARD,
411 wxID_BACKWARD,
412 wxID_SETUP,
413 wxID_MORE,
414
415 wxOPEN,
416 wxSAVE,
417 wxHIDE_READONLY,
418 wxOVERWRITE_PROMPT,
419 wxFILE_MUST_EXIST,
420 wxMULTIPLE,
421 wxCHANGE_DIR,
422
423 wxACCEL_ALT,
424 wxACCEL_CTRL,
425 wxACCEL_SHIFT,
426 wxACCEL_NORMAL,
427
428 wxPD_AUTO_HIDE,
429 wxPD_APP_MODAL,
430 wxPD_CAN_ABORT,
431 wxPD_ELAPSED_TIME,
432 wxPD_ESTIMATED_TIME,
433 wxPD_REMAINING_TIME,
434
435 wxMENU_TEAROFF,
436 wxMB_DOCKABLE,
437 wxNO_FULL_REPAINT_ON_RESIZE,
438
439 wxLEFT,
440 wxRIGHT,
441 wxUP,
442 wxDOWN,
443 wxALL,
444 wxTOP,
445 wxBOTTOM,
446
447 wxNORTH,
448 wxSOUTH,
449 wxEAST,
450 wxWEST,
451
452 wxSTRETCH_NOT,
453 wxSHRINK,
454 wxGROW,
455 wxEXPAND,
456
457 wxNB_FIXEDWIDTH,
458 wxNB_LEFT,
459 wxNB_RIGHT,
460 wxNB_BOTTOM,
461 wxNB_MULTILINE,
462
463 wxLI_HORIZONTAL,
464 wxLI_VERTICAL,
465
466 wxHW_SCROLLBAR_NEVER,
467 wxHW_SCROLLBAR_AUTO,
468
469 wxJOYSTICK1,
470 wxJOYSTICK2,
471 wxJOY_BUTTON1,
472 wxJOY_BUTTON2,
473 wxJOY_BUTTON3,
474 wxJOY_BUTTON4,
475 wxJOY_BUTTON_ANY,
476
477 wxWS_EX_VALIDATE_RECURSIVELY,
478 wxWS_EX_BLOCK_EVENTS,
479 wxWS_EX_TRANSIENT,
480
481 // Mapping modes (as per Windows)
482 wxMM_TEXT,
483 wxMM_LOMETRIC,
484 wxMM_HIMETRIC,
485 wxMM_LOENGLISH,
486 wxMM_HIENGLISH,
487 wxMM_TWIPS,
488 wxMM_ISOTROPIC,
489 wxMM_ANISOTROPIC,
490 wxMM_POINTS,
491 wxMM_METRIC,
492
493 };
494
495
496 enum wxBorder
497 {
498 wxBORDER_DEFAULT,
499 wxBORDER_NONE,
500 wxBORDER_STATIC,
501 wxBORDER_SIMPLE,
502 wxBORDER_RAISED,
503 wxBORDER_SUNKEN,
504 wxBORDER_DOUBLE,
505 wxBORDER_MASK,
506 };
507
508
509 // // Standard error codes
510 // enum ErrCode
511 // {
512 // ERR_PARAM = (-4000),
513 // ERR_NODATA,
514 // ERR_CANCEL,
515 // ERR_SUCCESS = 0
516 // };
517
518
519 enum {
520 wxDEFAULT ,
521 wxDECORATIVE,
522 wxROMAN,
523 wxSCRIPT,
524 wxSWISS,
525 wxMODERN,
526 wxTELETYPE,
527 wxVARIABLE,
528 wxFIXED,
529 wxNORMAL,
530 wxLIGHT,
531 wxBOLD,
532 wxITALIC,
533 wxSLANT,
534 wxSOLID,
535 wxDOT,
536 wxLONG_DASH,
537 wxSHORT_DASH,
538 wxDOT_DASH,
539 wxUSER_DASH,
540 wxTRANSPARENT,
541 wxSTIPPLE,
542 wxBDIAGONAL_HATCH,
543 wxCROSSDIAG_HATCH,
544 wxFDIAGONAL_HATCH,
545 wxCROSS_HATCH,
546 wxHORIZONTAL_HATCH,
547 wxVERTICAL_HATCH,
548 wxJOIN_BEVEL,
549 wxJOIN_MITER,
550 wxJOIN_ROUND,
551 wxCAP_ROUND,
552 wxCAP_PROJECTING,
553 wxCAP_BUTT
554 };
555
556 typedef enum {
557 wxCLEAR, // 0
558 wxXOR, // src XOR dst
559 wxINVERT, // NOT dst
560 wxOR_REVERSE, // src OR (NOT dst)
561 wxAND_REVERSE,// src AND (NOT dst)
562 wxCOPY, // src
563 wxAND, // src AND dst
564 wxAND_INVERT, // (NOT src) AND dst
565 wxNO_OP, // dst
566 wxNOR, // (NOT src) AND (NOT dst)
567 wxEQUIV, // (NOT src) XOR dst
568 wxSRC_INVERT, // (NOT src)
569 wxOR_INVERT, // (NOT src) OR dst
570 wxNAND, // (NOT src) OR (NOT dst)
571 wxOR, // src OR dst
572 wxSET, // 1
573 // wxSRC_OR, // source _bitmap_ OR destination
574 // wxSRC_AND // source _bitmap_ AND destination
575 } form_ops_t;
576
577 enum wxKeyCode {
578 WXK_BACK = 8,
579 WXK_TAB = 9,
580 WXK_RETURN = 13,
581 WXK_ESCAPE = 27,
582 WXK_SPACE = 32,
583 WXK_DELETE = 127,
584
585 WXK_START = 300,
586 WXK_LBUTTON,
587 WXK_RBUTTON,
588 WXK_CANCEL,
589 WXK_MBUTTON,
590 WXK_CLEAR,
591 WXK_SHIFT,
592 WXK_ALT,
593 WXK_CONTROL,
594 WXK_MENU,
595 WXK_PAUSE,
596 WXK_CAPITAL,
597 WXK_PRIOR, /* Page up */
598 WXK_NEXT, /* Page down */
599 WXK_END,
600 WXK_HOME,
601 WXK_LEFT,
602 WXK_UP,
603 WXK_RIGHT,
604 WXK_DOWN,
605 WXK_SELECT,
606 WXK_PRINT,
607 WXK_EXECUTE,
608 WXK_SNAPSHOT,
609 WXK_INSERT,
610 WXK_HELP,
611 WXK_NUMPAD0,
612 WXK_NUMPAD1,
613 WXK_NUMPAD2,
614 WXK_NUMPAD3,
615 WXK_NUMPAD4,
616 WXK_NUMPAD5,
617 WXK_NUMPAD6,
618 WXK_NUMPAD7,
619 WXK_NUMPAD8,
620 WXK_NUMPAD9,
621 WXK_MULTIPLY,
622 WXK_ADD,
623 WXK_SEPARATOR,
624 WXK_SUBTRACT,
625 WXK_DECIMAL,
626 WXK_DIVIDE,
627 WXK_F1,
628 WXK_F2,
629 WXK_F3,
630 WXK_F4,
631 WXK_F5,
632 WXK_F6,
633 WXK_F7,
634 WXK_F8,
635 WXK_F9,
636 WXK_F10,
637 WXK_F11,
638 WXK_F12,
639 WXK_F13,
640 WXK_F14,
641 WXK_F15,
642 WXK_F16,
643 WXK_F17,
644 WXK_F18,
645 WXK_F19,
646 WXK_F20,
647 WXK_F21,
648 WXK_F22,
649 WXK_F23,
650 WXK_F24,
651 WXK_NUMLOCK,
652 WXK_SCROLL,
653 WXK_PAGEUP,
654 WXK_PAGEDOWN,
655
656 WXK_NUMPAD_SPACE,
657 WXK_NUMPAD_TAB,
658 WXK_NUMPAD_ENTER,
659 WXK_NUMPAD_F1,
660 WXK_NUMPAD_F2,
661 WXK_NUMPAD_F3,
662 WXK_NUMPAD_F4,
663 WXK_NUMPAD_HOME,
664 WXK_NUMPAD_LEFT,
665 WXK_NUMPAD_UP,
666 WXK_NUMPAD_RIGHT,
667 WXK_NUMPAD_DOWN,
668 WXK_NUMPAD_PRIOR,
669 WXK_NUMPAD_PAGEUP,
670 WXK_NUMPAD_NEXT,
671 WXK_NUMPAD_PAGEDOWN,
672 WXK_NUMPAD_END,
673 WXK_NUMPAD_BEGIN,
674 WXK_NUMPAD_INSERT,
675 WXK_NUMPAD_DELETE,
676 WXK_NUMPAD_EQUAL,
677 WXK_NUMPAD_MULTIPLY,
678 WXK_NUMPAD_ADD,
679 WXK_NUMPAD_SEPARATOR,
680 WXK_NUMPAD_SUBTRACT,
681 WXK_NUMPAD_DECIMAL,
682 WXK_NUMPAD_DIVIDE
683
684 };
685
686
687 // Bitmap flags
688 enum wxBitmapType
689 {
690 wxBITMAP_TYPE_INVALID, // should be == 0 for compatibility!
691 wxBITMAP_TYPE_BMP,
692 wxBITMAP_TYPE_BMP_RESOURCE,
693 wxBITMAP_TYPE_RESOURCE = wxBITMAP_TYPE_BMP_RESOURCE,
694 wxBITMAP_TYPE_ICO,
695 wxBITMAP_TYPE_ICO_RESOURCE,
696 wxBITMAP_TYPE_CUR,
697 wxBITMAP_TYPE_CUR_RESOURCE,
698 wxBITMAP_TYPE_XBM,
699 wxBITMAP_TYPE_XBM_DATA,
700 wxBITMAP_TYPE_XPM,
701 wxBITMAP_TYPE_XPM_DATA,
702 wxBITMAP_TYPE_TIF,
703 wxBITMAP_TYPE_TIF_RESOURCE,
704 wxBITMAP_TYPE_GIF,
705 wxBITMAP_TYPE_GIF_RESOURCE,
706 wxBITMAP_TYPE_PNG,
707 wxBITMAP_TYPE_PNG_RESOURCE,
708 wxBITMAP_TYPE_JPEG,
709 wxBITMAP_TYPE_JPEG_RESOURCE,
710 wxBITMAP_TYPE_PNM,
711 wxBITMAP_TYPE_PNM_RESOURCE,
712 wxBITMAP_TYPE_PCX,
713 wxBITMAP_TYPE_PCX_RESOURCE,
714 wxBITMAP_TYPE_PICT,
715 wxBITMAP_TYPE_PICT_RESOURCE,
716 wxBITMAP_TYPE_ICON,
717 wxBITMAP_TYPE_ICON_RESOURCE,
718 wxBITMAP_TYPE_MACCURSOR,
719 wxBITMAP_TYPE_MACCURSOR_RESOURCE,
720 wxBITMAP_TYPE_ANY = 50
721 };
722
723
724
725
726 // Standard cursors
727 enum wxStockCursor
728 {
729 wxCURSOR_NONE, // should be 0
730 wxCURSOR_ARROW,
731 wxCURSOR_BULLSEYE,
732 wxCURSOR_CHAR,
733 wxCURSOR_CROSS,
734 wxCURSOR_HAND,
735 wxCURSOR_IBEAM,
736 wxCURSOR_LEFT_BUTTON,
737 wxCURSOR_MAGNIFIER,
738 wxCURSOR_MIDDLE_BUTTON,
739 wxCURSOR_NO_ENTRY,
740 wxCURSOR_PAINT_BRUSH,
741 wxCURSOR_PENCIL,
742 wxCURSOR_POINT_LEFT,
743 wxCURSOR_POINT_RIGHT,
744 wxCURSOR_QUESTION_ARROW,
745 wxCURSOR_RIGHT_BUTTON,
746 wxCURSOR_SIZENESW,
747 wxCURSOR_SIZENS,
748 wxCURSOR_SIZENWSE,
749 wxCURSOR_SIZEWE,
750 wxCURSOR_SIZING,
751 wxCURSOR_SPRAYCAN,
752 wxCURSOR_WAIT,
753 wxCURSOR_WATCH,
754 wxCURSOR_BLANK,
755 wxCURSOR_DEFAULT,
756 // // Not yet implemented for Windows
757 // wxCURSOR_CROSS_REVERSE,
758 // wxCURSOR_DOUBLE_ARROW,
759 // wxCURSOR_BASED_ARROW_UP,
760 // wxCURSOR_BASED_ARROW_DOWN,
761
762 wxCURSOR_ARROWWAIT,
763 wxCURSOR_MAX
764 };
765
766
767
768 typedef enum {
769 wxPAPER_NONE, // Use specific dimensions
770 wxPAPER_LETTER, // Letter, 8 1/2 by 11 inches
771 wxPAPER_LEGAL, // Legal, 8 1/2 by 14 inches
772 wxPAPER_A4, // A4 Sheet, 210 by 297 millimeters
773 wxPAPER_CSHEET, // C Sheet, 17 by 22 inches
774 wxPAPER_DSHEET, // D Sheet, 22 by 34 inches
775 wxPAPER_ESHEET, // E Sheet, 34 by 44 inches
776 wxPAPER_LETTERSMALL, // Letter Small, 8 1/2 by 11 inches
777 wxPAPER_TABLOID, // Tabloid, 11 by 17 inches
778 wxPAPER_LEDGER, // Ledger, 17 by 11 inches
779 wxPAPER_STATEMENT, // Statement, 5 1/2 by 8 1/2 inches
780 wxPAPER_EXECUTIVE, // Executive, 7 1/4 by 10 1/2 inches
781 wxPAPER_A3, // A3 sheet, 297 by 420 millimeters
782 wxPAPER_A4SMALL, // A4 small sheet, 210 by 297 millimeters
783 wxPAPER_A5, // A5 sheet, 148 by 210 millimeters
784 wxPAPER_B4, // B4 sheet, 250 by 354 millimeters
785 wxPAPER_B5, // B5 sheet, 182-by-257-millimeter paper
786 wxPAPER_FOLIO, // Folio, 8-1/2-by-13-inch paper
787 wxPAPER_QUARTO, // Quarto, 215-by-275-millimeter paper
788 wxPAPER_10X14, // 10-by-14-inch sheet
789 wxPAPER_11X17, // 11-by-17-inch sheet
790 wxPAPER_NOTE, // Note, 8 1/2 by 11 inches
791 wxPAPER_ENV_9, // #9 Envelope, 3 7/8 by 8 7/8 inches
792 wxPAPER_ENV_10, // #10 Envelope, 4 1/8 by 9 1/2 inches
793 wxPAPER_ENV_11, // #11 Envelope, 4 1/2 by 10 3/8 inches
794 wxPAPER_ENV_12, // #12 Envelope, 4 3/4 by 11 inches
795 wxPAPER_ENV_14, // #14 Envelope, 5 by 11 1/2 inches
796 wxPAPER_ENV_DL, // DL Envelope, 110 by 220 millimeters
797 wxPAPER_ENV_C5, // C5 Envelope, 162 by 229 millimeters
798 wxPAPER_ENV_C3, // C3 Envelope, 324 by 458 millimeters
799 wxPAPER_ENV_C4, // C4 Envelope, 229 by 324 millimeters
800 wxPAPER_ENV_C6, // C6 Envelope, 114 by 162 millimeters
801 wxPAPER_ENV_C65, // C65 Envelope, 114 by 229 millimeters
802 wxPAPER_ENV_B4, // B4 Envelope, 250 by 353 millimeters
803 wxPAPER_ENV_B5, // B5 Envelope, 176 by 250 millimeters
804 wxPAPER_ENV_B6, // B6 Envelope, 176 by 125 millimeters
805 wxPAPER_ENV_ITALY, // Italy Envelope, 110 by 230 millimeters
806 wxPAPER_ENV_MONARCH, // Monarch Envelope, 3 7/8 by 7 1/2 inches
807 wxPAPER_ENV_PERSONAL, // 6 3/4 Envelope, 3 5/8 by 6 1/2 inches
808 wxPAPER_FANFOLD_US, // US Std Fanfold, 14 7/8 by 11 inches
809 wxPAPER_FANFOLD_STD_GERMAN, // German Std Fanfold, 8 1/2 by 12 inches
810 wxPAPER_FANFOLD_LGL_GERMAN, // German Legal Fanfold, 8 1/2 by 13 inches
811
812 wxPAPER_ISO_B4, // B4 (ISO) 250 x 353 mm
813 wxPAPER_JAPANESE_POSTCARD, // Japanese Postcard 100 x 148 mm
814 wxPAPER_9X11, // 9 x 11 in
815 wxPAPER_10X11, // 10 x 11 in
816 wxPAPER_15X11, // 15 x 11 in
817 wxPAPER_ENV_INVITE, // Envelope Invite 220 x 220 mm
818 wxPAPER_LETTER_EXTRA, // Letter Extra 9 \275 x 12 in
819 wxPAPER_LEGAL_EXTRA, // Legal Extra 9 \275 x 15 in
820 wxPAPER_TABLOID_EXTRA, // Tabloid Extra 11.69 x 18 in
821 wxPAPER_A4_EXTRA, // A4 Extra 9.27 x 12.69 in
822 wxPAPER_LETTER_TRANSVERSE, // Letter Transverse 8 \275 x 11 in
823 wxPAPER_A4_TRANSVERSE, // A4 Transverse 210 x 297 mm
824 wxPAPER_LETTER_EXTRA_TRANSVERSE, // Letter Extra Transverse 9\275 x 12 in
825 wxPAPER_A_PLUS, // SuperA/SuperA/A4 227 x 356 mm
826 wxPAPER_B_PLUS, // SuperB/SuperB/A3 305 x 487 mm
827 wxPAPER_LETTER_PLUS, // Letter Plus 8.5 x 12.69 in
828 wxPAPER_A4_PLUS, // A4 Plus 210 x 330 mm
829 wxPAPER_A5_TRANSVERSE, // A5 Transverse 148 x 210 mm
830 wxPAPER_B5_TRANSVERSE, // B5 (JIS) Transverse 182 x 257 mm
831 wxPAPER_A3_EXTRA, // A3 Extra 322 x 445 mm
832 wxPAPER_A5_EXTRA, // A5 Extra 174 x 235 mm
833 wxPAPER_B5_EXTRA, // B5 (ISO) Extra 201 x 276 mm
834 wxPAPER_A2, // A2 420 x 594 mm
835 wxPAPER_A3_TRANSVERSE, // A3 Transverse 297 x 420 mm
836 wxPAPER_A3_EXTRA_TRANSVERSE // A3 Extra Transverse 322 x 445 mm
837
838 } wxPaperSize ;
839
840 typedef enum {
841 wxDUPLEX_SIMPLEX, // Non-duplex
842 wxDUPLEX_HORIZONTAL,
843 wxDUPLEX_VERTICAL
844 } wxDuplexMode;
845
846
847
848 #define FALSE 0
849 #define false 0
850 #define TRUE 1
851 #define true 1
852
853 const char* wxVERSION_STRING;
854
855 //---------------------------------------------------------------------------
856 //---------------------------------------------------------------------------
857
858 /*
859 * Event types
860 *
861 */
862 enum wxEventType {
863 wxEVT_NULL = 0,
864 wxEVT_FIRST = 10000,
865
866 // New names
867 wxEVT_COMMAND_BUTTON_CLICKED,
868 wxEVT_COMMAND_CHECKBOX_CLICKED,
869 wxEVT_COMMAND_CHOICE_SELECTED,
870 wxEVT_COMMAND_LISTBOX_SELECTED,
871 wxEVT_COMMAND_LISTBOX_DOUBLECLICKED,
872 wxEVT_COMMAND_CHECKLISTBOX_TOGGLED,
873 wxEVT_COMMAND_SPINCTRL_UPDATED,
874 wxEVT_COMMAND_TEXT_UPDATED,
875 wxEVT_COMMAND_TEXT_ENTER,
876 wxEVT_COMMAND_TEXT_URL,
877 wxEVT_COMMAND_TEXT_MAXLEN,
878 wxEVT_COMMAND_MENU_SELECTED,
879 wxEVT_COMMAND_SLIDER_UPDATED,
880 wxEVT_COMMAND_RADIOBOX_SELECTED,
881 wxEVT_COMMAND_RADIOBUTTON_SELECTED,
882 // wxEVT_COMMAND_SCROLLBAR_UPDATED is now obsolete since we use wxEVT_SCROLL... events
883 wxEVT_COMMAND_SCROLLBAR_UPDATED,
884 wxEVT_COMMAND_VLBOX_SELECTED,
885 wxEVT_COMMAND_COMBOBOX_SELECTED,
886 wxEVT_COMMAND_TOOL_CLICKED,
887 wxEVT_COMMAND_TOOL_RCLICKED,
888 wxEVT_COMMAND_TOOL_ENTER,
889 wxEVT_SET_FOCUS,
890 wxEVT_KILL_FOCUS,
891 wxEVT_CHILD_FOCUS,
892 wxEVT_MOUSEWHEEL,
893
894 /* Mouse event types */
895 wxEVT_LEFT_DOWN,
896 wxEVT_LEFT_UP,
897 wxEVT_MIDDLE_DOWN,
898 wxEVT_MIDDLE_UP,
899 wxEVT_RIGHT_DOWN,
900 wxEVT_RIGHT_UP,
901 wxEVT_MOTION,
902 wxEVT_ENTER_WINDOW,
903 wxEVT_LEAVE_WINDOW,
904 wxEVT_LEFT_DCLICK,
905 wxEVT_MIDDLE_DCLICK,
906 wxEVT_RIGHT_DCLICK,
907
908 // Non-client mouse events
909 wxEVT_NC_LEFT_DOWN,
910 wxEVT_NC_LEFT_UP,
911 wxEVT_NC_MIDDLE_DOWN,
912 wxEVT_NC_MIDDLE_UP,
913 wxEVT_NC_RIGHT_DOWN,
914 wxEVT_NC_RIGHT_UP,
915 wxEVT_NC_MOTION,
916 wxEVT_NC_ENTER_WINDOW,
917 wxEVT_NC_LEAVE_WINDOW,
918 wxEVT_NC_LEFT_DCLICK,
919 wxEVT_NC_MIDDLE_DCLICK,
920 wxEVT_NC_RIGHT_DCLICK,
921
922 /* Character input event type */
923 wxEVT_CHAR,
924 wxEVT_KEY_DOWN,
925 wxEVT_KEY_UP,
926 wxEVT_CHAR_HOOK,
927
928 /*
929 * Scrollbar event identifiers
930 */
931 wxEVT_SCROLL_TOP,
932 wxEVT_SCROLL_BOTTOM,
933 wxEVT_SCROLL_LINEUP,
934 wxEVT_SCROLL_LINEDOWN,
935 wxEVT_SCROLL_PAGEUP,
936 wxEVT_SCROLL_PAGEDOWN,
937 wxEVT_SCROLL_THUMBTRACK,
938 wxEVT_SCROLL_THUMBRELEASE,
939
940 /*
941 * Scrolled Window
942 */
943 wxEVT_SCROLLWIN_TOP,
944 wxEVT_SCROLLWIN_BOTTOM,
945 wxEVT_SCROLLWIN_LINEUP,
946 wxEVT_SCROLLWIN_LINEDOWN,
947 wxEVT_SCROLLWIN_PAGEUP,
948 wxEVT_SCROLLWIN_PAGEDOWN,
949 wxEVT_SCROLLWIN_THUMBTRACK,
950 wxEVT_SCROLLWIN_THUMBRELEASE,
951
952 wxEVT_SIZE = wxEVT_FIRST + 200,
953 wxEVT_MOVE,
954 wxEVT_CLOSE_WINDOW,
955 wxEVT_END_SESSION,
956 wxEVT_QUERY_END_SESSION,
957 wxEVT_ACTIVATE_APP,
958 wxEVT_POWER,
959 wxEVT_ACTIVATE,
960 wxEVT_CREATE,
961 wxEVT_DESTROY,
962 wxEVT_SHOW,
963 wxEVT_ICONIZE,
964 wxEVT_MAXIMIZE,
965 wxEVT_MOUSE_CAPTURE_CHANGED,
966 wxEVT_PAINT,
967 wxEVT_ERASE_BACKGROUND,
968 wxEVT_NC_PAINT,
969 wxEVT_PAINT_ICON,
970 wxEVT_MENU_CHAR,
971 wxEVT_MENU_INIT,
972 wxEVT_MENU_HIGHLIGHT,
973 wxEVT_POPUP_MENU_INIT,
974 wxEVT_SYS_COLOUR_CHANGED,
975 wxEVT_SETTING_CHANGED,
976 wxEVT_QUERY_NEW_PALETTE,
977 wxEVT_PALETTE_CHANGED,
978 wxEVT_JOY_BUTTON_DOWN,
979 wxEVT_JOY_BUTTON_UP,
980 wxEVT_JOY_MOVE,
981 wxEVT_JOY_ZMOVE,
982 wxEVT_DROP_FILES,
983 wxEVT_DRAW_ITEM,
984 wxEVT_MEASURE_ITEM,
985 wxEVT_COMPARE_ITEM,
986 wxEVT_INIT_DIALOG,
987 wxEVT_IDLE,
988 wxEVT_UPDATE_UI,
989
990
991 /* Generic command events */
992 // Note: a click is a higher-level event
993 // than button down/up
994 wxEVT_COMMAND_LEFT_CLICK,
995 wxEVT_COMMAND_LEFT_DCLICK,
996 wxEVT_COMMAND_RIGHT_CLICK,
997 wxEVT_COMMAND_RIGHT_DCLICK,
998 wxEVT_COMMAND_SET_FOCUS,
999 wxEVT_COMMAND_KILL_FOCUS,
1000 wxEVT_COMMAND_ENTER,
1001
1002 wxEVT_NAVIGATION_KEY,
1003
1004 wxEVT_TIMER,
1005
1006 };
1007
1008
1009
1010
1011 //----------------------------------------------------------------------