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