author | Claus Gittinger <cg@exept.de> |
Fri, 01 Sep 2017 14:24:45 +0200 | |
changeset 6201 | 5493871b7dd2 |
parent 6128 | fb998ba8f169 |
child 6234 | 1e296cf378d6 |
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. |
|
6109 | 63 |
|
64 |
[author:] |
|
65 |
cg |
|
66 |
||
67 |
[primary maintainer:] |
|
68 |
cg |
|
3341 | 69 |
" |
70 |
! ! |
|
3330 | 71 |
|
72 |
!stx_libwidg class methodsFor:'description'! |
|
73 |
||
3488 | 74 |
excludedFromPreRequisites |
3330 | 75 |
^ #( |
4529
ec75c190f714
Now preRequiites are separated in mandatoryPreRequisites and referencedPreRequisites
Stefan Vogel <sv@exept.de>
parents:
4520
diff
changeset
|
76 |
#'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
|
77 |
#'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
|
78 |
#'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
|
79 |
#'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
|
80 |
#'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
|
81 |
#'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
|
82 |
#'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
|
83 |
#'stx:libwidg2' "FilenameEditField - referenced by DialogBox>>addFilenameInputFieldOn:in:tabable: " |
3330 | 84 |
) |
85 |
! |
|
86 |
||
4529
ec75c190f714
Now preRequiites are separated in mandatoryPreRequisites and referencedPreRequisites
Stefan Vogel <sv@exept.de>
parents:
4520
diff
changeset
|
87 |
mandatoryPreRequisites |
ec75c190f714
Now preRequiites are separated in mandatoryPreRequisites and referencedPreRequisites
Stefan Vogel <sv@exept.de>
parents:
4520
diff
changeset
|
88 |
"list all required mandatory packages. |
ec75c190f714
Now preRequiites are separated in mandatoryPreRequisites and referencedPreRequisites
Stefan Vogel <sv@exept.de>
parents:
4520
diff
changeset
|
89 |
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
|
90 |
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
|
91 |
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
|
92 |
updated by scanning the superclass hierarchies |
4663 | 93 |
(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
|
94 |
|
3330 | 95 |
^ #( |
4663 | 96 |
#'stx:libbasic' "Autoload - superclass of ListViewController " |
97 |
#'stx:libview' "Controller - superclass of ButtonController " |
|
98 |
#'stx:libview2' "Model - superclass of MultiSelectionInList " |
|
3330 | 99 |
) |
3488 | 100 |
! |
101 |
||
4529
ec75c190f714
Now preRequiites are separated in mandatoryPreRequisites and referencedPreRequisites
Stefan Vogel <sv@exept.de>
parents:
4520
diff
changeset
|
102 |
referencedPreRequisites |
ec75c190f714
Now preRequiites are separated in mandatoryPreRequisites and referencedPreRequisites
Stefan Vogel <sv@exept.de>
parents:
4520
diff
changeset
|
103 |
"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
|
104 |
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
|
105 |
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
|
106 |
(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
|
107 |
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
|
108 |
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
|
109 |
|
3488 | 110 |
^ #( |
4663 | 111 |
#'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
|
112 |
#'stx:libbasic3' "MessageTally - referenced by Workspace>>spyOnIt " |
4663 | 113 |
#'stx:libui' "ActionButtonSpec - referenced by Button>>specClass " |
114 |
) |
|
115 |
! |
|
116 |
||
117 |
subProjects |
|
118 |
"list packages which are known as subprojects. |
|
119 |
The generated makefile will enter those and make there as well. |
|
120 |
However: they are not forced to be loaded when a package is loaded; |
|
121 |
for those, redefine requiredPrerequisites" |
|
122 |
||
123 |
^ #( |
|
3488 | 124 |
) |
3330 | 125 |
! ! |
126 |
||
3351 | 127 |
!stx_libwidg class methodsFor:'description - compilation'! |
128 |
||
3922 | 129 |
additionalBaseAddressDefinition_bc_dot_mak |
130 |
"this is an optional definition, which (if present) may speed up the dll-loading a little |
|
131 |
on win32 systems." |
|
132 |
||
3374 | 133 |
^ ' |
3435 | 134 |
# see stdHeader_bc for LIBWIDG_BASE |
3922 | 135 |
LIB_BASE=$(LIBWIDG_BASE) |
3374 | 136 |
' |
137 |
! |
|
138 |
||
3351 | 139 |
stcOptimizationOptions |
4084 | 140 |
^ '+optinline' |
5151 | 141 |
! |
142 |
||
143 |
stcWarningOptions |
|
144 |
^ '-warnNonStandard -warnUnused' |
|
3351 | 145 |
! ! |
146 |
||
3488 | 147 |
!stx_libwidg class methodsFor:'description - contents'! |
148 |
||
149 |
classNamesAndAttributes |
|
4270 | 150 |
"lists the classes which are to be included in the project. |
151 |
Each entry in the list may be: a single class-name (symbol), |
|
152 |
or an array-literal consisting of class name and attributes. |
|
153 |
Attributes are: #autoload or #<os> where os is one of win32, unix,..." |
|
154 |
||
3488 | 155 |
^ #( |
4270 | 156 |
"<className> or (<className> attributes...) in load order" |
5165 | 157 |
ButtonController |
158 |
DialogBox |
|
159 |
EditTextViewCompletionSupport |
|
160 |
EnterFieldGroup |
|
161 |
FramedBox |
|
162 |
GenericToolbarIconLibrary |
|
4800
72484439b233
Completion support refactored:
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
4663
diff
changeset
|
163 |
Label |
72484439b233
Completion support refactored:
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
4663
diff
changeset
|
164 |
ListView |
4837
ac279fb76bb0
Make ListViewController compiled instead of autoloaded
Stefan Vogel <sv@exept.de>
parents:
4800
diff
changeset
|
165 |
ListViewController |
5165 | 166 |
MenuEvent |
4270 | 167 |
ObjectView |
168 |
PanelView |
|
169 |
PopUpMenu |
|
170 |
PullDownMenu |
|
171 |
RadioButtonGroup |
|
172 |
ScrollBar |
|
173 |
ScrollableView |
|
5165 | 174 |
Scroller |
175 |
SelectionInList |
|
176 |
VariablePanel |
|
177 |
VariablePanelController |
|
178 |
#'stx_libwidg' |
|
179 |
Button |
|
180 |
CheckLabel |
|
181 |
EnterBox |
|
182 |
FontPanel |
|
4800
72484439b233
Completion support refactored:
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
4663
diff
changeset
|
183 |
HVScrollableView |
72484439b233
Completion support refactored:
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
4663
diff
changeset
|
184 |
HorizontalPanelView |
5165 | 185 |
HorizontalScrollBar |
186 |
HorizontalScroller |
|
187 |
InfoBox |
|
4800
72484439b233
Completion support refactored:
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
4663
diff
changeset
|
188 |
MiniScroller |
5165 | 189 |
MultiColumnPanelView |
4800
72484439b233
Completion support refactored:
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
4663
diff
changeset
|
190 |
MultiSelectionInList |
5165 | 191 |
OptionBox |
6128 | 192 |
PointFromUserController |
5165 | 193 |
PopUpListController |
6128 | 194 |
RectangleFromUserController |
4270 | 195 |
SelectionInListView |
196 |
SequenceView |
|
5165 | 197 |
TextView |
198 |
ToggleController |
|
4270 | 199 |
VariableHorizontalPanel |
200 |
VariableHorizontalPanelController |
|
201 |
VariableVerticalPanel |
|
202 |
VariableVerticalPanelController |
|
203 |
VerticalPanelView |
|
5165 | 204 |
WorkspaceCompletionSupport |
205 |
XPToolbarIconLibrary |
|
206 |
ArrowButton |
|
207 |
EditTextView |
|
208 |
EnterBox2 |
|
209 |
FileSelectionList |
|
210 |
HorizontalMiniScroller |
|
211 |
ListSelectionBox |
|
5312
3a5a65f4cb7b
compiled: MacOSXToolbarIconLibrary
Claus Gittinger <cg@exept.de>
parents:
5275
diff
changeset
|
212 |
MacOSXToolbarIconLibrary |
5165 | 213 |
MenuView |
214 |
PopUpList |
|
215 |
RadioButtonController |
|
216 |
Toggle |
|
217 |
VistaToolbarIconLibrary |
|
4270 | 218 |
WarningBox |
5272 | 219 |
AdwaitaToolbarIconLibrary |
5165 | 220 |
CheckToggle |
221 |
ClickMenuView |
|
222 |
EditField |
|
223 |
FileSelectionBox |
|
5501 | 224 |
MacOSX2ToolbarIconLibrary |
5165 | 225 |
RadioButton |
226 |
TextCollector |
|
227 |
Windows8ToolbarIconLibrary |
|
228 |
YesNoBox |
|
229 |
FileSaveBox |
|
4270 | 230 |
Workspace |
4800
72484439b233
Completion support refactored:
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
4663
diff
changeset
|
231 |
CodeView |
3488 | 232 |
) |
4529
ec75c190f714
Now preRequiites are separated in mandatoryPreRequisites and referencedPreRequisites
Stefan Vogel <sv@exept.de>
parents:
4520
diff
changeset
|
233 |
! |
ec75c190f714
Now preRequiites are separated in mandatoryPreRequisites and referencedPreRequisites
Stefan Vogel <sv@exept.de>
parents:
4520
diff
changeset
|
234 |
|
ec75c190f714
Now preRequiites are separated in mandatoryPreRequisites and referencedPreRequisites
Stefan Vogel <sv@exept.de>
parents:
4520
diff
changeset
|
235 |
extensionMethodNames |
ec75c190f714
Now preRequiites are separated in mandatoryPreRequisites and referencedPreRequisites
Stefan Vogel <sv@exept.de>
parents:
4520
diff
changeset
|
236 |
"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
|
237 |
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
|
238 |
|
ec75c190f714
Now preRequiites are separated in mandatoryPreRequisites and referencedPreRequisites
Stefan Vogel <sv@exept.de>
parents:
4520
diff
changeset
|
239 |
^ #( |
ec75c190f714
Now preRequiites are separated in mandatoryPreRequisites and referencedPreRequisites
Stefan Vogel <sv@exept.de>
parents:
4520
diff
changeset
|
240 |
) |
3488 | 241 |
! ! |
242 |
||
3330 | 243 |
!stx_libwidg class methodsFor:'description - project information'! |
244 |
||
245 |
companyName |
|
246 |
"Return a companyname which will appear in <lib>.rc" |
|
247 |
||
5969 | 248 |
^ 'Claus Gittinger / eXept Software AG' |
249 |
||
250 |
"Modified: / 18-11-2016 / 11:47:47 / cg" |
|
3330 | 251 |
! |
252 |
||
253 |
description |
|
254 |
"Return a description string which will appear in nt.def / bc.def" |
|
255 |
||
3342 | 256 |
^ 'Smalltalk/X Elementary Widgets' |
257 |
! |
|
258 |
||
3330 | 259 |
legalCopyright |
3939 | 260 |
"Return a copyright string which will appear in <lib>.rc" |
3330 | 261 |
|
5971 | 262 |
^ 'Copyright Claus Gittinger 1988\nCopyright eXept Software AG 2012' |
3513 | 263 |
|
5971 | 264 |
"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
|
265 |
! |
ec75c190f714
Now preRequiites are separated in mandatoryPreRequisites and referencedPreRequisites
Stefan Vogel <sv@exept.de>
parents:
4520
diff
changeset
|
266 |
|
ec75c190f714
Now preRequiites are separated in mandatoryPreRequisites and referencedPreRequisites
Stefan Vogel <sv@exept.de>
parents:
4520
diff
changeset
|
267 |
productName |
ec75c190f714
Now preRequiites are separated in mandatoryPreRequisites and referencedPreRequisites
Stefan Vogel <sv@exept.de>
parents:
4520
diff
changeset
|
268 |
"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
|
269 |
|
ec75c190f714
Now preRequiites are separated in mandatoryPreRequisites and referencedPreRequisites
Stefan Vogel <sv@exept.de>
parents:
4520
diff
changeset
|
270 |
^ 'Smalltalk/X' |
3330 | 271 |
! ! |
272 |
||
273 |
!stx_libwidg class methodsFor:'documentation'! |
|
274 |
||
275 |
version |
|
5365 | 276 |
^ '$Header$' |
4084 | 277 |
! |
278 |
||
279 |
version_CVS |
|
5365 | 280 |
^ '$Header$' |
3330 | 281 |
! ! |
4520 | 282 |