author | sr |
Tue, 11 Jun 2019 11:47:16 +0200 | |
changeset 6604 | 89a0c07bbba9 |
parent 6540 | f16a4870c7c8 |
child 6629 | ba8fdce25504 |
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 |
6540 | 89 |
"list packages which are mandatory as a prerequisite. |
90 |
This are packages containing superclasses of my classes and classes which |
|
91 |
are extended by myself. |
|
92 |
They are mandatory, because we need these packages as a prerequisite for loading and compiling. |
|
93 |
This method is generated automatically, |
|
94 |
by searching along the inheritance chain of all of my classes. |
|
95 |
Please take a look at the #referencedPreRequisites method as well." |
|
4529
ec75c190f714
Now preRequiites are separated in mandatoryPreRequisites and referencedPreRequisites
Stefan Vogel <sv@exept.de>
parents:
4520
diff
changeset
|
96 |
|
3330 | 97 |
^ #( |
6540 | 98 |
#'stx:libbasic' "Behavior - extended" |
99 |
#'stx:libview' "Controller - superclass of ButtonController" |
|
100 |
#'stx:libview2' "Model - superclass of MultiSelectionInList" |
|
3330 | 101 |
) |
3488 | 102 |
! |
103 |
||
4529
ec75c190f714
Now preRequiites are separated in mandatoryPreRequisites and referencedPreRequisites
Stefan Vogel <sv@exept.de>
parents:
4520
diff
changeset
|
104 |
referencedPreRequisites |
6540 | 105 |
"list packages which are a prerequisite, because they contain |
106 |
classes which are referenced by my classes. |
|
107 |
These packages are NOT needed as a prerequisite for compiling or loading, |
|
108 |
however, a class from it may be referenced during execution and having it |
|
109 |
unloaded then may lead to a runtime doesNotUnderstand error, unless the caller |
|
110 |
includes explicit checks for the package being present. |
|
111 |
This method is generated automatically, |
|
112 |
by searching all classes (and their packages) which are referenced by my classes. |
|
113 |
Please also take a look at the #mandatoryPreRequisites method" |
|
4529
ec75c190f714
Now preRequiites are separated in mandatoryPreRequisites and referencedPreRequisites
Stefan Vogel <sv@exept.de>
parents:
4520
diff
changeset
|
114 |
|
3488 | 115 |
^ #( |
6540 | 116 |
#'stx:goodies/regex' "Regex::RxMatcher - referenced by TextView>>openSearchBoxAndSearchWithReplaceChecked:" |
117 |
#'stx:libbasic2' "ActorStream - referenced by TextCollector>>initialize" |
|
118 |
#'stx:libbasic3' "MessageTally - referenced by Workspace>>spyOnIt" |
|
119 |
#'stx:libui' "ActionButtonSpec - referenced by Button>>specClass" |
|
4663 | 120 |
) |
121 |
! |
|
122 |
||
123 |
subProjects |
|
124 |
"list packages which are known as subprojects. |
|
125 |
The generated makefile will enter those and make there as well. |
|
126 |
However: they are not forced to be loaded when a package is loaded; |
|
127 |
for those, redefine requiredPrerequisites" |
|
128 |
||
129 |
^ #( |
|
3488 | 130 |
) |
3330 | 131 |
! ! |
132 |
||
3351 | 133 |
!stx_libwidg class methodsFor:'description - compilation'! |
134 |
||
3922 | 135 |
additionalBaseAddressDefinition_bc_dot_mak |
136 |
"this is an optional definition, which (if present) may speed up the dll-loading a little |
|
137 |
on win32 systems." |
|
138 |
||
3374 | 139 |
^ ' |
3435 | 140 |
# see stdHeader_bc for LIBWIDG_BASE |
3922 | 141 |
LIB_BASE=$(LIBWIDG_BASE) |
3374 | 142 |
' |
143 |
! |
|
144 |
||
3351 | 145 |
stcOptimizationOptions |
4084 | 146 |
^ '+optinline' |
5151 | 147 |
! |
148 |
||
149 |
stcWarningOptions |
|
150 |
^ '-warnNonStandard -warnUnused' |
|
3351 | 151 |
! ! |
152 |
||
3488 | 153 |
!stx_libwidg class methodsFor:'description - contents'! |
154 |
||
155 |
classNamesAndAttributes |
|
4270 | 156 |
"lists the classes which are to be included in the project. |
157 |
Each entry in the list may be: a single class-name (symbol), |
|
158 |
or an array-literal consisting of class name and attributes. |
|
159 |
Attributes are: #autoload or #<os> where os is one of win32, unix,..." |
|
160 |
||
3488 | 161 |
^ #( |
4270 | 162 |
"<className> or (<className> attributes...) in load order" |
5165 | 163 |
ButtonController |
164 |
DialogBox |
|
165 |
EditTextViewCompletionSupport |
|
166 |
EnterFieldGroup |
|
167 |
FramedBox |
|
168 |
GenericToolbarIconLibrary |
|
4800
72484439b233
Completion support refactored:
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
4663
diff
changeset
|
169 |
Label |
72484439b233
Completion support refactored:
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
4663
diff
changeset
|
170 |
ListView |
4837
ac279fb76bb0
Make ListViewController compiled instead of autoloaded
Stefan Vogel <sv@exept.de>
parents:
4800
diff
changeset
|
171 |
ListViewController |
5165 | 172 |
MenuEvent |
4270 | 173 |
ObjectView |
174 |
PanelView |
|
175 |
PopUpMenu |
|
176 |
PullDownMenu |
|
177 |
RadioButtonGroup |
|
178 |
ScrollBar |
|
179 |
ScrollableView |
|
5165 | 180 |
Scroller |
181 |
SelectionInList |
|
182 |
VariablePanel |
|
183 |
VariablePanelController |
|
184 |
#'stx_libwidg' |
|
185 |
Button |
|
186 |
CheckLabel |
|
187 |
EnterBox |
|
188 |
FontPanel |
|
4800
72484439b233
Completion support refactored:
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
4663
diff
changeset
|
189 |
HVScrollableView |
72484439b233
Completion support refactored:
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
4663
diff
changeset
|
190 |
HorizontalPanelView |
5165 | 191 |
HorizontalScrollBar |
192 |
HorizontalScroller |
|
193 |
InfoBox |
|
4800
72484439b233
Completion support refactored:
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
4663
diff
changeset
|
194 |
MiniScroller |
5165 | 195 |
MultiColumnPanelView |
4800
72484439b233
Completion support refactored:
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
4663
diff
changeset
|
196 |
MultiSelectionInList |
5165 | 197 |
OptionBox |
6128 | 198 |
PointFromUserController |
5165 | 199 |
PopUpListController |
6128 | 200 |
RectangleFromUserController |
4270 | 201 |
SelectionInListView |
202 |
SequenceView |
|
5165 | 203 |
TextView |
204 |
ToggleController |
|
4270 | 205 |
VariableHorizontalPanel |
206 |
VariableHorizontalPanelController |
|
207 |
VariableVerticalPanel |
|
208 |
VariableVerticalPanelController |
|
209 |
VerticalPanelView |
|
5165 | 210 |
WorkspaceCompletionSupport |
211 |
XPToolbarIconLibrary |
|
212 |
ArrowButton |
|
213 |
EditTextView |
|
214 |
EnterBox2 |
|
215 |
FileSelectionList |
|
216 |
HorizontalMiniScroller |
|
217 |
ListSelectionBox |
|
5312
3a5a65f4cb7b
compiled: MacOSXToolbarIconLibrary
Claus Gittinger <cg@exept.de>
parents:
5275
diff
changeset
|
218 |
MacOSXToolbarIconLibrary |
5165 | 219 |
MenuView |
220 |
PopUpList |
|
221 |
RadioButtonController |
|
222 |
Toggle |
|
223 |
VistaToolbarIconLibrary |
|
4270 | 224 |
WarningBox |
5272 | 225 |
AdwaitaToolbarIconLibrary |
5165 | 226 |
CheckToggle |
227 |
ClickMenuView |
|
228 |
EditField |
|
229 |
FileSelectionBox |
|
5501 | 230 |
MacOSX2ToolbarIconLibrary |
5165 | 231 |
RadioButton |
232 |
TextCollector |
|
233 |
Windows8ToolbarIconLibrary |
|
234 |
YesNoBox |
|
235 |
FileSaveBox |
|
6422 | 236 |
MacOSX2DarkToolbarIconLibrary |
4270 | 237 |
Workspace |
4800
72484439b233
Completion support refactored:
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
4663
diff
changeset
|
238 |
CodeView |
6405 | 239 |
(DarkVaderToolbarIconLibrary autoload) |
3488 | 240 |
) |
4529
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 |
extensionMethodNames |
ec75c190f714
Now preRequiites are separated in mandatoryPreRequisites and referencedPreRequisites
Stefan Vogel <sv@exept.de>
parents:
4520
diff
changeset
|
244 |
"lists the extension methods which are to be included in the project. |
6540 | 245 |
Entries are 2-element array literals, consisting of class-name and selector. |
246 |
A correponding method with real names must be present in my concrete subclasses |
|
247 |
if it has extensions." |
|
4529
ec75c190f714
Now preRequiites are separated in mandatoryPreRequisites and referencedPreRequisites
Stefan Vogel <sv@exept.de>
parents:
4520
diff
changeset
|
248 |
|
ec75c190f714
Now preRequiites are separated in mandatoryPreRequisites and referencedPreRequisites
Stefan Vogel <sv@exept.de>
parents:
4520
diff
changeset
|
249 |
^ #( |
6540 | 250 |
Class defaultIconForAboutBox |
4529
ec75c190f714
Now preRequiites are separated in mandatoryPreRequisites and referencedPreRequisites
Stefan Vogel <sv@exept.de>
parents:
4520
diff
changeset
|
251 |
) |
3488 | 252 |
! ! |
253 |
||
3330 | 254 |
!stx_libwidg class methodsFor:'description - project information'! |
255 |
||
256 |
companyName |
|
257 |
"Return a companyname which will appear in <lib>.rc" |
|
258 |
||
5969 | 259 |
^ 'Claus Gittinger / eXept Software AG' |
260 |
||
261 |
"Modified: / 18-11-2016 / 11:47:47 / cg" |
|
3330 | 262 |
! |
263 |
||
264 |
description |
|
265 |
"Return a description string which will appear in nt.def / bc.def" |
|
266 |
||
3342 | 267 |
^ 'Smalltalk/X Elementary Widgets' |
268 |
! |
|
269 |
||
3330 | 270 |
legalCopyright |
3939 | 271 |
"Return a copyright string which will appear in <lib>.rc" |
3330 | 272 |
|
5971 | 273 |
^ 'Copyright Claus Gittinger 1988\nCopyright eXept Software AG 2012' |
3513 | 274 |
|
5971 | 275 |
"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
|
276 |
! |
ec75c190f714
Now preRequiites are separated in mandatoryPreRequisites and referencedPreRequisites
Stefan Vogel <sv@exept.de>
parents:
4520
diff
changeset
|
277 |
|
ec75c190f714
Now preRequiites are separated in mandatoryPreRequisites and referencedPreRequisites
Stefan Vogel <sv@exept.de>
parents:
4520
diff
changeset
|
278 |
productName |
ec75c190f714
Now preRequiites are separated in mandatoryPreRequisites and referencedPreRequisites
Stefan Vogel <sv@exept.de>
parents:
4520
diff
changeset
|
279 |
"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
|
280 |
|
ec75c190f714
Now preRequiites are separated in mandatoryPreRequisites and referencedPreRequisites
Stefan Vogel <sv@exept.de>
parents:
4520
diff
changeset
|
281 |
^ 'Smalltalk/X' |
3330 | 282 |
! ! |
283 |
||
284 |
!stx_libwidg class methodsFor:'documentation'! |
|
285 |
||
286 |
version |
|
5365 | 287 |
^ '$Header$' |
4084 | 288 |
! |
289 |
||
290 |
version_CVS |
|
5365 | 291 |
^ '$Header$' |
3330 | 292 |
! ! |
4520 | 293 |