author | Claus Gittinger <cg@exept.de> |
Fri, 09 Dec 2016 13:44:48 +0100 | |
changeset 5995 | a44c8b27bbad |
parent 5971 | e670480031bc |
child 5986 | 1fa5f049f917 |
child 6046 | 124e2e329205 |
permissions | -rw-r--r-- |
3341 | 1 |
" |
5970 | 2 |
COPYRIGHT (c) Claus Gittinger / 2006 by eXept Software AG |
3 |
All Rights Reserved |
|
3341 | 4 |
|
5 |
This software is furnished under a license and may be used |
|
6 |
only in accordance with the terms of that license and with the |
|
7 |
inclusion of the above copyright notice. This software may not |
|
8 |
be provided or otherwise made available to, or used by, any |
|
9 |
other person. No title to or ownership of the software is |
|
10 |
hereby transferred. |
|
11 |
" |
|
3330 | 12 |
"{ Package: 'stx:libwidg' }" |
13 |
||
5243
cbd28c5f47ea
comment/format in: #documentation
Claus Gittinger <cg@exept.de>
parents:
5165
diff
changeset
|
14 |
"{ NameSpace: Smalltalk }" |
cbd28c5f47ea
comment/format in: #documentation
Claus Gittinger <cg@exept.de>
parents:
5165
diff
changeset
|
15 |
|
3330 | 16 |
LibraryDefinition subclass:#stx_libwidg |
17 |
instanceVariableNames:'' |
|
18 |
classVariableNames:'' |
|
19 |
poolDictionaries:'' |
|
3472 | 20 |
category:'* Projects & Packages *' |
3330 | 21 |
! |
22 |
||
3341 | 23 |
!stx_libwidg class methodsFor:'documentation'! |
24 |
||
25 |
copyright |
|
26 |
" |
|
5970 | 27 |
COPYRIGHT (c) Claus Gittinger / 2006 by eXept Software AG |
28 |
All Rights Reserved |
|
3341 | 29 |
|
30 |
This software is furnished under a license and may be used |
|
31 |
only in accordance with the terms of that license and with the |
|
32 |
inclusion of the above copyright notice. This software may not |
|
33 |
be provided or otherwise made available to, or used by, any |
|
34 |
other person. No title to or ownership of the software is |
|
35 |
hereby transferred. |
|
36 |
" |
|
37 |
! |
|
38 |
||
39 |
documentation |
|
40 |
" |
|
5243
cbd28c5f47ea
comment/format in: #documentation
Claus Gittinger <cg@exept.de>
parents:
5165
diff
changeset
|
41 |
Package Documentation |
cbd28c5f47ea
comment/format in: #documentation
Claus Gittinger <cg@exept.de>
parents:
5165
diff
changeset
|
42 |
|
5275 | 43 |
This library contains elementary GUI components (widgets), such as Buttons, InputFields, |
5243
cbd28c5f47ea
comment/format in: #documentation
Claus Gittinger <cg@exept.de>
parents:
5165
diff
changeset
|
44 |
TextEditors, Scrollbars etc. |
5275 | 45 |
|
5944 | 46 |
All of these widgets are written in 100% pure Smalltalk. |
47 |
They do not depend upon any particular underlying graphic system (by the operating system). |
|
5275 | 48 |
Instead, they build upon the abstraction layer as provided by libview. |
5944 | 49 |
Arguably, this has both advantages and disadvantages: |
50 |
for one, the ST/X widgets may not look&feel 100% like their native counterparts, especially |
|
51 |
on systems which constantly change (i.e. Windows). |
|
52 |
On the other hand, this frees us completely from any development there, |
|
53 |
and gets us rid of big problems when looks, feels or even APIs change. |
|
54 |
||
55 |
Just consider the following historic fact: |
|
56 |
when motif was modern, people asked for a native motif style... |
|
57 |
... a few years later for qt, then gnome, and what next? |
|
58 |
We'd be constantly adapting to new frameworks and not get any work done, |
|
59 |
if we were depending on native widgets |
|
60 |
||
61 |
Also, this might even make problems, if widget frameorks on different systems |
|
62 |
(i.e. X vs. Windows vs. Cocoa) provide different levels of functionality. |
|
3341 | 63 |
" |
64 |
! ! |
|
3330 | 65 |
|
66 |
!stx_libwidg class methodsFor:'description'! |
|
67 |
||
3488 | 68 |
excludedFromPreRequisites |
3330 | 69 |
^ #( |
4529
ec75c190f714
Now preRequiites are separated in mandatoryPreRequisites and referencedPreRequisites
Stefan Vogel <sv@exept.de>
parents:
4520
diff
changeset
|
70 |
#'stx:libjavascript' "JavaScriptParser - referenced by Workspace>>browseImplementorsOfIt " |
ec75c190f714
Now preRequiites are separated in mandatoryPreRequisites and referencedPreRequisites
Stefan Vogel <sv@exept.de>
parents:
4520
diff
changeset
|
71 |
#'stx:goodies/communication' "HTTPInterface - referenced by EditTextView>>editMenu " |
ec75c190f714
Now preRequiites are separated in mandatoryPreRequisites and referencedPreRequisites
Stefan Vogel <sv@exept.de>
parents:
4520
diff
changeset
|
72 |
#'stx:goodies/soap' "SOAP::SoapImplError - referenced by EditTextView>>googleSpellingSuggestion " |
ec75c190f714
Now preRequiites are separated in mandatoryPreRequisites and referencedPreRequisites
Stefan Vogel <sv@exept.de>
parents:
4520
diff
changeset
|
73 |
#'stx:goodies/soap/examples' "SOAP::BabelFishClient - referenced by EditTextView>>babelFishTranslate: " |
ec75c190f714
Now preRequiites are separated in mandatoryPreRequisites and referencedPreRequisites
Stefan Vogel <sv@exept.de>
parents:
4520
diff
changeset
|
74 |
#'stx:libcomp' "Parser - referenced by EditTextView>>executeKeyboardMacro: " |
ec75c190f714
Now preRequiites are separated in mandatoryPreRequisites and referencedPreRequisites
Stefan Vogel <sv@exept.de>
parents:
4520
diff
changeset
|
75 |
#'stx:libhtml' "HTMLDocumentView - referenced by DialogBox>>addHelpButtonFor: " |
ec75c190f714
Now preRequiites are separated in mandatoryPreRequisites and referencedPreRequisites
Stefan Vogel <sv@exept.de>
parents:
4520
diff
changeset
|
76 |
#'stx:libtool' "SystemBrowser - referenced by Workspace>>browseImplementorsOfIt " |
ec75c190f714
Now preRequiites are separated in mandatoryPreRequisites and referencedPreRequisites
Stefan Vogel <sv@exept.de>
parents:
4520
diff
changeset
|
77 |
#'stx:libwidg2' "FilenameEditField - referenced by DialogBox>>addFilenameInputFieldOn:in:tabable: " |
3330 | 78 |
) |
79 |
! |
|
80 |
||
4529
ec75c190f714
Now preRequiites are separated in mandatoryPreRequisites and referencedPreRequisites
Stefan Vogel <sv@exept.de>
parents:
4520
diff
changeset
|
81 |
mandatoryPreRequisites |
ec75c190f714
Now preRequiites are separated in mandatoryPreRequisites and referencedPreRequisites
Stefan Vogel <sv@exept.de>
parents:
4520
diff
changeset
|
82 |
"list all required mandatory packages. |
ec75c190f714
Now preRequiites are separated in mandatoryPreRequisites and referencedPreRequisites
Stefan Vogel <sv@exept.de>
parents:
4520
diff
changeset
|
83 |
Packages are mandatory, if they contain superclasses of the package's classes |
ec75c190f714
Now preRequiites are separated in mandatoryPreRequisites and referencedPreRequisites
Stefan Vogel <sv@exept.de>
parents:
4520
diff
changeset
|
84 |
or classes which are extended by this package. |
ec75c190f714
Now preRequiites are separated in mandatoryPreRequisites and referencedPreRequisites
Stefan Vogel <sv@exept.de>
parents:
4520
diff
changeset
|
85 |
This list can be maintained manually or (better) generated and |
ec75c190f714
Now preRequiites are separated in mandatoryPreRequisites and referencedPreRequisites
Stefan Vogel <sv@exept.de>
parents:
4520
diff
changeset
|
86 |
updated by scanning the superclass hierarchies |
4663 | 87 |
(the browser has a menu function for that)" |
4529
ec75c190f714
Now preRequiites are separated in mandatoryPreRequisites and referencedPreRequisites
Stefan Vogel <sv@exept.de>
parents:
4520
diff
changeset
|
88 |
|
3330 | 89 |
^ #( |
4663 | 90 |
#'stx:libbasic' "Autoload - superclass of ListViewController " |
91 |
#'stx:libview' "Controller - superclass of ButtonController " |
|
92 |
#'stx:libview2' "Model - superclass of MultiSelectionInList " |
|
3330 | 93 |
) |
3488 | 94 |
! |
95 |
||
4529
ec75c190f714
Now preRequiites are separated in mandatoryPreRequisites and referencedPreRequisites
Stefan Vogel <sv@exept.de>
parents:
4520
diff
changeset
|
96 |
referencedPreRequisites |
ec75c190f714
Now preRequiites are separated in mandatoryPreRequisites and referencedPreRequisites
Stefan Vogel <sv@exept.de>
parents:
4520
diff
changeset
|
97 |
"list all packages containing classes referenced by the packages's members. |
ec75c190f714
Now preRequiites are separated in mandatoryPreRequisites and referencedPreRequisites
Stefan Vogel <sv@exept.de>
parents:
4520
diff
changeset
|
98 |
This list can be maintained manually or (better) generated and |
ec75c190f714
Now preRequiites are separated in mandatoryPreRequisites and referencedPreRequisites
Stefan Vogel <sv@exept.de>
parents:
4520
diff
changeset
|
99 |
updated by looking for global variable accesses |
ec75c190f714
Now preRequiites are separated in mandatoryPreRequisites and referencedPreRequisites
Stefan Vogel <sv@exept.de>
parents:
4520
diff
changeset
|
100 |
(the browser has a menu function for that) |
ec75c190f714
Now preRequiites are separated in mandatoryPreRequisites and referencedPreRequisites
Stefan Vogel <sv@exept.de>
parents:
4520
diff
changeset
|
101 |
However, often too much is found, and you may want to explicitely |
ec75c190f714
Now preRequiites are separated in mandatoryPreRequisites and referencedPreRequisites
Stefan Vogel <sv@exept.de>
parents:
4520
diff
changeset
|
102 |
exclude individual packages in the #excludedFromPreRequisites method." |
ec75c190f714
Now preRequiites are separated in mandatoryPreRequisites and referencedPreRequisites
Stefan Vogel <sv@exept.de>
parents:
4520
diff
changeset
|
103 |
|
3488 | 104 |
^ #( |
4663 | 105 |
#'stx:libbasic2' "ActorStream - referenced by TextCollector>>initialize " |
4529
ec75c190f714
Now preRequiites are separated in mandatoryPreRequisites and referencedPreRequisites
Stefan Vogel <sv@exept.de>
parents:
4520
diff
changeset
|
106 |
#'stx:libbasic3' "MessageTally - referenced by Workspace>>spyOnIt " |
4663 | 107 |
#'stx:libui' "ActionButtonSpec - referenced by Button>>specClass " |
108 |
) |
|
109 |
! |
|
110 |
||
111 |
subProjects |
|
112 |
"list packages which are known as subprojects. |
|
113 |
The generated makefile will enter those and make there as well. |
|
114 |
However: they are not forced to be loaded when a package is loaded; |
|
115 |
for those, redefine requiredPrerequisites" |
|
116 |
||
117 |
^ #( |
|
3488 | 118 |
) |
3330 | 119 |
! ! |
120 |
||
3351 | 121 |
!stx_libwidg class methodsFor:'description - compilation'! |
122 |
||
3922 | 123 |
additionalBaseAddressDefinition_bc_dot_mak |
124 |
"this is an optional definition, which (if present) may speed up the dll-loading a little |
|
125 |
on win32 systems." |
|
126 |
||
3374 | 127 |
^ ' |
3435 | 128 |
# see stdHeader_bc for LIBWIDG_BASE |
3922 | 129 |
LIB_BASE=$(LIBWIDG_BASE) |
3374 | 130 |
' |
131 |
! |
|
132 |
||
3351 | 133 |
stcOptimizationOptions |
4084 | 134 |
^ '+optinline' |
5151 | 135 |
! |
136 |
||
137 |
stcWarningOptions |
|
138 |
^ '-warnNonStandard -warnUnused' |
|
3351 | 139 |
! ! |
140 |
||
3488 | 141 |
!stx_libwidg class methodsFor:'description - contents'! |
142 |
||
143 |
classNamesAndAttributes |
|
4270 | 144 |
"lists the classes which are to be included in the project. |
145 |
Each entry in the list may be: a single class-name (symbol), |
|
146 |
or an array-literal consisting of class name and attributes. |
|
147 |
Attributes are: #autoload or #<os> where os is one of win32, unix,..." |
|
148 |
||
3488 | 149 |
^ #( |
4270 | 150 |
"<className> or (<className> attributes...) in load order" |
5165 | 151 |
ButtonController |
152 |
DialogBox |
|
153 |
EditTextViewCompletionSupport |
|
154 |
EnterFieldGroup |
|
155 |
FramedBox |
|
156 |
GenericToolbarIconLibrary |
|
4800
72484439b233
Completion support refactored:
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
4663
diff
changeset
|
157 |
Label |
72484439b233
Completion support refactored:
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
4663
diff
changeset
|
158 |
ListView |
4837
ac279fb76bb0
Make ListViewController compiled instead of autoloaded
Stefan Vogel <sv@exept.de>
parents:
4800
diff
changeset
|
159 |
ListViewController |
5165 | 160 |
MenuEvent |
4270 | 161 |
ObjectView |
162 |
PanelView |
|
163 |
PopUpMenu |
|
164 |
PullDownMenu |
|
165 |
RadioButtonGroup |
|
166 |
ScrollBar |
|
167 |
ScrollableView |
|
5165 | 168 |
Scroller |
169 |
SelectionInList |
|
170 |
VariablePanel |
|
171 |
VariablePanelController |
|
172 |
#'stx_libwidg' |
|
173 |
Button |
|
174 |
CheckLabel |
|
175 |
EnterBox |
|
176 |
FontPanel |
|
4800
72484439b233
Completion support refactored:
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
4663
diff
changeset
|
177 |
HVScrollableView |
72484439b233
Completion support refactored:
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
4663
diff
changeset
|
178 |
HorizontalPanelView |
5165 | 179 |
HorizontalScrollBar |
180 |
HorizontalScroller |
|
181 |
InfoBox |
|
4800
72484439b233
Completion support refactored:
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
4663
diff
changeset
|
182 |
MiniScroller |
5165 | 183 |
MultiColumnPanelView |
4800
72484439b233
Completion support refactored:
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
4663
diff
changeset
|
184 |
MultiSelectionInList |
5165 | 185 |
OptionBox |
186 |
PopUpListController |
|
4270 | 187 |
SelectionInListView |
188 |
SequenceView |
|
5165 | 189 |
TextView |
190 |
ToggleController |
|
4270 | 191 |
VariableHorizontalPanel |
192 |
VariableHorizontalPanelController |
|
193 |
VariableVerticalPanel |
|
194 |
VariableVerticalPanelController |
|
195 |
VerticalPanelView |
|
5165 | 196 |
WorkspaceCompletionSupport |
197 |
XPToolbarIconLibrary |
|
198 |
ArrowButton |
|
199 |
EditTextView |
|
200 |
EnterBox2 |
|
201 |
FileSelectionList |
|
202 |
HorizontalMiniScroller |
|
203 |
ListSelectionBox |
|
5312
3a5a65f4cb7b
compiled: MacOSXToolbarIconLibrary
Claus Gittinger <cg@exept.de>
parents:
5275
diff
changeset
|
204 |
MacOSXToolbarIconLibrary |
5165 | 205 |
MenuView |
206 |
PopUpList |
|
207 |
RadioButtonController |
|
208 |
Toggle |
|
209 |
VistaToolbarIconLibrary |
|
4270 | 210 |
WarningBox |
5272 | 211 |
AdwaitaToolbarIconLibrary |
5165 | 212 |
CheckToggle |
213 |
ClickMenuView |
|
214 |
EditField |
|
215 |
FileSelectionBox |
|
5501 | 216 |
MacOSX2ToolbarIconLibrary |
5165 | 217 |
RadioButton |
218 |
TextCollector |
|
219 |
Windows8ToolbarIconLibrary |
|
220 |
YesNoBox |
|
221 |
FileSaveBox |
|
4270 | 222 |
Workspace |
4800
72484439b233
Completion support refactored:
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
4663
diff
changeset
|
223 |
CodeView |
3488 | 224 |
) |
4529
ec75c190f714
Now preRequiites are separated in mandatoryPreRequisites and referencedPreRequisites
Stefan Vogel <sv@exept.de>
parents:
4520
diff
changeset
|
225 |
! |
ec75c190f714
Now preRequiites are separated in mandatoryPreRequisites and referencedPreRequisites
Stefan Vogel <sv@exept.de>
parents:
4520
diff
changeset
|
226 |
|
ec75c190f714
Now preRequiites are separated in mandatoryPreRequisites and referencedPreRequisites
Stefan Vogel <sv@exept.de>
parents:
4520
diff
changeset
|
227 |
extensionMethodNames |
ec75c190f714
Now preRequiites are separated in mandatoryPreRequisites and referencedPreRequisites
Stefan Vogel <sv@exept.de>
parents:
4520
diff
changeset
|
228 |
"lists the extension methods which are to be included in the project. |
ec75c190f714
Now preRequiites are separated in mandatoryPreRequisites and referencedPreRequisites
Stefan Vogel <sv@exept.de>
parents:
4520
diff
changeset
|
229 |
Entries are 2-element array literals, consisting of class-name and selector." |
ec75c190f714
Now preRequiites are separated in mandatoryPreRequisites and referencedPreRequisites
Stefan Vogel <sv@exept.de>
parents:
4520
diff
changeset
|
230 |
|
ec75c190f714
Now preRequiites are separated in mandatoryPreRequisites and referencedPreRequisites
Stefan Vogel <sv@exept.de>
parents:
4520
diff
changeset
|
231 |
^ #( |
ec75c190f714
Now preRequiites are separated in mandatoryPreRequisites and referencedPreRequisites
Stefan Vogel <sv@exept.de>
parents:
4520
diff
changeset
|
232 |
) |
3488 | 233 |
! ! |
234 |
||
3330 | 235 |
!stx_libwidg class methodsFor:'description - project information'! |
236 |
||
237 |
companyName |
|
238 |
"Return a companyname which will appear in <lib>.rc" |
|
239 |
||
5969 | 240 |
^ 'Claus Gittinger / eXept Software AG' |
241 |
||
242 |
"Modified: / 18-11-2016 / 11:47:47 / cg" |
|
3330 | 243 |
! |
244 |
||
245 |
description |
|
246 |
"Return a description string which will appear in nt.def / bc.def" |
|
247 |
||
3342 | 248 |
^ 'Smalltalk/X Elementary Widgets' |
249 |
! |
|
250 |
||
3330 | 251 |
legalCopyright |
3939 | 252 |
"Return a copyright string which will appear in <lib>.rc" |
3330 | 253 |
|
5971 | 254 |
^ 'Copyright Claus Gittinger 1988\nCopyright eXept Software AG 2012' |
3513 | 255 |
|
5971 | 256 |
"Modified: / 18-11-2016 / 12:19:22 / cg" |
4529
ec75c190f714
Now preRequiites are separated in mandatoryPreRequisites and referencedPreRequisites
Stefan Vogel <sv@exept.de>
parents:
4520
diff
changeset
|
257 |
! |
ec75c190f714
Now preRequiites are separated in mandatoryPreRequisites and referencedPreRequisites
Stefan Vogel <sv@exept.de>
parents:
4520
diff
changeset
|
258 |
|
ec75c190f714
Now preRequiites are separated in mandatoryPreRequisites and referencedPreRequisites
Stefan Vogel <sv@exept.de>
parents:
4520
diff
changeset
|
259 |
productName |
ec75c190f714
Now preRequiites are separated in mandatoryPreRequisites and referencedPreRequisites
Stefan Vogel <sv@exept.de>
parents:
4520
diff
changeset
|
260 |
"Return a product name which will appear in <lib>.rc" |
ec75c190f714
Now preRequiites are separated in mandatoryPreRequisites and referencedPreRequisites
Stefan Vogel <sv@exept.de>
parents:
4520
diff
changeset
|
261 |
|
ec75c190f714
Now preRequiites are separated in mandatoryPreRequisites and referencedPreRequisites
Stefan Vogel <sv@exept.de>
parents:
4520
diff
changeset
|
262 |
^ 'Smalltalk/X' |
3330 | 263 |
! ! |
264 |
||
265 |
!stx_libwidg class methodsFor:'documentation'! |
|
266 |
||
267 |
version |
|
5365 | 268 |
^ '$Header$' |
4084 | 269 |
! |
270 |
||
271 |
version_CVS |
|
5365 | 272 |
^ '$Header$' |
3330 | 273 |
! ! |
4520 | 274 |