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