forked from SquareBracketAssociates/PharoByExample-english
-
Notifications
You must be signed in to change notification settings - Fork 0
/
PBE2.tex
214 lines (171 loc) · 5.45 KB
/
PBE2.tex
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
% $Author$
% $Date$
% $Revision$
% HISTORY:
% 2008-02-04 - new umbrella
% 2009-04-23 - pharo -> squeak
%=================================================================
% This is the main file for the Pharo By Example book.
% The individual chapters can also be latexed by themselves.
% Note that the \end{document} marker occurs near the
% middle of this file, to leave out additional material
% for a future version of the book.
%=================================================================
\documentclass[a4paper,10pt,twoside]{book}
\usepackage[
papersize={6.13in,9.21in},
hmargin={.75in,.75in},
vmargin={.75in,1in},
ignoreheadfoot
]{geometry}
\input{common.tex}
\setboolean{lulu}{true}
%=================================================================
% Add the path for the figures of each chapter here:
\graphicspath{
{figures/}
{Monticello/figures/}
{Glamour/figures/}
{Profiling/figures/}
{Regex/figures/}
{Omnibrowser/figures/}
{Exceptions/figures/}
{Mondrian/figures/}
{Metacello/figures/}
% {Concurrency/figures/}
{Announcements/figures/}
{LDAP/figures/}
{Sockets/figures/}
{Settings/figures/}
{Gofer/figures/}
% {Compiler/figures/}
% {Block/figures/}
}
%=================================================================
\let\wholebook=\relax
\makeindex
\makeglossary
%=================================================================
\renewcommand{\nnbb}[2]{} % Disable editorial comments
%=================================================================
\begin{document}
\frontmatter
%=================================================================
\setcounter{page}{1}
\pagestyle{headings}
%=================================================================
\author{
Alexandre Bergel\quad
Damien Cassou\quad
St\'ephane Ducasse\quad
Jannik Laval\quad}
% (to be updated at the end)
\title{\Huge\bf More Pharo by Example\\[1ex]}
\isodate
\date{\emph{Version of \today}}
\maketitle
%=================================================================
\tableofcontents
% \listoffigures
% \listoftables
% \lstlistoflistings
\sloppy % To avoid LaTeX's annoying habit of letting lines stick over the margins!
\mainmatter
%=================================================================
\input{Preface/Preface2.tex}
%=================================================================
%\part{Software Development}
%\input{Monticello/Monticello.tex}
% \input{Profiling/Profiling.tex}
\part{Frameworks}
\input{Omnibrowser/Omnibrowser.tex}
% 90
% redo screenshots
% use pdf for graffle
\input{Glamour/Glamour.tex}
% Gofer
\input{LDAP/LDAP.tex}
% 60
% Gofer
% manque description
% fr -> english
\input{Mondrian/Mondrian.tex}
% 80
% redo screenshots
% other examples (edges scoped)
%% PetitParser Damien
%% Alien FFI
%% Iliad
%% Zinc
\part{Language}
\input{Exceptions/Exceptions.tex} %% stef
%% 100
\input{Block/Block.tex} %stef
%% 50
\input{Float/Float.tex} %% stef
% 60
%\input{Compiler/Compiler.tex} %% marcus
%0
%\input{Traits/Traits.tex} %%% stef alex
% stef and alexandre
% 20 (first add picture of the esug presentations)
\part{Libraries}
\input{FileSystem/FileSystem.tex}
%% stef...
% not wiresong
% 60
% adapting
% adding some graffle
\input{Announcements/Announcements.tex} %%
%30
\input{Sockets/Sockets.tex} %% noury
%60
%
\input{Settings/Settings.tex} %% stef
% redo screenshots
\input{Regex/Regex.tex}
% 99
% read edited by oscar
% redo screenshots
\part{Source Management}
\input{Monticello/Monticello.tex}
%
%100
%% smalltalkHub
\input{Gofer/Gofer.tex}
% 100
\input{Metacello/Metacello.tex}
% 85
\part{Tools}
\input{Profiling/Profiling.tex}
% 80
%Network
%Rewriting Rules
%=================================================================
% \printglossary
\bibliographystyle{jurabib}
\bibliography{scg}
\printindex
\end{document}
\section{How make an image self executable with Pharo}
We save an image with our main application window already opened, and unwanted things disabled (halos, alt-., menus, etc). Additionally, we have a class-side \#startUp: method to initialize what's necessary on startup, like re-reading config files etc.
The image is started automatically when double-clicking "plopp.exe", or rather a short-cut in the program menu placed there by the installer. This exe is nothing more than a renamed Pharo.exe, with a different icon patched in using a resource editor. There is a VM config file "plopp.ini", which most importantly contains the path to the image to load (see http://minnow.cc.gatech.edu/squeak/3274).
The exe along with the needed plugins, the image and other data files is installed in the "programs" directory by a regular Windows installer (InstallShield).
It's really not too different from other applications, which nowadays also consist of an executable and several additional files. That the actual application logic in Squeak's case is not contained in the executable but in a "data file" is of no concern to the end user.
Note that this is an FAQ item (http://minnow.cc.gatech.edu/squeak/3563). Feel free to put my explanation on the Swiki, I haven't checked carefully if a similar answer is already there.
- Bert -
%=================================================================
% \printglossary
\bibliographystyle{jurabib}
\bibliography{scg}
\printindex
\end{document}
% \end{document} % NB: The actual end is further up
%=================================================================
%%% Local Variables:
%%% coding: utf-8
%%% mode: latex
%%% TeX-master: t
%%% TeX-PDF-mode: t
%%% ispell-local-dictionary: "english"
%%% End: