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,
225 wxLC_SORT_DESCENDING,
267 wxSIZE_ALLOW_MINUS_ONE,
294 wxID_HELP_PROCEDURES,
316 wxBITMAP_TYPE_BMP_RESOURCE,
318 wxBITMAP_TYPE_ICO_RESOURCE,
320 wxBITMAP_TYPE_CUR_RESOURCE,
322 wxBITMAP_TYPE_XBM_DATA,
324 wxBITMAP_TYPE_XPM_DATA,
326 wxBITMAP_TYPE_TIF_RESOURCE,
328 wxBITMAP_TYPE_GIF_RESOURCE,
330 wxBITMAP_TYPE_PNG_RESOURCE,
332 wxBITMAP_TYPE_RESOURCE,
345 /// Standard error codes
394 wxXOR, // src XOR dst
396 wxOR_REVERSE, // src OR (NOT dst)
397 wxAND_REVERSE,// src AND (NOT dst)
399 wxAND, // src AND dst
400 wxAND_INVERT, // (NOT src) AND dst
402 wxNOR, // (NOT src) AND (NOT dst)
403 wxEQUIV, // (NOT src) XOR dst
404 wxSRC_INVERT, // (NOT src)
405 wxOR_INVERT, // (NOT src) OR dst
406 wxNAND, // (NOT src) OR (NOT dst)
409 wxSRC_OR, // source _bitmap_ OR destination
410 wxSRC_AND // source _bitmap_ AND destination
413 enum _Virtual_keycodes {
432 WXK_PRIOR, // Page up
433 WXK_NEXT, // Page down
500 wxCURSOR_LEFT_BUTTON,
502 wxCURSOR_MIDDLE_BUTTON,
504 wxCURSOR_PAINT_BRUSH,
507 wxCURSOR_POINT_RIGHT,
508 wxCURSOR_QUESTION_ARROW,
509 wxCURSOR_RIGHT_BUTTON,
520 // /* Not yet implemented for Windows */
521 // , wxCURSOR_CROSS_REVERSE,
522 // wxCURSOR_DOUBLE_ARROW,
523 // wxCURSOR_BASED_ARROW_UP,
524 // wxCURSOR_BASED_ARROW_DOWN
526 } _standard_cursors_t;
535 //---------------------------------------------------------------------------
536 //---------------------------------------------------------------------------
547 wxEVT_COMMAND_BUTTON_CLICKED,
548 wxEVT_COMMAND_CHECKBOX_CLICKED,
549 wxEVT_COMMAND_CHOICE_SELECTED,
550 wxEVT_COMMAND_LISTBOX_SELECTED,
551 wxEVT_COMMAND_LISTBOX_DOUBLECLICKED,
552 wxEVT_COMMAND_CHECKLISTBOX_TOGGLED,
553 wxEVT_COMMAND_TEXT_UPDATED,
554 wxEVT_COMMAND_TEXT_ENTER,
555 wxEVT_COMMAND_MENU_SELECTED,
556 wxEVT_COMMAND_SLIDER_UPDATED,
557 wxEVT_COMMAND_RADIOBOX_SELECTED,
558 wxEVT_COMMAND_RADIOBUTTON_SELECTED,
559 // wxEVT_COMMAND_SCROLLBAR_UPDATED is now obsolete since we use wxEVT_SCROLL... events
560 wxEVT_COMMAND_SCROLLBAR_UPDATED,
561 wxEVT_COMMAND_VLBOX_SELECTED,
562 wxEVT_COMMAND_COMBOBOX_SELECTED,
563 wxEVT_COMMAND_TOOL_CLICKED,
564 wxEVT_COMMAND_TOOL_RCLICKED,
565 wxEVT_COMMAND_TOOL_ENTER,
569 /* Mouse event types */
583 // Non-client mouse events
584 wxEVT_NC_LEFT_DOWN = wxEVT_FIRST + 100,
586 wxEVT_NC_MIDDLE_DOWN,
591 wxEVT_NC_ENTER_WINDOW,
592 wxEVT_NC_LEAVE_WINDOW,
593 wxEVT_NC_LEFT_DCLICK,
594 wxEVT_NC_MIDDLE_DCLICK,
595 wxEVT_NC_RIGHT_DCLICK,
597 /* Character input event type */
601 * Scrollbar event identifiers
606 wxEVT_SCROLL_LINEDOWN,
608 wxEVT_SCROLL_PAGEDOWN,
609 wxEVT_SCROLL_THUMBTRACK,
611 wxEVT_SIZE = wxEVT_FIRST + 200,
615 wxEVT_QUERY_END_SESSION,
626 wxEVT_MOUSE_CAPTURE_CHANGED,
628 wxEVT_ERASE_BACKGROUND,
633 wxEVT_MENU_HIGHLIGHT,
634 wxEVT_POPUP_MENU_INIT,
636 wxEVT_SYS_COLOUR_CHANGED,
637 wxEVT_SETTING_CHANGED,
638 wxEVT_QUERY_NEW_PALETTE,
639 wxEVT_PALETTE_CHANGED,
640 wxEVT_JOY_BUTTON_DOWN,
652 /* Generic command events */
653 // Note: a click is a higher-level event
654 // than button down/up
655 wxEVT_COMMAND_LEFT_CLICK,
656 wxEVT_COMMAND_LEFT_DCLICK,
657 wxEVT_COMMAND_RIGHT_CLICK,
658 wxEVT_COMMAND_RIGHT_DCLICK,
659 wxEVT_COMMAND_SET_FOCUS,
660 wxEVT_COMMAND_KILL_FOCUS,
663 /* Tree control event types */
664 wxEVT_COMMAND_TREE_BEGIN_DRAG,
665 wxEVT_COMMAND_TREE_BEGIN_RDRAG,
666 wxEVT_COMMAND_TREE_BEGIN_LABEL_EDIT,
667 wxEVT_COMMAND_TREE_END_LABEL_EDIT,
668 wxEVT_COMMAND_TREE_DELETE_ITEM,
669 wxEVT_COMMAND_TREE_GET_INFO,
670 wxEVT_COMMAND_TREE_SET_INFO,
671 wxEVT_COMMAND_TREE_ITEM_EXPANDED,
672 wxEVT_COMMAND_TREE_ITEM_EXPANDING,
673 wxEVT_COMMAND_TREE_ITEM_COLLAPSED,
674 wxEVT_COMMAND_TREE_ITEM_COLLAPSING,
675 wxEVT_COMMAND_TREE_SEL_CHANGED,
676 wxEVT_COMMAND_TREE_SEL_CHANGING,
677 wxEVT_COMMAND_TREE_KEY_DOWN,
679 /* List control event types */
680 wxEVT_COMMAND_LIST_BEGIN_DRAG,
681 wxEVT_COMMAND_LIST_BEGIN_RDRAG,
682 wxEVT_COMMAND_LIST_BEGIN_LABEL_EDIT,
683 wxEVT_COMMAND_LIST_END_LABEL_EDIT,
684 wxEVT_COMMAND_LIST_DELETE_ITEM,
685 wxEVT_COMMAND_LIST_DELETE_ALL_ITEMS,
686 wxEVT_COMMAND_LIST_GET_INFO,
687 wxEVT_COMMAND_LIST_SET_INFO,
688 wxEVT_COMMAND_LIST_ITEM_SELECTED,
689 wxEVT_COMMAND_LIST_ITEM_DESELECTED,
690 wxEVT_COMMAND_LIST_KEY_DOWN,
691 wxEVT_COMMAND_LIST_INSERT_ITEM,
692 wxEVT_COMMAND_LIST_COL_CLICK,
694 /* Tab and notebook control event types */
695 wxEVT_COMMAND_TAB_SEL_CHANGED,
696 wxEVT_COMMAND_TAB_SEL_CHANGING,
697 wxEVT_COMMAND_NOTEBOOK_PAGE_CHANGED,
698 wxEVT_COMMAND_NOTEBOOK_PAGE_CHANGING
705 /////////////////////////////////////////////////////////////////////////////
708 // Revision 1.10 1999/01/30 07:30:08 RD
709 // Added wxSashWindow, wxSashEvent, wxLayoutAlgorithm, etc.
711 // Various cleanup, tweaks, minor additions, etc. to maintain
712 // compatibility with the current wxWindows.
714 // Revision 1.9 1998/12/15 20:41:13 RD
715 // Changed the import semantics from "from wxPython import *" to "from
716 // wxPython.wx import *" This is for people who are worried about
717 // namespace pollution, they can use "from wxPython import wx" and then
718 // prefix all the wxPython identifiers with "wx."
720 // Added wxTaskbarIcon for wxMSW.
722 // Made the events work for wxGrid.
726 // Added wxMiniFrame for wxGTK, (untested.)
728 // Changed many of the args and return values that were pointers to gdi
729 // objects to references to reflect changes in the wxWindows API.
731 // Other assorted fixes and additions.
733 // Revision 1.8 1998/11/15 23:03:42 RD
734 // Removing some ifdef's for wxGTK
736 // Revision 1.7 1998/11/11 03:12:24 RD
738 // Additions for wxTreeCtrl
740 // Revision 1.6 1998/10/20 06:43:53 RD
741 // New wxTreeCtrl wrappers (untested)
742 // some changes in helpers
745 // Revision 1.5 1998/10/02 06:40:32 RD
747 // Version 0.4 of wxPython for MSW.
749 // Revision 1.4 1998/08/18 19:48:11 RD
750 // more wxGTK compatibility things.
752 // It builds now but there are serious runtime problems...
754 // Revision 1.3 1998/08/14 23:36:33 RD
755 // Beginings of wxGTK compatibility
757 // Revision 1.2 1998/08/14 03:16:35 RD
758 // removed some definitions that got removed from defs.h
760 // Revision 1.1 1998/08/09 08:25:49 RD