Tools__CodeView2SettingsAppl.st
author Claus Gittinger <cg@exept.de>
Tue, 08 Nov 2011 16:44:00 +0100
changeset 10853 2c561fd68036
parent 10794 854c6d72f257
child 10902 361a19675c61
permissions -rw-r--r--
changed: #toolBarMenu
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
10524
ceb080812e0d Added preference for auto indent
vrany
parents: 10398
diff changeset
    18
		useCodeView2InToolEnabled useCodeView2InWorkspace
10794
854c6d72f257 Added checkbox to control default accept/cancel bar visibility
vrany
parents: 10524
diff changeset
    19
		codeView2AutoIndent codeView2ShowAcceptCancel'
10337
e3390a81dcf9 initial checkin
vrany
parents:
diff changeset
    20
	classVariableNames:''
e3390a81dcf9 initial checkin
vrany
parents:
diff changeset
    21
	poolDictionaries:''
e3390a81dcf9 initial checkin
vrany
parents:
diff changeset
    22
	category:'Interface-CodeView'
e3390a81dcf9 initial checkin
vrany
parents:
diff changeset
    23
!
e3390a81dcf9 initial checkin
vrany
parents:
diff changeset
    24
10398
3940fc3545c1 - per-tool preference for CodeView2
vrany
parents: 10337
diff changeset
    25
!CodeView2SettingsAppl class methodsFor:'documentation'!
3940fc3545c1 - per-tool preference for CodeView2
vrany
parents: 10337
diff changeset
    26
3940fc3545c1 - per-tool preference for CodeView2
vrany
parents: 10337
diff changeset
    27
copyright
3940fc3545c1 - per-tool preference for CodeView2
vrany
parents: 10337
diff changeset
    28
"
3940fc3545c1 - per-tool preference for CodeView2
vrany
parents: 10337
diff changeset
    29
 COPYRIGHT (c) 2006 by eXept Software AG
3940fc3545c1 - per-tool preference for CodeView2
vrany
parents: 10337
diff changeset
    30
              All Rights Reserved
3940fc3545c1 - per-tool preference for CodeView2
vrany
parents: 10337
diff changeset
    31
3940fc3545c1 - per-tool preference for CodeView2
vrany
parents: 10337
diff changeset
    32
 This software is furnished under a license and may be used
3940fc3545c1 - per-tool preference for CodeView2
vrany
parents: 10337
diff changeset
    33
 only in accordance with the terms of that license and with the
3940fc3545c1 - per-tool preference for CodeView2
vrany
parents: 10337
diff changeset
    34
 inclusion of the above copyright notice.   This software may not
3940fc3545c1 - per-tool preference for CodeView2
vrany
parents: 10337
diff changeset
    35
 be provided or otherwise made available to, or used by, any
3940fc3545c1 - per-tool preference for CodeView2
vrany
parents: 10337
diff changeset
    36
 other person.  No title to or ownership of the software is
3940fc3545c1 - per-tool preference for CodeView2
vrany
parents: 10337
diff changeset
    37
 hereby transferred.
3940fc3545c1 - per-tool preference for CodeView2
vrany
parents: 10337
diff changeset
    38
"
3940fc3545c1 - per-tool preference for CodeView2
vrany
parents: 10337
diff changeset
    39
! !
10337
e3390a81dcf9 initial checkin
vrany
parents:
diff changeset
    40
e3390a81dcf9 initial checkin
vrany
parents:
diff changeset
    41
!CodeView2SettingsAppl class methodsFor:'interface specs'!
e3390a81dcf9 initial checkin
vrany
parents:
diff changeset
    42
e3390a81dcf9 initial checkin
vrany
parents:
diff changeset
    43
windowSpec
e3390a81dcf9 initial checkin
vrany
parents:
diff changeset
    44
    "This resource specification was automatically generated
e3390a81dcf9 initial checkin
vrany
parents:
diff changeset
    45
     by the UIPainter of ST/X."
e3390a81dcf9 initial checkin
vrany
parents:
diff changeset
    46
e3390a81dcf9 initial checkin
vrany
parents:
diff changeset
    47
    "Do not manually edit this!! If it is corrupted,
e3390a81dcf9 initial checkin
vrany
parents:
diff changeset
    48
     the UIPainter may not be able to read the specification."
e3390a81dcf9 initial checkin
vrany
parents:
diff changeset
    49
e3390a81dcf9 initial checkin
vrany
parents:
diff changeset
    50
    "
e3390a81dcf9 initial checkin
vrany
parents:
diff changeset
    51
     UIPainter new openOnClass:Tools::CodeView2SettingsAppl andSelector:#windowSpec
e3390a81dcf9 initial checkin
vrany
parents:
diff changeset
    52
     Tools::CodeView2SettingsAppl new openInterface:#windowSpec
e3390a81dcf9 initial checkin
vrany
parents:
diff changeset
    53
     Tools::CodeView2SettingsAppl open
e3390a81dcf9 initial checkin
vrany
parents:
diff changeset
    54
    "
e3390a81dcf9 initial checkin
vrany
parents:
diff changeset
    55
e3390a81dcf9 initial checkin
vrany
parents:
diff changeset
    56
    <resource: #canvas>
e3390a81dcf9 initial checkin
vrany
parents:
diff changeset
    57
e3390a81dcf9 initial checkin
vrany
parents:
diff changeset
    58
    ^ 
e3390a81dcf9 initial checkin
vrany
parents:
diff changeset
    59
     #(FullSpec
