author | Claus Gittinger <cg@exept.de> |
Fri, 06 Mar 2020 21:54:36 +0100 | |
changeset 6841 | 799ffdc111c0 |
parent 6780 | d7d4526fb3f3 |
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 |
) |
3330 | 121 |
! ! |
122 |
||
3351 | 123 |
!stx_libwidg class methodsFor:'description - compilation'! |
124 |
||
3922 | 125 |
additionalBaseAddressDefinition_bc_dot_mak |
126 |
"this is an optional definition, which (if present) may speed up the dll-loading a little |
|
127 |
on win32 systems." |
|
128 |
||
3374 | 129 |
^ ' |
3435 | 130 |
# see stdHeader_bc for LIBWIDG_BASE |
3922 | 131 |
LIB_BASE=$(LIBWIDG_BASE) |
3374 | 132 |
' |
133 |
! |
|
134 |
||
3351 | 135 |
stcOptimizationOptions |
4084 | 136 |
^ '+optinline' |
5151 | 137 |
! |
138 |
||
139 |
stcWarningOptions |
|
140 |
^ '-warnNonStandard -warnUnused' |
|
3351 | 141 |
! ! |
142 |
||
3488 | 143 |
!stx_libwidg class methodsFor:'description - contents'! |
144 |
||
145 |
classNamesAndAttributes |
|
4270 | 146 |
"lists the classes which are to be included in the project. |
147 |
Each entry in the list may be: a single class-name (symbol), |
|
148 |
or an array-literal consisting of class name and attributes. |
|
149 |
Attributes are: #autoload or #<os> where os is one of win32, unix,..." |
|
150 |
||
3488 | 151 |
^ #( |
4270 | 152 |
"<className> or (<className> attributes...) in load order" |
5165 | 153 |
ButtonController |
154 |
DialogBox |
|
155 |
EditTextViewCompletionSupport |
|
156 |
EnterFieldGroup |
|
157 |
FramedBox |
|
158 |
GenericToolbarIconLibrary |
|
4800
72484439b233
Completion support refactored:
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
4663
diff
changeset
|
159 |
Label |
72484439b233
Completion support refactored:
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
4663
diff
changeset
|
160 |
ListView |
4837
ac279fb76bb0
Make ListViewController compiled instead of autoloaded
Stefan Vogel <sv@exept.de>
parents:
4800
diff
changeset
|
161 |
ListViewController |
5165 | 162 |
MenuEvent |
4270 | 163 |
ObjectView |
164 |
PanelView |
|
165 |
PopUpMenu |
|
166 |
PullDownMenu |
|
167 |
RadioButtonGroup |
|
168 |
ScrollBar |
|
169 |
ScrollableView |
|
5165 | 170 |
Scroller |
171 |
SelectionInList |
|
172 |
VariablePanel |
|
173 |
VariablePanelController |
|
174 |
#'stx_libwidg' |
|
175 |
Button |
|
176 |
CheckLabel |
|
177 |
EnterBox |
|
178 |
FontPanel |
|
4800
72484439b233
Completion support refactored:
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
4663
diff
changeset
|
179 |
HVScrollableView |
72484439b233
Completion support refactored:
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
4663
diff
changeset
|
180 |
HorizontalPanelView |
5165 | 181 |
HorizontalScrollBar |
182 |
HorizontalScroller |
|
183 |
InfoBox |
|
4800
72484439b233
Completion support refactored:
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
4663
diff
changeset
|
184 |
MiniScroller |
5165 | 185 |
MultiColumnPanelView |
4800
72484439b233
Completion support refactored:
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
4663
diff
changeset
|
186 |
MultiSelectionInList |
5165 | 187 |
OptionBox |
6128 | 188 |
PointFromUserController |
5165 | 189 |
PopUpListController |
6128 | 190 |
RectangleFromUserController |
4270 | 191 |
SelectionInListView |
192 |
SequenceView |
|
5165 | 193 |
TextView |
194 |
ToggleController |
|
4270 | 195 |
VariableHorizontalPanel |
196 |
VariableHorizontalPanelController |
|
197 |
VariableVerticalPanel |
|
198 |
VariableVerticalPanelController |
|
199 |
VerticalPanelView |
|
5165 | 200 |
WorkspaceCompletionSupport |
201 |
XPToolbarIconLibrary |
|
202 |
ArrowButton |
|
203 |
EditTextView |
|
204 |
EnterBox2 |
|
205 |
FileSelectionList |
|
206 |
HorizontalMiniScroller |
|
207 |
ListSelectionBox |
|
5312
3a5a65f4cb7b
compiled: MacOSXToolbarIconLibrary
Claus Gittinger <cg@exept.de>
parents:
5275
diff
changeset
|
208 |
MacOSXToolbarIconLibrary |
5165 | 209 |
MenuView |
210 |
PopUpList |
|
211 |
RadioButtonController |
|
212 |
Toggle |
|
213 |
VistaToolbarIconLibrary |
|
4270 | 214 |
WarningBox |
5272 | 215 |
AdwaitaToolbarIconLibrary |
5165 | 216 |
CheckToggle |
217 |
ClickMenuView |
|
218 |
EditField |
|
219 |
FileSelectionBox |
|
5501 | 220 |
MacOSX2ToolbarIconLibrary |
5165 | 221 |
RadioButton |
222 |
TextCollector |
|
223 |
Windows8ToolbarIconLibrary |
|
224 |
YesNoBox |
|
225 |
FileSaveBox |
|
6422 | 226 |
MacOSX2DarkToolbarIconLibrary |
6780 | 227 |
Windows10ToolbarIconLibrary |
4270 | 228 |
Workspace |
4800
72484439b233
Completion support refactored:
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
4663
diff
changeset
|
229 |
CodeView |
6405 | 230 |
(DarkVaderToolbarIconLibrary autoload) |
3488 | 231 |
) |
4529
ec75c190f714
Now preRequiites are separated in mandatoryPreRequisites and referencedPreRequisites
Stefan Vogel <sv@exept.de>
parents:
4520
diff
changeset
|
232 |
! |
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 |
extensionMethodNames |
ec75c190f714
Now preRequiites are separated in mandatoryPreRequisites and referencedPreRequisites
Stefan Vogel <sv@exept.de>
parents:
4520
diff
changeset
|
235 |
"lists the extension methods which are to be included in the project. |
6540 | 236 |
Entries are 2-element array literals, consisting of class-name and selector. |
237 |
A correponding method with real names must be present in my concrete subclasses |
|
238 |
if it has extensions." |
|
4529
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 |
^ #( |
6540 | 241 |
Class defaultIconForAboutBox |
4529
ec75c190f714
Now preRequiites are separated in mandatoryPreRequisites and referencedPreRequisites
Stefan Vogel <sv@exept.de>
parents:
4520
diff
changeset
|
242 |
) |
3488 | 243 |
! ! |
244 |
||
3330 | 245 |
!stx_libwidg class methodsFor:'description - project information'! |
246 |
||
247 |
companyName |
|
248 |
"Return a companyname which will appear in <lib>.rc" |
|
249 |
||
5969 | 250 |
^ 'Claus Gittinger / eXept Software AG' |
251 |
||
252 |
"Modified: / 18-11-2016 / 11:47:47 / cg" |
|
3330 | 253 |
! |
254 |
||
255 |
description |
|
256 |
"Return a description string which will appear in nt.def / bc.def" |
|
257 |
||
3342 | 258 |
^ 'Smalltalk/X Elementary Widgets' |
259 |
! |
|
260 |
||
3330 | 261 |
legalCopyright |
3939 | 262 |
"Return a copyright string which will appear in <lib>.rc" |
3330 | 263 |
|
5971 | 264 |
^ 'Copyright Claus Gittinger 1988\nCopyright eXept Software AG 2012' |
3513 | 265 |
|
5971 | 266 |
"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
|
267 |
! |
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 |
productName |
ec75c190f714
Now preRequiites are separated in mandatoryPreRequisites and referencedPreRequisites
Stefan Vogel <sv@exept.de>
parents:
4520
diff
changeset
|
270 |
"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
|
271 |
|
ec75c190f714
Now preRequiites are separated in mandatoryPreRequisites and referencedPreRequisites
Stefan Vogel <sv@exept.de>
parents:
4520
diff
changeset
|
272 |
^ 'Smalltalk/X' |
3330 | 273 |
! ! |
274 |
||
275 |
!stx_libwidg class methodsFor:'documentation'! |
|
276 |
||
277 |
version |
|
5365 | 278 |
^ '$Header$' |
4084 | 279 |
! |
280 |
||
281 |
version_CVS |
|
5365 | 282 |
^ '$Header$' |
3330 | 283 |
! ! |
4520 | 284 |