# HG changeset patch
# User Patrik Svestka <patrik.svestka@gmail.com>
# Date 1501572440 -7200
# Tue Aug 01 09:27:20 2017 +0200
# Branch jv
# Node ID 60274b66bfb4592a11e641e621adbbfd62f39a89
# Parent f206a20ab2675af1c35980581a9dad23620ecaec
#169 When changing a shortcut key for all shown buttons by default - the buttons & menu it should show the current shortcut
diff -r f206a20ab267 -r 60274b66bfb4 DebugView.st
a
|
b
|
|
1142 | 1142 | enabled: canReturn |
1143 | 1143 | label: 'Return' |
1144 | 1144 | itemValue: doReturn |
| 1145 | shortcutKey: DebuggerReturn |
1145 | 1146 | ) |
1146 | 1147 | (MenuItem |
1147 | 1148 | enabled: canRestart |
… |
… |
|
1450 | 1451 | (MenuItem |
1451 | 1452 | label: 'Abort' |
1452 | 1453 | itemValue: doAbort |
| 1454 | shortcutKey: Abort |
1453 | 1455 | ) |
1454 | 1456 | (MenuItem |
1455 | 1457 | enabled: abortAllIsHandled |
… |
… |
|
1473 | 1475 | (MenuItem |
1474 | 1476 | label: 'Debug_Terminate' |
1475 | 1477 | itemValue: doTerminate |
| 1478 | shortcutKey: DebugTerminate |
1476 | 1479 | ) |
1477 | 1480 | (MenuItem |
1478 | 1481 | label: 'Hard Terminate (Danger)' |
… |
… |
|
3321 | 3324 | LastOrigin notNil ifTrue:[ |
3322 | 3325 | self origin:LastOrigin. |
3323 | 3326 | ]. |
3324 | | |
3325 | 3327 | " |
3326 | 3328 | Debugger newDebugger |
3327 | 3329 | " |
… |
… |
|
3331 | 3333 | |
3332 | 3334 | initializeAbortButtonIn:bpanel |
3333 | 3335 | abortButton := Button |
3334 | | label:(resources string:'Abort') |
| 3336 | label:(resources string:'Abort'), (self shortKeyStringForAction: #Abort) |
3335 | 3337 | action:[ |
3336 | 3338 | abortButton turnOffWithoutRedraw. |
3337 | 3339 | self doAbort |
… |
… |
|
3342 | 3344 | |
3343 | 3345 | "Created: / 17.11.2001 / 20:56:47 / cg" |
3344 | 3346 | "Modified: / 17.11.2001 / 20:57:17 / cg" |
| 3347 | "Modified: / 16-08-2017 / 08:48:50 / Patrik Svestka <patrik.svestka@gmail.com>" |
3345 | 3348 | ! |
3346 | 3349 | |
3347 | 3350 | initializeButtons1In:bpanel |
… |
… |
|
3665 | 3668 | |
3666 | 3669 | initializeGotoApplicationActionMethodButtonIn:bpanel |
3667 | 3670 | gotoApplicationActionMethodButton := Button |
3668 | | label:(resources string:'Goto Responsible Application Method') |
| 3671 | label:(resources string:'Goto Responsible Application Method') , (self shortKeyStringForAction: #GotoResponsibleApplicationMethod) |
3669 | 3672 | action:[ |
3670 | 3673 | gotoApplicationActionMethodButton turnOffWithoutRedraw. |
3671 | 3674 | self doGotoApplicationActionMethod |
… |
… |
|
3674 | 3677 | |
3675 | 3678 | gotoApplicationActionMethodButton name:'gotoAppMethodButton'. |
3676 | 3679 | gotoApplicationActionMethodButton beInvisible |
| 3680 | |
| 3681 | "Modified: / 16-08-2017 / 09:07:00 / Patrik Svestka <patrik.svestka@gmail.com>" |
3677 | 3682 | ! |
3678 | 3683 | |
3679 | 3684 | initializeGotoDialogOpenerButtonIn:bpanel |
… |
… |
|
3738 | 3743 | |
3739 | 3744 | initializeResendButtonIn:bpanel |
3740 | 3745 | resendButton := Button |
3741 | | label:(resources string:'Resend') |
| 3746 | label:(resources string:'Resend') , (self shortKeyStringForAction: #Resend) |
3742 | 3747 | action:[ |
3743 | 3748 | resendButton turnOff. |
3744 | 3749 | self doResend |
… |
… |
|
3749 | 3754 | |
3750 | 3755 | "/ if we have this, we do not need the restart button |
3751 | 3756 | restartButton beInvisible. |
| 3757 | |
| 3758 | "Modified: / 16-08-2017 / 09:05:00 / Patrik Svestka <patrik.svestka@gmail.com>" |
3752 | 3759 | ! |
3753 | 3760 | |
3754 | 3761 | initializeRestartButtonIn:bpanel |
… |
… |
|
3761 | 3768 | in:bpanel. |
3762 | 3769 | |
3763 | 3770 | restartButton name:'restartButton' |
3764 | | |
| 3771 | |
3765 | 3772 | "Created: / 17.11.2001 / 20:58:52 / cg" |
3766 | 3773 | ! |
3767 | 3774 | |
3768 | 3775 | initializeReturnButtonIn:bpanel |
3769 | 3776 | returnButton := Button |
3770 | | label:(resources string:'Return') |
| 3777 | label:(resources string:'Return') , (self shortKeyStringForAction: #DebuggerReturn) |
3771 | 3778 | action:[ |
3772 | 3779 | returnButton turnOff. |
3773 | 3780 | self doReturn |
… |
… |
|
3777 | 3784 | returnButton name:'returnButton'. |
3778 | 3785 | |
3779 | 3786 | "Created: / 17.11.2001 / 20:58:22 / cg" |
| 3787 | "Modified: / 16-08-2017 / 09:11:20 / Patrik Svestka <patrik.svestka@gmail.com>" |
3780 | 3788 | ! |
3781 | 3789 | |
3782 | 3790 | initializeSendButtonIn:bpanel |
… |
… |
|
3796 | 3804 | |
3797 | 3805 | initializeStepButtonIn:bpanel |
3798 | 3806 | stepButton := Button |
3799 | | label:(resources string:'Debug_Step') |
| 3807 | label:(resources string:'Debug_Step') , (self shortKeyStringForAction: #DebuggerStep) |
3800 | 3808 | action:[ |
3801 | 3809 | stepButton turnOff. |
3802 | 3810 | self doStep |
… |
… |
|
3804 | 3812 | in:bpanel. |
3805 | 3813 | |
3806 | 3814 | stepButton name:'stepButton'. |
3807 | | |
3808 | 3815 | "Created: / 17.11.2001 / 21:00:13 / cg" |
| 3816 | "Modified: / 02-08-2017 / 10:16:38 / Patrik Svestka <patrik.svestka@gmail.com>" |
3809 | 3817 | ! |
3810 | 3818 | |
3811 | 3819 | initializeTerminateButtonIn:bpanel |
3812 | 3820 | terminateButton := Button |
3813 | | label:(resources string:'Debug_Terminate') |
| 3821 | label:(resources string:'Debug_Terminate') , (self shortKeyStringForAction: #DebugTerminate) |
3814 | 3822 | action:[ |
3815 | 3823 | terminateButton turnOffWithoutRedraw. |
3816 | 3824 | self doTerminate |
… |
… |
|
3822 | 3830 | "/ terminateButton foregroundColor:Color red. |
3823 | 3831 | |
3824 | 3832 | "Created: / 17.11.2001 / 21:02:20 / cg" |
| 3833 | "Modified: / 16-08-2017 / 09:17:10 / Patrik Svestka <patrik.svestka@gmail.com>" |
3825 | 3834 | ! |
3826 | 3835 | |
3827 | 3836 | postRealize |