e3390a81dcf9 initial checkin
vrany
parents:
diff changeset
    60
        name: windowSpec
e3390a81dcf9 initial checkin
vrany
parents:
diff changeset
    61
        window: 
e3390a81dcf9 initial checkin
vrany
parents:
diff changeset
    62
       (WindowSpec
e3390a81dcf9 initial checkin
vrany
parents:
diff changeset
    63
          label: 'Code Editor Settings'
e3390a81dcf9 initial checkin
vrany
parents:
diff changeset
    64
          name: 'Code Editor Settings'
e3390a81dcf9 initial checkin
vrany
parents:
diff changeset
    65
          min: (Point 10 10)
e3390a81dcf9 initial checkin
vrany
parents:
diff changeset
    66
          bounds: (Rectangle 0 0 576 300)
e3390a81dcf9 initial checkin
vrany
parents:
diff changeset
    67
        )
e3390a81dcf9 initial checkin
vrany
parents:
diff changeset
    68
        component: 
e3390a81dcf9 initial checkin
vrany
parents:
diff changeset
    69
       (SpecCollection
e3390a81dcf9 initial checkin
vrany
parents:
diff changeset
    70
          collection: (
e3390a81dcf9 initial checkin
vrany
parents:
diff changeset
    71
           (VerticalPanelViewSpec
e3390a81dcf9 initial checkin
vrany
parents:
diff changeset
    72
              name: 'VBox'
e3390a81dcf9 initial checkin
vrany
parents:
diff changeset
    73
              layout: (LayoutFrame 0 0 0 0 0 1 0 1)
e3390a81dcf9 initial checkin
vrany
parents:
diff changeset
    74
              horizontalLayout: fit
e3390a81dcf9 initial checkin
vrany
parents:
diff changeset
    75
              verticalLayout: top
e3390a81dcf9 initial checkin
vrany
parents:
diff changeset
    76
              horizontalSpace: 3
e3390a81dcf9 initial checkin
vrany
parents:
diff changeset
    77
              verticalSpace: 3
e3390a81dcf9 initial checkin
vrany
parents:
diff changeset
    78
              component: 
e3390a81dcf9 initial checkin
vrany
parents:
diff changeset
    79
             (SpecCollection
e3390a81dcf9 initial checkin
vrany
parents:
diff changeset
    80
                collection: (
e3390a81dcf9 initial checkin
vrany
parents:
diff changeset
    81
                 (FramedBoxSpec
10524
ceb080812e0d Added preference for auto indent
vrany
parents: 10398
diff changeset
    82
                    label: 'Edit Support'
ceb080812e0d Added preference for auto indent
vrany
parents: 10398
diff changeset
    83
                    name: 'EditSupport'
ceb080812e0d Added preference for auto indent
vrany
parents: 10398
diff changeset
    84
                    labelPosition: topLeft
ceb080812e0d Added preference for auto indent
vrany
parents: 10398
diff changeset
    85
                    translateLabel: true
ceb080812e0d Added preference for auto indent
vrany
parents: 10398
diff changeset
    86
                    component: 
ceb080812e0d Added preference for auto indent
vrany
parents: 10398
diff changeset
    87
                   (SpecCollection
ceb080812e0d Added preference for auto indent
vrany
parents: 10398
diff changeset
    88
                      collection: (
ceb080812e0d Added preference for auto indent
vrany
parents: 10398
diff changeset
    89
                       (VerticalPanelViewSpec
ceb080812e0d Added preference for auto indent
vrany
parents: 10398
diff changeset
    90
                          name: 'VerticalPanel1'
ceb080812e0d Added preference for auto indent
vrany
parents: 10398
diff changeset
    91
                          layout: (LayoutFrame 0 0 0 0 0 1 0 1)
ceb080812e0d Added preference for auto indent
vrany
parents: 10398
diff changeset
    92
                          horizontalLayout: fit
ceb080812e0d Added preference for auto indent
vrany
parents: 10398
diff changeset
    93
                          verticalLayout: top
ceb080812e0d Added preference for auto indent
vrany
parents: 10398
diff changeset
    94
                          horizontalSpace: 3
ceb080812e0d Added preference for auto indent
vrany
parents: 10398
diff changeset
    95
                          verticalSpace: 3
ceb080812e0d Added preference for auto indent
vrany
parents: 10398
diff changeset
    96
                          component: 
ceb080812e0d Added preference for auto indent
vrany
parents: 10398
diff changeset
    97
                         (SpecCollection
ceb080812e0d Added preference for auto indent
vrany
parents: 10398
diff changeset
    98
                            collection: (
ceb080812e0d Added preference for auto indent
vrany
parents: 10398
diff changeset
    99
                             (CheckBoxSpec
10794
854c6d72f257 Added checkbox to control default accept/cancel bar visibility
vrany
parents: 10524
diff changeset
   100
                                label: 'Show Accept/Cancel Buttons in Gutter'
854c6d72f257 Added checkbox to control default accept/cancel bar visibility
vrany
parents: 10524
diff changeset
   101
                                name: 'CheckBox6'
854c6d72f257 Added checkbox to control default accept/cancel bar visibility
vrany
parents: 10524
diff changeset
   102
                                model: codeView2ShowAcceptCancel
854c6d72f257 Added checkbox to control default accept/cancel bar visibility
vrany
parents: 10524
diff changeset
   103
                                translateLabel: true
854c6d72f257 Added checkbox to control default accept/cancel bar visibility
vrany
parents: 10524
diff changeset
   104
                                extent: (Point 540 22)
854c6d72f257 Added checkbox to control default accept/cancel bar visibility
vrany
parents: 10524
diff changeset
   105
                              )
854c6d72f257 Added checkbox to control default accept/cancel bar visibility
vrany
parents: 10524
diff changeset
   106
                             (CheckBoxSpec
854c6d72f257 Added checkbox to control default accept/cancel bar visibility
vrany
parents: 10524
diff changeset
   107
                                label: 'Auto Indent (EXPERIMENTAL, NOT YET RECCOMENDED)'
10524
ceb080812e0d Added preference for auto indent
vrany
parents: 10398
diff changeset
   108
                                name: 'CheckBox5'
ceb080812e0d Added preference for auto indent
vrany
parents: 10398
diff changeset
   109
                                model: codeView2AutoIndent
ceb080812e0d Added preference for auto indent
vrany
parents: 10398
diff changeset
   110
                                translateLabel: true
ceb080812e0d Added preference for auto indent
vrany
parents: 10398
diff changeset
   111
                                extent: (Point 540 22)
ceb080812e0d Added preference for auto indent
vrany
parents: 10398
diff changeset
   112
                              )
ceb080812e0d Added preference for auto indent
vrany
parents: 10398
diff changeset
   113
                             )
ceb080812e0d Added preference for auto indent
vrany
parents: 10398
diff changeset
   114
                           
ceb080812e0d Added preference for auto indent
vrany
parents: 10398
diff changeset
   115
                          )
ceb080812e0d Added preference for auto indent
vrany
parents: 10398
diff changeset
   116
                        )
ceb080812e0d Added preference for auto indent
vrany
parents: 10398
diff changeset
   117
                       )
ceb080812e0d Added preference for auto indent
vrany
parents: 10398
diff changeset
   118
                     
ceb080812e0d Added preference for auto indent
vrany
parents: 10398
diff changeset
   119
                    )
10794
854c6d72f257 Added checkbox to control default accept/cancel bar visibility
vrany
parents: 10524
diff changeset
   120
                    extent: (Point 576 90)
10524
ceb080812e0d Added preference for auto indent
vrany
parents: 10398
diff changeset
   121
                  )
ceb080812e0d Added preference for auto indent
vrany
parents: 10398
diff changeset
   122
                 (FramedBoxSpec
10337
e3390a81dcf9 initial checkin
vrany
parents:
diff changeset
   123
                    label: 'Tool Support'
e3390a81dcf9 initial checkin
vrany
parents:
diff changeset
   124
                    name: 'ToolSupport'
e3390a81dcf9 initial checkin
vrany
parents:
diff changeset
   125
                    labelPosition: topLeft
e3390a81dcf9 initial checkin
vrany
parents:
diff changeset
   126
                    translateLabel: true
e3390a81dcf9 initial checkin
vrany
parents:
diff changeset
   127
                    component: 
e3390a81dcf9 initial checkin
vrany
parents:
diff changeset
   128
                   (SpecCollection
e3390a81dcf9 initial checkin
vrany
parents:
diff changeset
   129
                      collection: (
e3390a81dcf9 initial checkin
vrany
parents:
diff changeset
   130
                       (VerticalPanelViewSpec
e3390a81dcf9 initial checkin
vrany
parents:
diff changeset
   131
                          name: 'ToolSupportCheckBox'
10398
3940fc3545c1 - per-tool preference for CodeView2
vrany
parents: 10337
diff changeset
   132
                          layout: (LayoutFrame 0 0 0 0 0 1 104 0)
10337
e3390a81dcf9 initial checkin
vrany
parents:
diff changeset
   133
                          horizontalLayout: fit
e3390a81dcf9 initial checkin
vrany
parents:
diff changeset
   134
                          verticalLayout: top
e3390a81dcf9 initial checkin
vrany
parents:
diff changeset
   135
                          horizontalSpace: 3
e3390a81dcf9 initial checkin
vrany
parents:
diff changeset
   136
                          verticalSpace: 3
e3390a81dcf9 initial checkin
vrany
parents:
diff changeset
   137
                          component: 
e3390a81dcf9 initial checkin
vrany
parents:
diff changeset
   138
                         (SpecCollection
e3390a81dcf9 initial checkin
vrany
parents:
diff changeset
   139
                            collection: (
e3390a81dcf9 initial checkin
vrany
parents:
diff changeset
   140
                             (CheckBoxSpec
e3390a81dcf9 initial checkin
vrany
parents:
diff changeset
   141
                                label: 'Use Advanced Code Editor in All Tools (when supported)'
e3390a81dcf9 initial checkin
vrany
parents:
diff changeset
   142
                                name: 'CheckBox1'
e3390a81dcf9 initial checkin
vrany
parents:
diff changeset
   143
                                model: useCodeView2InTools
e3390a81dcf9 initial checkin
vrany
parents:
diff changeset
   144
                                translateLabel: true
e3390a81dcf9 initial checkin
vrany
parents:
diff changeset
   145
                                extent: (Point 540 22)
e3390a81dcf9 initial checkin
vrany
parents:
diff changeset
   146
                              )
10398
3940fc3545c1 - per-tool preference for CodeView2
vrany
parents: 10337
diff changeset
   147
                             (DividerSpec
3940fc3545c1 - per-tool preference for CodeView2
vrany
parents: 10337
diff changeset
   148
                                name: 'Separator1'
3940fc3545c1 - per-tool preference for CodeView2
vrany
parents: 10337
diff changeset
   149
                                extent: (Point 540 4)
3940fc3545c1 - per-tool preference for CodeView2
vrany
parents: 10337
diff changeset
   150
                              )
3940fc3545c1 - per-tool preference for CodeView2
vrany
parents: 10337
diff changeset
   151
                             (CheckBoxSpec
3940fc3545c1 - per-tool preference for CodeView2
vrany
parents: 10337
diff changeset
   152
                                label: 'Use Advanced Code Editor in Class Browser'
3940fc3545c1 - per-tool preference for CodeView2
vrany
parents: 10337
diff changeset
   153
                                name: 'CheckBox2'
3940fc3545c1 - per-tool preference for CodeView2
vrany
parents: 10337
diff changeset
   154
                                enableChannel: useCodeView2InToolEnabled
3940fc3545c1 - per-tool preference for CodeView2
vrany
parents: 10337
diff changeset
   155
                                model: useCodeView2InBrowser
3940fc3545c1 - per-tool preference for CodeView2
vrany
parents: 10337
diff changeset
   156
                                translateLabel: true
3940fc3545c1 - per-tool preference for CodeView2
vrany
parents: 10337
diff changeset
   157
                                extent: (Point 540 22)
3940fc3545c1 - per-tool preference for CodeView2
vrany
parents: 10337
diff changeset
   158
                              )
3940fc3545c1 - per-tool preference for CodeView2
vrany
parents: 10337
diff changeset
   159
                             (CheckBoxSpec
3940fc3545c1 - per-tool preference for CodeView2
vrany
parents: 10337
diff changeset
   160
                                label: 'Use Advanced Code Editor in Debugger (HIGHLY EXPERIMENTAL!!!!!!)'
3940fc3545c1 - per-tool preference for CodeView2
vrany
parents: 10337
diff changeset
   161
                                name: 'CheckBox3'
3940fc3545c1 - per-tool preference for CodeView2
vrany
parents: 10337
diff changeset
   162
                                enableChannel: useCodeView2InToolEnabled
3940fc3545c1 - per-tool preference for CodeView2
vrany
parents: 10337
diff changeset
   163
                                model: useCodeView2InDebugger
3940fc3545c1 - per-tool preference for CodeView2
vrany
parents: 10337
diff changeset
   164
                                translateLabel: true
3940fc3545c1 - per-tool preference for CodeView2
vrany
parents: 10337
diff changeset
   165
                                extent: (Point 540 22)
3940fc3545c1 - per-tool preference for CodeView2
vrany
parents: 10337
diff changeset
   166
                              )
3940fc3545c1 - per-tool preference for CodeView2
vrany
parents: 10337
diff changeset
   167
                             (CheckBoxSpec
3940fc3545c1 - per-tool preference for CodeView2
vrany
parents: 10337
diff changeset
   168
                                label: 'Use Advanced Code Editor in Workspace'
3940fc3545c1 - per-tool preference for CodeView2
vrany
parents: 10337
diff changeset
   169
                                name: 'CheckBox4'
3940fc3545c1 - per-tool preference for CodeView2
vrany
parents: 10337
diff changeset
   170
                                enableChannel: useCodeView2InToolEnabled
3940fc3545c1 - per-tool preference for CodeView2
vrany
parents: 10337
diff changeset
   171
                                model: useCodeView2InWorkspace
3940fc3545c1 - per-tool preference for CodeView2
vrany
parents: 10337
diff changeset
   172
                                translateLabel: true
3940fc3545c1 - per-tool preference for CodeView2
vrany
parents: 10337
diff changeset
   173
                                extent: (Point 540 22)
3940fc3545c1 - per-tool preference for CodeView2
vrany
parents: 10337
diff changeset
   174
                              )
10337
e3390a81dcf9 initial checkin
vrany
parents:
diff changeset
   175
                             )
e3390a81dcf9 initial checkin
vrany
parents:
diff changeset
   176
                           
e3390a81dcf9 initial checkin
vrany
parents:
diff changeset
   177
                          )
e3390a81dcf9 initial checkin
vrany
parents:
diff changeset
   178
                          useDynamicPreferredHeight: true
e3390a81dcf9 initial checkin
vrany
parents:
diff changeset
   179
                          usePreferredHeight: true
e3390a81dcf9 initial checkin
vrany
parents:
diff changeset
   180
                        )
e3390a81dcf9 initial checkin
vrany
parents:
diff changeset
   181
                       )
e3390a81dcf9 initial checkin
vrany
parents:
diff changeset
   182
                     
e3390a81dcf9 initial checkin
vrany
parents:
diff changeset
   183
                    )
10398
3940fc3545c1 - per-tool preference for CodeView2
vrany
parents: 10337
diff changeset
   184
                    extent: (Point 590 154)
10337
e3390a81dcf9 initial checkin
vrany
parents:
diff changeset
   185
                    useDynamicPreferredHeight: true
e3390a81dcf9 initial checkin
vrany
parents:
diff changeset
   186
                    useDynamicPreferredWidth: true
e3390a81dcf9 initial checkin
vrany
parents:
diff changeset
   187
                    usePreferredHeight: true
e3390a81dcf9 initial checkin
vrany
parents:
diff changeset
   188
                    usePreferredWidth: true
e3390a81dcf9 initial checkin
vrany
parents:
diff changeset
   189
                  )
e3390a81dcf9 initial checkin
vrany
parents:
diff changeset
   190
                 )
e3390a81dcf9 initial checkin
vrany
parents:
diff changeset
   191
               
e3390a81dcf9 initial checkin
vrany
parents:
diff changeset
   192
              )
e3390a81dcf9 initial checkin
vrany
parents:
diff changeset
   193
            )
e3390a81dcf9 initial checkin
vrany
parents:
diff changeset
   194
           )
e3390a81dcf9 initial checkin
vrany
parents:
diff changeset
   195
         
e3390a81dcf9 initial checkin
vrany
parents:
diff changeset
   196
        )
