|
1 /******************************************************************************* |
|
2 * Copyright (c) 2008 Nokia Corporation. |
|
3 * All rights reserved. This program and the accompanying materials |
|
4 * are made available under the terms of the Eclipse Public License v1.0 |
|
5 * which accompanies this distribution, and is available at |
|
6 * http://www.eclipse.org/legal/epl-v10.html |
|
7 * |
|
8 * Contributors: |
|
9 * Nokia Corporation |
|
10 *******************************************************************************/ |
|
11 |
|
12 #ifndef _SWT_H_ |
|
13 #define _SWT_H_ |
|
14 |
|
15 namespace Java { namespace eSWT { |
|
16 |
|
17 enum SwtError |
|
18 { |
|
19 ESwtErrorNone = 0, |
|
20 ESwtErrorUnspecified = 1, |
|
21 ESwtErrorNoHandles = 2, |
|
22 ESwtErrorNoMoreCallbacks = 3, |
|
23 ESwtErrorNullArgument = 4, |
|
24 ESwtErrorInvalidArgument = 5, |
|
25 ESwtErrorInvalidRange = 6, |
|
26 ESwtErrorCannotBeZero = 7, |
|
27 ESwtErrorCannotGetItem = 8, |
|
28 ESwtErrorCannotGetSelection = 9, |
|
29 ESwtErrorCannotGetItemHeight = 11, |
|
30 ESwtErrorCannotGetText = 12, |
|
31 ESwtErrorCannotSetText = 13, |
|
32 ESwtErrorItemNotAdded = 14, |
|
33 ESwtErrorItemNotRemoved = 15, |
|
34 ESwtErrorNotImplemented = 20, |
|
35 ESwtErrorMenuNotDropDown = 21, |
|
36 ESwtErrorThreadInvalidAccess = 22, |
|
37 ESwtErrorWidgetDisposed = 24, |
|
38 ESwtErrorMenuItemNotCascade = 27, |
|
39 ESwtErrorCannotSetSelection = 28, |
|
40 ESwtErrorCannotSetMenu = 29, |
|
41 ESwtErrorCannotSetEnabled = 30, |
|
42 ESwtErrorCannotGetEnabled = 31, |
|
43 ESwtErrorInvalidParent = 32, |
|
44 ESwtErrorMenuNotBar = 33, |
|
45 ESwtErrorCannotGetCount = 36, |
|
46 ESwtErrorMenuNotPopUp = 37, |
|
47 ESwtErrorUnsupportedDepth = 38, |
|
48 ESwtErrorIO = 39, |
|
49 ESwtErrorInvalidImage = 40, |
|
50 ESwtErrorUnsupportedFormat = 42, |
|
51 ESwtErrorInvalidSubclass = 43, |
|
52 ESwtErrorGraphicDisposed = 44, |
|
53 ESwtErrorDeviceDisposed = 45, |
|
54 ESwtErrorFailedExec = 46, |
|
55 ESwtErrorFailedLoadLibrary = 47 |
|
56 }; |
|
57 |
|
58 // Implementation specific event codes, not real Qt events but only used in this implementation |
|
59 // to implement events in situations that don't have a corresponding Qt event. These have to |
|
60 // match the ones defined on OS.java. |
|
61 static const int QSWTEVENT_ID_RANGE_FIRST = 2000; |
|
62 static const int QSWTEVENT_FOCUSWASGAINED = QSWTEVENT_ID_RANGE_FIRST + 1; |
|
63 static const int QSWTEVENT_FOCUSWASLOST = QSWTEVENT_ID_RANGE_FIRST + 2; |
|
64 |
|
65 }} |
|
66 |
|
67 #endif // _SWT_H_ |
|
68 |