Revision 60
Adding a restart button, about to update the icons with hopefully a bit sharper versions of these icons
cDebugCJMenuItemClasses.pkg | ||
---|---|---|
198 | 198 |
|
199 | 199 |
End_Class // cCJStopDebugMenuItem |
200 | 200 |
|
201 |
Define CS_CaptionRestartDebug For "Restart debug" |
|
202 |
Define CS_TooltipRestartDebug For "Restart debug" |
|
203 |
Define CS_DescRestartDebug For "Restart debug" |
|
204 |
|
|
205 |
{ OverrideProperty=psCaption InitialValue=CS_CaptionRestartDebug} |
|
206 |
{ OverrideProperty=psToolTip InitialValue=CS_ToolTipRestartDebug} |
|
207 |
{ OverrideProperty=psDescription InitialValue=CS_DescRestartDebug} |
|
208 |
{ OverrideProperty=psImage InitialValue="run_exc.ico" } |
|
201 | 209 |
|
210 |
Class cCJRestartDebugMenuItem is a cCJDebugMenuItem |
|
211 |
|
|
212 |
Procedure Construct_Object |
|
213 |
Forward Send Construct_Object |
|
214 |
Set psCaption To CS_CaptionRestartDebug |
|
215 |
Set psToolTip To CS_ToolTipRestartDebug |
|
216 |
Set psDescription To CS_DescRestartDebug |
|
217 |
Set psImage To "term_restart.ico" |
|
218 |
//Set psImageDisabled To "run_excd.ico" |
|
219 |
Set piShortcutKey To xtpKey_Ctrl VK_F5 |
|
220 |
End_Procedure |
|
221 |
|
|
222 |
Procedure OnExecute Variant vCommandBarControl |
|
223 |
Send doStopDebug |
|
224 |
Send doStartDebug |
|
225 |
End_Procedure |
|
226 |
|
|
227 |
Function IsEnabled Returns Boolean |
|
228 |
Boolean bStarted |
|
229 |
Get HasProgramStarted To bStarted |
|
230 |
Function_Return bStarted |
|
231 |
End_Function |
|
232 |
|
|
233 |
End_Class // cCJRestartDebugMenuItem |
|
234 |
|
|
235 |
|
|
202 | 236 |
Define CS_CaptionDebugPause For "Debug Pause" |
203 | 237 |
Define CS_TooltipDebugPause For "Debug Pause" |
204 | 238 |
Define CS_DescDebugPause For "Debug Pause" |
Also available in: Unified diff