Tools__CodeView2SettingsAppl.st
author vrany
Tue, 26 Jul 2011 11:53:35 +0200
changeset 10398 3940fc3545c1
parent 10337 e3390a81dcf9
child 10524 ceb080812e0d
permissions -rw-r--r--
- per-tool preference for CodeView2
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
10398
3940fc3545c1 - per-tool preference for CodeView2
vrany
parents: 10337
diff changeset
     1
"
3940fc3545c1 - per-tool preference for CodeView2
vrany
parents: 10337
diff changeset
     2
 COPYRIGHT (c) 2006 by eXept Software AG
3940fc3545c1 - per-tool preference for CodeView2
vrany
parents: 10337
diff changeset
     3
              All Rights Reserved
3940fc3545c1 - per-tool preference for CodeView2
vrany
parents: 10337
diff changeset
     4
3940fc3545c1 - per-tool preference for CodeView2
vrany
parents: 10337
diff changeset
     5
 This software is furnished under a license and may be used
3940fc3545c1 - per-tool preference for CodeView2
vrany
parents: 10337
diff changeset
     6
 only in accordance with the terms of that license and with the
3940fc3545c1 - per-tool preference for CodeView2
vrany
parents: 10337
diff changeset
     7
 inclusion of the above copyright notice.   This software may not
3940fc3545c1 - per-tool preference for CodeView2
vrany
parents: 10337
diff changeset
     8
 be provided or otherwise made available to, or used by, any
3940fc3545c1 - per-tool preference for CodeView2
vrany
parents: 10337
diff changeset
     9
 other person.  No title to or ownership of the software is
3940fc3545c1 - per-tool preference for CodeView2
vrany
parents: 10337
diff changeset
    10
 hereby transferred.
3940fc3545c1 - per-tool preference for CodeView2
vrany
parents: 10337
diff changeset
    11
"
10337
e3390a81dcf9 initial checkin
vrany
parents:
diff changeset
    12
"{ Package: 'stx:libtool' }"
e3390a81dcf9 initial checkin
vrany
parents:
diff changeset
    13
e3390a81dcf9 initial checkin
vrany
parents:
diff changeset
    14
"{ NameSpace: Tools }"
e3390a81dcf9 initial checkin
vrany
parents:
diff changeset
    15
e3390a81dcf9 initial checkin
vrany
parents:
diff changeset
    16
AbstractSettingsApplication subclass:#CodeView2SettingsAppl
10398
3940fc3545c1 - per-tool preference for CodeView2
vrany
parents: 10337
diff changeset
    17
	instanceVariableNames:'useCodeView2InTools useCodeView2InDebugger useCodeView2InBrowser
3940fc3545c1 - per-tool preference for CodeView2
vrany
parents: 10337
diff changeset
    18
		useCodeView2InToolEnabled useCodeView2InWorkspace'
10337
e3390a81dcf9 initial checkin
vrany
parents:
diff changeset
    19
	classVariableNames:''
e3390a81dcf9 initial checkin
vrany
parents:
diff changeset
    20
	poolDictionaries:''
e3390a81dcf9 initial checkin
vrany
parents:
diff changeset
    21
	category:'Interface-CodeView'
e3390a81dcf9 initial checkin
vrany
parents:
diff changeset
    22
!
e3390a81dcf9 initial checkin
vrany
parents:
diff changeset
    23
10398
3940fc3545c1 - per-tool preference for CodeView2
vrany
parents: 10337
diff changeset
    24
!CodeView2SettingsAppl class methodsFor:'documentation'!
3940fc3545c1 - per-tool preference for CodeView2
vrany
parents: 10337
diff changeset
    25
3940fc3545c1 - per-tool preference for CodeView2
vrany
parents: 10337
diff changeset
    26
copyright
3940fc3545c1 - per-tool preference for CodeView2
vrany
parents: 10337
diff changeset
    27
"
3940fc3545c1 - per-tool preference for CodeView2
vrany
parents: 10337
diff changeset
    28
 COPYRIGHT (c) 2006 by eXept Software AG
3940fc3545c1 - per-tool preference for CodeView2
vrany
parents: 10337
diff changeset
    29
              All Rights Reserved
3940fc3545c1 - per-tool preference for CodeView2
vrany
parents: 10337
diff changeset
    30
3940fc3545c1 - per-tool preference for CodeView2
vrany
parents: 10337
diff changeset
    31
 This software is furnished under a license and may be used
3940fc3545c1 - per-tool preference for CodeView2
vrany
parents: 10337
diff changeset
    32
 only in accordance with the terms of that license and with the
3940fc3545c1 - per-tool preference for CodeView2
vrany
parents: 10337
diff changeset
    33
 inclusion of the above copyright notice.   This software may not
