|
1 // QResources3.hrh |
|
2 // |
|
3 // Copyright (c) 2010 Accenture. All rights reserved. |
|
4 // This component and the accompanying materials are made available |
|
5 // under the terms of the "Eclipse Public License v1.0" |
|
6 // which accompanies this distribution, and is available |
|
7 // at the URL "http://www.eclipse.org/legal/epl-v10.html". |
|
8 // |
|
9 // Initial Contributors: |
|
10 // Accenture - Initial contribution |
|
11 // |
|
12 |
|
13 #ifndef QResources3_HRH |
|
14 #define QResources3_HRH |
|
15 |
|
16 |
|
17 #include <fshell/QR3ProductPlugin.h> |
|
18 |
|
19 /** |
|
20 Identifies the value for the commands in the application. |
|
21 Commands shall first start on 0x1000. |
|
22 Values before 0x1000 is reserved for commands in the framework. |
|
23 */ |
|
24 enum TQResources3Command |
|
25 { |
|
26 EQResources3NewCmd = 0x1000, |
|
27 EQResources3SaveCmd, |
|
28 EQResources3DeleteCmd, |
|
29 EQResources3DeleteHardwareCmd, |
|
30 |
|
31 ECmdRefresh, |
|
32 ECmdPoll, |
|
33 |
|
34 // These must be the same order as TKernelObjectType |
|
35 ECmdProcesses, |
|
36 ECmdThreads, |
|
37 ECmdChunks, |
|
38 ECmdServers, |
|
39 ECmdCodeSegs, |
|
40 ECmdHal, |
|
41 ECmdWindowGroups, |
|
42 ECmdMimeTypes, |
|
43 ECmdOpenFiles, |
|
44 ECmdFeatureReg, |
|
45 ECmdMessageQueue, |
|
46 ECmdMutex, |
|
47 ECmdSemaphore, |
|
48 ECmdTimer, |
|
49 |
|
50 ECmdKill, |
|
51 ECmdHandleInfo, |
|
52 ECmdPing, |
|
53 ECmdClogger, |
|
54 //ECmdCloggerApply, |
|
55 //ECmdCloggerSave, |
|
56 ECmdCloggerReset, |
|
57 ECmdCloseHandles, |
|
58 ECmdCloggerDetails, |
|
59 ECmdCloggerConfigBuffers, |
|
60 ECmdCancel, |
|
61 ECmdDumpHeap, |
|
62 ECmdSetPriority, |
|
63 ECmdSetCritical, |
|
64 |
|
65 ECmdInstallFlogger, |
|
66 ECmdUninstallFlogger, |
|
67 |
|
68 ECmdGoToTab, |
|
69 ECmdSortBy, |
|
70 ECmdSortByName, |
|
71 ECmdSortById, |
|
72 |
|
73 ECmdMiscUsefulEcomUids, |
|
74 ECmdMiscNukeApparc, |
|
75 |
|
76 ELastCmd |
|
77 }; |
|
78 |
|
79 /** |
|
80 Define groups for commands which is seperated with dividers in menu |
|
81 */ |
|
82 enum TQResources3CommandGroupId |
|
83 { |
|
84 EQResources3DefaultCmdGroupId, |
|
85 //EQResources3EditCmdGroupId, |
|
86 //EQResources3DeleteCmdGroupId, |
|
87 |
|
88 EGroupKernLists, |
|
89 EGroupTabs, |
|
90 EGroupSortBy, |
|
91 EGroupCloggerCheckboxes |
|
92 }; |
|
93 |
|
94 /** |
|
95 Unique controls in list and detail view. |
|
96 */ |
|
97 enum TQResources3Control |
|
98 { |
|
99 EQResources3ListViewListCtrl, |
|
100 EQResources3ListViewPage, |
|
101 |
|
102 EChunkLbx, |
|
103 EChunkLabel, |
|
104 |
|
105 //ECloggerContainer, |
|
106 EKTraceContainer, |
|
107 //EMemoryContainer, |
|
108 //EDiskContainer, |
|
109 //EMiscContainer, |
|
110 |
|
111 ECloggerRotate, |
|
112 ECloggerRotateAndSend, |
|
113 ECloggerSaveSettings, |
|
114 ECloggerBufferLog, |
|
115 ECloggerRDebug, |
|
116 ECloggerAutoRotate, |
|
117 ECloggerCopyLogsToD, |
|
118 ECloggerEditTags, |
|
119 ECloggerResetSettings, |
|
120 ECloggerCompressRotate, |
|
121 ECloggerOverlay, |
|
122 ECloggerRedirectRDebug, |
|
123 ECloggerBluetooth, |
|
124 ECloggerWriteToFile, |
|
125 ECloggerSetNumBuffers, |
|
126 ECloggerSetBufferSize, |
|
127 ECloggerSetNumRotates, |
|
128 |
|
129 EKTraceBitsStart, |
|
130 EKTraceBitsEnd = 400, // FFS resource files don't support calculation in enums?? //EKTraceBitsStart + 288, //9*32, |
|
131 |
|
132 EDlgProcessInfoName, |
|
133 ECloggerTagsLbx, |
|
134 |
|
135 EMemoryFree, |
|
136 EMemoryConsuming, |
|
137 EMemoryUseAllocator, |
|
138 EMemoryConsume, |
|
139 EMemoryInfoPrint, |
|
140 EMemoryIgnoreQmm, |
|
141 EMemoryReallyIgnore, |
|
142 EMemoryFreeUp, |
|
143 |
|
144 EDiskFree, |
|
145 EDiskConsuming, |
|
146 EDiskConsume, |
|
147 EDiskInfoPrint, |
|
148 EDiskFreeUp, |
|
149 |
|
150 EDiskExtFree, |
|
151 EDiskExtConsuming, |
|
152 EDiskExtConsume, |
|
153 EDiskExtInfoPrint, |
|
154 |
|
155 ECloggerTagView, |
|
156 ETopLbx, |
|
157 |
|
158 EMiscDebugPort, |
|
159 EMiscPSCategory, |
|
160 EMiscPSKey, |
|
161 EMiscPSValue, |
|
162 EMiscPSInfoPrint, |
|
163 EMiscPSLog, |
|
164 EMiscTimedScreenshot, |
|
165 EMiscTriggeredScreenshot, |
|
166 EMiscScreenMode, |
|
167 EMiscPartialRedraw, |
|
168 EMiscEcomListing, |
|
169 EMiscUseNotifierProxy, |
|
170 |
|
171 EConfigureKeyCaptures, |
|
172 EKeyCapturesPageId, |
|
173 |
|
174 EKeyCapturesStart, |
|
175 EKeyCaptureScreenshot = EKeyCapturesStart, |
|
176 EKeyForceCrash, |
|
177 EKeyEatMeUp, |
|
178 EKeyEatMeDown, |
|
179 EKeyLogMe, |
|
180 //EKeyShowCloggerOverlay, |
|
181 EKeyToggleProfiler, |
|
182 EKeyRotateClogger, |
|
183 EKeyCapturesEnd, |
|
184 |
|
185 EKeyCaptureDialogText, |
|
186 ECriticalDlgList, |
|
187 EPrioritySetAbsolute, |
|
188 EPrioritySetRelative, |
|
189 |
|
190 // These double as command ids for the commands that indicate "go to this tab" |
|
191 // Thus they have slightly strange IDs |
|
192 ETabsStart = 0x2000, |
|
193 ETabChunks = ETabsStart, |
|
194 ETabClogger, |
|
195 ETabKTrace, |
|
196 ETabMemory, |
|
197 ETabDisk, |
|
198 ETabTop, |
|
199 ETabMisc, |
|
200 ETabPS, |
|
201 ETabsEnd, |
|
202 |
|
203 ECtPlaceholderEditor, // control type |
|
204 ECtSettingsDialogContents, // control type |
|
205 ECtForTheLoveOfGodAllIWantIsAnEdwin, |
|
206 |
|
207 // Remember everything between 0x3000 and 0x10000 is reserved for product plugins |
|
208 |
|
209 ELastItem = 0x10000 |
|
210 }; |
|
211 |
|
212 #define KTRACE_BIT_ID(word, bit) (EKTraceBitsStart + 9 + word*32 + bit) |
|
213 #define KTRACE_WORD_ID(word) (EKTraceBitsStart + word) |
|
214 #define KTRACE_WORD_FROM_ID(id) ((id - KTRACE_BIT_ID(0, 0)) / 32) |
|
215 #define KTRACE_BIT_FROM_ID(id) (id - KTRACE_BIT_ID(KTRACE_WORD_FROM_ID(id), 0)) |
|
216 |
|
217 #endif // QResources3_HRH |