e3390a81dcf9 initial checkin
vrany
parents:
diff changeset
   197
      )
10398
3940fc3545c1 - per-tool preference for CodeView2
vrany
parents: 10337
diff changeset
   198
10337
e3390a81dcf9 initial checkin
vrany
parents:
diff changeset
   199
! !
e3390a81dcf9 initial checkin
vrany
parents:
diff changeset
   200
e3390a81dcf9 initial checkin
vrany
parents:
diff changeset
   201
!CodeView2SettingsAppl methodsFor:'aspects'!
e3390a81dcf9 initial checkin
vrany
parents:
diff changeset
   202
10524
ceb080812e0d Added preference for auto indent
vrany
parents: 10398
diff changeset
   203
codeView2AutoIndent
ceb080812e0d Added preference for auto indent
vrany
parents: 10398
diff changeset
   204
    "return/create the 'useCodeView2InTools' value holder (automatically generated)"
ceb080812e0d Added preference for auto indent
vrany
parents: 10398
diff changeset
   205
ceb080812e0d Added preference for auto indent
vrany
parents: 10398
diff changeset
   206
    codeView2AutoIndent isNil ifTrue:[
ceb080812e0d Added preference for auto indent
vrany
parents: 10398
diff changeset
   207
        codeView2AutoIndent := ValueHolder new.
ceb080812e0d Added preference for auto indent
vrany
parents: 10398
diff changeset
   208
        codeView2AutoIndent onChangeSend:#updateModifiedChannel to:self
ceb080812e0d Added preference for auto indent
vrany
parents: 10398
diff changeset
   209
ceb080812e0d Added preference for auto indent
vrany
parents: 10398
diff changeset
   210
    ].