3940fc3545c1 - per-tool preference for CodeView2
vrany
parents: 10337
diff changeset
    34
 be provided or otherwise made available to, or used by, any
3940fc3545c1 - per-tool preference for CodeView2
vrany
parents: 10337
diff changeset
    35
 other person.  No title to or ownership of the software is
3940fc3545c1 - per-tool preference for CodeView2
vrany
parents: 10337
diff changeset
    36
 hereby transferred.
3940fc3545c1 - per-tool preference for CodeView2
vrany
parents: 10337
diff changeset
    37
"
3940fc3545c1 - per-tool preference for CodeView2
vrany
parents: 10337
diff changeset
    38
! !
10337
e3390a81dcf9 initial checkin
vrany
parents:
diff changeset
    39
e3390a81dcf9 initial checkin
vrany
parents:
diff changeset
    40
!CodeView2SettingsAppl class methodsFor:'interface specs'!
e3390a81dcf9 initial checkin
vrany
parents:
diff changeset
    41
e3390a81dcf9 initial checkin
vrany
parents:
diff changeset
    42
windowSpec
e3390a81dcf9 initial checkin
vrany
parents:
diff changeset
    43
    "This resource specification was automatically generated
e3390a81dcf9 initial checkin
vrany
parents:
diff changeset
    44
     by the UIPainter of ST/X."
e3390a81dcf9 initial checkin
vrany
parents:
diff changeset
    45
e3390a81dcf9 initial checkin
vrany
parents:
diff changeset
    46
    "Do not manually edit this!! If it is corrupted,
e3390a81dcf9 initial checkin
vrany
parents:
diff changeset
    47
     the UIPainter may not be able to read the specification."
e3390a81dcf9 initial checkin
vrany
parents:
diff changeset
    48
e3390a81dcf9 initial checkin
vrany
parents:
diff changeset
    49
    "
e3390a81dcf9 initial checkin
vrany
parents:
diff changeset
    50
     UIPainter new openOnClass:Tools::CodeView2SettingsAppl andSelector:#windowSpec
e3390a81dcf9 initial checkin
vrany
parents:
diff changeset
    51
     Tools::CodeView2SettingsAppl new openInterface:#windowSpec
e3390a81dcf9 initial checkin
vrany
parents:
diff changeset
    52
     Tools::CodeView2SettingsAppl open
e3390a81dcf9 initial checkin
vrany
parents:
diff changeset
    53
    "
e3390a81dcf9 initial checkin
vrany
parents:
diff changeset
    54
e3390a81dcf9 initial checkin
vrany
parents:
diff changeset
    55
    <resource: #canvas>
e3390a81dcf9 initial checkin
vrany
parents:
diff changeset
    56
e3390a81dcf9 initial checkin
vrany
parents:
diff changeset
    57
    ^ 
e3390a81dcf9 initial checkin
vrany
parents:
diff changeset
    58
     #(FullSpec
e3390a81dcf9 initial checkin
vrany
parents:
diff changeset
    59
        name: windowSpec
e3390a81dcf9 initial checkin
vrany
parents:
diff changeset
    60
        window: 
e3390a81dcf9 initial checkin
vrany
parents:
diff changeset
    61
       (WindowSpec
e3390a81dcf9 initial checkin
vrany
parents:
diff changeset
    62
          label: 'Code Editor Settings'
e3390a81dcf9 initial checkin
vrany
parents:
diff changeset
    63
          name: 'Code Editor Settings'
e3390a81dcf9 initial checkin
vrany
parents:
diff changeset
    64
          min: (Point 10 10)
e3390a81dcf9 initial checkin
vrany
parents:
diff changeset
    65
          bounds: (Rectangle 0 0 576 300)
e3390a81dcf9 initial checkin
vrany
parents:
diff changeset
    66
        )
e3390a81dcf9 initial checkin
vrany
parents:
diff changeset
    67
        component: 
