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;
96 //---------------------------------------------------------------------------
98 // some definitions for SWIG only
99 typedef unsigned char byte;
100 typedef short int WXTYPE;
101 typedef int wxWindowID;
102 typedef unsigned int uint;
103 typedef signed int EBool;
106 //---------------------------------------------------------------------------
108 // General numeric #define's and etc. Making them all enums makes SWIG use the
109 // real macro when making the Python Int
128 wxTRANSPARENT_WINDOW,
132 //wxOVERRIDE_KEY_TRANSLATIONS,
146 wxTINY_CAPTION_HORIZ,
152 wxDEFAULT_FRAME_STYLE,
153 wxDEFAULT_DIALOG_STYLE,
218 wxLC_SORT_DESCENDING,
260 wxSIZE_ALLOW_MINUS_ONE,
285 wxID_HELP_PROCEDURES,
307 wxBITMAP_TYPE_BMP_RESOURCE,
309 wxBITMAP_TYPE_ICO_RESOURCE,
311 wxBITMAP_TYPE_CUR_RESOURCE,
313 wxBITMAP_TYPE_XBM_DATA,
315 wxBITMAP_TYPE_XPM_DATA,
317 wxBITMAP_TYPE_TIF_RESOURCE,
319 wxBITMAP_TYPE_GIF_RESOURCE,
321 wxBITMAP_TYPE_PNG_RESOURCE,
323 wxBITMAP_TYPE_RESOURCE,
337 /// Standard error codes
386 wxXOR, // src XOR dst
388 wxOR_REVERSE, // src OR (NOT dst)
389 wxAND_REVERSE,// src AND (NOT dst)
391 wxAND, // src AND dst
392 wxAND_INVERT, // (NOT src) AND dst
394 wxNOR, // (NOT src) AND (NOT dst)
395 wxEQUIV, // (NOT src) XOR dst
396 wxSRC_INVERT, // (NOT src)
397 wxOR_INVERT, // (NOT src) OR dst
398 wxNAND, // (NOT src) OR (NOT dst)
401 wxSRC_OR, // source _bitmap_ OR destination
402 wxSRC_AND // source _bitmap_ AND destination
405 enum _Virtual_keycodes {
424 WXK_PRIOR, // Page up
425 WXK_NEXT, // Page down
491 wxCURSOR_LEFT_BUTTON,
493 wxCURSOR_MIDDLE_BUTTON,
495 wxCURSOR_PAINT_BRUSH,
498 wxCURSOR_POINT_RIGHT,
499 wxCURSOR_QUESTION_ARROW,
500 wxCURSOR_RIGHT_BUTTON,
511 // /* Not yet implemented for Windows */
512 // , wxCURSOR_CROSS_REVERSE,
513 // wxCURSOR_DOUBLE_ARROW,
514 // wxCURSOR_BASED_ARROW_UP,
515 // wxCURSOR_BASED_ARROW_DOWN
517 } _standard_cursors_t;
526 //---------------------------------------------------------------------------
527 //---------------------------------------------------------------------------
538 wxEVT_COMMAND_BUTTON_CLICKED,
539 wxEVT_COMMAND_CHECKBOX_CLICKED,
540 wxEVT_COMMAND_CHOICE_SELECTED,
541 wxEVT_COMMAND_LISTBOX_SELECTED,
542 wxEVT_COMMAND_LISTBOX_DOUBLECLICKED,
543 wxEVT_COMMAND_CHECKLISTBOX_TOGGLED,
544 wxEVT_COMMAND_TEXT_UPDATED,
545 wxEVT_COMMAND_TEXT_ENTER,
546 wxEVT_COMMAND_MENU_SELECTED,
547 wxEVT_COMMAND_SLIDER_UPDATED,
548 wxEVT_COMMAND_RADIOBOX_SELECTED,
549 wxEVT_COMMAND_RADIOBUTTON_SELECTED,
550 // wxEVT_COMMAND_SCROLLBAR_UPDATED is now obsolete since we use wxEVT_SCROLL... events
551 wxEVT_COMMAND_SCROLLBAR_UPDATED,
552 wxEVT_COMMAND_VLBOX_SELECTED,
553 wxEVT_COMMAND_COMBOBOX_SELECTED,
554 wxEVT_COMMAND_TOOL_CLICKED,
555 wxEVT_COMMAND_TOOL_RCLICKED,
556 wxEVT_COMMAND_TOOL_ENTER,
560 /* Mouse event types */
574 // Non-client mouse events
575 wxEVT_NC_LEFT_DOWN = wxEVT_FIRST + 100,
577 wxEVT_NC_MIDDLE_DOWN,
582 wxEVT_NC_ENTER_WINDOW,
583 wxEVT_NC_LEAVE_WINDOW,
584 wxEVT_NC_LEFT_DCLICK,
585 wxEVT_NC_MIDDLE_DCLICK,
586 wxEVT_NC_RIGHT_DCLICK,
588 /* Character input event type */
592 * Scrollbar event identifiers
597 wxEVT_SCROLL_LINEDOWN,
599 wxEVT_SCROLL_PAGEDOWN,
600 wxEVT_SCROLL_THUMBTRACK,
602 wxEVT_SIZE = wxEVT_FIRST + 200,
606 wxEVT_QUERY_END_SESSION,
617 wxEVT_MOUSE_CAPTURE_CHANGED,
619 wxEVT_ERASE_BACKGROUND,
624 wxEVT_MENU_HIGHLIGHT,
625 wxEVT_POPUP_MENU_INIT,
627 wxEVT_SYS_COLOUR_CHANGED,
628 wxEVT_SETTING_CHANGED,
629 wxEVT_QUERY_NEW_PALETTE,
630 wxEVT_PALETTE_CHANGED,
631 wxEVT_JOY_BUTTON_DOWN,
643 /* Generic command events */
644 // Note: a click is a higher-level event
645 // than button down/up
646 wxEVT_COMMAND_LEFT_CLICK,
647 wxEVT_COMMAND_LEFT_DCLICK,
648 wxEVT_COMMAND_RIGHT_CLICK,
649 wxEVT_COMMAND_RIGHT_DCLICK,
650 wxEVT_COMMAND_SET_FOCUS,
651 wxEVT_COMMAND_KILL_FOCUS,
654 /* Tree control event types */
655 wxEVT_COMMAND_TREE_BEGIN_DRAG,
656 wxEVT_COMMAND_TREE_BEGIN_RDRAG,
657 wxEVT_COMMAND_TREE_BEGIN_LABEL_EDIT,
658 wxEVT_COMMAND_TREE_END_LABEL_EDIT,
659 wxEVT_COMMAND_TREE_DELETE_ITEM,
660 wxEVT_COMMAND_TREE_GET_INFO,
661 wxEVT_COMMAND_TREE_SET_INFO,
662 wxEVT_COMMAND_TREE_ITEM_EXPANDED,
663 wxEVT_COMMAND_TREE_ITEM_EXPANDING,
664 wxEVT_COMMAND_TREE_SEL_CHANGED,
665 wxEVT_COMMAND_TREE_SEL_CHANGING,
666 wxEVT_COMMAND_TREE_KEY_DOWN,
668 /* List control event types */
669 wxEVT_COMMAND_LIST_BEGIN_DRAG,
670 wxEVT_COMMAND_LIST_BEGIN_RDRAG,
671 wxEVT_COMMAND_LIST_BEGIN_LABEL_EDIT,
672 wxEVT_COMMAND_LIST_END_LABEL_EDIT,
673 wxEVT_COMMAND_LIST_DELETE_ITEM,
674 wxEVT_COMMAND_LIST_DELETE_ALL_ITEMS,
675 wxEVT_COMMAND_LIST_GET_INFO,
676 wxEVT_COMMAND_LIST_SET_INFO,
677 wxEVT_COMMAND_LIST_ITEM_SELECTED,
678 wxEVT_COMMAND_LIST_ITEM_DESELECTED,
679 wxEVT_COMMAND_LIST_KEY_DOWN,
680 wxEVT_COMMAND_LIST_INSERT_ITEM,
681 wxEVT_COMMAND_LIST_COL_CLICK,
683 /* Tab and notebook control event types */
684 wxEVT_COMMAND_TAB_SEL_CHANGED,
685 wxEVT_COMMAND_TAB_SEL_CHANGING,
686 wxEVT_COMMAND_NOTEBOOK_PAGE_CHANGED,
687 wxEVT_COMMAND_NOTEBOOK_PAGE_CHANGING
693 /////////////////////////////////////////////////////////////////////////////
696 // Revision 1.2 1998/08/14 03:16:35 RD
697 // removed some definitions that got removed from defs.h
699 // Revision 1.1 1998/08/09 08:25:49 RD