ceb080812e0d Added preference for auto indent
vrany
parents: 10398
diff changeset
   211
    ^ codeView2AutoIndent
ceb080812e0d Added preference for auto indent
vrany
parents: 10398
diff changeset
   212
ceb080812e0d Added preference for auto indent
vrany
parents: 10398
diff changeset
   213
    "Modified: / 11-03-2010 / 10:09:04 / Jan Vrany <jan.vrany@fit.cvut.cz>"
ceb080812e0d Added preference for auto indent
vrany
parents: 10398
diff changeset
   214
    "Created: / 07-08-2011 / 12:52:20 / Jan Vrany <jan.vrany@fit.cvut.cz>"
ceb080812e0d Added preference for auto indent
vrany
parents: 10398
diff changeset
   215
!
ceb080812e0d Added preference for auto indent
vrany
parents: 10398
diff changeset
   216
10794
854c6d72f257 Added checkbox to control default accept/cancel bar visibility
vrany
parents: 10524
diff changeset
   217
codeView2ShowAcceptCancel
854c6d72f257 Added checkbox to control default accept/cancel bar visibility
vrany
parents: 10524
diff changeset
   218
    "return/create the 'codeView2ShowAcceptCancel' value holder (automatically generated)"
854c6d72f257 Added checkbox to control default accept/cancel bar visibility
vrany
parents: 10524
diff changeset
   219
