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