e3390a81dcf9 initial checkin
vrany
parents:
diff changeset
    68
       (SpecCollection
e3390a81dcf9 initial checkin
vrany
parents:
diff changeset
    69
          collection: (
e3390a81dcf9 initial checkin
vrany
parents:
diff changeset
    70
           (VerticalPanelViewSpec
e3390a81dcf9 initial checkin
vrany
parents:
diff changeset
    71
              name: 'VBox'
e3390a81dcf9 initial checkin
vrany
parents:
diff changeset
    72
              layout: (LayoutFrame 0 0 0 0 0 1 0 1)
e3390a81dcf9 initial checkin
vrany
parents:
diff changeset
    73
              horizontalLayout: fit
e3390a81dcf9 initial checkin
vrany
parents:
diff changeset
    74
              verticalLayout: top
e3390a81dcf9 initial checkin
vrany
parents:
diff changeset
    75
              horizontalSpace: 3
e3390a81dcf9 initial checkin
vrany
parents:
diff changeset
    76
              verticalSpace: 3
e3390a81dcf9 initial checkin
vrany
parents:
diff changeset
    77
              component: 
e3390a81dcf9 initial checkin
vrany
parents:
diff changeset
    78
             (SpecCollection
e3390a81dcf9 initial checkin
vrany
parents:
diff changeset
    79
                collection: (
e3390a81dcf9 initial checkin
vrany
parents:
diff changeset
    80
                 (FramedBoxSpec
e3390a81dcf9 initial checkin
vrany
parents:
diff changeset
    81
                    label: 'Tool Support'
e3390a81dcf9 initial checkin
vrany
parents:
diff changeset
    82
                    name: 'ToolSupport'
e3390a81dcf9 initial checkin
vrany
parents:
diff changeset
    83
                    labelPosition: topLeft
e3390a81dcf9 initial checkin
vrany
parents:
diff changeset
    84
                    translateLabel: true
e3390a81dcf9 initial checkin
vrany
parents:
diff changeset
    85
                    component: 
e3390a81dcf9 initial checkin
vrany
parents:
diff changeset
    86
                   (SpecCollection
e3390a81dcf9 initial checkin
vrany
parents:
diff changeset
    87
                      collection: (
e3390a81dcf9 initial checkin
vrany
parents:
diff changeset
    88
                       (VerticalPanelViewSpec
e3390a81dcf9 initial checkin
vrany
parents:
diff changeset
    89
                          name: 'ToolSupportCheckBox'
10398
3940fc3545c1 - per-tool preference for CodeView2
vrany
parents: 10337
diff changeset
    90
                          layout: (LayoutFrame 0 0 0 0 0 1 104 0)
10337
e3390a81dcf9 initial checkin
vrany
parents:
diff changeset
    91
                          horizontalLayout: fit
e3390a81dcf9 initial checkin
vrany
parents:
diff changeset
    92
                          verticalLayout: top
e3390a81dcf9 initial checkin
vrany
parents:
diff changeset
    93
                          horizontalSpace: 3
e3390a81dcf9 initial checkin
vrany
parents:
diff changeset
    94
                          verticalSpace: 3
e3390a81dcf9 initial checkin
vrany
parents:
diff changeset
    95
                          component: 
e3390a81dcf9 initial checkin
vrany
parents:
diff changeset
    96
                         (SpecCollection
e3390a81dcf9 initial checkin
vrany
parents:
diff changeset
    97
                            collection: (
e3390a81dcf9 initial checkin
vrany
parents:
diff changeset
    98
                             (CheckBoxSpec
e3390a81dcf9 initial checkin
vrany
parents:
diff changeset
    99
                                label: 'Use Advanced Code Editor in All Tools (when supported)'
e3390a81dcf9 initial checkin
vrany
parents:
diff changeset
   100
                                name: 'CheckBox1'
e3390a81dcf9 initial checkin
vrany
parents:
diff changeset
   101
                                model: useCodeView2InTools
e3390a81dcf9 initial checkin
vrany
parents:
diff changeset
   102
                                translateLabel: true
e3390a81dcf9 initial checkin
vrany
parents:
diff changeset
   103
                                extent: (Point 540 22)
e3390a81dcf9 initial checkin
vrany
parents:
diff changeset
   104
                              )
10398
3940fc3545c1 - per-tool preference for CodeView2
vrany
parents: 10337
diff changeset
   105
                             (DividerSpec
3940fc3545c1 - per-tool preference for CodeView2
vrany
parents: 10337
diff changeset
   106
                                name: 'Separator1'
3940fc3545c1 - per-tool preference for CodeView2
vrany
parents: 10337
diff changeset
   107
                                extent: (Point 540 4)
3940fc3545c1 - per-tool preference for CodeView2
vrany
parents: 10337
diff changeset
   108
                              )
3940fc3545c1 - per-tool preference for CodeView2
vrany
parents: 10337
diff changeset
   109
                             (CheckBoxSpec
3940fc3545c1 - per-tool preference for CodeView2
vrany
parents: 10337
diff changeset
   110
                                label: 'Use Advanced Code Editor in Class Browser'
3940fc3545c1 - per-tool preference for CodeView2
vrany
parents: 10337
diff changeset
   111
                                name: 'CheckBox2'
3940fc3545c1 - per-tool preference for CodeView2
vrany
parents: 10337
diff changeset
   112
                                enableChannel: useCodeView2InToolEnabled
3940fc3545c1 - per-tool preference for CodeView2
vrany
parents: 10337
diff changeset
   113
                                model: useCodeView2InBrowser
3940fc3545c1 - per-tool preference for CodeView2
vrany
parents: 10337
diff changeset
   114
                                translateLabel: true
3940fc3545c1 - per-tool preference for CodeView2
vrany
parents: 10337
diff changeset
   115
                                extent: (Point 540 22)
3940fc3545c1 - per-tool preference for CodeView2
vrany
parents: 10337
diff changeset
   116
                              )
3940fc3545c1 - per-tool preference for CodeView2
vrany
parents: 10337
diff changeset
   117
                             (CheckBoxSpec
3940fc3545c1 - per-tool preference for CodeView2
vrany
parents: 10337
diff changeset
   118
                                label: 'Use Advanced Code Editor in Debugger (HIGHLY EXPERIMENTAL!!!!!!)'
3940fc3545c1 - per-tool preference for CodeView2
vrany
parents: 10337
diff changeset
   119
                                name: 'CheckBox3'
3940fc3545c1 - per-tool preference for CodeView2
vrany
parents: 10337
diff changeset
   120
                                enableChannel: useCodeView2InToolEnabled
3940fc3545c1 - per-tool preference for CodeView2
vrany
parents: 10337
diff changeset
   121
                                model: useCodeView2InDebugger
3940fc3545c1 - per-tool preference for CodeView2
vrany
parents: 10337
diff changeset
   122
                                translateLabel: true
3940fc3545c1 - per-tool preference for CodeView2
vrany
parents: 10337
diff changeset
   123
                                extent: (Point 540 22)
3940fc3545c1 - per-tool preference for CodeView2
vrany
parents: 10337
diff changeset
   124
                              )
3940fc3545c1 - per-tool preference for CodeView2
vrany
parents: 10337
diff changeset
   125
                             (CheckBoxSpec
3940fc3545c1 - per-tool preference for CodeView2
vrany
parents: 10337
diff changeset
   126
                                label: 'Use Advanced Code Editor in Workspace'
3940fc3545c1 - per-tool preference for CodeView2
vrany
parents: 10337
diff changeset
   127
                                name: 'CheckBox4'
3940fc3545c1 - per-tool preference for CodeView2
vrany
parents: 10337
diff changeset
   128
                                enableChannel: useCodeView2InToolEnabled
3940fc3545c1 - per-tool preference for CodeView2
vrany
parents: 10337
diff changeset
   129
                                model: useCodeView2InWorkspace
3940fc3545c1 - per-tool preference for CodeView2
vrany
parents: 10337
diff changeset
   130
                                translateLabel: true
3940fc3545c1 - per-tool preference for CodeView2
vrany
parents: 10337
diff changeset
   131
                                extent: (Point 540 22)
3940fc3545c1 - per-tool preference for CodeView2
vrany
parents: 10337
diff changeset
   132
                              )
10337
e3390a81dcf9 initial checkin
vrany
parents:
diff changeset
   133
                             )
e3390a81dcf9 initial checkin
vrany
parents:
diff changeset
   134
                           
e3390a81dcf9 initial checkin
vrany
parents:
diff changeset
   135
                          )
e3390a81dcf9 initial checkin
vrany
parents:
diff changeset
   136
                          useDynamicPreferredHeight: true
e3390a81dcf9 initial checkin
vrany
parents:
diff changeset
   137
                          usePreferredHeight: true
e3390a81dcf9 initial checkin
vrany
parents:
diff changeset
   138
                        )
e3390a81dcf9 initial checkin
vrany
parents:
diff changeset
   139
                       )
e3390a81dcf9 initial checkin
vrany
parents:
diff changeset
   140
                     
e3390a81dcf9 initial checkin
vrany
parents:
diff changeset
   141
                    )
10398
3940fc3545c1 - per-tool preference for CodeView2
vrany
parents: 10337
diff changeset
   142
                    extent: (Point 590 154)
10337
e3390a81dcf9 initial checkin
vrany
parents:
diff changeset
   143
                    useDynamicPreferredHeight: true
e3390a81dcf9 initial checkin
vrany
parents:
diff changeset
   144
                    useDynamicPreferredWidth: true
e3390a81dcf9 initial checkin
vrany
parents:
diff changeset
   145
                    usePreferredHeight: true
e3390a81dcf9 initial checkin
vrany
parents:
diff changeset
   146
                    usePreferredWidth: true
e3390a81dcf9 initial checkin
vrany
parents:
diff changeset
   147
                  )
e3390a81dcf9 initial checkin
vrany
parents:
diff changeset
   148
                 )
e3390a81dcf9 initial checkin
vrany
parents:
diff changeset
   149
               
e3390a81dcf9 initial checkin
vrany
parents:
diff changeset
   150
              )
e3390a81dcf9 initial checkin
vrany
parents:
diff changeset
   151
            )
e3390a81dcf9 initial checkin
vrany
parents:
diff changeset
   152
           )
e3390a81dcf9 initial checkin
vrany
parents:
diff changeset
   153
         
e3390a81dcf9 initial checkin
vrany
parents:
diff changeset
   154
        )