854c6d72f257 Added checkbox to control default accept/cancel bar visibility
vrany
parents: 10524
diff changeset
   220
    codeView2ShowAcceptCancel isNil ifTrue:[
854c6d72f257 Added checkbox to control default accept/cancel bar visibility
vrany
parents: 10524
diff changeset
   221
        codeView2ShowAcceptCancel := ValueHolder new.
854c6d72f257 Added checkbox to control default accept/cancel bar visibility
vrany
parents: 10524
diff changeset
   222
        codeView2ShowAcceptCancel onChangeSend:#updateModifiedChannel to:self
854c6d72f257 Added checkbox to control default accept/cancel bar visibility
vrany
parents: 10524
diff changeset
   223
    ].
854c6d72f257 Added checkbox to control default accept/cancel bar visibility
vrany
parents: 10524
diff changeset
   224
    ^ codeView2ShowAcceptCancel
854c6d72f257 Added checkbox to control default accept/cancel bar visibility
vrany
parents: 10524
diff changeset
   225
854c6d72f257 Added checkbox to control default accept/cancel bar visibility
vrany
parents: 10524
diff changeset
   226
    "Modified: / 10-10-2011 / 16:43:22 / Jan Vrany <jan.vrany@fit.cvut.cz>"
854c6d72f257 Added checkbox to control default accept/cancel bar visibility
vrany
parents: 10524
diff changeset
   227
!
854c6d72f257 Added checkbox to control default accept/cancel bar visibility
vrany
parents: 10524
diff changeset
   228
10398
3940fc3545c1 - per-tool preference for CodeView2
vrany
parents: 10337
diff changeset
   229
useCodeView2InBrowser
3940fc3545c1 - per-tool preference for CodeView2
vrany
parents: 10337
diff changeset
   230
    "return/create the 'useCodeView2InTools' value holder (automatically generated)"
