1 /////////////////////////////////////////////////////////////////////////////
3 // Purpose: Definitions and stuff
9 // Copyright: (c) 1998 by Total Control Software
10 // Licence: wxWindows license
11 /////////////////////////////////////////////////////////////////////////////
15 //---------------------------------------------------------------------------
16 // Forward declares...
18 class wxAcceleratorEntry;
19 class wxAcceleratorTable;
20 class wxActivateEvent;
25 class wxCalculateLayoutEvent;
42 class wxDropFilesEvent;
60 class wxIndividualLayoutConstraint;
61 class wxInitDialogEvent;
62 class wxJoystickEvent;
64 class wxLayoutAlgorithm;
65 class wxLayoutConstraints;
70 class wxMDIChildFrame;
71 class wxMDIClientWindow;
72 class wxMDIParentFrame;
74 class wxMaximizeEvent;
80 class wxMessageDialog;
85 class wxNotebookEvent;
87 class wxPageSetupData;
88 class wxPageSetupDialog;
99 class wxQueryLayoutInfoEvent;
104 class wxRegionIterator;
107 class wxSashLayoutWindow;
112 class wxScrolledWindow;
114 class wxSingleChoiceDialog;
120 class wxSplitterWindow;
121 class wxStaticBitmap;
125 class wxSysColourChangedEvent;
128 class wxTextEntryDialog;
135 class wxTreeItemData;
137 class wxUpdateUIEvent;
146 //---------------------------------------------------------------------------
148 // some definitions for SWIG only
149 typedef unsigned char byte;
150 typedef short int WXTYPE;
151 typedef int wxWindowID;
152 typedef unsigned int uint;
153 typedef signed int EBool;
156 //---------------------------------------------------------------------------
158 // General numeric #define's and etc. Making them all enums makes SWIG use the
159 // real macro when making the Python Int
177 wxTRANSPARENT_WINDOW,
181 //wxOVERRIDE_KEY_TRANSLATIONS,
195 wxTINY_CAPTION_HORIZ,
201 wxDEFAULT_FRAME_STYLE,
202 wxDEFAULT_DIALOG_STYLE,
273 wxLC_SORT_DESCENDING,
315 wxSIZE_ALLOW_MINUS_ONE,
342 wxID_HELP_PROCEDURES,
364 wxBITMAP_TYPE_BMP_RESOURCE,
366 wxBITMAP_TYPE_ICO_RESOURCE,
368 wxBITMAP_TYPE_CUR_RESOURCE,
370 wxBITMAP_TYPE_XBM_DATA,
372 wxBITMAP_TYPE_XPM_DATA,
374 wxBITMAP_TYPE_TIF_RESOURCE,
376 wxBITMAP_TYPE_GIF_RESOURCE,
378 wxBITMAP_TYPE_PNG_RESOURCE,
380 wxBITMAP_TYPE_RESOURCE,
393 /// Standard error codes
442 wxXOR, // src XOR dst
444 wxOR_REVERSE, // src OR (NOT dst)
445 wxAND_REVERSE,// src AND (NOT dst)
447 wxAND, // src AND dst
448 wxAND_INVERT, // (NOT src) AND 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)
457 wxSRC_OR, // source _bitmap_ OR destination
458 wxSRC_AND // source _bitmap_ AND destination
461 enum _Virtual_keycodes {
480 WXK_PRIOR, // Page up
481 WXK_NEXT, // Page down
548 wxCURSOR_LEFT_BUTTON,
550 wxCURSOR_MIDDLE_BUTTON,
552 wxCURSOR_PAINT_BRUSH,
555 wxCURSOR_POINT_RIGHT,
556 wxCURSOR_QUESTION_ARROW,
557 wxCURSOR_RIGHT_BUTTON,
568 // /* Not yet implemented for Windows */
569 // , wxCURSOR_CROSS_REVERSE,
570 // wxCURSOR_DOUBLE_ARROW,
571 // wxCURSOR_BASED_ARROW_UP,
572 // wxCURSOR_BASED_ARROW_DOWN
574 } _standard_cursors_t;
582 const char* wxVERSION_STRING;
584 //---------------------------------------------------------------------------
585 //---------------------------------------------------------------------------
596 wxEVT_COMMAND_BUTTON_CLICKED,
597 wxEVT_COMMAND_CHECKBOX_CLICKED,
598 wxEVT_COMMAND_CHOICE_SELECTED,
599 wxEVT_COMMAND_LISTBOX_SELECTED,
600 wxEVT_COMMAND_LISTBOX_DOUBLECLICKED,
601 wxEVT_COMMAND_CHECKLISTBOX_TOGGLED,
602 wxEVT_COMMAND_TEXT_UPDATED,
603 wxEVT_COMMAND_TEXT_ENTER,
604 wxEVT_COMMAND_MENU_SELECTED,
605 wxEVT_COMMAND_SLIDER_UPDATED,
606 wxEVT_COMMAND_RADIOBOX_SELECTED,
607 wxEVT_COMMAND_RADIOBUTTON_SELECTED,
608 // wxEVT_COMMAND_SCROLLBAR_UPDATED is now obsolete since we use wxEVT_SCROLL... events
609 wxEVT_COMMAND_SCROLLBAR_UPDATED,
610 wxEVT_COMMAND_VLBOX_SELECTED,
611 wxEVT_COMMAND_COMBOBOX_SELECTED,
612 wxEVT_COMMAND_TOOL_CLICKED,
613 wxEVT_COMMAND_TOOL_RCLICKED,
614 wxEVT_COMMAND_TOOL_ENTER,
618 /* Mouse event types */
632 // Non-client mouse events
633 wxEVT_NC_LEFT_DOWN = wxEVT_FIRST + 100,
635 wxEVT_NC_MIDDLE_DOWN,
640 wxEVT_NC_ENTER_WINDOW,
641 wxEVT_NC_LEAVE_WINDOW,
642 wxEVT_NC_LEFT_DCLICK,
643 wxEVT_NC_MIDDLE_DCLICK,
644 wxEVT_NC_RIGHT_DCLICK,
646 /* Character input event type */
650 * Scrollbar event identifiers
655 wxEVT_SCROLL_LINEDOWN,
657 wxEVT_SCROLL_PAGEDOWN,
658 wxEVT_SCROLL_THUMBTRACK,
660 wxEVT_SIZE = wxEVT_FIRST + 200,
664 wxEVT_QUERY_END_SESSION,
675 wxEVT_MOUSE_CAPTURE_CHANGED,
677 wxEVT_ERASE_BACKGROUND,
682 wxEVT_MENU_HIGHLIGHT,
683 wxEVT_POPUP_MENU_INIT,
685 wxEVT_SYS_COLOUR_CHANGED,
686 wxEVT_SETTING_CHANGED,
687 wxEVT_QUERY_NEW_PALETTE,
688 wxEVT_PALETTE_CHANGED,
689 wxEVT_JOY_BUTTON_DOWN,
701 /* Generic command events */
702 // Note: a click is a higher-level event
703 // than button down/up
704 wxEVT_COMMAND_LEFT_CLICK,
705 wxEVT_COMMAND_LEFT_DCLICK,
706 wxEVT_COMMAND_RIGHT_CLICK,
707 wxEVT_COMMAND_RIGHT_DCLICK,
708 wxEVT_COMMAND_SET_FOCUS,
709 wxEVT_COMMAND_KILL_FOCUS,
712 /* Tree control event types */
713 wxEVT_COMMAND_TREE_BEGIN_DRAG,
714 wxEVT_COMMAND_TREE_BEGIN_RDRAG,
715 wxEVT_COMMAND_TREE_BEGIN_LABEL_EDIT,
716 wxEVT_COMMAND_TREE_END_LABEL_EDIT,
717 wxEVT_COMMAND_TREE_DELETE_ITEM,
718 wxEVT_COMMAND_TREE_GET_INFO,
719 wxEVT_COMMAND_TREE_SET_INFO,
720 wxEVT_COMMAND_TREE_ITEM_EXPANDED,
721 wxEVT_COMMAND_TREE_ITEM_EXPANDING,
722 wxEVT_COMMAND_TREE_ITEM_COLLAPSED,
723 wxEVT_COMMAND_TREE_ITEM_COLLAPSING,
724 wxEVT_COMMAND_TREE_SEL_CHANGED,
725 wxEVT_COMMAND_TREE_SEL_CHANGING,
726 wxEVT_COMMAND_TREE_KEY_DOWN,
728 /* List control event types */
729 wxEVT_COMMAND_LIST_BEGIN_DRAG,
730 wxEVT_COMMAND_LIST_BEGIN_RDRAG,
731 wxEVT_COMMAND_LIST_BEGIN_LABEL_EDIT,
732 wxEVT_COMMAND_LIST_END_LABEL_EDIT,
733 wxEVT_COMMAND_LIST_DELETE_ITEM,
734 wxEVT_COMMAND_LIST_DELETE_ALL_ITEMS,
735 wxEVT_COMMAND_LIST_GET_INFO,
736 wxEVT_COMMAND_LIST_SET_INFO,
737 wxEVT_COMMAND_LIST_ITEM_SELECTED,
738 wxEVT_COMMAND_LIST_ITEM_DESELECTED,
739 wxEVT_COMMAND_LIST_KEY_DOWN,
740 wxEVT_COMMAND_LIST_INSERT_ITEM,
741 wxEVT_COMMAND_LIST_COL_CLICK,
743 /* Tab and notebook control event types */
744 wxEVT_COMMAND_TAB_SEL_CHANGED,
745 wxEVT_COMMAND_TAB_SEL_CHANGING,
746 wxEVT_COMMAND_NOTEBOOK_PAGE_CHANGED,
747 wxEVT_COMMAND_NOTEBOOK_PAGE_CHANGING
754 /////////////////////////////////////////////////////////////////////////////
757 // Revision 1.11 1999/02/20 09:02:54 RD
758 // Added wxWindow_FromHWND(hWnd) for wxMSW to construct a wxWindow from a
759 // window handle. If you can get the window handle into the python code,
760 // it should just work... More news on this later.
762 // Added wxImageList, wxToolTip.
764 // Re-enabled wxConfig.DeleteAll() since it is reportedly fixed for the
765 // wxRegConfig class.
767 // As usual, some bug fixes, tweaks, etc.
769 // Revision 1.10 1999/01/30 07:30:08 RD
771 // Added wxSashWindow, wxSashEvent, wxLayoutAlgorithm, etc.
773 // Various cleanup, tweaks, minor additions, etc. to maintain
774 // compatibility with the current wxWindows.
776 // Revision 1.9 1998/12/15 20:41:13 RD
777 // Changed the import semantics from "from wxPython import *" to "from
778 // wxPython.wx import *" This is for people who are worried about
779 // namespace pollution, they can use "from wxPython import wx" and then
780 // prefix all the wxPython identifiers with "wx."
782 // Added wxTaskbarIcon for wxMSW.
784 // Made the events work for wxGrid.
788 // Added wxMiniFrame for wxGTK, (untested.)
790 // Changed many of the args and return values that were pointers to gdi
791 // objects to references to reflect changes in the wxWindows API.
793 // Other assorted fixes and additions.
795 // Revision 1.8 1998/11/15 23:03:42 RD
796 // Removing some ifdef's for wxGTK
798 // Revision 1.7 1998/11/11 03:12:24 RD
800 // Additions for wxTreeCtrl
802 // Revision 1.6 1998/10/20 06:43:53 RD
803 // New wxTreeCtrl wrappers (untested)
804 // some changes in helpers
807 // Revision 1.5 1998/10/02 06:40:32 RD
809 // Version 0.4 of wxPython for MSW.
811 // Revision 1.4 1998/08/18 19:48:11 RD
812 // more wxGTK compatibility things.
814 // It builds now but there are serious runtime problems...
816 // Revision 1.3 1998/08/14 23:36:33 RD
817 // Beginings of wxGTK compatibility
819 // Revision 1.2 1998/08/14 03:16:35 RD
820 // removed some definitions that got removed from defs.h
822 // Revision 1.1 1998/08/09 08:25:49 RD