10337
|
1 |
"{ Package: 'stx:libtool' }"
|
|
2 |
|
|
3 |
"{ NameSpace: Tools }"
|
|
4 |
|
|
5 |
AbstractSettingsApplication subclass:#CodeView2SettingsAppl
|
|
6 |
instanceVariableNames:'useCodeView2InTools'
|
|
7 |
classVariableNames:''
|
|
8 |
poolDictionaries:''
|
|
9 |
category:'Interface-CodeView'
|
|
10 |
!
|
|
11 |
|
|
12 |
|
|
13 |
!CodeView2SettingsAppl class methodsFor:'interface specs'!
|
|
14 |
|
|
15 |
windowSpec
|
|
16 |
"This resource specification was automatically generated
|
|
17 |
by the UIPainter of ST/X."
|
|
18 |
|
|
19 |
"Do not manually edit this!! If it is corrupted,
|
|
20 |
the UIPainter may not be able to read the specification."
|
|
21 |
|
|
22 |
"
|
|
23 |
UIPainter new openOnClass:Tools::CodeView2SettingsAppl andSelector:#windowSpec
|
|
24 |
Tools::CodeView2SettingsAppl new openInterface:#windowSpec
|
|
25 |
Tools::CodeView2SettingsAppl open
|
|
26 |
"
|
|
27 |
|
|
28 |
<resource: #canvas>
|
|
29 |
|
|
30 |
^
|
|
31 |
#(FullSpec
|
|
32 |
name: windowSpec
|
|
33 |
window:
|
|
34 |
(WindowSpec
|
|
35 |
label: 'Code Editor Settings'
|
|
36 |
name: 'Code Editor Settings'
|
|
37 |
min: (Point 10 10)
|
|
38 |
bounds: (Rectangle 0 0 576 300)
|
|
39 |
)
|
|
40 |
component:
|
|
41 |
(SpecCollection
|
|
42 |
collection: (
|
|
43 |
(VerticalPanelViewSpec
|
|
44 |
name: 'VBox'
|
|
45 |
layout: (LayoutFrame 0 0 0 0 0 1 0 1)
|
|
46 |
horizontalLayout: fit
|
|
47 |
verticalLayout: top
|
|
48 |
horizontalSpace: 3
|
|
49 |
verticalSpace: 3
|
|
50 |
component:
|
|
51 |
(SpecCollection
|
|
52 |
collection: (
|
|
53 |
(FramedBoxSpec
|
|
54 |
label: 'Tool Support'
|
|
55 |
name: 'ToolSupport'
|
|
56 |
labelPosition: topLeft
|
|
57 |
translateLabel: true
|
|
58 |
component:
|
|
59 |
(SpecCollection
|
|
60 |
collection: (
|
|
61 |
(VerticalPanelViewSpec
|
|
62 |
name: 'ToolSupportCheckBox'
|
|
63 |
layout: (LayoutFrame 0 0 0 0 0 1 22 0)
|
|
64 |
horizontalLayout: fit
|
|
65 |
verticalLayout: top
|
|
66 |
horizontalSpace: 3
|
|
67 |
verticalSpace: 3
|
|
68 |
component:
|
|
69 |
(SpecCollection
|
|
70 |
collection: (
|
|
71 |
(CheckBoxSpec
|
|
72 |
label: 'Use Advanced Code Editor in All Tools (when supported)'
|
|
73 |
name: 'CheckBox1'
|
|
74 |
model: useCodeView2InTools
|
|
75 |
translateLabel: true
|
|
76 |
extent: (Point 540 22)
|
|
77 |
)
|
|
78 |
)
|
|
79 |
|
|
80 |
)
|
|
81 |
useDynamicPreferredHeight: true
|
|
82 |
usePreferredHeight: true
|
|
83 |
)
|
|
84 |
)
|
|
85 |
|
|
86 |
)
|
|
87 |
extent: (Point 590 72)
|
|
88 |
useDynamicPreferredHeight: true
|
|
89 |
useDynamicPreferredWidth: true
|
|
90 |
usePreferredHeight: true
|
|
91 |
usePreferredWidth: true
|
|
92 |
)
|
|
93 |
)
|
|
94 |
|
|
95 |
)
|
|
96 |
)
|
|
97 |
)
|
|
98 |
|
|
99 |
)
|
|
100 |
)
|
|
101 |
! !
|
|
102 |
|
|
103 |
!CodeView2SettingsAppl methodsFor:'aspects'!
|
|
104 |
|
|
105 |
useCodeView2InTools
|
|
106 |
"return/create the 'useCodeView2InTools' value holder (automatically generated)"
|
|
107 |
|
|
108 |
useCodeView2InTools isNil ifTrue:[
|
|
109 |
useCodeView2InTools := ValueHolder new.
|
|
110 |
useCodeView2InTools onChangeSend:#updateModifiedChannel to:self
|
|
111 |
|
|
112 |
].
|
|
113 |
^ useCodeView2InTools
|
|
114 |
|
|
115 |
"Modified: / 11-03-2010 / 10:09:04 / Jan Vrany <jan.vrany@fit.cvut.cz>"
|
|
116 |
! !
|
|
117 |
|
|
118 |
!CodeView2SettingsAppl methodsFor:'protocol'!
|
|
119 |
|
|
120 |
basicAspects
|
|
121 |
^#( #useCodeView2InTools )
|
|
122 |
!
|
|
123 |
|
|
124 |
basicReadSettings
|
|
125 |
self readAspects:self basicAspects from:currentUserPrefs.
|
|
126 |
|
|
127 |
"Modified: / 19-07-2011 / 17:11:00 / Jan Vrany <jan.vrany@fit.cvut.cz>"
|
|
128 |
!
|
|
129 |
|
|
130 |
basicSaveSettings
|
|
131 |
"superclass AbstractSettingsApplication says that I am responsible to implement this method"
|
|
132 |
|
|
133 |
^ self shouldImplement
|
|
134 |
!
|
|
135 |
|
|
136 |
basicWriteSettings
|
|
137 |
|
|
138 |
self writeAspects:self basicAspects to:currentUserPrefs.
|
|
139 |
|
|
140 |
"Created: / 19-07-2011 / 17:11:59 / Jan Vrany <jan.vrany@fit.cvut.cz>"
|
|
141 |
!
|
|
142 |
|
|
143 |
helpFilename
|
|
144 |
"subclasses must return the relative name of a helpFile
|
|
145 |
in the doc/online/<language>/help directory.
|
|
146 |
Or nil, if no help is available."
|
|
147 |
|
|
148 |
^ nil"for now"
|
|
149 |
|
|
150 |
"Modified: / 19-07-2011 / 16:55:16 / Jan Vrany <jan.vrany@fit.cvut.cz>"
|
|
151 |
! !
|
|
152 |
|
|
153 |
!CodeView2SettingsAppl methodsFor:'queries'!
|
|
154 |
|
|
155 |
hasUnsavedChanges
|
|
156 |
|
|
157 |
(self
|
|
158 |
hasChangedAspectIn: self basicAspects
|
|
159 |
asComparedTo:currentUserPrefs) ifTrue:[^ true].
|
|
160 |
^ false.
|
|
161 |
|
|
162 |
"Modified: / 19-07-2011 / 17:12:32 / Jan Vrany <jan.vrany@fit.cvut.cz>"
|
|
163 |
! !
|
|
164 |
|
|
165 |
!CodeView2SettingsAppl class methodsFor:'documentation'!
|
|
166 |
|
|
167 |
version
|
|
168 |
^ '$Header: /cvs/stx/stx/libtool/Tools__CodeView2SettingsAppl.st,v 1.1 2011-07-19 17:02:14 vrany Exp $'
|
|
169 |
!
|
|
170 |
|
|
171 |
version_CVS
|
|
172 |
^ '$Header: /cvs/stx/stx/libtool/Tools__CodeView2SettingsAppl.st,v 1.1 2011-07-19 17:02:14 vrany Exp $'
|
|
173 |
! !
|