3940fc3545c1 - per-tool preference for CodeView2
vrany
parents: 10337
diff changeset
   231
3940fc3545c1 - per-tool preference for CodeView2
vrany
parents: 10337
diff changeset
   232
    useCodeView2InBrowser isNil ifTrue:[
3940fc3545c1 - per-tool preference for CodeView2
vrany
parents: 10337
diff changeset
   233
        useCodeView2InBrowser := ValueHolder new.
3940fc3545c1 - per-tool preference for CodeView2
vrany
parents: 10337
diff changeset
   234
        useCodeView2InBrowser onChangeSend:#updateModifiedChannel to:self
3940fc3545c1 - per-tool preference for CodeView2
vrany
parents: 10337
diff changeset
   235
3940fc3545c1 - per-tool preference for CodeView2
vrany
parents: 10337
diff changeset
   236
    ].
3940fc3545c1 - per-tool preference for CodeView2
vrany
parents: 10337
diff changeset
   237
    ^ useCodeView2InBrowser
3940fc3545c1 - per-tool preference for CodeView2
vrany
parents: 10337
diff changeset
   238
3940fc3545c1 - per-tool preference for CodeView2
vrany
parents: 10337
diff changeset
   239
    "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
   240
    "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
   241
!
3940fc3545c1 - per-tool preference for CodeView2
vrany
parents: 10337
diff changeset
   242
3940fc3545c1 - per-tool preference for CodeView2
vrany
parents: 10337
diff changeset
   243
useCodeView2InDebugger
3940fc3545c1 - per-tool preference for CodeView2
vrany
parents: 10337
diff changeset
   244
    "return/create the 'useCodeView2InTools' value holder (automatically generated)"
3940fc3545c1 - per-tool preference for CodeView2
vrany
parents: 10337
diff changeset
   245
3940fc3545c1 - per-tool preference for CodeView2
vrany
parents: 10337
diff changeset
   246
    useCodeView2InDebugger isNil ifTrue:[
3940fc3545c1 - per-tool preference for CodeView2
vrany
parents: 10337
diff changeset
   247
        useCodeView2InDebugger := ValueHolder new.
3940fc3545c1 - per-tool preference for CodeView2
vrany
parents: 10337
diff changeset
   248
        useCodeView2InDebugger onChangeSend:#updateModifiedChannel to:self
3940fc3545c1 - per-tool preference for CodeView2
vrany
parents: 10337
diff changeset
   249
3940fc3545c1 - per-tool preference for CodeView2
vrany
parents: 10337
diff changeset
   250
    ].
3940fc3545c1 - per-tool preference for CodeView2
vrany
parents: 10337
diff changeset
   251
    ^ useCodeView2InDebugger
3940fc3545c1 - per-tool preference for CodeView2
vrany
parents: 10337
diff changeset
   252
3940fc3545c1 - per-tool preference for CodeView2
vrany
parents: 10337
diff changeset
   253
    "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
   254
    "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
   255
!
3940fc3545c1 - per-tool preference for CodeView2
vrany
parents: 10337
diff changeset
   256
10337
e3390a81dcf9 initial checkin
vrany
parents:
diff changeset
   257
useCodeView2InTools
e3390a81dcf9 initial checkin
vrany
parents:
diff changeset
   258
    "return/create the 'useCodeView2InTools' value holder (automatically generated)"
e3390a81dcf9 initial checkin
vrany
parents:
diff changeset
   259
e3390a81dcf9 initial checkin
vrany
parents:
diff changeset
   260
    useCodeView2InTools isNil ifTrue:[
e3390a81dcf9 initial checkin
vrany
parents:
diff changeset
   261
        useCodeView2InTools := ValueHolder new.
e3390a81dcf9 initial checkin
vrany
parents:
diff changeset
   262
        useCodeView2InTools onChangeSend:#updateModifiedChannel to:self
e3390a81dcf9 initial checkin
vrany
parents:
diff changeset
   263
e3390a81dcf9 initial checkin
vrany
parents:
diff changeset
   264
    ].
e3390a81dcf9 initial checkin
vrany
parents:
diff changeset
   265
    ^ useCodeView2InTools
e3390a81dcf9 initial checkin
vrany
parents:
diff changeset
   266
e3390a81dcf9 initial checkin
vrany
parents:
diff changeset
   267
    "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
   268
!
3940fc3545c1 - per-tool preference for CodeView2
vrany
parents: 10337
diff changeset
   269
3940fc3545c1 - per-tool preference for CodeView2
vrany
parents: 10337
diff changeset
   270
useCodeView2InWorkspace
3940fc3545c1 - per-tool preference for CodeView2
vrany
parents: 10337
diff changeset
   271
    "return/create the 'useCodeView2InTools' value holder (automatically generated)"
3940fc3545c1 - per-tool preference for CodeView2
vrany
parents: 10337
diff changeset
   272
3940fc3545c1 - per-tool preference for CodeView2
vrany
parents: 10337
diff changeset
   273
    useCodeView2InWorkspace isNil ifTrue:[
3940fc3545c1 - per-tool preference for CodeView2
vrany
parents: 10337
diff changeset
   274
        useCodeView2InWorkspace := ValueHolder new.
3940fc3545c1 - per-tool preference for CodeView2
vrany
parents: 10337
diff changeset
   275
        useCodeView2InWorkspace onChangeSend:#updateModifiedChannel to:self
3940fc3545c1 - per-tool preference for CodeView2
vrany
parents: 10337
diff changeset
   276
3940fc3545c1 - per-tool preference for CodeView2
vrany
parents: 10337
diff changeset
   277
    ].
