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