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,
275 wxLC_SORT_DESCENDING,
317 wxSIZE_ALLOW_MINUS_ONE,
344 wxID_HELP_PROCEDURES,
366 wxBITMAP_TYPE_BMP_RESOURCE,
368 wxBITMAP_TYPE_ICO_RESOURCE,
370 wxBITMAP_TYPE_CUR_RESOURCE,
372 wxBITMAP_TYPE_XBM_DATA,
374 wxBITMAP_TYPE_XPM_DATA,
376 wxBITMAP_TYPE_TIF_RESOURCE,
378 wxBITMAP_TYPE_GIF_RESOURCE,
380 wxBITMAP_TYPE_PNG_RESOURCE,
382 wxBITMAP_TYPE_RESOURCE,
395 /// Standard error codes
444 wxXOR, // src XOR dst
446 wxOR_REVERSE, // src OR (NOT dst)
447 wxAND_REVERSE,// src AND (NOT dst)
449 wxAND, // src AND dst
450 wxAND_INVERT, // (NOT src) AND dst
452 wxNOR, // (NOT src) AND (NOT dst)
453 wxEQUIV, // (NOT src) XOR dst
454 wxSRC_INVERT, // (NOT src)
455 wxOR_INVERT, // (NOT src) OR dst
456 wxNAND, // (NOT src) OR (NOT dst)
459 wxSRC_OR, // source _bitmap_ OR destination
460 wxSRC_AND // source _bitmap_ AND destination
463 enum _Virtual_keycodes {
482 WXK_PRIOR, // Page up
483 WXK_NEXT, // Page down
550 wxCURSOR_LEFT_BUTTON,
552 wxCURSOR_MIDDLE_BUTTON,
554 wxCURSOR_PAINT_BRUSH,
557 wxCURSOR_POINT_RIGHT,
558 wxCURSOR_QUESTION_ARROW,
559 wxCURSOR_RIGHT_BUTTON,
570 // /* Not yet implemented for Windows */
571 // , wxCURSOR_CROSS_REVERSE,
572 // wxCURSOR_DOUBLE_ARROW,
573 // wxCURSOR_BASED_ARROW_UP,
574 // wxCURSOR_BASED_ARROW_DOWN
576 } _standard_cursors_t;
584 const char* wxVERSION_STRING;
586 //---------------------------------------------------------------------------
587 //---------------------------------------------------------------------------
598 wxEVT_COMMAND_BUTTON_CLICKED,
599 wxEVT_COMMAND_CHECKBOX_CLICKED,
600 wxEVT_COMMAND_CHOICE_SELECTED,
601 wxEVT_COMMAND_LISTBOX_SELECTED,
602 wxEVT_COMMAND_LISTBOX_DOUBLECLICKED,
603 wxEVT_COMMAND_CHECKLISTBOX_TOGGLED,
604 wxEVT_COMMAND_TEXT_UPDATED,
605 wxEVT_COMMAND_TEXT_ENTER,
606 wxEVT_COMMAND_MENU_SELECTED,
607 wxEVT_COMMAND_SLIDER_UPDATED,
608 wxEVT_COMMAND_RADIOBOX_SELECTED,
609 wxEVT_COMMAND_RADIOBUTTON_SELECTED,
610 // wxEVT_COMMAND_SCROLLBAR_UPDATED is now obsolete since we use wxEVT_SCROLL... events
611 wxEVT_COMMAND_SCROLLBAR_UPDATED,
612 wxEVT_COMMAND_VLBOX_SELECTED,
613 wxEVT_COMMAND_COMBOBOX_SELECTED,
614 wxEVT_COMMAND_TOOL_CLICKED,
615 wxEVT_COMMAND_TOOL_RCLICKED,
616 wxEVT_COMMAND_TOOL_ENTER,
620 /* Mouse event types */
634 // Non-client mouse events
635 wxEVT_NC_LEFT_DOWN = wxEVT_FIRST + 100,
637 wxEVT_NC_MIDDLE_DOWN,
642 wxEVT_NC_ENTER_WINDOW,
643 wxEVT_NC_LEAVE_WINDOW,
644 wxEVT_NC_LEFT_DCLICK,
645 wxEVT_NC_MIDDLE_DCLICK,
646 wxEVT_NC_RIGHT_DCLICK,
648 /* Character input event type */
652 * Scrollbar event identifiers
657 wxEVT_SCROLL_LINEDOWN,
659 wxEVT_SCROLL_PAGEDOWN,
660 wxEVT_SCROLL_THUMBTRACK,
662 wxEVT_SIZE = wxEVT_FIRST + 200,
666 wxEVT_QUERY_END_SESSION,
677 wxEVT_MOUSE_CAPTURE_CHANGED,
679 wxEVT_ERASE_BACKGROUND,
684 wxEVT_MENU_HIGHLIGHT,
685 wxEVT_POPUP_MENU_INIT,
687 wxEVT_SYS_COLOUR_CHANGED,
688 wxEVT_SETTING_CHANGED,
689 wxEVT_QUERY_NEW_PALETTE,
690 wxEVT_PALETTE_CHANGED,
691 wxEVT_JOY_BUTTON_DOWN,
703 /* Generic command events */
704 // Note: a click is a higher-level event
705 // than button down/up
706 wxEVT_COMMAND_LEFT_CLICK,
707 wxEVT_COMMAND_LEFT_DCLICK,
708 wxEVT_COMMAND_RIGHT_CLICK,
709 wxEVT_COMMAND_RIGHT_DCLICK,
710 wxEVT_COMMAND_SET_FOCUS,
711 wxEVT_COMMAND_KILL_FOCUS,
714 /* Tree control event types */
715 wxEVT_COMMAND_TREE_BEGIN_DRAG,
716 wxEVT_COMMAND_TREE_BEGIN_RDRAG,
717 wxEVT_COMMAND_TREE_BEGIN_LABEL_EDIT,
718 wxEVT_COMMAND_TREE_END_LABEL_EDIT,
719 wxEVT_COMMAND_TREE_DELETE_ITEM,
720 wxEVT_COMMAND_TREE_GET_INFO,
721 wxEVT_COMMAND_TREE_SET_INFO,
722 wxEVT_COMMAND_TREE_ITEM_EXPANDED,
723 wxEVT_COMMAND_TREE_ITEM_EXPANDING,
724 wxEVT_COMMAND_TREE_ITEM_COLLAPSED,
725 wxEVT_COMMAND_TREE_ITEM_COLLAPSING,
726 wxEVT_COMMAND_TREE_SEL_CHANGED,
727 wxEVT_COMMAND_TREE_SEL_CHANGING,
728 wxEVT_COMMAND_TREE_KEY_DOWN,
730 /* List control event types */
731 wxEVT_COMMAND_LIST_BEGIN_DRAG,
732 wxEVT_COMMAND_LIST_BEGIN_RDRAG,
733 wxEVT_COMMAND_LIST_BEGIN_LABEL_EDIT,
734 wxEVT_COMMAND_LIST_END_LABEL_EDIT,
735 wxEVT_COMMAND_LIST_DELETE_ITEM,
736 wxEVT_COMMAND_LIST_DELETE_ALL_ITEMS,
737 wxEVT_COMMAND_LIST_GET_INFO,
738 wxEVT_COMMAND_LIST_SET_INFO,
739 wxEVT_COMMAND_LIST_ITEM_SELECTED,
740 wxEVT_COMMAND_LIST_ITEM_DESELECTED,
741 wxEVT_COMMAND_LIST_KEY_DOWN,
742 wxEVT_COMMAND_LIST_INSERT_ITEM,
743 wxEVT_COMMAND_LIST_COL_CLICK,
745 /* Tab and notebook control event types */
746 wxEVT_COMMAND_TAB_SEL_CHANGED,
747 wxEVT_COMMAND_TAB_SEL_CHANGING,
748 wxEVT_COMMAND_NOTEBOOK_PAGE_CHANGED,
749 wxEVT_COMMAND_NOTEBOOK_PAGE_CHANGING
756 /////////////////////////////////////////////////////////////////////////////
759 // Revision 1.12 1999/02/27 04:21:58 RD
760 // Added missing wxRA_SPECIFY_ROWS, wxRA_SPECIFY_COLS
762 // Revision 1.11 1999/02/20 09:02:54 RD
763 // Added wxWindow_FromHWND(hWnd) for wxMSW to construct a wxWindow from a
764 // window handle. If you can get the window handle into the python code,
765 // it should just work... More news on this later.
767 // Added wxImageList, wxToolTip.
769 // Re-enabled wxConfig.DeleteAll() since it is reportedly fixed for the
770 // wxRegConfig class.
772 // As usual, some bug fixes, tweaks, etc.
774 // Revision 1.10 1999/01/30 07:30:08 RD
776 // Added wxSashWindow, wxSashEvent, wxLayoutAlgorithm, etc.
778 // Various cleanup, tweaks, minor additions, etc. to maintain
779 // compatibility with the current wxWindows.
781 // Revision 1.9 1998/12/15 20:41:13 RD
782 // Changed the import semantics from "from wxPython import *" to "from
783 // wxPython.wx import *" This is for people who are worried about
784 // namespace pollution, they can use "from wxPython import wx" and then
785 // prefix all the wxPython identifiers with "wx."
787 // Added wxTaskbarIcon for wxMSW.
789 // Made the events work for wxGrid.
793 // Added wxMiniFrame for wxGTK, (untested.)
795 // Changed many of the args and return values that were pointers to gdi
796 // objects to references to reflect changes in the wxWindows API.
798 // Other assorted fixes and additions.
800 // Revision 1.8 1998/11/15 23:03:42 RD
801 // Removing some ifdef's for wxGTK
803 // Revision 1.7 1998/11/11 03:12:24 RD
805 // Additions for wxTreeCtrl
807 // Revision 1.6 1998/10/20 06:43:53 RD
808 // New wxTreeCtrl wrappers (untested)
809 // some changes in helpers
812 // Revision 1.5 1998/10/02 06:40:32 RD
814 // Version 0.4 of wxPython for MSW.
816 // Revision 1.4 1998/08/18 19:48:11 RD
817 // more wxGTK compatibility things.
819 // It builds now but there are serious runtime problems...
821 // Revision 1.3 1998/08/14 23:36:33 RD
822 // Beginings of wxGTK compatibility
824 // Revision 1.2 1998/08/14 03:16:35 RD
825 // removed some definitions that got removed from defs.h
827 // Revision 1.1 1998/08/09 08:25:49 RD