3940fc3545c1 - per-tool preference for CodeView2
vrany
parents: 10337
diff changeset
   278
    ^ useCodeView2InWorkspace
3940fc3545c1 - per-tool preference for CodeView2
vrany
parents: 10337
diff changeset
   279
3940fc3545c1 - per-tool preference for CodeView2
vrany
parents: 10337
diff changeset
   280
    "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
   281
    "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
   282
! !
3940fc3545c1 - per-tool preference for CodeView2
vrany
parents: 10337
diff changeset
   283
3940fc3545c1 - per-tool preference for CodeView2
vrany
parents: 10337
diff changeset
   284
!CodeView2SettingsAppl methodsFor:'aspects-enablement'!
3940fc3545c1 - per-tool preference for CodeView2
vrany
parents: 10337
diff changeset
   285
3940fc3545c1 - per-tool preference for CodeView2
vrany
parents: 10337
diff changeset
   286
useCodeView2InToolEnabled
3940fc3545c1 - per-tool preference for CodeView2
vrany
parents: 10337
diff changeset
   287
    "return/create the 'useCodeView2InTools' value holder (automatically generated)"
3940fc3545c1 - per-tool preference for CodeView2
vrany
parents: 10337
diff changeset
   288
3940fc3545c1 - per-tool preference for CodeView2
vrany
parents: 10337
diff changeset
   289
    useCodeView2InToolEnabled isNil ifTrue:[
3940fc3545c1 - per-tool preference for CodeView2
vrany
parents: 10337
diff changeset
   290
        useCodeView2InToolEnabled := 
3940fc3545c1 - per-tool preference for CodeView2
vrany
parents: 10337
diff changeset
   291
            (AspectAdaptor forAspect: #not) subjectChannel:
3940fc3545c1 - per-tool preference for CodeView2
vrany
parents: 10337
diff changeset
   292
                self useCodeView2InTools
3940fc3545c1 - per-tool preference for CodeView2
vrany
parents: 10337
diff changeset
   293
3940fc3545c1 - per-tool preference for CodeView2
vrany
parents: 10337
diff changeset
   294
3940fc3545c1 - per-tool preference for CodeView2
vrany
parents: 10337
diff changeset
   295
    ].
3940fc3545c1 - per-tool preference for CodeView2
vrany
parents: 10337
diff changeset
   296
    ^ useCodeView2InToolEnabled
3940fc3545c1 - per-tool preference for CodeView2
vrany
parents: 10337
diff changeset
   297
3940fc3545c1 - per-tool preference for CodeView2
vrany
parents: 10337
diff changeset
   298
    "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
   299
    "Created: / 26-07-2011 / 10:39:03 / Jan Vrany <jan.vrany@fit.cvut.cz>"
10337
e3390a81dcf9 initial checkin
vrany
parents:
diff changeset
   300
! !
e3390a81dcf9 initial checkin
vrany
parents:
diff changeset
   301
e3390a81dcf9 initial checkin
vrany
parents:
diff changeset
   302
!CodeView2SettingsAppl methodsFor:'protocol'!
e3390a81dcf9 initial checkin
vrany
parents:
diff changeset
   303
e3390a81dcf9 initial checkin
vrany
parents:
diff changeset
   304
basicAspects
10398
3940fc3545c1 - per-tool preference for CodeView2
vrany
parents: 10337
diff changeset
   305
    ^#( 
3940fc3545c1 - per-tool preference for CodeView2
vrany
parents: 10337
diff changeset
   306
        #useCodeView2InTools 
3940fc3545c1 - per-tool preference for CodeView2
vrany
parents: 10337
diff changeset
   307
        #useCodeView2InBrowser
3940fc3545c1 - per-tool preference for CodeView2
vrany
parents: 10337
diff changeset
   308
        #useCodeView2InDebugger
3940fc3545c1 - per-tool preference for CodeView2
vrany
parents: 10337
diff changeset
   309
        #useCodeView2InWorkspace
10524
ceb080812e0d Added preference for auto indent
vrany
parents: 10398
diff changeset
   310
        "/Editing support
ceb080812e0d Added preference for auto indent
vrany
parents: 10398
diff changeset
   311
        #codeView2AutoIndent
10794
854c6d72f257 Added checkbox to control default accept/cancel bar visibility
vrany
parents: 10524
diff changeset
   312
        #codeView2ShowAcceptCancel
10398
3940fc3545c1 - per-tool preference for CodeView2
vrany
parents: 10337
diff changeset
   313
    )
3940fc3545c1 - per-tool preference for CodeView2
vrany
parents: 10337
diff changeset
   314
10794
854c6d72f257 Added checkbox to control default accept/cancel bar visibility
vrany
parents: 10524
diff changeset
   315
    "Modified: / 10-10-2011 / 16:43:36 / Jan Vrany <jan.vrany@fit.cvut.cz>"
10337
e3390a81dcf9 initial checkin
vrany
parents:
diff changeset
   316
!
e3390a81dcf9 initial checkin
vrany
parents:
diff changeset
   317
e3390a81dcf9 initial checkin
vrany
parents:
diff changeset
   318
basicReadSettings
e3390a81dcf9 initial checkin
vrany
parents:
diff changeset
   319
    self readAspects:self basicAspects from:currentUserPrefs.
e3390a81dcf9 initial checkin
vrany
parents:
diff changeset
   320