e3390a81dcf9 initial checkin
vrany
parents:
diff changeset
   155
      )
10398
3940fc3545c1 - per-tool preference for CodeView2
vrany
parents: 10337
diff changeset
   156
10337
e3390a81dcf9 initial checkin
vrany
parents:
diff changeset
   157
! !
e3390a81dcf9 initial checkin
vrany
parents:
diff changeset
   158
e3390a81dcf9 initial checkin
vrany
parents:
diff changeset
   159
!CodeView2SettingsAppl methodsFor:'aspects'!
e3390a81dcf9 initial checkin
vrany
parents:
diff changeset
   160
10398
3940fc3545c1 - per-tool preference for CodeView2
vrany
parents: 10337
diff changeset
   161
useCodeView2InBrowser
3940fc3545c1 - per-tool preference for CodeView2
vrany
parents: 10337
diff changeset
   162
    "return/create the 'useCodeView2InTools' value holder (automatically generated)"
3940fc3545c1 - per-tool preference for CodeView2
vrany
parents: 10337
diff changeset
   163
3940fc3545c1 - per-tool preference for CodeView2
vrany
parents: 10337
diff changeset
   164
    useCodeView2InBrowser isNil ifTrue:[
3940fc3545c1 - per-tool preference for CodeView2
vrany
parents: 10337
diff changeset
   165
        useCodeView2InBrowser := ValueHolder new.
3940fc3545c1 - per-tool preference for CodeView2
vrany
parents: 10337
diff changeset
   166
        useCodeView2InBrowser onChangeSend:#updateModifiedChannel to:self
3940fc3545c1 - per-tool preference for CodeView2
vrany
parents: 10337
diff changeset
   167
3940fc3545c1 - per-tool preference for CodeView2
vrany
parents: 10337
diff changeset
   168
    ].
