author | Jan Vrany <jan.vrany@labware.com> |
Tue, 26 Jul 2022 15:01:33 +0100 | |
changeset 265 | f2470f0dd9cd |
parent 264 | 23960fcb9dac |
permissions | -rw-r--r-- |
73
82e202dec6cb
UX: added preferences to automatically enable frame filters and pretty printers
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
1 |
" |
264
23960fcb9dac
Relicense under MIT license.
Jan Vrany <jan.vrany@labware.com>
parents:
203
diff
changeset
|
2 |
jv:libgdbs - GNU Debugger Interface Library |
73
82e202dec6cb
UX: added preferences to automatically enable frame filters and pretty printers
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
3 |
Copyright (C) 2015-now Jan Vrany |
202
8064029822c5
Fix `.gdbinit` and `.vdbinit.st` editing in settings
Jan Vrany <jan.vrany@labware.com>
parents:
175
diff
changeset
|
4 |
Copyright (C) 2020 LabWare |
264
23960fcb9dac
Relicense under MIT license.
Jan Vrany <jan.vrany@labware.com>
parents:
203
diff
changeset
|
5 |
Copyright (C) 2022 LabWare |
73
82e202dec6cb
UX: added preferences to automatically enable frame filters and pretty printers
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
6 |
|
264
23960fcb9dac
Relicense under MIT license.
Jan Vrany <jan.vrany@labware.com>
parents:
203
diff
changeset
|
7 |
Permission is hereby granted, free of charge, to any person obtaining a copy |
23960fcb9dac
Relicense under MIT license.
Jan Vrany <jan.vrany@labware.com>
parents:
203
diff
changeset
|
8 |
of this software and associated documentation files (the 'Software'), to deal |
23960fcb9dac
Relicense under MIT license.
Jan Vrany <jan.vrany@labware.com>
parents:
203
diff
changeset
|
9 |
in the Software without restriction, including without limitation the rights |
23960fcb9dac
Relicense under MIT license.
Jan Vrany <jan.vrany@labware.com>
parents:
203
diff
changeset
|
10 |
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell |
23960fcb9dac
Relicense under MIT license.
Jan Vrany <jan.vrany@labware.com>
parents:
203
diff
changeset
|
11 |
copies of the Software, and to permit persons to whom the Software is |
23960fcb9dac
Relicense under MIT license.
Jan Vrany <jan.vrany@labware.com>
parents:
203
diff
changeset
|
12 |
furnished to do so, subject to the following conditions: |
73
82e202dec6cb
UX: added preferences to automatically enable frame filters and pretty printers
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
13 |
|
264
23960fcb9dac
Relicense under MIT license.
Jan Vrany <jan.vrany@labware.com>
parents:
203
diff
changeset
|
14 |
The above copyright notice and this permission notice shall be included in all |
23960fcb9dac
Relicense under MIT license.
Jan Vrany <jan.vrany@labware.com>
parents:
203
diff
changeset
|
15 |
copies or substantial portions of the Software. |
23960fcb9dac
Relicense under MIT license.
Jan Vrany <jan.vrany@labware.com>
parents:
203
diff
changeset
|
16 |
|
23960fcb9dac
Relicense under MIT license.
Jan Vrany <jan.vrany@labware.com>
parents:
203
diff
changeset
|
17 |
THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND, EXPRESS OR |
23960fcb9dac
Relicense under MIT license.
Jan Vrany <jan.vrany@labware.com>
parents:
203
diff
changeset
|
18 |
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, |
23960fcb9dac
Relicense under MIT license.
Jan Vrany <jan.vrany@labware.com>
parents:
203
diff
changeset
|
19 |
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE |
23960fcb9dac
Relicense under MIT license.
Jan Vrany <jan.vrany@labware.com>
parents:
203
diff
changeset
|
20 |
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER |
23960fcb9dac
Relicense under MIT license.
Jan Vrany <jan.vrany@labware.com>
parents:
203
diff
changeset
|
21 |
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, |
23960fcb9dac
Relicense under MIT license.
Jan Vrany <jan.vrany@labware.com>
parents:
203
diff
changeset
|
22 |
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE |
23960fcb9dac
Relicense under MIT license.
Jan Vrany <jan.vrany@labware.com>
parents:
203
diff
changeset
|
23 |
SOFTWARE. |
73
82e202dec6cb
UX: added preferences to automatically enable frame filters and pretty printers
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
24 |
" |
82e202dec6cb
UX: added preferences to automatically enable frame filters and pretty printers
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
25 |
"{ Package: 'jv:vdb' }" |
82e202dec6cb
UX: added preferences to automatically enable frame filters and pretty printers
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
26 |
|
82e202dec6cb
UX: added preferences to automatically enable frame filters and pretty printers
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
27 |
"{ NameSpace: Smalltalk }" |
82e202dec6cb
UX: added preferences to automatically enable frame filters and pretty printers
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
28 |
|
82e202dec6cb
UX: added preferences to automatically enable frame filters and pretty printers
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
29 |
AbstractSettingsApplication subclass:#VDBSettingsApplication |
171
39774c491dbf
Clean up settings application and remove obsolete settings
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
129
diff
changeset
|
30 |
instanceVariableNames:'infoPanel gdbCommand' |
73
82e202dec6cb
UX: added preferences to automatically enable frame filters and pretty printers
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
31 |
classVariableNames:'' |
82e202dec6cb
UX: added preferences to automatically enable frame filters and pretty printers
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
32 |
poolDictionaries:'' |
82e202dec6cb
UX: added preferences to automatically enable frame filters and pretty printers
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
33 |
category:'VDB-UI-Others' |
82e202dec6cb
UX: added preferences to automatically enable frame filters and pretty printers
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
34 |
! |
82e202dec6cb
UX: added preferences to automatically enable frame filters and pretty printers
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
35 |
|
82e202dec6cb
UX: added preferences to automatically enable frame filters and pretty printers
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
36 |
!VDBSettingsApplication class methodsFor:'documentation'! |
82e202dec6cb
UX: added preferences to automatically enable frame filters and pretty printers
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
37 |
|
82e202dec6cb
UX: added preferences to automatically enable frame filters and pretty printers
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
38 |
copyright |
82e202dec6cb
UX: added preferences to automatically enable frame filters and pretty printers
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
39 |
" |
264
23960fcb9dac
Relicense under MIT license.
Jan Vrany <jan.vrany@labware.com>
parents:
203
diff
changeset
|
40 |
jv:libgdbs - GNU Debugger Interface Library |
73
82e202dec6cb
UX: added preferences to automatically enable frame filters and pretty printers
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
41 |
Copyright (C) 2015-now Jan Vrany |
202
8064029822c5
Fix `.gdbinit` and `.vdbinit.st` editing in settings
Jan Vrany <jan.vrany@labware.com>
parents:
175
diff
changeset
|
42 |
Copyright (C) 2020 LabWare |
264
23960fcb9dac
Relicense under MIT license.
Jan Vrany <jan.vrany@labware.com>
parents:
203
diff
changeset
|
43 |
Copyright (C) 2022 LabWare |
73
82e202dec6cb
UX: added preferences to automatically enable frame filters and pretty printers
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
44 |
|
264
23960fcb9dac
Relicense under MIT license.
Jan Vrany <jan.vrany@labware.com>
parents:
203
diff
changeset
|
45 |
Permission is hereby granted, free of charge, to any person obtaining a copy |
23960fcb9dac
Relicense under MIT license.
Jan Vrany <jan.vrany@labware.com>
parents:
203
diff
changeset
|
46 |
of this software and associated documentation files (the 'Software'), to deal |
23960fcb9dac
Relicense under MIT license.
Jan Vrany <jan.vrany@labware.com>
parents:
203
diff
changeset
|
47 |
in the Software without restriction, including without limitation the rights |
23960fcb9dac
Relicense under MIT license.
Jan Vrany <jan.vrany@labware.com>
parents:
203
diff
changeset
|
48 |
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell |
23960fcb9dac
Relicense under MIT license.
Jan Vrany <jan.vrany@labware.com>
parents:
203
diff
changeset
|
49 |
copies of the Software, and to permit persons to whom the Software is |
23960fcb9dac
Relicense under MIT license.
Jan Vrany <jan.vrany@labware.com>
parents:
203
diff
changeset
|
50 |
furnished to do so, subject to the following conditions: |
73
82e202dec6cb
UX: added preferences to automatically enable frame filters and pretty printers
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
51 |
|
264
23960fcb9dac
Relicense under MIT license.
Jan Vrany <jan.vrany@labware.com>
parents:
203
diff
changeset
|
52 |
The above copyright notice and this permission notice shall be included in all |
23960fcb9dac
Relicense under MIT license.
Jan Vrany <jan.vrany@labware.com>
parents:
203
diff
changeset
|
53 |
copies or substantial portions of the Software. |
23960fcb9dac
Relicense under MIT license.
Jan Vrany <jan.vrany@labware.com>
parents:
203
diff
changeset
|
54 |
|
23960fcb9dac
Relicense under MIT license.
Jan Vrany <jan.vrany@labware.com>
parents:
203
diff
changeset
|
55 |
THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND, EXPRESS OR |
23960fcb9dac
Relicense under MIT license.
Jan Vrany <jan.vrany@labware.com>
parents:
203
diff
changeset
|
56 |
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, |
23960fcb9dac
Relicense under MIT license.
Jan Vrany <jan.vrany@labware.com>
parents:
203
diff
changeset
|
57 |
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE |
23960fcb9dac
Relicense under MIT license.
Jan Vrany <jan.vrany@labware.com>
parents:
203
diff
changeset
|
58 |
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER |
23960fcb9dac
Relicense under MIT license.
Jan Vrany <jan.vrany@labware.com>
parents:
203
diff
changeset
|
59 |
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, |
23960fcb9dac
Relicense under MIT license.
Jan Vrany <jan.vrany@labware.com>
parents:
203
diff
changeset
|
60 |
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE |
23960fcb9dac
Relicense under MIT license.
Jan Vrany <jan.vrany@labware.com>
parents:
203
diff
changeset
|
61 |
SOFTWARE. |
73
82e202dec6cb
UX: added preferences to automatically enable frame filters and pretty printers
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
62 |
" |
82e202dec6cb
UX: added preferences to automatically enable frame filters and pretty printers
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
63 |
! ! |
82e202dec6cb
UX: added preferences to automatically enable frame filters and pretty printers
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
64 |
|
82e202dec6cb
UX: added preferences to automatically enable frame filters and pretty printers
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
65 |
!VDBSettingsApplication class methodsFor:'initialization'! |
82e202dec6cb
UX: added preferences to automatically enable frame filters and pretty printers
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
66 |
|
82e202dec6cb
UX: added preferences to automatically enable frame filters and pretty printers
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
67 |
initialize |
203
6fd080fc5ee3
Refactored preferences opening to make it work on standalone debuggers
Jan Vrany <jan.vrany@labware.com>
parents:
202
diff
changeset
|
68 |
Smalltalk isInitialized ifTrue: [ |
6fd080fc5ee3
Refactored preferences opening to make it work on standalone debuggers
Jan Vrany <jan.vrany@labware.com>
parents:
202
diff
changeset
|
69 |
self installInSettings |
6fd080fc5ee3
Refactored preferences opening to make it work on standalone debuggers
Jan Vrany <jan.vrany@labware.com>
parents:
202
diff
changeset
|
70 |
] ifFalse: [ |
6fd080fc5ee3
Refactored preferences opening to make it work on standalone debuggers
Jan Vrany <jan.vrany@labware.com>
parents:
202
diff
changeset
|
71 |
Smalltalk addStartBlock:[ self installInSettings ] |
6fd080fc5ee3
Refactored preferences opening to make it work on standalone debuggers
Jan Vrany <jan.vrany@labware.com>
parents:
202
diff
changeset
|
72 |
]. |
73
82e202dec6cb
UX: added preferences to automatically enable frame filters and pretty printers
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
73 |
|
82e202dec6cb
UX: added preferences to automatically enable frame filters and pretty printers
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
74 |
"Created: / 23-06-2005 / 09:27:10 / masca" |
203
6fd080fc5ee3
Refactored preferences opening to make it work on standalone debuggers
Jan Vrany <jan.vrany@labware.com>
parents:
202
diff
changeset
|
75 |
"Modified: / 17-11-2020 / 15:00:46 / Jan Vrany <jan.vrany@labware.com>" |
73
82e202dec6cb
UX: added preferences to automatically enable frame filters and pretty printers
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
76 |
! |
82e202dec6cb
UX: added preferences to automatically enable frame filters and pretty printers
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
77 |
|
203
6fd080fc5ee3
Refactored preferences opening to make it work on standalone debuggers
Jan Vrany <jan.vrany@labware.com>
parents:
202
diff
changeset
|
78 |
installInSettings |
6fd080fc5ee3
Refactored preferences opening to make it work on standalone debuggers
Jan Vrany <jan.vrany@labware.com>
parents:
202
diff
changeset
|
79 |
AbstractLauncherApplication |
6fd080fc5ee3
Refactored preferences opening to make it work on standalone debuggers
Jan Vrany <jan.vrany@labware.com>
parents:
202
diff
changeset
|
80 |
addSettingsApplicationByClass:self name withName:(self classResources string: 'Tools/Visual VM Debugger') icon:self defaultIcon |
73
82e202dec6cb
UX: added preferences to automatically enable frame filters and pretty printers
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
81 |
|
82e202dec6cb
UX: added preferences to automatically enable frame filters and pretty printers
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
82 |
"Created: / 23-06-2005 / 09:27:10 / masca" |
82e202dec6cb
UX: added preferences to automatically enable frame filters and pretty printers
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
83 |
"Modified: / 10-04-2018 / 16:56:22 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
203
6fd080fc5ee3
Refactored preferences opening to make it work on standalone debuggers
Jan Vrany <jan.vrany@labware.com>
parents:
202
diff
changeset
|
84 |
"Modified: / 17-11-2020 / 15:00:59 / Jan Vrany <jan.vrany@labware.com>" |
73
82e202dec6cb
UX: added preferences to automatically enable frame filters and pretty printers
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
85 |
! ! |
82e202dec6cb
UX: added preferences to automatically enable frame filters and pretty printers
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
86 |
|
116
d0d6da74ead3
UI: add GDB executable configuration to settings dialog
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
73
diff
changeset
|
87 |
!VDBSettingsApplication class methodsFor:'help specs'! |
d0d6da74ead3
UI: add GDB executable configuration to settings dialog
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
73
diff
changeset
|
88 |
|
d0d6da74ead3
UI: add GDB executable configuration to settings dialog
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
73
diff
changeset
|
89 |
helpSpec |
d0d6da74ead3
UI: add GDB executable configuration to settings dialog
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
73
diff
changeset
|
90 |
"This resource specification was automatically generated |
d0d6da74ead3
UI: add GDB executable configuration to settings dialog
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
73
diff
changeset
|
91 |
by the UIHelpTool of ST/X." |
d0d6da74ead3
UI: add GDB executable configuration to settings dialog
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
73
diff
changeset
|
92 |
|
d0d6da74ead3
UI: add GDB executable configuration to settings dialog
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
73
diff
changeset
|
93 |
"Do not manually edit this!! If it is corrupted, |
d0d6da74ead3
UI: add GDB executable configuration to settings dialog
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
73
diff
changeset
|
94 |
the UIHelpTool may not be able to read the specification." |
d0d6da74ead3
UI: add GDB executable configuration to settings dialog
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
73
diff
changeset
|
95 |
|
d0d6da74ead3
UI: add GDB executable configuration to settings dialog
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
73
diff
changeset
|
96 |
" |
d0d6da74ead3
UI: add GDB executable configuration to settings dialog
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
73
diff
changeset
|
97 |
UIHelpTool openOnClass:VDBSettingsApplication |
d0d6da74ead3
UI: add GDB executable configuration to settings dialog
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
73
diff
changeset
|
98 |
" |
d0d6da74ead3
UI: add GDB executable configuration to settings dialog
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
73
diff
changeset
|
99 |
|
d0d6da74ead3
UI: add GDB executable configuration to settings dialog
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
73
diff
changeset
|
100 |
<resource: #help> |
d0d6da74ead3
UI: add GDB executable configuration to settings dialog
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
73
diff
changeset
|
101 |
|
d0d6da74ead3
UI: add GDB executable configuration to settings dialog
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
73
diff
changeset
|
102 |
^ super helpSpec addPairsFrom:#( |
d0d6da74ead3
UI: add GDB executable configuration to settings dialog
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
73
diff
changeset
|
103 |
|
d0d6da74ead3
UI: add GDB executable configuration to settings dialog
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
73
diff
changeset
|
104 |
#ExecutableLabel |
d0d6da74ead3
UI: add GDB executable configuration to settings dialog
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
73
diff
changeset
|
105 |
'Path to GDB executable. If left empty, system GDB is used.' |
d0d6da74ead3
UI: add GDB executable configuration to settings dialog
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
73
diff
changeset
|
106 |
|
d0d6da74ead3
UI: add GDB executable configuration to settings dialog
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
73
diff
changeset
|
107 |
) |
d0d6da74ead3
UI: add GDB executable configuration to settings dialog
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
73
diff
changeset
|
108 |
! ! |
d0d6da74ead3
UI: add GDB executable configuration to settings dialog
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
73
diff
changeset
|
109 |
|
73
82e202dec6cb
UX: added preferences to automatically enable frame filters and pretty printers
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
110 |
!VDBSettingsApplication class methodsFor:'interface specs'! |
82e202dec6cb
UX: added preferences to automatically enable frame filters and pretty printers
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
111 |
|
82e202dec6cb
UX: added preferences to automatically enable frame filters and pretty printers
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
112 |
windowSpec |
82e202dec6cb
UX: added preferences to automatically enable frame filters and pretty printers
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
113 |
"This resource specification was automatically generated |
82e202dec6cb
UX: added preferences to automatically enable frame filters and pretty printers
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
114 |
by the UIPainter of ST/X." |
82e202dec6cb
UX: added preferences to automatically enable frame filters and pretty printers
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
115 |
|
82e202dec6cb
UX: added preferences to automatically enable frame filters and pretty printers
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
116 |
"Do not manually edit this!! If it is corrupted, |
82e202dec6cb
UX: added preferences to automatically enable frame filters and pretty printers
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
117 |
the UIPainter may not be able to read the specification." |
82e202dec6cb
UX: added preferences to automatically enable frame filters and pretty printers
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
118 |
|
82e202dec6cb
UX: added preferences to automatically enable frame filters and pretty printers
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
119 |
" |
82e202dec6cb
UX: added preferences to automatically enable frame filters and pretty printers
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
120 |
UIPainter new openOnClass:VDBSettingsApplication andSelector:#windowSpec |
82e202dec6cb
UX: added preferences to automatically enable frame filters and pretty printers
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
121 |
VDBSettingsApplication new openInterface:#windowSpec |
82e202dec6cb
UX: added preferences to automatically enable frame filters and pretty printers
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
122 |
VDBSettingsApplication open |
82e202dec6cb
UX: added preferences to automatically enable frame filters and pretty printers
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
123 |
" |
82e202dec6cb
UX: added preferences to automatically enable frame filters and pretty printers
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
124 |
|
82e202dec6cb
UX: added preferences to automatically enable frame filters and pretty printers
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
125 |
<resource: #canvas> |
82e202dec6cb
UX: added preferences to automatically enable frame filters and pretty printers
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
126 |
|
82e202dec6cb
UX: added preferences to automatically enable frame filters and pretty printers
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
127 |
^ |
82e202dec6cb
UX: added preferences to automatically enable frame filters and pretty printers
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
128 |
#(FullSpec |
82e202dec6cb
UX: added preferences to automatically enable frame filters and pretty printers
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
129 |
name: windowSpec |
174
3f6f51330641
UI: add "Edit" button to settings application to edit GDB and VDB init scripts
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
171
diff
changeset
|
130 |
uuid: '44956520-937c-11e9-8e2a-606720e43e2c' |
73
82e202dec6cb
UX: added preferences to automatically enable frame filters and pretty printers
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
131 |
window: |
82e202dec6cb
UX: added preferences to automatically enable frame filters and pretty printers
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
132 |
(WindowSpec |
82e202dec6cb
UX: added preferences to automatically enable frame filters and pretty printers
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
133 |
label: 'Java Settings' |
82e202dec6cb
UX: added preferences to automatically enable frame filters and pretty printers
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
134 |
name: 'Java Settings' |
82e202dec6cb
UX: added preferences to automatically enable frame filters and pretty printers
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
135 |
uuid: '10c0dbf1-3cd7-11e8-882f-0021ccd5e3d3' |
82e202dec6cb
UX: added preferences to automatically enable frame filters and pretty printers
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
136 |
min: (Point 10 10) |
82e202dec6cb
UX: added preferences to automatically enable frame filters and pretty printers
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
137 |
bounds: (Rectangle 0 0 695 627) |
82e202dec6cb
UX: added preferences to automatically enable frame filters and pretty printers
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
138 |
) |
82e202dec6cb
UX: added preferences to automatically enable frame filters and pretty printers
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
139 |
component: |
82e202dec6cb
UX: added preferences to automatically enable frame filters and pretty printers
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
140 |
(SpecCollection |
82e202dec6cb
UX: added preferences to automatically enable frame filters and pretty printers
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
141 |
collection: ( |
82e202dec6cb
UX: added preferences to automatically enable frame filters and pretty printers
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
142 |
(LabelSpec |
82e202dec6cb
UX: added preferences to automatically enable frame filters and pretty printers
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
143 |
label: ' Visual/VM Debugger Settings' |
82e202dec6cb
UX: added preferences to automatically enable frame filters and pretty printers
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
144 |
name: 'SettingsTitle' |
82e202dec6cb
UX: added preferences to automatically enable frame filters and pretty printers
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
145 |
layout: (LayoutFrame 0 0 0 0 0 1 66 0) |
82e202dec6cb
UX: added preferences to automatically enable frame filters and pretty printers
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
146 |
style: (FontDescription helvetica medium roman 18 #'iso10646-1' nil nil) |
82e202dec6cb
UX: added preferences to automatically enable frame filters and pretty printers
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
147 |
uuid: '10c0dbf2-3cd7-11e8-882f-0021ccd5e3d3' |
82e202dec6cb
UX: added preferences to automatically enable frame filters and pretty printers
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
148 |
backgroundColor: (Color 100.0 100.0 100.0) |
82e202dec6cb
UX: added preferences to automatically enable frame filters and pretty printers
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
149 |
translateLabel: true |
82e202dec6cb
UX: added preferences to automatically enable frame filters and pretty printers
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
150 |
adjust: left |
82e202dec6cb
UX: added preferences to automatically enable frame filters and pretty printers
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
151 |
) |
82e202dec6cb
UX: added preferences to automatically enable frame filters and pretty printers
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
152 |
(LabelSpec |
82e202dec6cb
UX: added preferences to automatically enable frame filters and pretty printers
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
153 |
label: 'Icon' |
82e202dec6cb
UX: added preferences to automatically enable frame filters and pretty printers
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
154 |
name: 'Icon' |
82e202dec6cb
UX: added preferences to automatically enable frame filters and pretty printers
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
155 |
layout: (LayoutFrame -75 1 0 0 0 1 66 0) |
82e202dec6cb
UX: added preferences to automatically enable frame filters and pretty printers
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
156 |
uuid: '10c10300-3cd7-11e8-882f-0021ccd5e3d3' |
82e202dec6cb
UX: added preferences to automatically enable frame filters and pretty printers
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
157 |
hasCharacterOrientedLabel: false |
82e202dec6cb
UX: added preferences to automatically enable frame filters and pretty printers
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
158 |
backgroundColor: (Color 100.0 100.0 100.0) |
82e202dec6cb
UX: added preferences to automatically enable frame filters and pretty printers
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
159 |
translateLabel: true |
82e202dec6cb
UX: added preferences to automatically enable frame filters and pretty printers
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
160 |
labelChannel: libjavaCupIcon |
82e202dec6cb
UX: added preferences to automatically enable frame filters and pretty printers
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
161 |
) |
82e202dec6cb
UX: added preferences to automatically enable frame filters and pretty printers
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
162 |
(SubCanvasSpec |
82e202dec6cb
UX: added preferences to automatically enable frame filters and pretty printers
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
163 |
name: 'InfoPanel' |
82e202dec6cb
UX: added preferences to automatically enable frame filters and pretty printers
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
164 |
layout: (LayoutFrame 0 0 67 0 0 1 107 0) |
82e202dec6cb
UX: added preferences to automatically enable frame filters and pretty printers
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
165 |
uuid: '10c10301-3cd7-11e8-882f-0021ccd5e3d3' |
82e202dec6cb
UX: added preferences to automatically enable frame filters and pretty printers
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
166 |
level: 0 |
82e202dec6cb
UX: added preferences to automatically enable frame filters and pretty printers
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
167 |
initiallyInvisible: true |
82e202dec6cb
UX: added preferences to automatically enable frame filters and pretty printers
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
168 |
hasHorizontalScrollBar: false |
82e202dec6cb
UX: added preferences to automatically enable frame filters and pretty printers
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
169 |
hasVerticalScrollBar: false |
82e202dec6cb
UX: added preferences to automatically enable frame filters and pretty printers
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
170 |
clientKey: infoPanel |
82e202dec6cb
UX: added preferences to automatically enable frame filters and pretty printers
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
171 |
createNewBuilder: false |
82e202dec6cb
UX: added preferences to automatically enable frame filters and pretty printers
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
172 |
) |
82e202dec6cb
UX: added preferences to automatically enable frame filters and pretty printers
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
173 |
(VerticalPanelViewSpec |
82e202dec6cb
UX: added preferences to automatically enable frame filters and pretty printers
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
174 |
name: 'Controls' |
171
39774c491dbf
Clean up settings application and remove obsolete settings
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
129
diff
changeset
|
175 |
layout: (LayoutFrame 10 0 70 0 -10 1 0 1) |
73
82e202dec6cb
UX: added preferences to automatically enable frame filters and pretty printers
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
176 |
uuid: '10c10302-3cd7-11e8-882f-0021ccd5e3d3' |
82e202dec6cb
UX: added preferences to automatically enable frame filters and pretty printers
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
177 |
horizontalLayout: fit |
82e202dec6cb
UX: added preferences to automatically enable frame filters and pretty printers
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
178 |
verticalLayout: top |
82e202dec6cb
UX: added preferences to automatically enable frame filters and pretty printers
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
179 |
horizontalSpace: 3 |
82e202dec6cb
UX: added preferences to automatically enable frame filters and pretty printers
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
180 |
verticalSpace: 3 |
82e202dec6cb
UX: added preferences to automatically enable frame filters and pretty printers
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
181 |
component: |
82e202dec6cb
UX: added preferences to automatically enable frame filters and pretty printers
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
182 |
(SpecCollection |
82e202dec6cb
UX: added preferences to automatically enable frame filters and pretty printers
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
183 |
collection: ( |
171
39774c491dbf
Clean up settings application and remove obsolete settings
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
129
diff
changeset
|
184 |
(ViewSpec |
39774c491dbf
Clean up settings application and remove obsolete settings
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
129
diff
changeset
|
185 |
name: 'Spacer1' |
39774c491dbf
Clean up settings application and remove obsolete settings
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
129
diff
changeset
|
186 |
uuid: 'fed33671-91af-11e9-b25b-606720e43e2c' |
39774c491dbf
Clean up settings application and remove obsolete settings
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
129
diff
changeset
|
187 |
extent: (Point 675 15) |
117
1ae8e04f5feb
UI: add option to change debugger layout and preference to set the default layout
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
116
diff
changeset
|
188 |
) |
116
d0d6da74ead3
UI: add GDB executable configuration to settings dialog
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
73
diff
changeset
|
189 |
(ViewSpec |
129
974e705572ea
Fix: catch-up with `jv:libgdbs` after a rename of `#gdbExecutable`
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
118
diff
changeset
|
190 |
name: 'CommandPane' |
116
d0d6da74ead3
UI: add GDB executable configuration to settings dialog
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
73
diff
changeset
|
191 |
uuid: '7628c0d0-c755-11e8-8f9c-0021ccd5e3d3' |
d0d6da74ead3
UI: add GDB executable configuration to settings dialog
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
73
diff
changeset
|
192 |
component: |
d0d6da74ead3
UI: add GDB executable configuration to settings dialog
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
73
diff
changeset
|
193 |
(SpecCollection |
d0d6da74ead3
UI: add GDB executable configuration to settings dialog
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
73
diff
changeset
|
194 |
collection: ( |
171
39774c491dbf
Clean up settings application and remove obsolete settings
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
129
diff
changeset
|
195 |
(LabelSpec |
39774c491dbf
Clean up settings application and remove obsolete settings
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
129
diff
changeset
|
196 |
label: ''';gdb'' command:' |
39774c491dbf
Clean up settings application and remove obsolete settings
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
129
diff
changeset
|
197 |
name: 'CommandLabel' |
39774c491dbf
Clean up settings application and remove obsolete settings
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
129
diff
changeset
|
198 |
layout: (LayoutFrame 0 0 0 0 120 0 0 1) |
39774c491dbf
Clean up settings application and remove obsolete settings
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
129
diff
changeset
|
199 |
uuid: 'fed33672-91af-11e9-b25b-606720e43e2c' |
39774c491dbf
Clean up settings application and remove obsolete settings
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
129
diff
changeset
|
200 |
translateLabel: true |
39774c491dbf
Clean up settings application and remove obsolete settings
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
129
diff
changeset
|
201 |
adjust: left |
39774c491dbf
Clean up settings application and remove obsolete settings
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
129
diff
changeset
|
202 |
) |
116
d0d6da74ead3
UI: add GDB executable configuration to settings dialog
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
73
diff
changeset
|
203 |
(FilenameInputFieldSpec |
129
974e705572ea
Fix: catch-up with `jv:libgdbs` after a rename of `#gdbExecutable`
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
118
diff
changeset
|
204 |
name: 'Command' |
171
39774c491dbf
Clean up settings application and remove obsolete settings
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
129
diff
changeset
|
205 |
layout: (LayoutFrame 120 0 0 0 -100 1 0 1) |
116
d0d6da74ead3
UI: add GDB executable configuration to settings dialog
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
73
diff
changeset
|
206 |
uuid: '7628c0d2-c755-11e8-8f9c-0021ccd5e3d3' |
129
974e705572ea
Fix: catch-up with `jv:libgdbs` after a rename of `#gdbExecutable`
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
118
diff
changeset
|
207 |
model: gdbCommand |
116
d0d6da74ead3
UI: add GDB executable configuration to settings dialog
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
73
diff
changeset
|
208 |
immediateAccept: true |
d0d6da74ead3
UI: add GDB executable configuration to settings dialog
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
73
diff
changeset
|
209 |
acceptOnPointerLeave: true |
d0d6da74ead3
UI: add GDB executable configuration to settings dialog
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
73
diff
changeset
|
210 |
emptyFieldReplacementText: 'Autodetect' |
d0d6da74ead3
UI: add GDB executable configuration to settings dialog
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
73
diff
changeset
|
211 |
) |
d0d6da74ead3
UI: add GDB executable configuration to settings dialog
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
73
diff
changeset
|
212 |
(ActionButtonSpec |
d0d6da74ead3
UI: add GDB executable configuration to settings dialog
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
73
diff
changeset
|
213 |
label: 'Browse' |
d0d6da74ead3
UI: add GDB executable configuration to settings dialog
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
73
diff
changeset
|
214 |
name: 'BrowseButton' |
d0d6da74ead3
UI: add GDB executable configuration to settings dialog
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
73
diff
changeset
|
215 |
layout: (LayoutFrame -100 1 0 0 -8 1 0 1) |
d0d6da74ead3
UI: add GDB executable configuration to settings dialog
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
73
diff
changeset
|
216 |
uuid: '7628c0d3-c755-11e8-8f9c-0021ccd5e3d3' |
d0d6da74ead3
UI: add GDB executable configuration to settings dialog
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
73
diff
changeset
|
217 |
translateLabel: true |
d0d6da74ead3
UI: add GDB executable configuration to settings dialog
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
73
diff
changeset
|
218 |
model: doSelectExecutable |
d0d6da74ead3
UI: add GDB executable configuration to settings dialog
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
73
diff
changeset
|
219 |
) |
d0d6da74ead3
UI: add GDB executable configuration to settings dialog
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
73
diff
changeset
|
220 |
) |
d0d6da74ead3
UI: add GDB executable configuration to settings dialog
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
73
diff
changeset
|
221 |
|
d0d6da74ead3
UI: add GDB executable configuration to settings dialog
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
73
diff
changeset
|
222 |
) |
171
39774c491dbf
Clean up settings application and remove obsolete settings
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
129
diff
changeset
|
223 |
extent: (Point 675 25) |
116
d0d6da74ead3
UI: add GDB executable configuration to settings dialog
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
73
diff
changeset
|
224 |
) |
d0d6da74ead3
UI: add GDB executable configuration to settings dialog
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
73
diff
changeset
|
225 |
(ViewSpec |
174
3f6f51330641
UI: add "Edit" button to settings application to edit GDB and VDB init scripts
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
171
diff
changeset
|
226 |
name: 'Spacer2' |
116
d0d6da74ead3
UI: add GDB executable configuration to settings dialog
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
73
diff
changeset
|
227 |
uuid: '7628c0d4-c755-11e8-8f9c-0021ccd5e3d3' |
171
39774c491dbf
Clean up settings application and remove obsolete settings
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
129
diff
changeset
|
228 |
extent: (Point 675 15) |
73
82e202dec6cb
UX: added preferences to automatically enable frame filters and pretty printers
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
229 |
) |
174
3f6f51330641
UI: add "Edit" button to settings application to edit GDB and VDB init scripts
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
171
diff
changeset
|
230 |
(ViewSpec |
3f6f51330641
UI: add "Edit" button to settings application to edit GDB and VDB init scripts
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
171
diff
changeset
|
231 |
name: 'vdbinit' |
3f6f51330641
UI: add "Edit" button to settings application to edit GDB and VDB init scripts
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
171
diff
changeset
|
232 |
uuid: '85b08540-936c-11e9-ac6c-606720e43e2c' |
3f6f51330641
UI: add "Edit" button to settings application to edit GDB and VDB init scripts
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
171
diff
changeset
|
233 |
component: |
3f6f51330641
UI: add "Edit" button to settings application to edit GDB and VDB init scripts
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
171
diff
changeset
|
234 |
(SpecCollection |
3f6f51330641
UI: add "Edit" button to settings application to edit GDB and VDB init scripts
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
171
diff
changeset
|
235 |
collection: ( |
3f6f51330641
UI: add "Edit" button to settings application to edit GDB and VDB init scripts
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
171
diff
changeset
|
236 |
(LabelSpec |
3f6f51330641
UI: add "Edit" button to settings application to edit GDB and VDB init scripts
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
171
diff
changeset
|
237 |
label: 'VDB init script' |
3f6f51330641
UI: add "Edit" button to settings application to edit GDB and VDB init scripts
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
171
diff
changeset
|
238 |
name: 'Label1' |
3f6f51330641
UI: add "Edit" button to settings application to edit GDB and VDB init scripts
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
171
diff
changeset
|
239 |
layout: (LayoutFrame 0 0 -1 0 0 1 24 0) |
3f6f51330641
UI: add "Edit" button to settings application to edit GDB and VDB init scripts
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
171
diff
changeset
|
240 |
uuid: '85b08541-936c-11e9-ac6c-606720e43e2c' |
3f6f51330641
UI: add "Edit" button to settings application to edit GDB and VDB init scripts
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
171
diff
changeset
|
241 |
translateLabel: true |
3f6f51330641
UI: add "Edit" button to settings application to edit GDB and VDB init scripts
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
171
diff
changeset
|
242 |
adjust: left |
3f6f51330641
UI: add "Edit" button to settings application to edit GDB and VDB init scripts
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
171
diff
changeset
|
243 |
) |
3f6f51330641
UI: add "Edit" button to settings application to edit GDB and VDB init scripts
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
171
diff
changeset
|
244 |
(LinkButtonSpec |
3f6f51330641
UI: add "Edit" button to settings application to edit GDB and VDB init scripts
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
171
diff
changeset
|
245 |
label: 'LinkButton' |
3f6f51330641
UI: add "Edit" button to settings application to edit GDB and VDB init scripts
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
171
diff
changeset
|
246 |
name: 'EditPreferences' |
3f6f51330641
UI: add "Edit" button to settings application to edit GDB and VDB init scripts
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
171
diff
changeset
|
247 |
layout: (LayoutFrame 0 0 28 0 -100 1 58 0) |
3f6f51330641
UI: add "Edit" button to settings application to edit GDB and VDB init scripts
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
171
diff
changeset
|
248 |
uuid: '85b08542-936c-11e9-ac6c-606720e43e2c' |
3f6f51330641
UI: add "Edit" button to settings application to edit GDB and VDB init scripts
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
171
diff
changeset
|
249 |
foregroundColor: (Color 0.0 0.0 100.0) |
3f6f51330641
UI: add "Edit" button to settings application to edit GDB and VDB init scripts
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
171
diff
changeset
|
250 |
translateLabel: true |
3f6f51330641
UI: add "Edit" button to settings application to edit GDB and VDB init scripts
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
171
diff
changeset
|
251 |
labelChannel: vdbinitAspect |
3f6f51330641
UI: add "Edit" button to settings application to edit GDB and VDB init scripts
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
171
diff
changeset
|
252 |
adjust: left |
3f6f51330641
UI: add "Edit" button to settings application to edit GDB and VDB init scripts
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
171
diff
changeset
|
253 |
model: doEditVDBinit |
3f6f51330641
UI: add "Edit" button to settings application to edit GDB and VDB init scripts
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
171
diff
changeset
|
254 |
) |
3f6f51330641
UI: add "Edit" button to settings application to edit GDB and VDB init scripts
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
171
diff
changeset
|
255 |
(ActionButtonSpec |
3f6f51330641
UI: add "Edit" button to settings application to edit GDB and VDB init scripts
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
171
diff
changeset
|
256 |
label: 'Edit' |
3f6f51330641
UI: add "Edit" button to settings application to edit GDB and VDB init scripts
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
171
diff
changeset
|
257 |
name: 'Button1' |
3f6f51330641
UI: add "Edit" button to settings application to edit GDB and VDB init scripts
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
171
diff
changeset
|
258 |
layout: (LayoutFrame -106 1 33 0 -6 1 58 0) |
3f6f51330641
UI: add "Edit" button to settings application to edit GDB and VDB init scripts
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
171
diff
changeset
|
259 |
uuid: '85b08543-936c-11e9-ac6c-606720e43e2c' |
3f6f51330641
UI: add "Edit" button to settings application to edit GDB and VDB init scripts
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
171
diff
changeset
|
260 |
translateLabel: true |
3f6f51330641
UI: add "Edit" button to settings application to edit GDB and VDB init scripts
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
171
diff
changeset
|
261 |
model: doEditVDBinit |
3f6f51330641
UI: add "Edit" button to settings application to edit GDB and VDB init scripts
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
171
diff
changeset
|
262 |
) |
3f6f51330641
UI: add "Edit" button to settings application to edit GDB and VDB init scripts
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
171
diff
changeset
|
263 |
) |
3f6f51330641
UI: add "Edit" button to settings application to edit GDB and VDB init scripts
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
171
diff
changeset
|
264 |
|
3f6f51330641
UI: add "Edit" button to settings application to edit GDB and VDB init scripts
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
171
diff
changeset
|
265 |
) |
3f6f51330641
UI: add "Edit" button to settings application to edit GDB and VDB init scripts
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
171
diff
changeset
|
266 |
extent: (Point 675 70) |
3f6f51330641
UI: add "Edit" button to settings application to edit GDB and VDB init scripts
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
171
diff
changeset
|
267 |
) |
3f6f51330641
UI: add "Edit" button to settings application to edit GDB and VDB init scripts
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
171
diff
changeset
|
268 |
(ViewSpec |
3f6f51330641
UI: add "Edit" button to settings application to edit GDB and VDB init scripts
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
171
diff
changeset
|
269 |
name: 'Spacer3' |
3f6f51330641
UI: add "Edit" button to settings application to edit GDB and VDB init scripts
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
171
diff
changeset
|
270 |
uuid: '7628c0d4-c755-11e8-8f9c-0021ccd5e3d3' |
3f6f51330641
UI: add "Edit" button to settings application to edit GDB and VDB init scripts
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
171
diff
changeset
|
271 |
extent: (Point 675 15) |
3f6f51330641
UI: add "Edit" button to settings application to edit GDB and VDB init scripts
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
171
diff
changeset
|
272 |
) |
3f6f51330641
UI: add "Edit" button to settings application to edit GDB and VDB init scripts
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
171
diff
changeset
|
273 |
(ViewSpec |
3f6f51330641
UI: add "Edit" button to settings application to edit GDB and VDB init scripts
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
171
diff
changeset
|
274 |
name: 'gdbinit' |
3f6f51330641
UI: add "Edit" button to settings application to edit GDB and VDB init scripts
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
171
diff
changeset
|
275 |
uuid: '85b08544-936c-11e9-ac6c-606720e43e2c' |
3f6f51330641
UI: add "Edit" button to settings application to edit GDB and VDB init scripts
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
171
diff
changeset
|
276 |
component: |
3f6f51330641
UI: add "Edit" button to settings application to edit GDB and VDB init scripts
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
171
diff
changeset
|
277 |
(SpecCollection |
3f6f51330641
UI: add "Edit" button to settings application to edit GDB and VDB init scripts
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
171
diff
changeset
|
278 |
collection: ( |
3f6f51330641
UI: add "Edit" button to settings application to edit GDB and VDB init scripts
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
171
diff
changeset
|
279 |
(LabelSpec |
3f6f51330641
UI: add "Edit" button to settings application to edit GDB and VDB init scripts
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
171
diff
changeset
|
280 |
label: 'GDB init script' |
3f6f51330641
UI: add "Edit" button to settings application to edit GDB and VDB init scripts
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
171
diff
changeset
|
281 |
name: 'Label2' |
3f6f51330641
UI: add "Edit" button to settings application to edit GDB and VDB init scripts
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
171
diff
changeset
|
282 |
layout: (LayoutFrame 0 0 -1 0 0 1 24 0) |
3f6f51330641
UI: add "Edit" button to settings application to edit GDB and VDB init scripts
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
171
diff
changeset
|
283 |
uuid: '85b08545-936c-11e9-ac6c-606720e43e2c' |
3f6f51330641
UI: add "Edit" button to settings application to edit GDB and VDB init scripts
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
171
diff
changeset
|
284 |
translateLabel: true |
3f6f51330641
UI: add "Edit" button to settings application to edit GDB and VDB init scripts
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
171
diff
changeset
|
285 |
adjust: left |
3f6f51330641
UI: add "Edit" button to settings application to edit GDB and VDB init scripts
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
171
diff
changeset
|
286 |
) |
3f6f51330641
UI: add "Edit" button to settings application to edit GDB and VDB init scripts
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
171
diff
changeset
|
287 |
(LinkButtonSpec |
3f6f51330641
UI: add "Edit" button to settings application to edit GDB and VDB init scripts
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
171
diff
changeset
|
288 |
label: 'LinkButton' |
3f6f51330641
UI: add "Edit" button to settings application to edit GDB and VDB init scripts
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
171
diff
changeset
|
289 |
name: 'Button2' |
3f6f51330641
UI: add "Edit" button to settings application to edit GDB and VDB init scripts
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
171
diff
changeset
|
290 |
layout: (LayoutFrame 0 0 28 0 -100 1 58 0) |
3f6f51330641
UI: add "Edit" button to settings application to edit GDB and VDB init scripts
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
171
diff
changeset
|
291 |
uuid: '85b08546-936c-11e9-ac6c-606720e43e2c' |
3f6f51330641
UI: add "Edit" button to settings application to edit GDB and VDB init scripts
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
171
diff
changeset
|
292 |
foregroundColor: (Color 0.0 0.0 100.0) |
3f6f51330641
UI: add "Edit" button to settings application to edit GDB and VDB init scripts
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
171
diff
changeset
|
293 |
translateLabel: true |
3f6f51330641
UI: add "Edit" button to settings application to edit GDB and VDB init scripts
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
171
diff
changeset
|
294 |
labelChannel: gdbinitAspect |
3f6f51330641
UI: add "Edit" button to settings application to edit GDB and VDB init scripts
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
171
diff
changeset
|
295 |
adjust: left |
3f6f51330641
UI: add "Edit" button to settings application to edit GDB and VDB init scripts
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
171
diff
changeset
|
296 |
model: doEditGDBinit |
3f6f51330641
UI: add "Edit" button to settings application to edit GDB and VDB init scripts
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
171
diff
changeset
|
297 |
) |
3f6f51330641
UI: add "Edit" button to settings application to edit GDB and VDB init scripts
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
171
diff
changeset
|
298 |
(ActionButtonSpec |
3f6f51330641
UI: add "Edit" button to settings application to edit GDB and VDB init scripts
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
171
diff
changeset
|
299 |
label: 'Edit' |
3f6f51330641
UI: add "Edit" button to settings application to edit GDB and VDB init scripts
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
171
diff
changeset
|
300 |
name: 'Button3' |
3f6f51330641
UI: add "Edit" button to settings application to edit GDB and VDB init scripts
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
171
diff
changeset
|
301 |
layout: (LayoutFrame -106 1 33 0 -6 1 58 0) |
3f6f51330641
UI: add "Edit" button to settings application to edit GDB and VDB init scripts
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
171
diff
changeset
|
302 |
uuid: '85b08547-936c-11e9-ac6c-606720e43e2c' |
3f6f51330641
UI: add "Edit" button to settings application to edit GDB and VDB init scripts
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
171
diff
changeset
|
303 |
translateLabel: true |
3f6f51330641
UI: add "Edit" button to settings application to edit GDB and VDB init scripts
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
171
diff
changeset
|
304 |
model: doEditGDBinit |
3f6f51330641
UI: add "Edit" button to settings application to edit GDB and VDB init scripts
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
171
diff
changeset
|
305 |
) |
3f6f51330641
UI: add "Edit" button to settings application to edit GDB and VDB init scripts
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
171
diff
changeset
|
306 |
) |
3f6f51330641
UI: add "Edit" button to settings application to edit GDB and VDB init scripts
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
171
diff
changeset
|
307 |
|
3f6f51330641
UI: add "Edit" button to settings application to edit GDB and VDB init scripts
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
171
diff
changeset
|
308 |
) |
3f6f51330641
UI: add "Edit" button to settings application to edit GDB and VDB init scripts
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
171
diff
changeset
|
309 |
extent: (Point 675 70) |
3f6f51330641
UI: add "Edit" button to settings application to edit GDB and VDB init scripts
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
171
diff
changeset
|
310 |
) |
73
82e202dec6cb
UX: added preferences to automatically enable frame filters and pretty printers
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
311 |
) |
82e202dec6cb
UX: added preferences to automatically enable frame filters and pretty printers
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
312 |
|
82e202dec6cb
UX: added preferences to automatically enable frame filters and pretty printers
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
313 |
) |
82e202dec6cb
UX: added preferences to automatically enable frame filters and pretty printers
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
314 |
) |
82e202dec6cb
UX: added preferences to automatically enable frame filters and pretty printers
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
315 |
) |
82e202dec6cb
UX: added preferences to automatically enable frame filters and pretty printers
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
316 |
|
82e202dec6cb
UX: added preferences to automatically enable frame filters and pretty printers
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
317 |
) |
82e202dec6cb
UX: added preferences to automatically enable frame filters and pretty printers
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
318 |
) |
82e202dec6cb
UX: added preferences to automatically enable frame filters and pretty printers
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
319 |
! ! |
82e202dec6cb
UX: added preferences to automatically enable frame filters and pretty printers
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
320 |
|
116
d0d6da74ead3
UI: add GDB executable configuration to settings dialog
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
73
diff
changeset
|
321 |
!VDBSettingsApplication methodsFor:'actions'! |
d0d6da74ead3
UI: add GDB executable configuration to settings dialog
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
73
diff
changeset
|
322 |
|
174
3f6f51330641
UI: add "Edit" button to settings application to edit GDB and VDB init scripts
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
171
diff
changeset
|
323 |
doEditGDBinit |
202
8064029822c5
Fix `.gdbinit` and `.vdbinit.st` editing in settings
Jan Vrany <jan.vrany@labware.com>
parents:
175
diff
changeset
|
324 |
| file | |
8064029822c5
Fix `.gdbinit` and `.vdbinit.st` editing in settings
Jan Vrany <jan.vrany@labware.com>
parents:
175
diff
changeset
|
325 |
|
8064029822c5
Fix `.gdbinit` and `.vdbinit.st` editing in settings
Jan Vrany <jan.vrany@labware.com>
parents:
175
diff
changeset
|
326 |
file := VDBDebuggerApplication gdbUserInitFile. |
8064029822c5
Fix `.gdbinit` and `.vdbinit.st` editing in settings
Jan Vrany <jan.vrany@labware.com>
parents:
175
diff
changeset
|
327 |
file exists ifFalse: [ |
8064029822c5
Fix `.gdbinit` and `.vdbinit.st` editing in settings
Jan Vrany <jan.vrany@labware.com>
parents:
175
diff
changeset
|
328 |
file directory isWritable ifTrue: [ |
8064029822c5
Fix `.gdbinit` and `.vdbinit.st` editing in settings
Jan Vrany <jan.vrany@labware.com>
parents:
175
diff
changeset
|
329 |
file createAsEmptyFile. |
8064029822c5
Fix `.gdbinit` and `.vdbinit.st` editing in settings
Jan Vrany <jan.vrany@labware.com>
parents:
175
diff
changeset
|
330 |
]. |
8064029822c5
Fix `.gdbinit` and `.vdbinit.st` editing in settings
Jan Vrany <jan.vrany@labware.com>
parents:
175
diff
changeset
|
331 |
]. |
8064029822c5
Fix `.gdbinit` and `.vdbinit.st` editing in settings
Jan Vrany <jan.vrany@labware.com>
parents:
175
diff
changeset
|
332 |
VDBScatchPadApplication openOnFile:file |
174
3f6f51330641
UI: add "Edit" button to settings application to edit GDB and VDB init scripts
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
171
diff
changeset
|
333 |
|
175
a304c250e889
UI: add "Scratch Pad" tool
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
174
diff
changeset
|
334 |
"Modified: / 21-06-2019 / 10:10:53 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
202
8064029822c5
Fix `.gdbinit` and `.vdbinit.st` editing in settings
Jan Vrany <jan.vrany@labware.com>
parents:
175
diff
changeset
|
335 |
"Modified: / 16-11-2020 / 22:17:14 / Jan Vrany <jan.vrany@labware.com>" |
174
3f6f51330641
UI: add "Edit" button to settings application to edit GDB and VDB init scripts
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
171
diff
changeset
|
336 |
! |
3f6f51330641
UI: add "Edit" button to settings application to edit GDB and VDB init scripts
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
171
diff
changeset
|
337 |
|
3f6f51330641
UI: add "Edit" button to settings application to edit GDB and VDB init scripts
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
171
diff
changeset
|
338 |
doEditVDBinit |
175
a304c250e889
UI: add "Scratch Pad" tool
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
174
diff
changeset
|
339 |
| user default userEditor defaultEditor workspaceView workspace | |
174
3f6f51330641
UI: add "Edit" button to settings application to edit GDB and VDB init scripts
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
171
diff
changeset
|
340 |
|
175
a304c250e889
UI: add "Scratch Pad" tool
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
174
diff
changeset
|
341 |
workspace := VDBScatchPadApplication new. |
174
3f6f51330641
UI: add "Edit" button to settings application to edit GDB and VDB init scripts
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
171
diff
changeset
|
342 |
user := VDBDebuggerApplication vdbUserInitFile. |
3f6f51330641
UI: add "Edit" button to settings application to edit GDB and VDB init scripts
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
171
diff
changeset
|
343 |
default := VDBDebuggerApplication vdbDefaultInitFile. |
175
a304c250e889
UI: add "Scratch Pad" tool
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
174
diff
changeset
|
344 |
user exists ifFalse:[ |
a304c250e889
UI: add "Scratch Pad" tool
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
174
diff
changeset
|
345 |
default copyTo:user. |
174
3f6f51330641
UI: add "Edit" button to settings application to edit GDB and VDB init scripts
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
171
diff
changeset
|
346 |
]. |
3f6f51330641
UI: add "Edit" button to settings application to edit GDB and VDB init scripts
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
171
diff
changeset
|
347 |
userEditor := Tools::CodeView2 new. |
175
a304c250e889
UI: add "Scratch Pad" tool
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
174
diff
changeset
|
348 |
userEditor name:#Workspace. |
a304c250e889
UI: add "Scratch Pad" tool
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
174
diff
changeset
|
349 |
workspace |
a304c250e889
UI: add "Scratch Pad" tool
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
174
diff
changeset
|
350 |
loadFile:user |
a304c250e889
UI: add "Scratch Pad" tool
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
174
diff
changeset
|
351 |
encoding:nil |
a304c250e889
UI: add "Scratch Pad" tool
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
174
diff
changeset
|
352 |
into:userEditor. |
174
3f6f51330641
UI: add "Edit" button to settings application to edit GDB and VDB init scripts
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
171
diff
changeset
|
353 |
defaultEditor := Tools::CodeView2 new. |
175
a304c250e889
UI: add "Scratch Pad" tool
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
174
diff
changeset
|
354 |
workspace |
a304c250e889
UI: add "Scratch Pad" tool
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
174
diff
changeset
|
355 |
loadFile:default |
a304c250e889
UI: add "Scratch Pad" tool
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
174
diff
changeset
|
356 |
encoding:nil |
a304c250e889
UI: add "Scratch Pad" tool
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
174
diff
changeset
|
357 |
into:defaultEditor. |
a304c250e889
UI: add "Scratch Pad" tool
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
174
diff
changeset
|
358 |
defaultEditor readOnly:true. |
174
3f6f51330641
UI: add "Edit" button to settings application to edit GDB and VDB init scripts
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
171
diff
changeset
|
359 |
workspaceView := VariableHorizontalPanel new. |
175
a304c250e889
UI: add "Scratch Pad" tool
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
174
diff
changeset
|
360 |
workspaceView addComponent:userEditor. |
a304c250e889
UI: add "Scratch Pad" tool
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
174
diff
changeset
|
361 |
workspaceView addComponent:defaultEditor. |
a304c250e889
UI: add "Scratch Pad" tool
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
174
diff
changeset
|
362 |
workspace := VDBScatchPadApplication new. |
a304c250e889
UI: add "Scratch Pad" tool
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
174
diff
changeset
|
363 |
workspace workspaces add:workspaceView. |
a304c250e889
UI: add "Scratch Pad" tool
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
174
diff
changeset
|
364 |
workspace syntax:SmalltalkLanguage instance. |
174
3f6f51330641
UI: add "Edit" button to settings application to edit GDB and VDB init scripts
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
171
diff
changeset
|
365 |
workspace open. |
175
a304c250e889
UI: add "Scratch Pad" tool
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
174
diff
changeset
|
366 |
workspace window |
202
8064029822c5
Fix `.gdbinit` and `.vdbinit.st` editing in settings
Jan Vrany <jan.vrany@labware.com>
parents:
175
diff
changeset
|
367 |
label:(resources string:'.vdbinit.st - User : vdbinit.st - Default') |
8064029822c5
Fix `.gdbinit` and `.vdbinit.st` editing in settings
Jan Vrany <jan.vrany@labware.com>
parents:
175
diff
changeset
|
368 |
|
8064029822c5
Fix `.gdbinit` and `.vdbinit.st` editing in settings
Jan Vrany <jan.vrany@labware.com>
parents:
175
diff
changeset
|
369 |
"Modified: / 16-11-2020 / 22:21:11 / Jan Vrany <jan.vrany@labware.com>" |
174
3f6f51330641
UI: add "Edit" button to settings application to edit GDB and VDB init scripts
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
171
diff
changeset
|
370 |
! |
3f6f51330641
UI: add "Edit" button to settings application to edit GDB and VDB init scripts
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
171
diff
changeset
|
371 |
|
116
d0d6da74ead3
UI: add GDB executable configuration to settings dialog
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
73
diff
changeset
|
372 |
doSelectExecutable |
d0d6da74ead3
UI: add GDB executable configuration to settings dialog
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
73
diff
changeset
|
373 |
| guess executable | |
d0d6da74ead3
UI: add GDB executable configuration to settings dialog
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
73
diff
changeset
|
374 |
|
171
39774c491dbf
Clean up settings application and remove obsolete settings
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
129
diff
changeset
|
375 |
guess := self gdbCommand value asNilIfEmpty. |
116
d0d6da74ead3
UI: add GDB executable configuration to settings dialog
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
73
diff
changeset
|
376 |
guess isNil ifTrue:[ |
171
39774c491dbf
Clean up settings application and remove obsolete settings
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
129
diff
changeset
|
377 |
guess := GDBProcess gdbCommand |
116
d0d6da74ead3
UI: add GDB executable configuration to settings dialog
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
73
diff
changeset
|
378 |
]. |
171
39774c491dbf
Clean up settings application and remove obsolete settings
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
129
diff
changeset
|
379 |
|
116
d0d6da74ead3
UI: add GDB executable configuration to settings dialog
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
73
diff
changeset
|
380 |
[ guess notNil and:[ (guess := guess asFilename) exists not ] ] whileTrue:[ |
d0d6da74ead3
UI: add GDB executable configuration to settings dialog
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
73
diff
changeset
|
381 |
| p | |
d0d6da74ead3
UI: add GDB executable configuration to settings dialog
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
73
diff
changeset
|
382 |
|
d0d6da74ead3
UI: add GDB executable configuration to settings dialog
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
73
diff
changeset
|
383 |
p := guess directory. |
d0d6da74ead3
UI: add GDB executable configuration to settings dialog
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
73
diff
changeset
|
384 |
(p notNil and:[ p pathName = guess pathName ]) ifTrue:[ |
d0d6da74ead3
UI: add GDB executable configuration to settings dialog
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
73
diff
changeset
|
385 |
p := nil. |
d0d6da74ead3
UI: add GDB executable configuration to settings dialog
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
73
diff
changeset
|
386 |
]. |
d0d6da74ead3
UI: add GDB executable configuration to settings dialog
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
73
diff
changeset
|
387 |
guess := p. |
d0d6da74ead3
UI: add GDB executable configuration to settings dialog
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
73
diff
changeset
|
388 |
]. |
d0d6da74ead3
UI: add GDB executable configuration to settings dialog
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
73
diff
changeset
|
389 |
guess isNil ifTrue:[ |
171
39774c491dbf
Clean up settings application and remove obsolete settings
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
129
diff
changeset
|
390 |
guess := GDBProcess gdbCommand |
116
d0d6da74ead3
UI: add GDB executable configuration to settings dialog
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
73
diff
changeset
|
391 |
]. |
d0d6da74ead3
UI: add GDB executable configuration to settings dialog
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
73
diff
changeset
|
392 |
executable := Dialog requestFileName:(resources string:'Select GDB executable') default: guess ifFail:[ ^ self ]. |
d0d6da74ead3
UI: add GDB executable configuration to settings dialog
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
73
diff
changeset
|
393 |
self infoPanel hide. |
d0d6da74ead3
UI: add GDB executable configuration to settings dialog
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
73
diff
changeset
|
394 |
(executable includes: Character space) ifTrue:[ |
d0d6da74ead3
UI: add GDB executable configuration to settings dialog
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
73
diff
changeset
|
395 |
executable := '"' , executable , '"'. |
d0d6da74ead3
UI: add GDB executable configuration to settings dialog
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
73
diff
changeset
|
396 |
]. |
171
39774c491dbf
Clean up settings application and remove obsolete settings
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
129
diff
changeset
|
397 |
self gdbCommand value: executable |
116
d0d6da74ead3
UI: add GDB executable configuration to settings dialog
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
73
diff
changeset
|
398 |
|
d0d6da74ead3
UI: add GDB executable configuration to settings dialog
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
73
diff
changeset
|
399 |
"Created: / 03-10-2018 / 22:46:16 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
171
39774c491dbf
Clean up settings application and remove obsolete settings
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
129
diff
changeset
|
400 |
"Modified: / 18-06-2019 / 10:42:40 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
116
d0d6da74ead3
UI: add GDB executable configuration to settings dialog
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
73
diff
changeset
|
401 |
! ! |
d0d6da74ead3
UI: add GDB executable configuration to settings dialog
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
73
diff
changeset
|
402 |
|
73
82e202dec6cb
UX: added preferences to automatically enable frame filters and pretty printers
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
403 |
!VDBSettingsApplication methodsFor:'aspects'! |
82e202dec6cb
UX: added preferences to automatically enable frame filters and pretty printers
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
404 |
|
82e202dec6cb
UX: added preferences to automatically enable frame filters and pretty printers
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
405 |
aspects |
171
39774c491dbf
Clean up settings application and remove obsolete settings
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
129
diff
changeset
|
406 |
^ #(gdbCommand) |
73
82e202dec6cb
UX: added preferences to automatically enable frame filters and pretty printers
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
407 |
|
82e202dec6cb
UX: added preferences to automatically enable frame filters and pretty printers
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
408 |
"Created: / 10-04-2018 / 16:53:07 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
171
39774c491dbf
Clean up settings application and remove obsolete settings
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
129
diff
changeset
|
409 |
"Modified: / 17-06-2019 / 13:38:13 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
116
d0d6da74ead3
UI: add GDB executable configuration to settings dialog
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
73
diff
changeset
|
410 |
! |
d0d6da74ead3
UI: add GDB executable configuration to settings dialog
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
73
diff
changeset
|
411 |
|
129
974e705572ea
Fix: catch-up with `jv:libgdbs` after a rename of `#gdbExecutable`
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
118
diff
changeset
|
412 |
gdbCommand |
171
39774c491dbf
Clean up settings application and remove obsolete settings
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
129
diff
changeset
|
413 |
"return/create the 'gdbCommand' value holder (automatically generated)" |
116
d0d6da74ead3
UI: add GDB executable configuration to settings dialog
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
73
diff
changeset
|
414 |
|
129
974e705572ea
Fix: catch-up with `jv:libgdbs` after a rename of `#gdbExecutable`
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
118
diff
changeset
|
415 |
gdbCommand isNil ifTrue:[ |
974e705572ea
Fix: catch-up with `jv:libgdbs` after a rename of `#gdbExecutable`
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
118
diff
changeset
|
416 |
gdbCommand := ValueHolder new. |
171
39774c491dbf
Clean up settings application and remove obsolete settings
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
129
diff
changeset
|
417 |
gdbCommand onChangeSend:#doCheckSettings to:self. |
39774c491dbf
Clean up settings application and remove obsolete settings
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
129
diff
changeset
|
418 |
gdbCommand onChangeSend:#updateModifiedChannel to:self. |
116
d0d6da74ead3
UI: add GDB executable configuration to settings dialog
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
73
diff
changeset
|
419 |
]. |
171
39774c491dbf
Clean up settings application and remove obsolete settings
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
129
diff
changeset
|
420 |
^ gdbCommand |
39774c491dbf
Clean up settings application and remove obsolete settings
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
129
diff
changeset
|
421 |
" |
39774c491dbf
Clean up settings application and remove obsolete settings
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
129
diff
changeset
|
422 |
UserPreferences current gdbCommand |
39774c491dbf
Clean up settings application and remove obsolete settings
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
129
diff
changeset
|
423 |
" |
117
1ae8e04f5feb
UI: add option to change debugger layout and preference to set the default layout
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
116
diff
changeset
|
424 |
|
171
39774c491dbf
Clean up settings application and remove obsolete settings
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
129
diff
changeset
|
425 |
"Modified: / 18-06-2019 / 11:16:59 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
73
82e202dec6cb
UX: added preferences to automatically enable frame filters and pretty printers
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
426 |
! |
82e202dec6cb
UX: added preferences to automatically enable frame filters and pretty printers
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
427 |
|
174
3f6f51330641
UI: add "Edit" button to settings application to edit GDB and VDB init scripts
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
171
diff
changeset
|
428 |
gdbinitAspect |
3f6f51330641
UI: add "Edit" button to settings application to edit GDB and VDB init scripts
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
171
diff
changeset
|
429 |
<resource: #uiAspect> |
3f6f51330641
UI: add "Edit" button to settings application to edit GDB and VDB init scripts
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
171
diff
changeset
|
430 |
|
3f6f51330641
UI: add "Edit" button to settings application to edit GDB and VDB init scripts
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
171
diff
changeset
|
431 |
^ VDBDebuggerApplication gdbUserInitFile pathName |
3f6f51330641
UI: add "Edit" button to settings application to edit GDB and VDB init scripts
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
171
diff
changeset
|
432 |
|
3f6f51330641
UI: add "Edit" button to settings application to edit GDB and VDB init scripts
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
171
diff
changeset
|
433 |
"Modified: / 20-06-2019 / 16:24:52 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
3f6f51330641
UI: add "Edit" button to settings application to edit GDB and VDB init scripts
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
171
diff
changeset
|
434 |
! |
3f6f51330641
UI: add "Edit" button to settings application to edit GDB and VDB init scripts
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
171
diff
changeset
|
435 |
|
73
82e202dec6cb
UX: added preferences to automatically enable frame filters and pretty printers
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
436 |
infoPanel |
82e202dec6cb
UX: added preferences to automatically enable frame filters and pretty printers
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
437 |
infoPanel isNil ifTrue:[ |
82e202dec6cb
UX: added preferences to automatically enable frame filters and pretty printers
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
438 |
infoPanel := Tools::InlineMessageDialog new. |
82e202dec6cb
UX: added preferences to automatically enable frame filters and pretty printers
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
439 |
]. |
82e202dec6cb
UX: added preferences to automatically enable frame filters and pretty printers
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
440 |
^ infoPanel |
82e202dec6cb
UX: added preferences to automatically enable frame filters and pretty printers
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
441 |
|
82e202dec6cb
UX: added preferences to automatically enable frame filters and pretty printers
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
442 |
"Created: / 10-04-2018 / 16:52:37 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
174
3f6f51330641
UI: add "Edit" button to settings application to edit GDB and VDB init scripts
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
171
diff
changeset
|
443 |
! |
3f6f51330641
UI: add "Edit" button to settings application to edit GDB and VDB init scripts
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
171
diff
changeset
|
444 |
|
3f6f51330641
UI: add "Edit" button to settings application to edit GDB and VDB init scripts
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
171
diff
changeset
|
445 |
vdbinitAspect |
3f6f51330641
UI: add "Edit" button to settings application to edit GDB and VDB init scripts
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
171
diff
changeset
|
446 |
<resource: #uiAspect> |
3f6f51330641
UI: add "Edit" button to settings application to edit GDB and VDB init scripts
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
171
diff
changeset
|
447 |
|
3f6f51330641
UI: add "Edit" button to settings application to edit GDB and VDB init scripts
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
171
diff
changeset
|
448 |
^ VDBDebuggerApplication vdbUserInitFile pathName |
3f6f51330641
UI: add "Edit" button to settings application to edit GDB and VDB init scripts
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
171
diff
changeset
|
449 |
|
3f6f51330641
UI: add "Edit" button to settings application to edit GDB and VDB init scripts
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
171
diff
changeset
|
450 |
"Modified: / 20-06-2019 / 16:25:12 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
171
39774c491dbf
Clean up settings application and remove obsolete settings
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
129
diff
changeset
|
451 |
! ! |
39774c491dbf
Clean up settings application and remove obsolete settings
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
129
diff
changeset
|
452 |
|
39774c491dbf
Clean up settings application and remove obsolete settings
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
129
diff
changeset
|
453 |
!VDBSettingsApplication methodsFor:'checks'! |
73
82e202dec6cb
UX: added preferences to automatically enable frame filters and pretty printers
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
454 |
|
171
39774c491dbf
Clean up settings application and remove obsolete settings
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
129
diff
changeset
|
455 |
doCheckCommand |
39774c491dbf
Clean up settings application and remove obsolete settings
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
129
diff
changeset
|
456 |
"Check `hg` command. Return true if `hg` command exists |
39774c491dbf
Clean up settings application and remove obsolete settings
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
129
diff
changeset
|
457 |
and of supported version, false otherwise." |
39774c491dbf
Clean up settings application and remove obsolete settings
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
129
diff
changeset
|
458 |
|
39774c491dbf
Clean up settings application and remove obsolete settings
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
129
diff
changeset
|
459 |
| command | |
117
1ae8e04f5feb
UI: add option to change debugger layout and preference to set the default layout
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
116
diff
changeset
|
460 |
|
171
39774c491dbf
Clean up settings application and remove obsolete settings
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
129
diff
changeset
|
461 |
command := self gdbCommand value. |
39774c491dbf
Clean up settings application and remove obsolete settings
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
129
diff
changeset
|
462 |
command isEmptyOrNil ifTrue:[ |
39774c491dbf
Clean up settings application and remove obsolete settings
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
129
diff
changeset
|
463 |
command := GDBProcess gdbCommandDefault. |
39774c491dbf
Clean up settings application and remove obsolete settings
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
129
diff
changeset
|
464 |
command isNil ifTrue:[ |
39774c491dbf
Clean up settings application and remove obsolete settings
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
129
diff
changeset
|
465 |
self infoPanel |
39774c491dbf
Clean up settings application and remove obsolete settings
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
129
diff
changeset
|
466 |
reset; |
39774c491dbf
Clean up settings application and remove obsolete settings
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
129
diff
changeset
|
467 |
beWarning; |
39774c491dbf
Clean up settings application and remove obsolete settings
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
129
diff
changeset
|
468 |
message: (resources string:'Cannot find path to `gdb` command'); |
39774c491dbf
Clean up settings application and remove obsolete settings
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
129
diff
changeset
|
469 |
addButtonWithLabel: (self resources string:'Browse') action: [ self doSelectExecutable ]; |
39774c491dbf
Clean up settings application and remove obsolete settings
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
129
diff
changeset
|
470 |
show. |
39774c491dbf
Clean up settings application and remove obsolete settings
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
129
diff
changeset
|
471 |
^ false |
39774c491dbf
Clean up settings application and remove obsolete settings
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
129
diff
changeset
|
472 |
]. |
117
1ae8e04f5feb
UI: add option to change debugger layout and preference to set the default layout
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
116
diff
changeset
|
473 |
]. |
171
39774c491dbf
Clean up settings application and remove obsolete settings
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
129
diff
changeset
|
474 |
[ |
39774c491dbf
Clean up settings application and remove obsolete settings
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
129
diff
changeset
|
475 |
GDBProcess gdbCommandParseAndValidate:command |
39774c491dbf
Clean up settings application and remove obsolete settings
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
129
diff
changeset
|
476 |
] on: GDBError do:[:ex | |
39774c491dbf
Clean up settings application and remove obsolete settings
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
129
diff
changeset
|
477 |
self infoPanel |
39774c491dbf
Clean up settings application and remove obsolete settings
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
129
diff
changeset
|
478 |
reset; |
39774c491dbf
Clean up settings application and remove obsolete settings
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
129
diff
changeset
|
479 |
beWarning; |
39774c491dbf
Clean up settings application and remove obsolete settings
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
129
diff
changeset
|
480 |
message: (resources string:ex description); |
39774c491dbf
Clean up settings application and remove obsolete settings
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
129
diff
changeset
|
481 |
addButtonWithLabel: (self resources string:'Browse') action: [self infoPanel hide. self doSelectExecutable ]; |
39774c491dbf
Clean up settings application and remove obsolete settings
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
129
diff
changeset
|
482 |
show. |
39774c491dbf
Clean up settings application and remove obsolete settings
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
129
diff
changeset
|
483 |
^ false |
39774c491dbf
Clean up settings application and remove obsolete settings
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
129
diff
changeset
|
484 |
]. |
39774c491dbf
Clean up settings application and remove obsolete settings
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
129
diff
changeset
|
485 |
^ true. |
117
1ae8e04f5feb
UI: add option to change debugger layout and preference to set the default layout
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
116
diff
changeset
|
486 |
|
171
39774c491dbf
Clean up settings application and remove obsolete settings
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
129
diff
changeset
|
487 |
"Created: / 18-06-2019 / 10:47:27 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
117
1ae8e04f5feb
UI: add option to change debugger layout and preference to set the default layout
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
116
diff
changeset
|
488 |
! |
1ae8e04f5feb
UI: add option to change debugger layout and preference to set the default layout
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
116
diff
changeset
|
489 |
|
171
39774c491dbf
Clean up settings application and remove obsolete settings
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
129
diff
changeset
|
490 |
doCheckSettings |
39774c491dbf
Clean up settings application and remove obsolete settings
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
129
diff
changeset
|
491 |
self doCheckCommand ifFalse:[ ^ self ]. |
73
82e202dec6cb
UX: added preferences to automatically enable frame filters and pretty printers
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
492 |
|
171
39774c491dbf
Clean up settings application and remove obsolete settings
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
129
diff
changeset
|
493 |
self infoPanel hide. |
73
82e202dec6cb
UX: added preferences to automatically enable frame filters and pretty printers
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
494 |
|
171
39774c491dbf
Clean up settings application and remove obsolete settings
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
129
diff
changeset
|
495 |
"Created: / 18-06-2019 / 10:45:16 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
39774c491dbf
Clean up settings application and remove obsolete settings
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
129
diff
changeset
|
496 |
! ! |
73
82e202dec6cb
UX: added preferences to automatically enable frame filters and pretty printers
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
497 |
|
171
39774c491dbf
Clean up settings application and remove obsolete settings
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
129
diff
changeset
|
498 |
!VDBSettingsApplication methodsFor:'hooks'! |
73
82e202dec6cb
UX: added preferences to automatically enable frame filters and pretty printers
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
499 |
|
171
39774c491dbf
Clean up settings application and remove obsolete settings
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
129
diff
changeset
|
500 |
commonPostOpen |
39774c491dbf
Clean up settings application and remove obsolete settings
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
129
diff
changeset
|
501 |
self doCheckSettings |
73
82e202dec6cb
UX: added preferences to automatically enable frame filters and pretty printers
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
502 |
|
171
39774c491dbf
Clean up settings application and remove obsolete settings
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
129
diff
changeset
|
503 |
"Created: / 18-06-2019 / 10:44:16 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
73
82e202dec6cb
UX: added preferences to automatically enable frame filters and pretty printers
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
504 |
! ! |
82e202dec6cb
UX: added preferences to automatically enable frame filters and pretty printers
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
505 |
|
116
d0d6da74ead3
UI: add GDB executable configuration to settings dialog
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
73
diff
changeset
|
506 |
!VDBSettingsApplication methodsFor:'protocol'! |
d0d6da74ead3
UI: add GDB executable configuration to settings dialog
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
73
diff
changeset
|
507 |
|
d0d6da74ead3
UI: add GDB executable configuration to settings dialog
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
73
diff
changeset
|
508 |
basicSaveSettings |
171
39774c491dbf
Clean up settings application and remove obsolete settings
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
129
diff
changeset
|
509 |
self gdbCommand value = '' ifTrue:[ |
39774c491dbf
Clean up settings application and remove obsolete settings
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
129
diff
changeset
|
510 |
self gdbCommand setValue: nil |
116
d0d6da74ead3
UI: add GDB executable configuration to settings dialog
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
73
diff
changeset
|
511 |
]. |
d0d6da74ead3
UI: add GDB executable configuration to settings dialog
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
73
diff
changeset
|
512 |
super basicSaveSettings. |
d0d6da74ead3
UI: add GDB executable configuration to settings dialog
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
73
diff
changeset
|
513 |
|
d0d6da74ead3
UI: add GDB executable configuration to settings dialog
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
73
diff
changeset
|
514 |
"Created: / 04-10-2018 / 09:46:08 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
171
39774c491dbf
Clean up settings application and remove obsolete settings
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
129
diff
changeset
|
515 |
"Modified: / 17-06-2019 / 13:40:47 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
116
d0d6da74ead3
UI: add GDB executable configuration to settings dialog
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
73
diff
changeset
|
516 |
! ! |
d0d6da74ead3
UI: add GDB executable configuration to settings dialog
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
73
diff
changeset
|
517 |
|
d0d6da74ead3
UI: add GDB executable configuration to settings dialog
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
73
diff
changeset
|
518 |
!VDBSettingsApplication class methodsFor:'documentation'! |
d0d6da74ead3
UI: add GDB executable configuration to settings dialog
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
73
diff
changeset
|
519 |
|
d0d6da74ead3
UI: add GDB executable configuration to settings dialog
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
73
diff
changeset
|
520 |
version_HG |
d0d6da74ead3
UI: add GDB executable configuration to settings dialog
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
73
diff
changeset
|
521 |
|
d0d6da74ead3
UI: add GDB executable configuration to settings dialog
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
73
diff
changeset
|
522 |
^ '$Changeset: <not expanded> $' |
d0d6da74ead3
UI: add GDB executable configuration to settings dialog
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
73
diff
changeset
|
523 |
! ! |
d0d6da74ead3
UI: add GDB executable configuration to settings dialog
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
73
diff
changeset
|
524 |
|
73
82e202dec6cb
UX: added preferences to automatically enable frame filters and pretty printers
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
525 |
|
82e202dec6cb
UX: added preferences to automatically enable frame filters and pretty printers
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
526 |
VDBSettingsApplication initialize! |