VDBSettingsApplication.st
author Jan Vrany <jan.vrany@fit.cvut.cz>
Tue, 18 Jun 2019 11:14:38 +0100
changeset 171 39774c491dbf
parent 129 974e705572ea
child 174 3f6f51330641
permissions -rw-r--r--
Clean up settings application and remove obsolete settings Apart of GDB executable itself, users may (should) use `$HOME/.vdbinit.st` file.
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
73
82e202dec6cb UX: added preferences to automatically enable frame filters and pretty printers
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
     1
"
82e202dec6cb UX: added preferences to automatically enable frame filters and pretty printers
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
     2
jv:vdb - Visual / VM Debugger
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
82e202dec6cb UX: added preferences to automatically enable frame filters and pretty printers
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
     4
82e202dec6cb UX: added preferences to automatically enable frame filters and pretty printers
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
     5
This software is licensed under 'Creative Commons Attribution-NonCommercial 4.0 International License'
82e202dec6cb UX: added preferences to automatically enable frame filters and pretty printers
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
     6
82e202dec6cb UX: added preferences to automatically enable frame filters and pretty printers
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
     7
You may find a full license text in LICENSE.txt or at http://creativecommons.org/licenses/by-nc/4.0/
82e202dec6cb UX: added preferences to automatically enable frame filters and pretty printers
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
     8
"
82e202dec6cb UX: added preferences to automatically enable frame filters and pretty printers
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
     9
"{ 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
    10
82e202dec6cb UX: added preferences to automatically enable frame filters and pretty printers
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
    11
"{ NameSpace: Smalltalk }"
82e202dec6cb UX: added preferences to automatically enable frame filters and pretty printers
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
    12
82e202dec6cb UX: added preferences to automatically enable frame filters and pretty printers
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
    13
AbstractSettingsApplication subclass:#VDBSettingsApplication
171
39774c491dbf Clean up settings application and remove obsolete settings
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 129
diff changeset
    14
	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
    15
	classVariableNames:''
82e202dec6cb UX: added preferences to automatically enable frame filters and pretty printers
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
    16
	poolDictionaries:''
82e202dec6cb UX: added preferences to automatically enable frame filters and pretty printers
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
    17
	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
    18
!
82e202dec6cb UX: added preferences to automatically enable frame filters and pretty printers
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
    19
82e202dec6cb UX: added preferences to automatically enable frame filters and pretty printers
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
    20
!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
    21
82e202dec6cb UX: added preferences to automatically enable frame filters and pretty printers
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
    22
copyright
82e202dec6cb UX: added preferences to automatically enable frame filters and pretty printers
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
    23
"
82e202dec6cb UX: added preferences to automatically enable frame filters and pretty printers
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
    24
jv:vdb - Visual / VM Debugger
82e202dec6cb UX: added preferences to automatically enable frame filters and pretty printers
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
    25
Copyright (C) 2015-now Jan Vrany
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
This software is licensed under 'Creative Commons Attribution-NonCommercial 4.0 International License'
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
You may find a full license text in LICENSE.txt or at http://creativecommons.org/licenses/by-nc/4.0/
82e202dec6cb UX: added preferences to automatically enable frame filters and pretty printers
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
    30
"
82e202dec6cb UX: added preferences to automatically enable frame filters and pretty printers
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
    31
! !
82e202dec6cb UX: added preferences to automatically enable frame filters and pretty printers
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
    32
82e202dec6cb UX: added preferences to automatically enable frame filters and pretty printers
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
    33
!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
    34
82e202dec6cb UX: added preferences to automatically enable frame filters and pretty printers
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
    35
initialize
82e202dec6cb UX: added preferences to automatically enable frame filters and pretty printers
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
    36
82e202dec6cb UX: added preferences to automatically enable frame filters and pretty printers
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
    37
    self installInSettings
82e202dec6cb UX: added preferences to automatically enable frame filters and pretty printers
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
    38
82e202dec6cb UX: added preferences to automatically enable frame filters and pretty printers
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
    39
    "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
    40
!
82e202dec6cb UX: added preferences to automatically enable frame filters and pretty printers
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
    41
82e202dec6cb UX: added preferences to automatically enable frame filters and pretty printers
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
    42
installInSettings
82e202dec6cb UX: added preferences to automatically enable frame filters and pretty printers
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
    43
    