3940fc3545c1 - per-tool preference for CodeView2
vrany
parents: 10337
diff changeset
   169
    ^ useCodeView2InBrowser
3940fc3545c1 - per-tool preference for CodeView2
vrany
parents: 10337
diff changeset
   170
3940fc3545c1 - per-tool preference for CodeView2
vrany
parents: 10337
diff changeset
   171
    "Modified: / 11-03-2010 / 10:09:04 / Jan Vrany <jan.vrany@fit.cvut.cz>"
3940fc3545c1 - per-tool preference for CodeView2
vrany
parents: 10337
diff changeset
   172
    "Created: / 26-07-2011 / 10:30:26 / Jan Vrany <jan.vrany@fit.cvut.cz>"
3940fc3545c1 - per-tool preference for CodeView2
vrany
parents: 10337
diff changeset
   173
!
3940fc3545c1 - per-tool preference for CodeView2
vrany
parents: 10337
diff changeset
   174
3940fc3545c1 - per-tool preference for CodeView2
vrany
parents: 10337
diff changeset
   175
useCodeView2InDebugger
3940fc3545c1 - per-tool preference for CodeView2
vrany
parents: 10337
diff changeset
   176
    "return/create the 'useCodeView2InTools' value holder (automatically generated)"
3940fc3545c1 - per-tool preference for CodeView2
vrany
parents: 10337
diff changeset
   177
3940fc3545c1 - per-tool preference for CodeView2
vrany
parents: 10337
diff changeset
   178
    useCodeView2InDebugger isNil ifTrue:[
3940fc3545c1 - per-tool preference for CodeView2
vrany
parents: 10337
diff changeset
   179
        useCodeView2InDebugger := ValueHolder new.
3940fc3545c1 - per-tool preference for CodeView2
vrany
parents: 10337
diff changeset
   180
        useCodeView2InDebugger onChangeSend:#updateModifiedChannel to:self
3940fc3545c1 - per-tool preference for CodeView2
vrany
parents: 10337
diff changeset
   181
3940fc3545c1 - per-tool preference for CodeView2
vrany
parents: 10337
diff changeset
   182
    ].
3940fc3545c1 - per-tool preference for CodeView2
vrany
parents: 10337
diff changeset
   183
    ^ useCodeView2InDebugger
3940fc3545c1 - per-tool preference for CodeView2
vrany
parents: 10337
diff changeset
   184
3940fc3545c1 - per-tool preference for CodeView2
vrany
parents: 10337
diff changeset
   185
    "Modified: / 11-03-2010 / 10:09:04 / Jan Vrany <jan.vrany@fit.cvut.cz>"
