]>
Commit | Line | Data |
---|---|---|
1 | ///////////////////////////////////////////////////////////////////////////// | |
2 | // Name: _defs.i | |
3 | // Purpose: Definitions and stuff | |
4 | // | |
5 | // Author: Robin Dunn | |
6 | // | |
7 | // Created: 6/24/97 | |
8 | // RCS-ID: $Id$ | |
9 | // Copyright: (c) 1998 by Total Control Software | |
10 | // Licence: wxWindows license | |
11 | ///////////////////////////////////////////////////////////////////////////// | |
12 | ||
13 | ||
14 | ||
15 | //--------------------------------------------------------------------------- | |
16 | // Forward declares... | |
17 | ||
18 | class wxAcceleratorEntry; | |
19 | class wxAcceleratorTable; | |
20 | class wxActivateEvent; | |
21 | class wxBitmapButton; | |
22 | class wxBitmap; | |
23 | class wxBrush; | |
24 | class wxButton; | |
25 | class wxCalculateLayoutEvent; | |
26 | class wxCheckBox; | |
27 | class wxCheckListBox; | |
28 | class wxChoice; | |
29 | class wxClientDC; | |
30 | class wxCloseEvent; | |
31 | class wxColourData; | |
32 | class wxColourDialog; | |
33 | class wxColour; | |
34 | class wxComboBox; | |
35 | class wxCommandEvent; | |
36 | class wxConfig; | |
37 | class wxControl; | |
38 | class wxCursor; | |
39 | class wxDC; | |
40 | class wxDialog; | |
41 | class wxDirDialog; | |
42 | class wxDropFilesEvent; | |
43 | class wxEraseEvent; | |
44 | class wxEvent; | |
45 | class wxEvtHandler; | |
46 | class wxFileDialog; | |
47 | class wxFocusEvent; | |
48 | class wxFontData; | |
49 | class wxFontDialog; | |
50 | class wxFont; | |
51 | class wxFrame; | |
52 | class wxGauge; | |
53 | class wxGridCell; | |
54 | class wxGridEvent; | |
55 | class wxGrid; | |
56 | class wxIconizeEvent; | |
57 | class wxIcon; | |
58 | class wxIdleEvent; | |
59 | class wxImageList; | |
60 | class wxIndividualLayoutConstraint; | |
61 | class wxInitDialogEvent; | |
62 | class wxJoystickEvent; | |
63 | class wxKeyEvent; | |
64 | class wxLayoutAlgorithm; | |
65 | class wxLayoutConstraints; | |
66 | class wxListBox; | |
67 | class wxListCtrl; | |
68 | class wxListEvent; | |
69 | class wxListItem; | |
70 | class wxMDIChildFrame; | |
71 | class wxMDIClientWindow; | |
72 | class wxMDIParentFrame; | |
73 | class wxMask; | |
74 | class wxMaximizeEvent; | |
75 | class wxMemoryDC; | |
76 | class wxMenuBar; | |
77 | class wxMenuEvent; | |
78 | class wxMenuItem; | |
79 | class wxMenu; | |
80 | class wxMessageDialog; | |
81 | class wxMetaFileDC; | |
82 | class wxMiniFrame; | |
83 | class wxMouseEvent; | |
84 | class wxMoveEvent; | |
85 | class wxNotebookEvent; | |
86 | class wxNotebook; | |
87 | class wxPageSetupData; | |
88 | class wxPageSetupDialog; | |
89 | class wxPaintDC; | |
90 | class wxPaintEvent; | |
91 | class wxPalette; | |
92 | class wxPanel; | |
93 | class wxPen; | |
94 | class wxPoint; | |
95 | class wxPostScriptDC; | |
96 | class wxPrintData; | |
97 | class wxPrintDialog; | |
98 | class wxPrinterDC; | |
99 | class wxQueryLayoutInfoEvent; | |
100 | class wxRadioBox; | |
101 | class wxRadioButton; | |
102 | class wxRealPoint; | |
103 | class wxRect; | |
104 | class wxRegionIterator; | |
105 | class wxRegion; | |
106 | class wxSashEvent; | |
107 | class wxSashLayoutWindow; | |
108 | class wxSashWindow; | |
109 | class wxScreenDC; | |
110 | class wxScrollBar; | |
111 | class wxScrollEvent; | |
112 | class wxScrolledWindow; | |
113 | class wxShowEvent; | |
114 | class wxSingleChoiceDialog; | |
115 | class wxSizeEvent; | |
116 | class wxSize; | |
117 | class wxSlider; | |
118 | class wxSpinButton; | |
119 | class wxSpinEvent; | |
120 | class wxSplitterWindow; | |
121 | class wxStaticBitmap; | |
122 | class wxStaticBox; | |
123 | class wxStaticText; | |
124 | class wxStatusBar; | |
125 | class wxSysColourChangedEvent; | |
126 | class wxTaskBarIcon; | |
127 | class wxTextCtrl; | |
128 | class wxTextEntryDialog; | |
129 | class wxTimer; | |
130 | class wxToolBarTool; | |
131 | class wxToolBar; | |
132 | class wxToolTip; | |
133 | class wxTreeCtrl; | |
134 | class wxTreeEvent; | |
135 | class wxTreeItemData; | |
136 | class wxTreeItemId; | |
137 | class wxUpdateUIEvent; | |
138 | class wxWindowDC; | |
139 | class wxWindow; | |
140 | ||
141 | class wxPyApp; | |
142 | class wxPyMenu; | |
143 | class wxPyTimer; | |
144 | ||
145 | ||
146 | //--------------------------------------------------------------------------- | |
147 | ||
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; | |
154 | typedef unsigned int size_t | |
155 | typedef int wxPrintQuality; | |
156 | ||
157 | //--------------------------------------------------------------------------- | |
158 | ||
159 | // General numeric #define's and etc. Making them all enums makes SWIG use the | |
160 | // real macro when making the Python Int | |
161 | ||
162 | enum { | |
163 | wxMAJOR_VERSION, | |
164 | wxMINOR_VERSION, | |
165 | wxRELEASE_NUMBER, | |
166 | ||
167 | wxNOT_FOUND, | |
168 | ||
169 | wxVSCROLL, | |
170 | wxHSCROLL, | |
171 | wxCAPTION, | |
172 | wxDOUBLE_BORDER, | |
173 | wxSUNKEN_BORDER, | |
174 | wxRAISED_BORDER, | |
175 | wxBORDER, | |
176 | wxSIMPLE_BORDER, | |
177 | wxSTATIC_BORDER, | |
178 | wxTRANSPARENT_WINDOW, | |
179 | wxNO_BORDER, | |
180 | wxUSER_COLOURS, | |
181 | wxNO_3D, | |
182 | //wxOVERRIDE_KEY_TRANSLATIONS, | |
183 | wxTAB_TRAVERSAL, | |
184 | wxWANTS_CHARS, | |
185 | wxHORIZONTAL, | |
186 | wxVERTICAL, | |
187 | wxBOTH, | |
188 | wxCENTER_FRAME, | |
189 | wxCENTRE_ON_SCREEN, | |
190 | wxCENTER_ON_SCREEN, | |
191 | ||
192 | wxSTAY_ON_TOP, | |
193 | wxICONIZE, | |
194 | wxMINIMIZE, | |
195 | wxMAXIMIZE, | |
196 | wxTHICK_FRAME, | |
197 | wxSYSTEM_MENU, | |
198 | wxMINIMIZE_BOX, | |
199 | wxMAXIMIZE_BOX, | |
200 | wxTINY_CAPTION_HORIZ, | |
201 | wxTINY_CAPTION_VERT, | |
202 | wxRESIZE_BOX, | |
203 | wxRESIZE_BORDER, | |
204 | wxDIALOG_MODAL, | |
205 | wxDIALOG_MODELESS, | |
206 | wxDEFAULT_FRAME_STYLE, | |
207 | wxDEFAULT_DIALOG_STYLE, | |
208 | ||
209 | wxFRAME_TOOL_WINDOW, | |
210 | wxFRAME_FLOAT_ON_PARENT, | |
211 | wxED_CLIENT_MARGIN, | |
212 | wxED_BUTTONS_BOTTOM, | |
213 | wxED_BUTTONS_RIGHT, | |
214 | wxED_STATIC_LINE, | |
215 | wxEXT_DIALOG_STYLE, | |
216 | ||
217 | wxCLIP_CHILDREN, | |
218 | ||
219 | wxRETAINED, | |
220 | wxBACKINGSTORE, | |
221 | wxTB_3DBUTTONS, | |
222 | wxTB_HORIZONTAL, | |
223 | wxTB_VERTICAL, | |
224 | wxTB_FLAT, | |
225 | wxCOLOURED, | |
226 | wxFIXED_LENGTH, | |
227 | wxALIGN_LEFT, | |
228 | wxALIGN_CENTER, | |
229 | wxALIGN_CENTRE, | |
230 | wxALIGN_RIGHT, | |
231 | wxLB_NEEDED_SB, | |
232 | wxLB_ALWAYS_SB, | |
233 | wxLB_SORT, | |
234 | wxLB_SINGLE, | |
235 | wxLB_MULTIPLE, | |
236 | wxLB_EXTENDED, | |
237 | wxLB_OWNERDRAW, | |
238 | wxLB_HSCROLL, | |
239 | wxPROCESS_ENTER, | |
240 | wxPASSWORD, | |
241 | wxTE_PROCESS_ENTER, | |
242 | wxTE_PASSWORD, | |
243 | wxTE_READONLY, | |
244 | wxTE_RICH, | |
245 | wxTE_MULTILINE, | |
246 | wxCB_SIMPLE, | |
247 | wxCB_DROPDOWN, | |
248 | wxCB_SORT, | |
249 | wxCB_READONLY, | |
250 | wxRA_HORIZONTAL, | |
251 | wxRA_VERTICAL, | |
252 | wxRA_SPECIFY_ROWS, | |
253 | wxRA_SPECIFY_COLS, | |
254 | wxRB_GROUP, | |
255 | wxGA_PROGRESSBAR, | |
256 | wxGA_HORIZONTAL, | |
257 | wxGA_VERTICAL, | |
258 | wxGA_SMOOTH, | |
259 | wxSL_HORIZONTAL, | |
260 | wxSL_VERTICAL, | |
261 | wxSL_AUTOTICKS, | |
262 | wxSL_LABELS, | |
263 | wxSL_LEFT, | |
264 | wxSL_TOP, | |
265 | wxSL_RIGHT, | |
266 | wxSL_BOTTOM, | |
267 | wxSL_BOTH, | |
268 | wxSL_SELRANGE, | |
269 | wxSB_HORIZONTAL, | |
270 | wxSB_VERTICAL, | |
271 | wxST_SIZEGRIP, | |
272 | wxBU_AUTODRAW, | |
273 | wxBU_NOAUTODRAW, | |
274 | wxTR_HAS_BUTTONS, | |
275 | wxTR_EDIT_LABELS, | |
276 | wxTR_LINES_AT_ROOT, | |
277 | wxTR_MULTIPLE, | |
278 | wxTR_SINGLE, | |
279 | wxTR_HAS_VARIABLE_ROW_HEIGHT, | |
280 | wxLC_ICON, | |
281 | wxLC_SMALL_ICON, | |
282 | wxLC_LIST, | |
283 | wxLC_REPORT, | |
284 | wxLC_ALIGN_TOP, | |
285 | wxLC_ALIGN_LEFT, | |
286 | wxLC_AUTOARRANGE, | |
287 | wxLC_USER_TEXT, | |
288 | wxLC_EDIT_LABELS, | |
289 | wxLC_NO_HEADER, | |
290 | wxLC_NO_SORT_HEADER, | |
291 | wxLC_SINGLE_SEL, | |
292 | wxLC_SORT_ASCENDING, | |
293 | wxLC_SORT_DESCENDING, | |
294 | wxLC_MASK_TYPE, | |
295 | wxLC_MASK_ALIGN, | |
296 | wxLC_MASK_SORT, | |
297 | wxSP_VERTICAL, | |
298 | wxSP_HORIZONTAL, | |
299 | wxSP_ARROW_KEYS, | |
300 | wxSP_WRAP, | |
301 | wxSP_NOBORDER, | |
302 | wxSP_3D, | |
303 | wxSP_BORDER, | |
304 | wxFLOOD_SURFACE, | |
305 | wxFLOOD_BORDER, | |
306 | wxODDEVEN_RULE, | |
307 | wxWINDING_RULE, | |
308 | wxTOOL_TOP, | |
309 | wxTOOL_BOTTOM, | |
310 | wxTOOL_LEFT, | |
311 | wxTOOL_RIGHT, | |
312 | wxOK, | |
313 | wxYES_NO, | |
314 | wxCANCEL, | |
315 | wxYES, | |
316 | wxNO, | |
317 | wxNO_DEFAULT, | |
318 | wxYES_DEFAULT, | |
319 | wxICON_EXCLAMATION, | |
320 | wxICON_HAND, | |
321 | wxICON_QUESTION, | |
322 | wxICON_INFORMATION, | |
323 | wxICON_STOP, | |
324 | wxICON_ASTERISK, | |
325 | wxICON_MASK, | |
326 | wxICON_WARNING, | |
327 | wxICON_ERROR, | |
328 | ||
329 | wxFORWARD, | |
330 | wxBACKWARD, | |
331 | wxRESET, | |
332 | wxHELP, | |
333 | wxMORE, | |
334 | wxSETUP, | |
335 | ||
336 | wxCENTRE, | |
337 | wxCENTER, | |
338 | wxSIZE_AUTO_WIDTH, | |
339 | wxSIZE_AUTO_HEIGHT, | |
340 | wxSIZE_AUTO, | |
341 | wxSIZE_USE_EXISTING, | |
342 | wxSIZE_ALLOW_MINUS_ONE, | |
343 | #ifndef __WXGTK__ | |
344 | wxDF_TEXT, | |
345 | wxDF_BITMAP, | |
346 | wxDF_METAFILE, | |
347 | wxDF_DIB, | |
348 | wxDF_OEMTEXT, | |
349 | wxDF_FILENAME, | |
350 | #endif | |
351 | wxPORTRAIT, | |
352 | wxLANDSCAPE, | |
353 | wxPRINT_QUALITY_HIGH, | |
354 | wxPRINT_QUALITY_MEDIUM, | |
355 | wxPRINT_QUALITY_LOW, | |
356 | wxPRINT_QUALITY_DRAFT, | |
357 | wxID_OPEN, | |
358 | wxID_CLOSE, | |
359 | wxID_NEW, | |
360 | wxID_SAVE, | |
361 | wxID_SAVEAS, | |
362 | wxID_REVERT, | |
363 | wxID_EXIT, | |
364 | wxID_UNDO, | |
365 | wxID_REDO, | |
366 | wxID_HELP, | |
367 | wxID_PRINT, | |
368 | wxID_PRINT_SETUP, | |
369 | wxID_PREVIEW, | |
370 | wxID_ABOUT, | |
371 | wxID_HELP_CONTENTS, | |
372 | wxID_HELP_COMMANDS, | |
373 | wxID_HELP_PROCEDURES, | |
374 | wxID_HELP_CONTEXT, | |
375 | wxID_CUT, | |
376 | wxID_COPY, | |
377 | wxID_PASTE, | |
378 | wxID_CLEAR, | |
379 | wxID_FIND, | |
380 | wxID_FILE1, | |
381 | wxID_FILE2, | |
382 | wxID_FILE3, | |
383 | wxID_FILE4, | |
384 | wxID_FILE5, | |
385 | wxID_FILE6, | |
386 | wxID_FILE7, | |
387 | wxID_FILE8, | |
388 | wxID_FILE9, | |
389 | wxID_OK, | |
390 | wxID_CANCEL, | |
391 | wxID_APPLY, | |
392 | wxID_YES, | |
393 | wxID_NO, | |
394 | wxID_STATIC, | |
395 | ||
396 | wxBITMAP_TYPE_BMP, | |
397 | wxBITMAP_TYPE_BMP_RESOURCE, | |
398 | wxBITMAP_TYPE_ICO, | |
399 | wxBITMAP_TYPE_ICO_RESOURCE, | |
400 | wxBITMAP_TYPE_CUR, | |
401 | wxBITMAP_TYPE_CUR_RESOURCE, | |
402 | wxBITMAP_TYPE_XBM, | |
403 | wxBITMAP_TYPE_XBM_DATA, | |
404 | wxBITMAP_TYPE_XPM, | |
405 | wxBITMAP_TYPE_XPM_DATA, | |
406 | wxBITMAP_TYPE_TIF, | |
407 | wxBITMAP_TYPE_TIF_RESOURCE, | |
408 | wxBITMAP_TYPE_GIF, | |
409 | wxBITMAP_TYPE_GIF_RESOURCE, | |
410 | wxBITMAP_TYPE_PNG, | |
411 | wxBITMAP_TYPE_PNG_RESOURCE, | |
412 | wxBITMAP_TYPE_ANY, | |
413 | wxBITMAP_TYPE_RESOURCE, | |
414 | wxBITMAP_TYPE_JPEG, | |
415 | ||
416 | wxOPEN, | |
417 | wxSAVE, | |
418 | wxHIDE_READONLY, | |
419 | wxOVERWRITE_PROMPT, | |
420 | ||
421 | wxACCEL_ALT, | |
422 | wxACCEL_CTRL, | |
423 | wxACCEL_SHIFT, | |
424 | ||
425 | wxPD_AUTO_HIDE, | |
426 | wxPD_APP_MODAL, | |
427 | wxPD_CAN_ABORT, | |
428 | wxPD_ELAPSED_TIME, | |
429 | wxPD_ESTIMATED_TIME, | |
430 | wxPD_REMAINING_TIME, | |
431 | ||
432 | wxMENU_TEAROFF, | |
433 | wxMB_DOCKABLE, | |
434 | wxNO_FULL_REPAINT_ON_RESIZE, | |
435 | ||
436 | wxLEFT, | |
437 | wxRIGHT, | |
438 | wxUP, | |
439 | wxDOWN, | |
440 | wxALL, | |
441 | wxTOP, | |
442 | wxBOTTOM, | |
443 | ||
444 | wxNORTH, | |
445 | wxSOUTH, | |
446 | wxEAST, | |
447 | wxWEST, | |
448 | ||
449 | wxSTRETCH_NOT, | |
450 | wxSHRINK, | |
451 | wxGROW, | |
452 | wxEXPAND, | |
453 | ||
454 | wxNB_FIXEDWIDTH, | |
455 | ||
456 | wxLI_HORIZONTAL, | |
457 | wxLI_VERTICAL, | |
458 | ||
459 | ||
460 | wxHW_SCROLLBAR_NEVER, | |
461 | wxHW_SCROLLBAR_AUTO, | |
462 | ||
463 | }; | |
464 | ||
465 | ||
466 | // // Standard error codes | |
467 | // enum ErrCode | |
468 | // { | |
469 | // ERR_PARAM = (-4000), | |
470 | // ERR_NODATA, | |
471 | // ERR_CANCEL, | |
472 | // ERR_SUCCESS = 0 | |
473 | // }; | |
474 | ||
475 | ||
476 | enum { | |
477 | wxDEFAULT , | |
478 | wxDECORATIVE, | |
479 | wxROMAN, | |
480 | wxSCRIPT, | |
481 | wxSWISS, | |
482 | wxMODERN, | |
483 | wxTELETYPE, | |
484 | wxVARIABLE, | |
485 | wxFIXED, | |
486 | wxNORMAL, | |
487 | wxLIGHT, | |
488 | wxBOLD, | |
489 | wxITALIC, | |
490 | wxSLANT, | |
491 | wxSOLID, | |
492 | wxDOT, | |
493 | wxLONG_DASH, | |
494 | wxSHORT_DASH, | |
495 | wxDOT_DASH, | |
496 | wxUSER_DASH, | |
497 | wxTRANSPARENT, | |
498 | wxSTIPPLE, | |
499 | wxBDIAGONAL_HATCH, | |
500 | wxCROSSDIAG_HATCH, | |
501 | wxFDIAGONAL_HATCH, | |
502 | wxCROSS_HATCH, | |
503 | wxHORIZONTAL_HATCH, | |
504 | wxVERTICAL_HATCH, | |
505 | wxJOIN_BEVEL, | |
506 | wxJOIN_MITER, | |
507 | wxJOIN_ROUND, | |
508 | wxCAP_ROUND, | |
509 | wxCAP_PROJECTING, | |
510 | wxCAP_BUTT | |
511 | }; | |
512 | ||
513 | typedef enum { | |
514 | wxCLEAR, // 0 | |
515 | wxXOR, // src XOR dst | |
516 | wxINVERT, // NOT dst | |
517 | wxOR_REVERSE, // src OR (NOT dst) | |
518 | wxAND_REVERSE,// src AND (NOT dst) | |
519 | wxCOPY, // src | |
520 | wxAND, // src AND dst | |
521 | wxAND_INVERT, // (NOT src) AND dst | |
522 | wxNO_OP, // dst | |
523 | wxNOR, // (NOT src) AND (NOT dst) | |
524 | wxEQUIV, // (NOT src) XOR dst | |
525 | wxSRC_INVERT, // (NOT src) | |
526 | wxOR_INVERT, // (NOT src) OR dst | |
527 | wxNAND, // (NOT src) OR (NOT dst) | |
528 | wxOR, // src OR dst | |
529 | wxSET, // 1 | |
530 | wxSRC_OR, // source _bitmap_ OR destination | |
531 | wxSRC_AND // source _bitmap_ AND destination | |
532 | } form_ops_t; | |
533 | ||
534 | enum _Virtual_keycodes { | |
535 | WXK_BACK = 8, | |
536 | WXK_TAB = 9, | |
537 | WXK_RETURN = 13, | |
538 | WXK_ESCAPE = 27, | |
539 | WXK_SPACE = 32, | |
540 | WXK_DELETE = 127, | |
541 | ||
542 | WXK_START = 300, | |
543 | WXK_LBUTTON, | |
544 | WXK_RBUTTON, | |
545 | WXK_CANCEL, | |
546 | WXK_MBUTTON, | |
547 | WXK_CLEAR, | |
548 | WXK_SHIFT, | |
549 | WXK_CONTROL, | |
550 | WXK_MENU, | |
551 | WXK_PAUSE, | |
552 | WXK_CAPITAL, | |
553 | WXK_PRIOR, // Page up | |
554 | WXK_NEXT, // Page down | |
555 | WXK_END, | |
556 | WXK_HOME, | |
557 | WXK_LEFT, | |
558 | WXK_UP, | |
559 | WXK_RIGHT, | |
560 | WXK_DOWN, | |
561 | WXK_SELECT, | |
562 | WXK_PRINT, | |
563 | WXK_EXECUTE, | |
564 | WXK_SNAPSHOT, | |
565 | WXK_INSERT, | |
566 | WXK_HELP, | |
567 | WXK_NUMPAD0, | |
568 | WXK_NUMPAD1, | |
569 | WXK_NUMPAD2, | |
570 | WXK_NUMPAD3, | |
571 | WXK_NUMPAD4, | |
572 | WXK_NUMPAD5, | |
573 | WXK_NUMPAD6, | |
574 | WXK_NUMPAD7, | |
575 | WXK_NUMPAD8, | |
576 | WXK_NUMPAD9, | |
577 | WXK_MULTIPLY, | |
578 | WXK_ADD, | |
579 | WXK_SEPARATOR, | |
580 | WXK_SUBTRACT, | |
581 | WXK_DECIMAL, | |
582 | WXK_DIVIDE, | |
583 | WXK_F1, | |
584 | WXK_F2, | |
585 | WXK_F3, | |
586 | WXK_F4, | |
587 | WXK_F5, | |
588 | WXK_F6, | |
589 | WXK_F7, | |
590 | WXK_F8, | |
591 | WXK_F9, | |
592 | WXK_F10, | |
593 | WXK_F11, | |
594 | WXK_F12, | |
595 | WXK_F13, | |
596 | WXK_F14, | |
597 | WXK_F15, | |
598 | WXK_F16, | |
599 | WXK_F17, | |
600 | WXK_F18, | |
601 | WXK_F19, | |
602 | WXK_F20, | |
603 | WXK_F21, | |
604 | WXK_F22, | |
605 | WXK_F23, | |
606 | WXK_F24, | |
607 | WXK_NUMLOCK, | |
608 | WXK_SCROLL, | |
609 | WXK_PAGEUP, | |
610 | WXK_PAGEDOWN | |
611 | }; | |
612 | ||
613 | typedef enum { | |
614 | wxCURSOR_NONE = 0, | |
615 | wxCURSOR_ARROW = 1, | |
616 | wxCURSOR_BULLSEYE, | |
617 | wxCURSOR_CHAR, | |
618 | wxCURSOR_CROSS, | |
619 | wxCURSOR_HAND, | |
620 | wxCURSOR_IBEAM, | |
621 | wxCURSOR_LEFT_BUTTON, | |
622 | wxCURSOR_MAGNIFIER, | |
623 | wxCURSOR_MIDDLE_BUTTON, | |
624 | wxCURSOR_NO_ENTRY, | |
625 | wxCURSOR_PAINT_BRUSH, | |
626 | wxCURSOR_PENCIL, | |
627 | wxCURSOR_POINT_LEFT, | |
628 | wxCURSOR_POINT_RIGHT, | |
629 | wxCURSOR_QUESTION_ARROW, | |
630 | wxCURSOR_RIGHT_BUTTON, | |
631 | wxCURSOR_SIZENESW, | |
632 | wxCURSOR_SIZENS, | |
633 | wxCURSOR_SIZENWSE, | |
634 | wxCURSOR_SIZEWE, | |
635 | wxCURSOR_SIZING, | |
636 | wxCURSOR_SPRAYCAN, | |
637 | wxCURSOR_WAIT, | |
638 | wxCURSOR_WATCH, | |
639 | wxCURSOR_BLANK | |
640 | // #ifndef __WXMSW__ | |
641 | // /* Not yet implemented for Windows */ | |
642 | // , wxCURSOR_CROSS_REVERSE, | |
643 | // wxCURSOR_DOUBLE_ARROW, | |
644 | // wxCURSOR_BASED_ARROW_UP, | |
645 | // wxCURSOR_BASED_ARROW_DOWN | |
646 | // #endif | |
647 | } _standard_cursors_t; | |
648 | ||
649 | ||
650 | ||
651 | typedef enum { | |
652 | wxPAPER_NONE, // Use specific dimensions | |
653 | wxPAPER_LETTER, // Letter, 8 1/2 by 11 inches | |
654 | wxPAPER_LEGAL, // Legal, 8 1/2 by 14 inches | |
655 | wxPAPER_A4, // A4 Sheet, 210 by 297 millimeters | |
656 | wxPAPER_CSHEET, // C Sheet, 17 by 22 inches | |
657 | wxPAPER_DSHEET, // D Sheet, 22 by 34 inches | |
658 | wxPAPER_ESHEET, // E Sheet, 34 by 44 inches | |
659 | wxPAPER_LETTERSMALL, // Letter Small, 8 1/2 by 11 inches | |
660 | wxPAPER_TABLOID, // Tabloid, 11 by 17 inches | |
661 | wxPAPER_LEDGER, // Ledger, 17 by 11 inches | |
662 | wxPAPER_STATEMENT, // Statement, 5 1/2 by 8 1/2 inches | |
663 | wxPAPER_EXECUTIVE, // Executive, 7 1/4 by 10 1/2 inches | |
664 | wxPAPER_A3, // A3 sheet, 297 by 420 millimeters | |
665 | wxPAPER_A4SMALL, // A4 small sheet, 210 by 297 millimeters | |
666 | wxPAPER_A5, // A5 sheet, 148 by 210 millimeters | |
667 | wxPAPER_B4, // B4 sheet, 250 by 354 millimeters | |
668 | wxPAPER_B5, // B5 sheet, 182-by-257-millimeter paper | |
669 | wxPAPER_FOLIO, // Folio, 8-1/2-by-13-inch paper | |
670 | wxPAPER_QUARTO, // Quarto, 215-by-275-millimeter paper | |
671 | wxPAPER_10X14, // 10-by-14-inch sheet | |
672 | wxPAPER_11X17, // 11-by-17-inch sheet | |
673 | wxPAPER_NOTE, // Note, 8 1/2 by 11 inches | |
674 | wxPAPER_ENV_9, // #9 Envelope, 3 7/8 by 8 7/8 inches | |
675 | wxPAPER_ENV_10, // #10 Envelope, 4 1/8 by 9 1/2 inches | |
676 | wxPAPER_ENV_11, // #11 Envelope, 4 1/2 by 10 3/8 inches | |
677 | wxPAPER_ENV_12, // #12 Envelope, 4 3/4 by 11 inches | |
678 | wxPAPER_ENV_14, // #14 Envelope, 5 by 11 1/2 inches | |
679 | wxPAPER_ENV_DL, // DL Envelope, 110 by 220 millimeters | |
680 | wxPAPER_ENV_C5, // C5 Envelope, 162 by 229 millimeters | |
681 | wxPAPER_ENV_C3, // C3 Envelope, 324 by 458 millimeters | |
682 | wxPAPER_ENV_C4, // C4 Envelope, 229 by 324 millimeters | |
683 | wxPAPER_ENV_C6, // C6 Envelope, 114 by 162 millimeters | |
684 | wxPAPER_ENV_C65, // C65 Envelope, 114 by 229 millimeters | |
685 | wxPAPER_ENV_B4, // B4 Envelope, 250 by 353 millimeters | |
686 | wxPAPER_ENV_B5, // B5 Envelope, 176 by 250 millimeters | |
687 | wxPAPER_ENV_B6, // B6 Envelope, 176 by 125 millimeters | |
688 | wxPAPER_ENV_ITALY, // Italy Envelope, 110 by 230 millimeters | |
689 | wxPAPER_ENV_MONARCH, // Monarch Envelope, 3 7/8 by 7 1/2 inches | |
690 | wxPAPER_ENV_PERSONAL, // 6 3/4 Envelope, 3 5/8 by 6 1/2 inches | |
691 | wxPAPER_FANFOLD_US, // US Std Fanfold, 14 7/8 by 11 inches | |
692 | wxPAPER_FANFOLD_STD_GERMAN, // German Std Fanfold, 8 1/2 by 12 inches | |
693 | wxPAPER_FANFOLD_LGL_GERMAN, // German Legal Fanfold, 8 1/2 by 13 inches | |
694 | ||
695 | wxPAPER_ISO_B4, // B4 (ISO) 250 x 353 mm | |
696 | wxPAPER_JAPANESE_POSTCARD, // Japanese Postcard 100 x 148 mm | |
697 | wxPAPER_9X11, // 9 x 11 in | |
698 | wxPAPER_10X11, // 10 x 11 in | |
699 | wxPAPER_15X11, // 15 x 11 in | |
700 | wxPAPER_ENV_INVITE, // Envelope Invite 220 x 220 mm | |
701 | wxPAPER_LETTER_EXTRA, // Letter Extra 9 \275 x 12 in | |
702 | wxPAPER_LEGAL_EXTRA, // Legal Extra 9 \275 x 15 in | |
703 | wxPAPER_TABLOID_EXTRA, // Tabloid Extra 11.69 x 18 in | |
704 | wxPAPER_A4_EXTRA, // A4 Extra 9.27 x 12.69 in | |
705 | wxPAPER_LETTER_TRANSVERSE, // Letter Transverse 8 \275 x 11 in | |
706 | wxPAPER_A4_TRANSVERSE, // A4 Transverse 210 x 297 mm | |
707 | wxPAPER_LETTER_EXTRA_TRANSVERSE, // Letter Extra Transverse 9\275 x 12 in | |
708 | wxPAPER_A_PLUS, // SuperA/SuperA/A4 227 x 356 mm | |
709 | wxPAPER_B_PLUS, // SuperB/SuperB/A3 305 x 487 mm | |
710 | wxPAPER_LETTER_PLUS, // Letter Plus 8.5 x 12.69 in | |
711 | wxPAPER_A4_PLUS, // A4 Plus 210 x 330 mm | |
712 | wxPAPER_A5_TRANSVERSE, // A5 Transverse 148 x 210 mm | |
713 | wxPAPER_B5_TRANSVERSE, // B5 (JIS) Transverse 182 x 257 mm | |
714 | wxPAPER_A3_EXTRA, // A3 Extra 322 x 445 mm | |
715 | wxPAPER_A5_EXTRA, // A5 Extra 174 x 235 mm | |
716 | wxPAPER_B5_EXTRA, // B5 (ISO) Extra 201 x 276 mm | |
717 | wxPAPER_A2, // A2 420 x 594 mm | |
718 | wxPAPER_A3_TRANSVERSE, // A3 Transverse 297 x 420 mm | |
719 | wxPAPER_A3_EXTRA_TRANSVERSE // A3 Extra Transverse 322 x 445 mm | |
720 | ||
721 | } wxPaperSize ; | |
722 | ||
723 | typedef enum { | |
724 | wxDUPLEX_SIMPLEX, // Non-duplex | |
725 | wxDUPLEX_HORIZONTAL, | |
726 | wxDUPLEX_VERTICAL | |
727 | } wxDuplexMode; | |
728 | ||
729 | ||
730 | ||
731 | #define FALSE 0 | |
732 | #define false 0 | |
733 | #define TRUE 1 | |
734 | #define true 1 | |
735 | ||
736 | const char* wxVERSION_STRING; | |
737 | ||
738 | //--------------------------------------------------------------------------- | |
739 | //--------------------------------------------------------------------------- | |
740 | ||
741 | /* | |
742 | * Event types | |
743 | * | |
744 | */ | |
745 | enum wxEventType { | |
746 | wxEVT_NULL = 0, | |
747 | wxEVT_FIRST = 10000, | |
748 | ||
749 | // New names | |
750 | wxEVT_COMMAND_BUTTON_CLICKED, | |
751 | wxEVT_COMMAND_CHECKBOX_CLICKED, | |
752 | wxEVT_COMMAND_CHOICE_SELECTED, | |
753 | wxEVT_COMMAND_LISTBOX_SELECTED, | |
754 | wxEVT_COMMAND_LISTBOX_DOUBLECLICKED, | |
755 | wxEVT_COMMAND_CHECKLISTBOX_TOGGLED, | |
756 | wxEVT_COMMAND_TEXT_UPDATED, | |
757 | wxEVT_COMMAND_TEXT_ENTER, | |
758 | wxEVT_COMMAND_MENU_SELECTED, | |
759 | wxEVT_COMMAND_SLIDER_UPDATED, | |
760 | wxEVT_COMMAND_RADIOBOX_SELECTED, | |
761 | wxEVT_COMMAND_RADIOBUTTON_SELECTED, | |
762 | // wxEVT_COMMAND_SCROLLBAR_UPDATED is now obsolete since we use wxEVT_SCROLL... events | |
763 | wxEVT_COMMAND_SCROLLBAR_UPDATED, | |
764 | wxEVT_COMMAND_VLBOX_SELECTED, | |
765 | wxEVT_COMMAND_COMBOBOX_SELECTED, | |
766 | wxEVT_COMMAND_TOOL_CLICKED, | |
767 | wxEVT_COMMAND_TOOL_RCLICKED, | |
768 | wxEVT_COMMAND_TOOL_ENTER, | |
769 | wxEVT_SET_FOCUS, | |
770 | wxEVT_KILL_FOCUS, | |
771 | ||
772 | /* Mouse event types */ | |
773 | wxEVT_LEFT_DOWN, | |
774 | wxEVT_LEFT_UP, | |
775 | wxEVT_MIDDLE_DOWN, | |
776 | wxEVT_MIDDLE_UP, | |
777 | wxEVT_RIGHT_DOWN, | |
778 | wxEVT_RIGHT_UP, | |
779 | wxEVT_MOTION, | |
780 | wxEVT_ENTER_WINDOW, | |
781 | wxEVT_LEAVE_WINDOW, | |
782 | wxEVT_LEFT_DCLICK, | |
783 | wxEVT_MIDDLE_DCLICK, | |
784 | wxEVT_RIGHT_DCLICK, | |
785 | ||
786 | // Non-client mouse events | |
787 | wxEVT_NC_LEFT_DOWN = wxEVT_FIRST + 100, | |
788 | wxEVT_NC_LEFT_UP, | |
789 | wxEVT_NC_MIDDLE_DOWN, | |
790 | wxEVT_NC_MIDDLE_UP, | |
791 | wxEVT_NC_RIGHT_DOWN, | |
792 | wxEVT_NC_RIGHT_UP, | |
793 | wxEVT_NC_MOTION, | |
794 | wxEVT_NC_ENTER_WINDOW, | |
795 | wxEVT_NC_LEAVE_WINDOW, | |
796 | wxEVT_NC_LEFT_DCLICK, | |
797 | wxEVT_NC_MIDDLE_DCLICK, | |
798 | wxEVT_NC_RIGHT_DCLICK, | |
799 | ||
800 | /* Character input event type */ | |
801 | wxEVT_CHAR, | |
802 | wxEVT_KEY_DOWN, | |
803 | wxEVT_KEY_UP, | |
804 | wxEVT_CHAR_HOOK, | |
805 | ||
806 | /* | |
807 | * Scrollbar event identifiers | |
808 | */ | |
809 | wxEVT_SCROLL_TOP, | |
810 | wxEVT_SCROLL_BOTTOM, | |
811 | wxEVT_SCROLL_LINEUP, | |
812 | wxEVT_SCROLL_LINEDOWN, | |
813 | wxEVT_SCROLL_PAGEUP, | |
814 | wxEVT_SCROLL_PAGEDOWN, | |
815 | wxEVT_SCROLL_THUMBTRACK, | |
816 | ||
817 | /* | |
818 | * Scrolled Window | |
819 | */ | |
820 | wxEVT_SCROLLWIN_TOP, | |
821 | wxEVT_SCROLLWIN_BOTTOM, | |
822 | wxEVT_SCROLLWIN_LINEUP, | |
823 | wxEVT_SCROLLWIN_LINEDOWN, | |
824 | wxEVT_SCROLLWIN_PAGEUP, | |
825 | wxEVT_SCROLLWIN_PAGEDOWN, | |
826 | wxEVT_SCROLLWIN_THUMBTRACK, | |
827 | ||
828 | wxEVT_SIZE = wxEVT_FIRST + 200, | |
829 | wxEVT_MOVE, | |
830 | wxEVT_CLOSE_WINDOW, | |
831 | wxEVT_END_SESSION, | |
832 | wxEVT_QUERY_END_SESSION, | |
833 | wxEVT_ACTIVATE_APP, | |
834 | wxEVT_POWER, | |
835 | wxEVT_ACTIVATE, | |
836 | wxEVT_CREATE, | |
837 | wxEVT_DESTROY, | |
838 | wxEVT_SHOW, | |
839 | wxEVT_ICONIZE, | |
840 | wxEVT_MAXIMIZE, | |
841 | wxEVT_MOUSE_CAPTURE_CHANGED, | |
842 | wxEVT_PAINT, | |
843 | wxEVT_ERASE_BACKGROUND, | |
844 | wxEVT_NC_PAINT, | |
845 | wxEVT_PAINT_ICON, | |
846 | wxEVT_MENU_CHAR, | |
847 | wxEVT_MENU_INIT, | |
848 | wxEVT_MENU_HIGHLIGHT, | |
849 | wxEVT_POPUP_MENU_INIT, | |
850 | wxEVT_CONTEXT_MENU, | |
851 | wxEVT_SYS_COLOUR_CHANGED, | |
852 | wxEVT_SETTING_CHANGED, | |
853 | wxEVT_QUERY_NEW_PALETTE, | |
854 | wxEVT_PALETTE_CHANGED, | |
855 | wxEVT_JOY_BUTTON_DOWN, | |
856 | wxEVT_JOY_BUTTON_UP, | |
857 | wxEVT_JOY_MOVE, | |
858 | wxEVT_JOY_ZMOVE, | |
859 | wxEVT_DROP_FILES, | |
860 | wxEVT_DRAW_ITEM, | |
861 | wxEVT_MEASURE_ITEM, | |
862 | wxEVT_COMPARE_ITEM, | |
863 | wxEVT_INIT_DIALOG, | |
864 | wxEVT_IDLE, | |
865 | wxEVT_UPDATE_UI, | |
866 | ||
867 | ||
868 | /* Generic command events */ | |
869 | // Note: a click is a higher-level event | |
870 | // than button down/up | |
871 | wxEVT_COMMAND_LEFT_CLICK, | |
872 | wxEVT_COMMAND_LEFT_DCLICK, | |
873 | wxEVT_COMMAND_RIGHT_CLICK, | |
874 | wxEVT_COMMAND_RIGHT_DCLICK, | |
875 | wxEVT_COMMAND_SET_FOCUS, | |
876 | wxEVT_COMMAND_KILL_FOCUS, | |
877 | wxEVT_COMMAND_ENTER, | |
878 | ||
879 | /* Tree control event types */ | |
880 | wxEVT_COMMAND_TREE_BEGIN_DRAG, | |
881 | wxEVT_COMMAND_TREE_BEGIN_RDRAG, | |
882 | wxEVT_COMMAND_TREE_BEGIN_LABEL_EDIT, | |
883 | wxEVT_COMMAND_TREE_END_LABEL_EDIT, | |
884 | wxEVT_COMMAND_TREE_DELETE_ITEM, | |
885 | wxEVT_COMMAND_TREE_GET_INFO, | |
886 | wxEVT_COMMAND_TREE_SET_INFO, | |
887 | wxEVT_COMMAND_TREE_ITEM_EXPANDED, | |
888 | wxEVT_COMMAND_TREE_ITEM_EXPANDING, | |
889 | wxEVT_COMMAND_TREE_ITEM_COLLAPSED, | |
890 | wxEVT_COMMAND_TREE_ITEM_COLLAPSING, | |
891 | wxEVT_COMMAND_TREE_SEL_CHANGED, | |
892 | wxEVT_COMMAND_TREE_SEL_CHANGING, | |
893 | wxEVT_COMMAND_TREE_KEY_DOWN, | |
894 | ||
895 | /* List control event types */ | |
896 | wxEVT_COMMAND_LIST_BEGIN_DRAG, | |
897 | wxEVT_COMMAND_LIST_BEGIN_RDRAG, | |
898 | wxEVT_COMMAND_LIST_BEGIN_LABEL_EDIT, | |
899 | wxEVT_COMMAND_LIST_END_LABEL_EDIT, | |
900 | wxEVT_COMMAND_LIST_DELETE_ITEM, | |
901 | wxEVT_COMMAND_LIST_DELETE_ALL_ITEMS, | |
902 | wxEVT_COMMAND_LIST_GET_INFO, | |
903 | wxEVT_COMMAND_LIST_SET_INFO, | |
904 | wxEVT_COMMAND_LIST_ITEM_SELECTED, | |
905 | wxEVT_COMMAND_LIST_ITEM_DESELECTED, | |
906 | wxEVT_COMMAND_LIST_KEY_DOWN, | |
907 | wxEVT_COMMAND_LIST_INSERT_ITEM, | |
908 | wxEVT_COMMAND_LIST_COL_CLICK, | |
909 | wxEVT_COMMAND_LIST_ITEM_ACTIVATED, | |
910 | ||
911 | /* Tab and notebook control event types */ | |
912 | wxEVT_COMMAND_TAB_SEL_CHANGED, | |
913 | wxEVT_COMMAND_TAB_SEL_CHANGING, | |
914 | wxEVT_COMMAND_NOTEBOOK_PAGE_CHANGED, | |
915 | wxEVT_COMMAND_NOTEBOOK_PAGE_CHANGING, | |
916 | ||
917 | /* splitter window */ | |
918 | wxEVT_COMMAND_SPLITTER_SASH_POS_CHANGING, | |
919 | wxEVT_COMMAND_SPLITTER_SASH_POS_CHANGED, | |
920 | wxEVT_COMMAND_SPLITTER_UNSPLIT, | |
921 | wxEVT_COMMAND_SPLITTER_DOUBLECLICKED, | |
922 | ||
923 | }; | |
924 | ||
925 | ||
926 | ||
927 | ||
928 | //---------------------------------------------------------------------- |