e3390a81dcf9 initial checkin
vrany
parents:
diff changeset
   321
    "Modified: / 19-07-2011 / 17:11:00 / Jan Vrany <jan.vrany@fit.cvut.cz>"
e3390a81dcf9 initial checkin
vrany
parents:
diff changeset
   322
!
e3390a81dcf9 initial checkin
vrany
parents:
diff changeset
   323
e3390a81dcf9 initial checkin
vrany
parents:
diff changeset
   324
basicSaveSettings
e3390a81dcf9 initial checkin
vrany
parents:
diff changeset
   325
e3390a81dcf9 initial checkin
vrany
parents:
diff changeset
   326
    self writeAspects:self basicAspects to:currentUserPrefs.
e3390a81dcf9 initial checkin
vrany
parents:
diff changeset
   327
10398
3940fc3545c1 - per-tool preference for CodeView2
vrany
parents: 10337
diff changeset
   328
    "Modified: / 26-07-2011 / 10:43:53 / Jan Vrany <jan.vrany@fit.cvut.cz>"
10337
e3390a81dcf9 initial checkin
vrany
parents:
diff changeset
   329
!
e3390a81dcf9 initial checkin
vrany
parents:
diff changeset
   330
e3390a81dcf9 initial checkin
vrany
parents:
diff changeset
   331
helpFilename
e3390a81dcf9 initial checkin
vrany
parents:
diff changeset
   332
    "subclasses must return the relative name of a helpFile
e3390a81dcf9 initial checkin
vrany
parents:
diff changeset
   333
     in the doc/online/<language>/help directory.
e3390a81dcf9 initial checkin
vrany
parents:
diff changeset
   334
     Or nil, if no help is available."
e3390a81dcf9 initial checkin
vrany
parents:
diff changeset
   335
e3390a81dcf9 initial checkin
vrany
parents:
diff changeset
   336
    ^ nil"for now"
e3390a81dcf9 initial checkin
vrany
parents:
diff changeset
   337
e3390a81dcf9 initial checkin
vrany
parents:
diff changeset
   338
    "Modified: / 19-07-2011 / 16:55:16 / Jan Vrany <jan.vrany@fit.cvut.cz>"
e3390a81dcf9 initial checkin
vrany
parents:
diff changeset
   339
! !
e3390a81dcf9 initial checkin
vrany
parents:
diff changeset
   340
e3390a81dcf9 initial checkin
vrany
parents:
diff changeset
   341
!CodeView2SettingsAppl methodsFor:'queries'!
e3390a81dcf9 initial checkin
vrany
parents:
diff changeset
   342
e3390a81dcf9 initial checkin
vrany
parents:
diff changeset
   343
hasUnsavedChanges
e3390a81dcf9 initial checkin
vrany
parents:
diff changeset
   344
e3390a81dcf9 initial checkin
vrany
parents:
diff changeset
   345
    (self
e3390a81dcf9 initial checkin
vrany
parents:
diff changeset
   346
        hasChangedAspectIn: self basicAspects
e3390a81dcf9 initial checkin
vrany
parents:
diff changeset
   347
        asComparedTo:currentUserPrefs) ifTrue:[^ true].
e3390a81dcf9 initial checkin
vrany
parents:
diff changeset
   348
    ^ false.
e3390a81dcf9 initial checkin
vrany
parents:
diff changeset
   349
e3390a81dcf9 initial checkin
vrany
parents:
diff changeset
   350
    "Modified: / 19-07-2011 / 17:12:32 / Jan Vrany <jan.vrany@fit.cvut.cz>"
e3390a81dcf9 initial checkin
vrany
parents:
diff changeset
   351
! !
e3390a81dcf9 initial checkin
vrany
parents:
diff changeset
   352
e3390a81dcf9 initial checkin
vrany
parents:
diff changeset
   353
!CodeView2SettingsAppl class methodsFor:'documentation'!
e3390a81dcf9 initial checkin
vrany
parents:
diff changeset
   354
e3390a81dcf9 initial checkin
vrany
parents:
diff changeset
   355
version
10794
854c6d72f257 Added checkbox to control default accept/cancel bar visibility
vrany
parents: 10524
diff changeset
   356
    ^ '$Header: /cvs/stx/stx/libtool/Tools__CodeView2SettingsAppl.st,v 1.4 2011-10-10 15:52:24 vrany Exp $'
10337
e3390a81dcf9 initial checkin
vrany
parents:
diff changeset
   357
!
e3390a81dcf9 initial checkin
vrany
parents:
diff changeset
   358
e3390a81dcf9 initial checkin
vrany
parents:
diff changeset
   359
version_CVS
10794
854c6d72f257 Added checkbox to control default accept/cancel bar visibility
vrany
parents: 10524
diff changeset
   360
    ^ '$Header: /cvs/stx/stx/libtool/Tools__CodeView2SettingsAppl.st,v 1.4 2011-10-10 15:52:24 vrany Exp $'
10398
3940fc3545c1 - per-tool preference for CodeView2
vrany
parents: 10337
diff changeset
   361
!
3940fc3545c1 - per-tool preference for CodeView2
vrany
parents: 10337
diff changeset
   362
3940fc3545c1 - per-tool preference for CodeView2
vrany
parents: 10337
diff changeset
   363
version_SVN
3940fc3545c1 - per-tool preference for CodeView2
vrany
parents: 10337
diff changeset
   364
    ^ '§Id§'
10337
e3390a81dcf9 initial checkin
vrany
parents:
diff changeset
   365
! !