3940fc3545c1 - per-tool preference for CodeView2
vrany
parents: 10337
diff changeset
   186
    "Created: / 26-07-2011 / 10:30:39 / Jan Vrany <jan.vrany@fit.cvut.cz>"
3940fc3545c1 - per-tool preference for CodeView2
vrany
parents: 10337
diff changeset
   187
!
3940fc3545c1 - per-tool preference for CodeView2
vrany
parents: 10337
diff changeset
   188
10337
e3390a81dcf9 initial checkin
vrany
parents:
diff changeset
   189
useCodeView2InTools
e3390a81dcf9 initial checkin
vrany
parents:
diff changeset
   190
    "return/create the 'useCodeView2InTools' value holder (automatically generated)"
e3390a81dcf9 initial checkin
vrany
parents:
diff changeset
   191
e3390a81dcf9 initial checkin
vrany
parents:
diff changeset
   192
    useCodeView2InTools isNil ifTrue:[
e3390a81dcf9 initial checkin
vrany
parents:
diff changeset
   193
        useCodeView2InTools := ValueHolder new.
e3390a81dcf9 initial checkin
vrany
parents:
diff changeset
   194
        useCodeView2InTools onChangeSend:#updateModifiedChannel to:self
e3390a81dcf9 initial checkin
vrany
parents:
diff changeset
   195
e3390a81dcf9 initial checkin
vrany
parents:
diff changeset
   196
    ].
e3390a81dcf9 initial checkin
vrany
parents:
diff changeset
   197
    ^ useCodeView2InTools
e3390a81dcf9 initial checkin
vrany
parents:
diff changeset
   198
e3390a81dcf9 initial checkin
vrany
parents:
diff changeset
   199
    "Modified: / 11-03-2010 / 10:09:04 / Jan Vrany <jan.vrany@fit.cvut.cz>"
10398
3940fc3545c1 - per-tool preference for CodeView2
vrany
parents: 10337
diff changeset
   200
!
3940fc3545c1 - per-tool preference for CodeView2
vrany
parents: 10337
diff changeset
   201
3940fc3545c1 - per-tool preference for CodeView2
vrany
parents: 10337
diff changeset
   202
useCodeView2InWorkspace
3940fc3545c1 - per-tool preference for CodeView2
vrany
parents: 10337
diff changeset
   203
    "return/create the 'useCodeView2InTools' value holder (automatically generated)"
3940fc3545c1 - per-tool preference for CodeView2
vrany
parents: 10337
diff changeset
   204
3940fc3545c1 - per-tool preference for CodeView2
vrany
parents: 10337
diff changeset
   205
    useCodeView2InWorkspace isNil ifTrue:[
3940fc3545c1 - per-tool preference for CodeView2
vrany
parents: 10337
diff changeset
   206
        useCodeView2InWorkspace := ValueHolder new.
3940fc3545c1 - per-tool preference for CodeView2
vrany
parents: 10337
diff changeset
   207
        useCodeView2InWorkspace onChangeSend:#updateModifiedChannel to:self
3940fc3545c1 - per-tool preference for CodeView2
vrany
parents: 10337
diff changeset
   208
3940fc3545c1 - per-tool preference for CodeView2
vrany
parents: 10337
diff changeset
   209
    ].
3940fc3545c1 - per-tool preference for CodeView2
vrany
parents: 10337
diff changeset
   210
    ^ useCodeView2InWorkspace
3940fc3545c1 - per-tool preference for CodeView2
vrany
parents: 10337
diff changeset
   211
3940fc3545c1 - per-tool preference for CodeView2
vrany
parents: 10337
diff changeset
   212
    "Modified: / 11-03-2010 / 10:09:04 / Jan Vrany <jan.vrany@fit.cvut.cz>"
3940fc3545c1 - per-tool preference for CodeView2
vrany
parents: 10337
diff changeset
   213
    "Created: / 26-07-2011 / 10:31:07 / Jan Vrany <jan.vrany@fit.cvut.cz>"
3940fc3545c1 - per-tool preference for CodeView2
vrany
parents: 10337
diff changeset
   214
! !
3940fc3545c1 - per-tool preference for CodeView2
vrany
parents: 10337
diff changeset
   215
3940fc3545c1 - per-tool preference for CodeView2
vrany
parents: 10337
diff changeset
   216
!CodeView2SettingsAppl methodsFor:'aspects-enablement'!
3940fc3545c1 - per-tool preference for CodeView2
vrany
parents: 10337
diff changeset
   217
3940fc3545c1 - per-tool preference for CodeView2
vrany
parents: 10337
diff changeset
   218
useCodeView2InToolEnabled
3940fc3545c1 - per-tool preference for CodeView2
vrany
parents: 10337
diff changeset
   219
    "return/create the 'useCodeView2InTools' value holder (automatically generated)"