82e202dec6cb UX: added preferences to automatically enable frame filters and pretty printers
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
    44
    Smalltalk addStartBlock:[
82e202dec6cb UX: added preferences to automatically enable frame filters and pretty printers
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
    45
        AbstractLauncherApplication 
82e202dec6cb UX: added preferences to automatically enable frame filters and pretty printers
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
    46
            addSettingsApplicationByClass:self name withName:'Tools/Visual VM Debugger' icon:self defaultIcon
82e202dec6cb UX: added preferences to automatically enable frame filters and pretty printers
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
    47
    ]
82e202dec6cb UX: added preferences to automatically enable frame filters and pretty printers
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
    48
82e202dec6cb UX: added preferences to automatically enable frame filters and pretty printers
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
    49
    "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
    50
    "Modified: / 10-04-2018 / 16:56:22 / Jan Vrany <jan.vrany@fit.cvut.cz>"
82e202dec6cb UX: added preferences to automatically enable frame filters and pretty printers
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
    51
! !
82e202dec6cb UX: added preferences to automatically enable frame filters and pretty printers
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
    52
116
d0d6da74ead3 UI: add GDB executable configuration to settings dialog
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 73
diff changeset
    53
!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
    54
d0d6da74ead3 UI: add GDB executable configuration to settings dialog
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 73
diff changeset
    55
helpSpec
d0d6da74ead3 UI: add GDB executable configuration to settings dialog
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 73
diff changeset
    56
    "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
    57
     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
    58
d0d6da74ead3 UI: add GDB executable configuration to settings dialog
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 73
diff changeset
    59
    "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
    60
     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
    61
d0d6da74ead3 UI: add GDB executable configuration to settings dialog
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 73
diff changeset
    62
    "
d0d6da74ead3 UI: add GDB executable configuration to settings dialog
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 73
diff changeset
    63
     UIHelpTool openOnClass:VDBSettingsApplication
d0d6da74ead3 UI: add GDB executable configuration to settings dialog
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 73
diff changeset
    64
    "
d0d6da74ead3 UI: add GDB executable configuration to settings dialog
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 73
diff changeset
    65
d0d6da74ead3 UI: add GDB executable configuration to settings dialog
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 73
diff changeset
    66
    <resource: #help>
d0d6da74ead3 UI: add GDB executable configuration to settings dialog
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 73
diff changeset
    67
d0d6da74ead3 UI: add GDB executable configuration to settings dialog
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 73
diff changeset
    68
    ^ super helpSpec addPairsFrom:#(
d0d6da74ead3 UI: add GDB executable configuration to settings dialog
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 73
diff changeset
    69
d0d6da74ead3 UI: add GDB executable configuration to settings dialog
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 73
diff changeset
    70
#ExecutableLabel
d0d6da74ead3 UI: add GDB executable configuration to settings dialog
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 73
diff changeset
    71
'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
    72
d0d6da74ead3 UI: add GDB executable configuration to settings dialog
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 73
diff changeset
    73
)
d0d6da74ead3 UI: add GDB executable configuration to settings dialog
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 73
diff changeset
    74
! !
d0d6da74ead3 UI: add GDB executable configuration to settings dialog
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 73
diff changeset
    75
73
82e202dec6cb UX: added preferences to automatically enable frame filters and pretty printers
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
    76
!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
    77
82e202dec6cb UX: added preferences to automatically enable frame filters and pretty printers
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
    78
windowSpec
82e202dec6cb UX: added preferences to automatically enable frame filters and pretty printers
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
    79
    "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
    80
     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
    81
82e202dec6cb UX: added preferences to automatically enable frame filters and pretty printers
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
    82
    "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
    83
     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
    84
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
     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
    87
     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
    88
     VDBSettingsApplication open
82e202dec6cb UX: added preferences to automatically enable frame filters and pretty printers
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
    89
    "
82e202dec6cb UX: added preferences to automatically enable frame filters and pretty printers
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
    90
82e202dec6cb UX: added preferences to automatically enable frame filters and pretty printers
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
    91
    <resource: #canvas>
82e202dec6cb UX: added preferences to automatically enable frame filters and pretty printers
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
    92
82e202dec6cb UX: added preferences to automatically enable frame filters and pretty printers
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
    93
    ^ 
82e202dec6cb UX: added preferences to automatically enable frame filters and pretty printers
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
    94
    #(FullSpec
