1 /////////////////////////////////////////////////////////////////////////////
3 // Purpose: Definitions and stuff
9 // Copyright: (c) 1998 by Total Control Software
10 // Licence: wxWindows license
11 /////////////////////////////////////////////////////////////////////////////
15 //---------------------------------------------------------------------------
16 // Forward declares...
40 class wxActivateEvent;
41 class wxInitDialogEvent;
45 class wxMaximizeEvent;
46 class wxJoystickEvent;
47 class wxDropFilesEvent;
49 class wxUpdateUIEvent;
50 class wxSysColourChangedEvent;
71 class wxMDIParentFrame;
72 class wxMDIChildFrame;
73 class wxMDIClientWindow;
93 class wxIndividualLayoutConstraint;
94 class wxLayoutConstraints;
98 //---------------------------------------------------------------------------
100 // some definitions for SWIG only
101 typedef unsigned char byte;
102 typedef short int WXTYPE;
103 typedef int wxWindowID;
104 typedef unsigned int uint;
105 typedef signed int EBool;
108 //---------------------------------------------------------------------------
110 // General numeric #define's and etc. Making them all enums makes SWIG use the
111 // real macro when making the Python Int
129 wxTRANSPARENT_WINDOW,
133 //wxOVERRIDE_KEY_TRANSLATIONS,
147 wxTINY_CAPTION_HORIZ,
153 wxDEFAULT_FRAME_STYLE,
154 wxDEFAULT_DIALOG_STYLE,
221 wxLC_SORT_DESCENDING,
263 wxSIZE_ALLOW_MINUS_ONE,
288 wxID_HELP_PROCEDURES,
310 wxBITMAP_TYPE_BMP_RESOURCE,
312 wxBITMAP_TYPE_ICO_RESOURCE,
314 wxBITMAP_TYPE_CUR_RESOURCE,
316 wxBITMAP_TYPE_XBM_DATA,
318 wxBITMAP_TYPE_XPM_DATA,
320 wxBITMAP_TYPE_TIF_RESOURCE,
322 wxBITMAP_TYPE_GIF_RESOURCE,
324 wxBITMAP_TYPE_PNG_RESOURCE,
326 wxBITMAP_TYPE_RESOURCE,
340 /// Standard error codes
389 wxXOR, // src XOR dst
391 wxOR_REVERSE, // src OR (NOT dst)
392 wxAND_REVERSE,// src AND (NOT dst)
394 wxAND, // src AND dst
395 wxAND_INVERT, // (NOT src) AND dst
397 wxNOR, // (NOT src) AND (NOT dst)
398 wxEQUIV, // (NOT src) XOR dst
399 wxSRC_INVERT, // (NOT src)
400 wxOR_INVERT, // (NOT src) OR dst
401 wxNAND, // (NOT src) OR (NOT dst)
404 wxSRC_OR, // source _bitmap_ OR destination
405 wxSRC_AND // source _bitmap_ AND destination
408 enum _Virtual_keycodes {
427 WXK_PRIOR, // Page up
428 WXK_NEXT, // Page down
495 wxCURSOR_LEFT_BUTTON,
497 wxCURSOR_MIDDLE_BUTTON,
499 wxCURSOR_PAINT_BRUSH,
502 wxCURSOR_POINT_RIGHT,
503 wxCURSOR_QUESTION_ARROW,
504 wxCURSOR_RIGHT_BUTTON,
515 // /* Not yet implemented for Windows */
516 // , wxCURSOR_CROSS_REVERSE,
517 // wxCURSOR_DOUBLE_ARROW,
518 // wxCURSOR_BASED_ARROW_UP,
519 // wxCURSOR_BASED_ARROW_DOWN
521 } _standard_cursors_t;
530 //---------------------------------------------------------------------------
531 //---------------------------------------------------------------------------
542 wxEVT_COMMAND_BUTTON_CLICKED,
543 wxEVT_COMMAND_CHECKBOX_CLICKED,
544 wxEVT_COMMAND_CHOICE_SELECTED,
545 wxEVT_COMMAND_LISTBOX_SELECTED,
546 wxEVT_COMMAND_LISTBOX_DOUBLECLICKED,
547 wxEVT_COMMAND_CHECKLISTBOX_TOGGLED,
548 wxEVT_COMMAND_TEXT_UPDATED,
549 wxEVT_COMMAND_TEXT_ENTER,
550 wxEVT_COMMAND_MENU_SELECTED,
551 wxEVT_COMMAND_SLIDER_UPDATED,
552 wxEVT_COMMAND_RADIOBOX_SELECTED,
553 wxEVT_COMMAND_RADIOBUTTON_SELECTED,
554 // wxEVT_COMMAND_SCROLLBAR_UPDATED is now obsolete since we use wxEVT_SCROLL... events
555 wxEVT_COMMAND_SCROLLBAR_UPDATED,
556 wxEVT_COMMAND_VLBOX_SELECTED,
557 wxEVT_COMMAND_COMBOBOX_SELECTED,
558 wxEVT_COMMAND_TOOL_CLICKED,
559 wxEVT_COMMAND_TOOL_RCLICKED,
560 wxEVT_COMMAND_TOOL_ENTER,
564 /* Mouse event types */
578 // Non-client mouse events
579 wxEVT_NC_LEFT_DOWN = wxEVT_FIRST + 100,
581 wxEVT_NC_MIDDLE_DOWN,
586 wxEVT_NC_ENTER_WINDOW,
587 wxEVT_NC_LEAVE_WINDOW,
588 wxEVT_NC_LEFT_DCLICK,
589 wxEVT_NC_MIDDLE_DCLICK,
590 wxEVT_NC_RIGHT_DCLICK,
592 /* Character input event type */
596 * Scrollbar event identifiers
601 wxEVT_SCROLL_LINEDOWN,
603 wxEVT_SCROLL_PAGEDOWN,
604 wxEVT_SCROLL_THUMBTRACK,
606 wxEVT_SIZE = wxEVT_FIRST + 200,
610 wxEVT_QUERY_END_SESSION,
621 wxEVT_MOUSE_CAPTURE_CHANGED,
623 wxEVT_ERASE_BACKGROUND,
628 wxEVT_MENU_HIGHLIGHT,
629 wxEVT_POPUP_MENU_INIT,
631 wxEVT_SYS_COLOUR_CHANGED,
632 wxEVT_SETTING_CHANGED,
633 wxEVT_QUERY_NEW_PALETTE,
634 wxEVT_PALETTE_CHANGED,
635 wxEVT_JOY_BUTTON_DOWN,
647 /* Generic command events */
648 // Note: a click is a higher-level event
649 // than button down/up
650 wxEVT_COMMAND_LEFT_CLICK,
651 wxEVT_COMMAND_LEFT_DCLICK,
652 wxEVT_COMMAND_RIGHT_CLICK,
653 wxEVT_COMMAND_RIGHT_DCLICK,
654 wxEVT_COMMAND_SET_FOCUS,
655 wxEVT_COMMAND_KILL_FOCUS,
658 /* Tree control event types */
659 wxEVT_COMMAND_TREE_BEGIN_DRAG,
660 wxEVT_COMMAND_TREE_BEGIN_RDRAG,
661 wxEVT_COMMAND_TREE_BEGIN_LABEL_EDIT,
662 wxEVT_COMMAND_TREE_END_LABEL_EDIT,
663 wxEVT_COMMAND_TREE_DELETE_ITEM,
664 wxEVT_COMMAND_TREE_GET_INFO,
665 wxEVT_COMMAND_TREE_SET_INFO,
666 wxEVT_COMMAND_TREE_ITEM_EXPANDED,
667 wxEVT_COMMAND_TREE_ITEM_EXPANDING,
668 wxEVT_COMMAND_TREE_ITEM_COLLAPSED,
669 wxEVT_COMMAND_TREE_ITEM_COLLAPSING,
670 wxEVT_COMMAND_TREE_SEL_CHANGED,
671 wxEVT_COMMAND_TREE_SEL_CHANGING,
672 wxEVT_COMMAND_TREE_KEY_DOWN,
674 /* List control event types */
675 wxEVT_COMMAND_LIST_BEGIN_DRAG,
676 wxEVT_COMMAND_LIST_BEGIN_RDRAG,
677 wxEVT_COMMAND_LIST_BEGIN_LABEL_EDIT,
678 wxEVT_COMMAND_LIST_END_LABEL_EDIT,
679 wxEVT_COMMAND_LIST_DELETE_ITEM,
680 wxEVT_COMMAND_LIST_DELETE_ALL_ITEMS,
681 wxEVT_COMMAND_LIST_GET_INFO,
682 wxEVT_COMMAND_LIST_SET_INFO,
683 wxEVT_COMMAND_LIST_ITEM_SELECTED,
684 wxEVT_COMMAND_LIST_ITEM_DESELECTED,
685 wxEVT_COMMAND_LIST_KEY_DOWN,
686 wxEVT_COMMAND_LIST_INSERT_ITEM,
687 wxEVT_COMMAND_LIST_COL_CLICK,
689 /* Tab and notebook control event types */
690 wxEVT_COMMAND_TAB_SEL_CHANGED,
691 wxEVT_COMMAND_TAB_SEL_CHANGING,
692 wxEVT_COMMAND_NOTEBOOK_PAGE_CHANGED,
693 wxEVT_COMMAND_NOTEBOOK_PAGE_CHANGING
699 /////////////////////////////////////////////////////////////////////////////
702 // Revision 1.8 1998/11/15 23:03:42 RD
703 // Removing some ifdef's for wxGTK
705 // Revision 1.7 1998/11/11 03:12:24 RD
707 // Additions for wxTreeCtrl
709 // Revision 1.6 1998/10/20 06:43:53 RD
710 // New wxTreeCtrl wrappers (untested)
711 // some changes in helpers
714 // Revision 1.5 1998/10/02 06:40:32 RD
716 // Version 0.4 of wxPython for MSW.
718 // Revision 1.4 1998/08/18 19:48:11 RD
719 // more wxGTK compatibility things.
721 // It builds now but there are serious runtime problems...
723 // Revision 1.3 1998/08/14 23:36:33 RD
724 // Beginings of wxGTK compatibility
726 // Revision 1.2 1998/08/14 03:16:35 RD
727 // removed some definitions that got removed from defs.h
729 // Revision 1.1 1998/08/09 08:25:49 RD