3940fc3545c1 - per-tool preference for CodeView2
vrany
parents: 10337
diff changeset
   220
3940fc3545c1 - per-tool preference for CodeView2
vrany
parents: 10337
diff changeset
   221
    useCodeView2InToolEnabled isNil ifTrue:[
3940fc3545c1 - per-tool preference for CodeView2
vrany
parents: 10337
diff changeset
   222
        useCodeView2InToolEnabled := 
3940fc3545c1 - per-tool preference for CodeView2
vrany
parents: 10337
diff changeset
   223
            (AspectAdaptor forAspect: #not) subjectChannel:
3940fc3545c1 - per-tool preference for CodeView2
vrany
parents: 10337
diff changeset
   224
                self useCodeView2InTools
3940fc3545c1 - per-tool preference for CodeView2
vrany
parents: 10337
diff changeset
   225
3940fc3545c1 - per-tool preference for CodeView2
vrany
parents: 10337
diff changeset
   226
3940fc3545c1 - per-tool preference for CodeView2
vrany
parents: 10337
diff changeset
   227
    ].
3940fc3545c1 - per-tool preference for CodeView2
vrany
parents: 10337
diff changeset
   228
    ^ useCodeView2InToolEnabled
3940fc3545c1 - per-tool preference for CodeView2
vrany
parents: 10337
diff changeset
   229
3940fc3545c1 - per-tool preference for CodeView2
vrany
parents: 10337
diff changeset
   230
    "Modified: / 11-03-2010 / 10:09:04 / Jan Vrany <jan.vrany@fit.cvut.cz>"
3940fc3545c1 - per-tool preference for CodeView2
vrany
parents: 10337
diff changeset
   231
    "Created: / 26-07-2011 / 10:39:03 / Jan Vrany <jan.vrany@fit.cvut.cz>"
10337
e3390a81dcf9 initial checkin
vrany
parents:
diff changeset
   232
! !
e3390a81dcf9 initial checkin
vrany
parents:
diff changeset
   233
e3390a81dcf9 initial checkin
vrany
parents:
diff changeset
   234
!CodeView2SettingsAppl methodsFor:'protocol'!
e3390a81dcf9 initial checkin
vrany
parents:
diff changeset
   235
e3390a81dcf9 initial checkin
vrany
parents:
diff changeset
   236
basicAspects
10398
3940fc3545c1 - per-tool preference for CodeView2
vrany
parents: 10337
diff changeset
   237
    ^#( 
3940fc3545c1 - per-tool preference for CodeView2
vrany
parents: 10337
diff changeset
   238
        #useCodeView2InTools 
3940fc3545c1 - per-tool preference for CodeView2
vrany
parents: 10337
diff changeset
   239
        #useCodeView2InBrowser
3940fc3545c1 - per-tool preference for CodeView2
vrany
parents: 10337
diff changeset
   240
        #useCodeView2InDebugger
3940fc3545c1 - per-tool preference for CodeView2
vrany
parents: 10337
diff changeset
   241
        #useCodeView2InWorkspace
3940fc3545c1 - per-tool preference for CodeView2
vrany
parents: 10337
diff changeset
   242
    )
3940fc3545c1 - per-tool preference for CodeView2
vrany
parents: 10337
diff changeset
   243
3940fc3545c1 - per-tool preference for CodeView2
vrany
parents: 10337
diff changeset
   244
    "Modified: / 26-07-2011 / 10:31:39 / Jan Vrany <jan.vrany@fit.cvut.cz>"
10337
e3390a81dcf9 initial checkin
vrany
parents:
diff changeset
   245
!
e3390a81dcf9 initial checkin
vrany
parents:
diff changeset
   246
e3390a81dcf9 initial checkin
vrany
parents:
diff changeset
   247
basicReadSettings
e3390a81dcf9 initial checkin
vrany
parents:
diff changeset
   248
    self readAspects:self basicAspects from:currentUserPrefs.
e3390a81dcf9 initial checkin
vrany
parents:
diff changeset
   249
e3390a81dcf9 initial checkin
vrany
parents:
diff changeset
   250
    "Modified: / 19-07-2011 / 17:11:00 / Jan Vrany <jan.vrany@fit.cvut.cz>"
e3390a81dcf9 initial checkin
vrany
parents:
diff changeset
   251
!
e3390a81dcf9 initial checkin
vrany
parents:
diff changeset
   252
e3390a81dcf9 initial checkin
vrany
parents:
diff changeset
   253
basicSaveSettings
e3390a81dcf9 initial checkin
vrany
parents:
diff changeset
   254
e3390a81dcf9 initial checkin
vrany
parents:
diff changeset
   255
    self writeAspects:self basicAspects to:currentUserPrefs.