82e202dec6cb UX: added preferences to automatically enable frame filters and pretty printers
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
    95
       name: windowSpec
171
39774c491dbf Clean up settings application and remove obsolete settings
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 129
diff changeset
    96
       uuid: 'fed33670-91af-11e9-b25b-606720e43e2c'
73
82e202dec6cb UX: added preferences to automatically enable frame filters and pretty printers
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
    97
       window: 
82e202dec6cb UX: added preferences to automatically enable frame filters and pretty printers
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
    98
      (WindowSpec
82e202dec6cb UX: added preferences to automatically enable frame filters and pretty printers
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
    99
         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
   100
         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
   101
         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
   102
         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
   103
         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
   104
       )
82e202dec6cb UX: added preferences to automatically enable frame filters and pretty printers
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
   105
       component: 
82e202dec6cb UX: added preferences to automatically enable frame filters and pretty printers
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
   106
      (SpecCollection
82e202dec6cb UX: added preferences to automatically enable frame filters and pretty printers
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
   107
         collection: (
82e202dec6cb UX: added preferences to automatically enable frame filters and pretty printers
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
   108
          (LabelSpec
82e202dec6cb UX: added preferences to automatically enable frame filters and pretty printers
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
   109
             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
   110
             name: 'SettingsTitle'
82e202dec6cb UX: added preferences to automatically enable frame filters and pretty printers
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
   111
             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
   112
             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
   113
             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
   114
             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
   115
             translateLabel: true
82e202dec6cb UX: added preferences to automatically enable frame filters and pretty printers
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
   116
             adjust: left
82e202dec6cb UX: added preferences to automatically enable frame filters and pretty printers
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
   117
           )
82e202dec6cb UX: added preferences to automatically enable frame filters and pretty printers
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
   118
          (LabelSpec
82e202dec6cb UX: added preferences to automatically enable frame filters and pretty printers
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
   119
             label: 'Icon'
82e202dec6cb UX: added preferences to automatically enable frame filters and pretty printers
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
   120
             name: 'Icon'
82e202dec6cb UX: added preferences to automatically enable frame filters and pretty printers
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
   121
             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
   122
             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
   123
             hasCharacterOrientedLabel: false
82e202dec6cb UX: added preferences to automatically enable frame filters and pretty printers
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
   124
             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
   125
             translateLabel: true
82e202dec6cb UX: added preferences to automatically enable frame filters and pretty printers
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
   126
             labelChannel: libjavaCupIcon
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
          (SubCanvasSpec
82e202dec6cb UX: added preferences to automatically enable frame filters and pretty printers
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
   129
             name: 'InfoPanel'
82e202dec6cb UX: added preferences to automatically enable frame filters and pretty printers
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
   130
             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
   131
             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
   132
             level: 0
82e202dec6cb UX: added preferences to automatically enable frame filters and pretty printers
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
   133
             initiallyInvisible: true
82e202dec6cb UX: added preferences to automatically enable frame filters and pretty printers
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
   134
             hasHorizontalScrollBar: false
82e202dec6cb UX: added preferences to automatically enable frame filters and pretty printers
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
   135
             hasVerticalScrollBar: false
82e202dec6cb UX: added preferences to automatically enable frame filters and pretty printers
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
   136
             clientKey: infoPanel
82e202dec6cb UX: added preferences to automatically enable frame filters and pretty printers
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
   137
             createNewBuilder: false
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
          (VerticalPanelViewSpec
82e202dec6cb UX: added preferences to automatically enable frame filters and pretty printers
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
   140
             name: 'Controls'
171
39774c491dbf Clean up settings application and remove obsolete settings
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 129
diff changeset
   141
             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
   142
             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
   143
             horizontalLayout: fit
82e202dec6cb UX: added preferences to automatically enable frame filters and pretty printers
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
   144
             verticalLayout: top
82e202dec6cb UX: added preferences to automatically enable frame filters and pretty printers
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
   145
             horizontalSpace: 3
82e202dec6cb UX: added preferences to automatically enable frame filters and pretty printers
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
   146
             verticalSpace: 3
82e202dec6cb UX: added preferences to automatically enable frame filters and pretty printers
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
   147
             component: 
82e202dec6cb UX: added preferences to automatically enable frame filters and pretty printers
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
   148
            (SpecCollection
82e202dec6cb UX: added preferences to automatically enable frame filters and pretty printers
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
   149
               collection: (
171
39774c491dbf Clean up settings application and remove obsolete settings
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 129
diff changeset
   150
                (ViewSpec
39774c491dbf Clean up settings application and remove obsolete settings
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 129
diff changeset
   151
                   name: 'Spacer1'
39774c491dbf Clean up settings application and remove obsolete settings
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 129
diff changeset
   152
                   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
   153
                   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
   154
                 )
116
d0d6da74ead3 UI: add GDB executable configuration to settings dialog
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 73
diff changeset
   155
                (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
   156
                   name: 'CommandPane'
116
d0d6da74ead3 UI: add GDB executable configuration to settings dialog
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 73
diff changeset
   157
                   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
   158
                   component: 
d0d6da74ead3 UI: add GDB executable configuration to settings dialog
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 73
diff changeset
   159
                  (SpecCollection
d0d6da74ead3 UI: add GDB executable configuration to settings dialog
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 73
diff changeset
   160
                     collection: (
171
39774c491dbf Clean up settings application and remove obsolete settings
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 129
diff changeset
   161
                      (LabelSpec
39774c491dbf Clean up settings application and remove obsolete settings
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 129
diff changeset
   162
                         label: ''';gdb'' command:'
39774c491dbf Clean up settings application and remove obsolete settings
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 129
diff changeset
   163
                         name: 'CommandLabel'
39774c491dbf Clean up settings application and remove obsolete settings
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 129
diff changeset
   164
                         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
   165
                         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
   166
                         translateLabel: true
39774c491dbf Clean up settings application and remove obsolete settings
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 129
diff changeset
   167
                         adjust: left
39774c491dbf Clean up settings application and remove obsolete settings
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 129
diff changeset
   168
                       )
116
d0d6da74ead3 UI: add GDB executable configuration to settings dialog
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 73
diff changeset
   169
                      (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
   170
                         name: 'Command'
171
39774c491dbf Clean up settings application and remove obsolete settings
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 129
diff changeset
   171
                         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
   172
                         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
   173
                         model: gdbCommand
116
d0d6da74ead3 UI: add GDB executable configuration to settings dialog
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 73
diff changeset
   174
                         immediateAccept: true
d0d6da74ead3 UI: add GDB executable configuration to settings dialog
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 73
diff changeset
   175
                         acceptOnPointerLeave: true
d0d6da74ead3 UI: add GDB executable configuration to settings dialog
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 73
diff changeset
   176
                         emptyFieldReplacementText: 'Autodetect'
d0d6da74ead3 UI: add GDB executable configuration to settings dialog
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 73
diff changeset
   177
                       )
d0d6da74ead3 UI: add GDB executable configuration to settings dialog
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 73
diff changeset
   178
                      (ActionButtonSpec
d0d6da74ead3 UI: add GDB executable configuration to settings dialog
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 73
diff changeset
   179
                         label: 'Browse'
d0d6da74ead3 UI: add GDB executable configuration to settings dialog
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 73
diff changeset
   180
                         name: 'BrowseButton'
d0d6da74ead3 UI: add GDB executable configuration to settings dialog
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 73
diff changeset
   181
                         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
   182
                         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
   183
                         translateLabel: true
d0d6da74ead3 UI: add GDB executable configuration to settings dialog
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 73
diff changeset
   184
                         model: doSelectExecutable
d0d6da74ead3 UI: add GDB executable configuration to settings dialog
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 73
diff changeset
   185
                       )
d0d6da74ead3 UI: add GDB executable configuration to settings dialog
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 73
diff changeset
   186
                      )
d0d6da74ead3 UI: add GDB executable configuration to settings dialog
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 73
diff changeset
   187
                    
d0d6da74ead3 UI: add GDB executable configuration to settings dialog
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 73
diff changeset
   188
                   )
171
39774c491dbf Clean up settings application and remove obsolete settings
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 129
diff changeset
   189
                   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
   190
                 )
d0d6da74ead3 UI: add GDB executable configuration to settings dialog
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 73
diff changeset
   191
                (ViewSpec
d0d6da74ead3 UI: add GDB executable configuration to settings dialog
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 73
diff changeset
   192
                   name: 'Spacer'
d0d6da74ead3 UI: add GDB executable configuration to settings dialog
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 73
diff changeset
   193
                   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
   194
                   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
   195
                 )
82e202dec6cb UX: added preferences to automatically enable frame filters and pretty printers
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
   196
                )
82e202dec6cb UX: added preferences to automatically enable frame filters and pretty printers
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
   197
              
82e202dec6cb UX: added preferences to automatically enable frame filters and pretty printers
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
   198
             )
82e202dec6cb UX: added preferences to automatically enable frame filters and pretty printers
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
   199
           )
82e202dec6cb UX: added preferences to automatically enable frame filters and pretty printers
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
   200
          )
82e202dec6cb UX: added preferences to automatically enable frame filters and pretty printers
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
   201
        
82e202dec6cb UX: added preferences to automatically enable frame filters and pretty printers
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
   202
       )
82e202dec6cb UX: added preferences to automatically enable frame filters and pretty printers
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
   203
     )
82e202dec6cb UX: added preferences to automatically enable frame filters and pretty printers
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
   204
! !
82e202dec6cb UX: added preferences to automatically enable frame filters and pretty printers
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
   205
116
d0d6da74ead3 UI: add GDB executable configuration to settings dialog
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 73
diff changeset
   206
!VDBSettingsApplication methodsFor:'actions'!
d0d6da74ead3 UI: add GDB executable configuration to settings dialog
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 73
diff changeset
   207
d0d6da74ead3 UI: add GDB executable configuration to settings dialog
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 73
diff changeset
   208
doSelectExecutable
d0d6da74ead3 UI: add GDB executable configuration to settings dialog
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 73
diff changeset
   209
    | guess executable |
d0d6da74ead3 UI: add GDB executable configuration to settings dialog
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 73
diff changeset
   210
171
39774c491dbf Clean up settings application and remove obsolete settings
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 129
diff changeset
   211
    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
   212
    guess isNil ifTrue:[
171
39774c491dbf Clean up settings application and remove obsolete settings
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 129
diff changeset
   213
        guess := GDBProcess gdbCommand
116
d0d6da74ead3 UI: add GDB executable configuration to settings dialog
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 73
diff changeset
   214
    ].
171
39774c491dbf Clean up settings application and remove obsolete settings
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 129
diff changeset
   215
116
d0d6da74ead3 UI: add GDB executable configuration to settings dialog
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 73
diff changeset
   216
    [ 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
   217
        | p |
d0d6da74ead3 UI: add GDB executable configuration to settings dialog
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 73
diff changeset
   218
d0d6da74ead3 UI: add GDB executable configuration to settings dialog
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 73
diff changeset
   219
        p := guess directory.
d0d6da74ead3 UI: add GDB executable configuration to settings dialog
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 73
diff changeset
   220
        (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
   221
            p := nil.
d0d6da74ead3 UI: add GDB executable configuration to settings dialog
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 73
diff changeset
   222
        ].
d0d6da74ead3 UI: add GDB executable configuration to settings dialog
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 73
diff changeset
   223
        guess := p.
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
    guess isNil ifTrue:[ 
171
39774c491dbf Clean up settings application and remove obsolete settings
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 129
diff changeset
   226
        guess := GDBProcess gdbCommand
116
d0d6da74ead3 UI: add GDB executable configuration to settings dialog
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 73
diff changeset
   227
    ].
d0d6da74ead3 UI: add GDB executable configuration to settings dialog
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 73
diff changeset
   228
    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
   229
    self infoPanel hide. 
d0d6da74ead3 UI: add GDB executable configuration to settings dialog
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 73
diff changeset
   230
    (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
   231
        executable := '"' , executable , '"'.
d0d6da74ead3 UI: add GDB executable configuration to settings dialog
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 73
diff changeset
   232
    ].
171
39774c491dbf Clean up settings application and remove obsolete settings
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 129
diff changeset
   233
    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
   234
d0d6da74ead3 UI: add GDB executable configuration to settings dialog
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 73
diff changeset
   235
    "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
   236
    "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
   237
! !
d0d6da74ead3 UI: add GDB executable configuration to settings dialog
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 73
diff changeset
   238
73
82e202dec6cb UX: added preferences to automatically enable frame filters and pretty printers
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
   239
!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
   240
82e202dec6cb UX: added preferences to automatically enable frame filters and pretty printers
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
   241
aspects
171
39774c491dbf Clean up settings application and remove obsolete settings
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 129
diff changeset
   242
    ^ #(gdbCommand)
73
82e202dec6cb UX: added preferences to automatically enable frame filters and pretty printers
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
   243
82e202dec6cb UX: added preferences to automatically enable frame filters and pretty printers
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
   244
    "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
   245
    "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
   246
!
d0d6da74ead3 UI: add GDB executable configuration to settings dialog
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 73
diff changeset
   247
129
974e705572ea Fix: catch-up with `jv:libgdbs` after a rename of `#gdbExecutable`
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 118
diff changeset
   248
gdbCommand
171
39774c491dbf Clean up settings application and remove obsolete settings
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 129
diff changeset
   249
    "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
   250
129
974e705572ea Fix: catch-up with `jv:libgdbs` after a rename of `#gdbExecutable`
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 118
diff changeset
   251
    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
   252
        gdbCommand := ValueHolder new.
171
39774c491dbf Clean up settings application and remove obsolete settings
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 129
diff changeset
   253
        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
   254
        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
   255
    ].
171
39774c491dbf Clean up settings application and remove obsolete settings
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 129
diff changeset
   256
    ^ gdbCommand
39774c491dbf Clean up settings application and remove obsolete settings
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 129
diff changeset
   257
    "
39774c491dbf Clean up settings application and remove obsolete settings
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 129
diff changeset
   258
    UserPreferences current gdbCommand
39774c491dbf Clean up settings application and remove obsolete settings
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 129
diff changeset
   259
    "
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
   260
171
39774c491dbf Clean up settings application and remove obsolete settings
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 129
diff changeset
   261
    "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
   262
!
82e202dec6cb UX: added preferences to automatically enable frame filters and pretty printers
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
   263
82e202dec6cb UX: added preferences to automatically enable frame filters and pretty printers
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
   264
infoPanel
82e202dec6cb UX: added preferences to automatically enable frame filters and pretty printers
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
   265
    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
   266
        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
   267
    ].
82e202dec6cb UX: added preferences to automatically enable frame filters and pretty printers
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
   268
    ^ infoPanel
82e202dec6cb UX: added preferences to automatically enable frame filters and pretty printers
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
   269
82e202dec6cb UX: added preferences to automatically enable frame filters and pretty printers
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
   270
    "Created: / 10-04-2018 / 16:52:37 / 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
   271
! !
39774c491dbf Clean up settings application and remove obsolete settings
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 129
diff changeset
   272
39774c491dbf Clean up settings application and remove obsolete settings
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 129
diff changeset
   273
!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
   274
171
39774c491dbf Clean up settings application and remove obsolete settings
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 129
diff changeset
   275
doCheckCommand
39774c491dbf Clean up settings application and remove obsolete settings
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 129
diff changeset
   276
    "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
   277
     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
   278
39774c491dbf Clean up settings application and remove obsolete settings
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 129
diff changeset
   279
    | 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
   280
171
39774c491dbf Clean up settings application and remove obsolete settings
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 129
diff changeset
   281
    command := self gdbCommand value.
39774c491dbf Clean up settings application and remove obsolete settings
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 129
diff changeset
   282
    command isEmptyOrNil ifTrue:[         
39774c491dbf Clean up settings application and remove obsolete settings
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 129
diff changeset
   283
        command := GDBProcess gdbCommandDefault.
39774c491dbf Clean up settings application and remove obsolete settings
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 129
diff changeset
   284
        command isNil ifTrue:[ 
39774c491dbf Clean up settings application and remove obsolete settings
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 129
diff changeset
   285
            self infoPanel 
39774c491dbf Clean up settings application and remove obsolete settings
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 129
diff changeset
   286
                reset;
39774c491dbf Clean up settings application and remove obsolete settings
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 129
diff changeset
   287
                beWarning;
39774c491dbf Clean up settings application and remove obsolete settings
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 129
diff changeset
   288
                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
   289
                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
   290
                show. 
39774c491dbf Clean up settings application and remove obsolete settings
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 129
diff changeset
   291
            ^ false                
39774c491dbf Clean up settings application and remove obsolete settings
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 129
diff changeset
   292
        ].
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
   293
    ].
171
39774c491dbf Clean up settings application and remove obsolete settings
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 129
diff changeset
   294
    [
39774c491dbf Clean up settings application and remove obsolete settings
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 129
diff changeset
   295
        GDBProcess gdbCommandParseAndValidate:command 
39774c491dbf Clean up settings application and remove obsolete settings
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 129
diff changeset
   296
    ] on: GDBError do:[:ex | 
39774c491dbf Clean up settings application and remove obsolete settings
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 129
diff changeset
   297
        self infoPanel 
39774c491dbf Clean up settings application and remove obsolete settings
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 129
diff changeset
   298
            reset;
39774c491dbf Clean up settings application and remove obsolete settings
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 129
diff changeset
   299
            beWarning;
39774c491dbf Clean up settings application and remove obsolete settings
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 129
diff changeset
   300
            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
   301
            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
   302
            show.            
39774c491dbf Clean up settings application and remove obsolete settings
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 129
diff changeset
   303
        ^ false                            
39774c491dbf Clean up settings application and remove obsolete settings
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 129
diff changeset
   304
    ].
39774c491dbf Clean up settings application and remove obsolete settings
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 129
diff changeset
   305
    ^ 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
   306
171
39774c491dbf Clean up settings application and remove obsolete settings
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 129
diff changeset
   307
    "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
   308
!
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
   309
171
39774c491dbf Clean up settings application and remove obsolete settings
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 129
diff changeset
   310
doCheckSettings
39774c491dbf Clean up settings application and remove obsolete settings
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 129
diff changeset
   311
    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
   312
171
39774c491dbf Clean up settings application and remove obsolete settings
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 129
diff changeset
   313
    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
   314
171
39774c491dbf Clean up settings application and remove obsolete settings
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 129
diff changeset
   315
    "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
   316
! !
73
82e202dec6cb UX: added preferences to automatically enable frame filters and pretty printers
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
   317
171
39774c491dbf Clean up settings application and remove obsolete settings
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 129
diff changeset
   318
!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
   319
171
39774c491dbf Clean up settings application and remove obsolete settings
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 129
diff changeset
   320
commonPostOpen
39774c491dbf Clean up settings application and remove obsolete settings
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 129
diff changeset
   321
    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
   322
171
39774c491dbf Clean up settings application and remove obsolete settings
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 129
diff changeset
   323
    "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
   324
! !
82e202dec6cb UX: added preferences to automatically enable frame filters and pretty printers
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
   325
116
d0d6da74ead3 UI: add GDB executable configuration to settings dialog
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 73
diff changeset
   326
!VDBSettingsApplication methodsFor:'protocol'!
d0d6da74ead3 UI: add GDB executable configuration to settings dialog
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 73
diff changeset
   327
d0d6da74ead3 UI: add GDB executable configuration to settings dialog
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 73
diff changeset
   328
basicSaveSettings
171
39774c491dbf Clean up settings application and remove obsolete settings
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 129
diff changeset
   329
    self gdbCommand value = '' ifTrue:[ 
39774c491dbf Clean up settings application and remove obsolete settings
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 129
diff changeset
   330
        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
   331
    ].
d0d6da74ead3 UI: add GDB executable configuration to settings dialog
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 73
diff changeset
   332
    super basicSaveSettings.
d0d6da74ead3 UI: add GDB executable configuration to settings dialog
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 73
diff changeset
   333
d0d6da74ead3 UI: add GDB executable configuration to settings dialog
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 73
diff changeset
   334
    "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
   335
    "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
   336
! !
d0d6da74ead3 UI: add GDB executable configuration to settings dialog
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 73
diff changeset
   337
d0d6da74ead3 UI: add GDB executable configuration to settings dialog
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 73
diff changeset
   338
!VDBSettingsApplication class methodsFor:'documentation'!
d0d6da74ead3 UI: add GDB executable configuration to settings dialog
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 73
diff changeset
   339
d0d6da74ead3 UI: add GDB executable configuration to settings dialog
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 73
diff changeset
   340
version_HG
d0d6da74ead3 UI: add GDB executable configuration to settings dialog
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 73
diff changeset
   341
d0d6da74ead3 UI: add GDB executable configuration to settings dialog
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 73
diff changeset
   342
    ^ '$Changeset: <not expanded> $'
d0d6da74ead3 UI: add GDB executable configuration to settings dialog
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 73
diff changeset
   343
! !
d0d6da74ead3 UI: add GDB executable configuration to settings dialog
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 73
diff changeset
   344
73
82e202dec6cb UX: added preferences to automatically enable frame filters and pretty printers
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
   345
82e202dec6cb UX: added preferences to automatically enable frame filters and pretty printers
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
   346
VDBSettingsApplication initialize!