e3390a81dcf9 initial checkin
vrany
parents:
diff changeset
   256
10398
3940fc3545c1 - per-tool preference for CodeView2
vrany
parents: 10337
diff changeset
   257
    "Modified: / 26-07-2011 / 10:43:53 / Jan Vrany <jan.vrany@fit.cvut.cz>"
10337
e3390a81dcf9 initial checkin
vrany
parents:
diff changeset
   258
!
e3390a81dcf9 initial checkin
vrany
parents:
diff changeset
   259
e3390a81dcf9 initial checkin
vrany
parents:
diff changeset
   260
helpFilename
e3390a81dcf9 initial checkin
vrany
parents:
diff changeset
   261
    "subclasses must return the relative name of a helpFile
e3390a81dcf9 initial checkin
vrany
parents:
diff changeset
   262
     in the doc/online/<language>/help directory.
e3390a81dcf9 initial checkin
vrany
parents:
diff changeset
   263
     Or nil, if no help is available."
e3390a81dcf9 initial checkin
vrany
parents:
diff changeset
   264
e3390a81dcf9 initial checkin
vrany
parents:
diff changeset
   265
    ^ nil"for now"
e3390a81dcf9 initial checkin
vrany
parents:
diff changeset
   266
e3390a81dcf9 initial checkin
vrany
parents:
diff changeset
   267
    "Modified: / 19-07-2011 / 16:55:16 / Jan Vrany <jan.vrany@fit.cvut.cz>"
e3390a81dcf9 initial checkin
vrany
parents:
diff changeset
   268
! !
e3390a81dcf9 initial checkin
vrany
parents:
diff changeset
   269
e3390a81dcf9 initial checkin
vrany
parents:
diff changeset
   270
!CodeView2SettingsAppl methodsFor:'queries'!
e3390a81dcf9 initial checkin
vrany
parents:
diff changeset
   271
e3390a81dcf9 initial checkin
vrany
parents:
diff changeset
   272
hasUnsavedChanges
e3390a81dcf9 initial checkin
vrany
parents:
diff changeset
   273
e3390a81dcf9 initial checkin
vrany
parents:
diff changeset
   274
    (self
e3390a81dcf9 initial checkin
vrany
parents:
diff changeset
   275
        hasChangedAspectIn: self basicAspects
e3390a81dcf9 initial checkin
vrany
parents:
diff changeset
   276
        asComparedTo:currentUserPrefs) ifTrue:[^ true].
e3390a81dcf9 initial checkin
vrany
parents:
diff changeset
   277
    ^ false.
e3390a81dcf9 initial checkin
vrany
parents:
diff changeset
   278
e3390a81dcf9 initial checkin
vrany
parents:
diff changeset
   279
    "Modified: / 19-07-2011 / 17:12:32 / Jan Vrany <jan.vrany@fit.cvut.cz>"
e3390a81dcf9 initial checkin
vrany
parents:
diff changeset
   280
! !
e3390a81dcf9 initial checkin
vrany
parents:
diff changeset
   281
e3390a81dcf9 initial checkin
vrany
parents:
diff changeset
   282
!CodeView2SettingsAppl class methodsFor:'documentation'!
e3390a81dcf9 initial checkin
vrany
parents:
diff changeset
   283
e3390a81dcf9 initial checkin
vrany
parents:
diff changeset
   284
version
10398
3940fc3545c1 - per-tool preference for CodeView2
vrany
parents: 10337
diff changeset
   285
    ^ '$Header: /cvs/stx/stx/libtool/Tools__CodeView2SettingsAppl.st,v 1.2 2011-07-26 09:53:35 vrany Exp $'
10337
e3390a81dcf9 initial checkin
vrany
parents:
diff changeset
   286
!
e3390a81dcf9 initial checkin
vrany
parents:
diff changeset
   287
e3390a81dcf9 initial checkin
vrany
parents:
diff changeset
   288
version_CVS
10398
3940fc3545c1 - per-tool preference for CodeView2
vrany
parents: 10337
diff changeset
   289
    ^ '$Header: /cvs/stx/stx/libtool/Tools__CodeView2SettingsAppl.st,v 1.2 2011-07-26 09:53:35 vrany Exp $'
3940fc3545c1 - per-tool preference for CodeView2
vrany
parents: 10337
diff changeset
   290
!
3940fc3545c1 - per-tool preference for CodeView2
vrany
parents: 10337
diff changeset
   291
3940fc3545c1 - per-tool preference for CodeView2
vrany
parents: 10337
diff changeset
   292
version_SVN
3940fc3545c1 - per-tool preference for CodeView2
vrany
parents: 10337
diff changeset
   293
    ^ '§Id§'
10337
e3390a81dcf9 initial checkin
vrany
parents:
diff changeset
   294
! !