]> git.lyx.org Git - lyx.git/blob - src/graphics/ChangeLog
fix for compilation with boost 1.32.0
[lyx.git] / src / graphics / ChangeLog
1 2004-11-20  Lars Gullik Bjonnes  <larsbj@gullik.net>
2
3         * GraphicsCache.C: include <map> to fix compilation with boost
4         1.32.0 
5
6 2004-11-09  Georg Baum  <Georg.Baum@post.rwth-aachen.de>
7
8         * GraphicsCacheItem.C:
9         s/getFormatFromContents/formats.getFormatFromFile/
10
11 2004-10-29  Georg Baum  <Georg.Baum@post.rwth-aachen.de>
12
13         * GraphicsCacheItem.C: s/getExtFromContents/getFormatFromContents/
14         * GraphicsImage.h (loadableFormats): correct documentation
15
16 2004-10-01  Angus Leeming  <leeming@lyx.org>
17
18         * GraphicsConverter.C (move_file, build_script): protect
19         shell variables with quotes.
20
21 2004-09-26  Lars Gullik Bjonnes  <larsbj@gullik.net>
22
23         * pch.h: use proper signal include
24
25         * GraphicsCacheItem.[Ch]: Use preferred calling of Boost.Signal
26         * GraphicsConverter.C: ditto
27         * GraphicsImage.h: ditto
28         * GraphicsLoader.[Ch]: ditto
29         * PreviewLoader.[Ch]: ditto
30
31 2004-09-26  Lars Gullik Bjonnes  <larsbj@gullik.net>
32
33         * pch.h: include <boost/function.hpp> instead of
34         <boost/function/function0.hpp>
35
36         * GraphicsImage.C: Use preferred calling of boost::function
37         * GraphicsImage.h: ditto
38
39 2004-08-16  José Matos  <jamatos@lyx.org>
40
41         * PreviewLoader.C (Impl::startLoading): remove space at end of line.
42
43 2004-08-15  Lars Gullik Bjonnes  <larsbj@gullik.net>
44
45         * pch.h: new file
46
47         * Makefile.am: support pch
48
49 2004-07-24  Lars Gullik Bjonnes  <larsbj@gullik.net>
50
51         * PreviewLoader.C, GraphicsParams.C, GraphicsConverter.C: change
52         "support/std_sstream.h" to <sstream>
53
54 2004-04-19  Angus Leeming  <leeming@lyx.org>
55
56         * Previews.[Ch] (status): new member function, replacing activated.
57
58 2004-04-15  Angus Leeming  <leeming@lyx.org>
59
60         * PreviewLoader.C (startLoading): change arguments passed to the
61         preview-generation script to include the foreground and background
62         colours.
63         (dumpPreamble): no longer write the foreground and background
64         colours to the latex file as PostScript specials.
65         (setConverter): consider only those 'to' formats that are
66         loadable natively by the GUI library, rather than all formats
67         for which a converter exists.
68         (setAscentFractions): re-written to parse much simplified metrics
69         file.
70
71 2004-04-13  Angus Leeming  <leeming@lyx.org>
72
73         * PreviewLoader.C (dumpPreamble):
74         * Previews.C (generateBufferPreviews): re-enable iteration over all
75         insets.
76
77 2004-02-21  Georg Baum  <Georg.Baum@post.rwth-aachen.de>
78
79         * GraphicsCacheItem.C (convertToDisplayFormat): unzip zipped files
80         to a temporary file
81         * PreviewLoader.C: use always a temp dir
82         * PreviewLoader.C: check successfull creation of LaTeX file
83
84 2004-01-31  Lars Gullik Bjonnes  <larsbj@gullik.net>
85
86         * PreviewLoader.C (FindFirst): inherit from std::unary_function
87         and make operator() const
88         (FindSnippet): inherit from unary_function, simplify slightly.
89
90 2004-01-07  Lars Gullik Bjonnes  <larsbj@gullik.net>
91
92         * GraphicsTypes.C: include <string>
93
94 2003-11-20  Lars Gullik Bjonnes  <larsbj@gullik.net>
95
96         * Previews.C: include paragraph.h
97         * PreviewLoader.C: ditto
98
99 2003-11-05  José Matos  <jamatos@lyx.org>
100
101         * PreviewLoader.C (dumpPreamble): rename ascii to plaintext
102         and LatexRunParams to OutputParams.
103
104 2003-10-22  Angus Leeming  <leeming@lyx.org>
105
106         * PreviewImage.C (statusChanged): always pass on the signal, not just
107         when the preview is ready for display.
108
109 2003-10-22  Angus Leeming  <leeming@lyx.org>
110
111         * GraphicsConverter.C (Impl c-tor): add a warning message if the file
112         to contain the conversion script cannot be opened.
113
114 2003-10-22  Angus Leeming  <leeming@lyx.org>
115
116         * PreviewLoader.C (startLoading): do nothing if the buffer is not yet
117         loaded.
118
119 2003-10-13  Angus Leeming  <leeming@lyx.org>
120
121         * GraphicsTypes.[Ch] (setDisplayTranslator): removed.
122         Make displayTranslator a function,
123
124 2003-10-10  Angus Leeming  <leeming@lyx.org>
125
126         * PreviewedInset.[Ch]: removed.
127
128         * Makefile.am: remove PreviewedInset.[Ch].
129
130 2003-10-09  Angus Leeming  <leeming@lyx.org>
131
132         * PreviewedInset.[Ch] (previewReady): remove the side effects.
133         Now simply reports whether the preview is ready.
134
135 2003-10-09  Angus Leeming  <leeming@lyx.org>
136
137         * PreviewedInset.[Ch]: move PreviewedInset out of namespace lyx::graphics.
138         Remove the inset and view member functions.
139         Add a new connect member function and preview_ready_signal_ member
140         variable, to enable the class to tell an arbirary connectee that the
141         preview is ready.
142
143 2003-10-09  Angus Leeming  <leeming@lyx.org>
144
145         * PreviewedInset.[Ch] (removePreview, previewReady): these functions
146         are now passed a 'Buffer const &', eliminating most of the remaining
147         need for PreviewedInset to use a BufferView cache.
148
149 2003-10-07  Martin Vermeer  <martin.vermeer@hut.fi>
150
151         * GraphicsCache.h:
152         * PreviewImage.h: add <string> and other small fixes to make
153         Lars' std::string patch compile with STLport.
154
155 2003-09-29  Angus Leeming  <leeming@lyx.org>
156
157         * GraphicsParams.[Ch] (asString): removed. Replaced with
158         operator<<(std::ostream &, BoundingBox const &).
159
160 2003-09-25  Angus Leeming  <leeming@lyx.org>
161
162         * GraphicsParams.[Ch] (asString): new member function.
163
164 2003-09-21  Lars Gullik Bjønnes  <larsbj@gullik.net>
165
166         * Previews.C (Previews): fix new bug
167
168         * GraphicsCache.C (Cache): fix new bug
169
170 2003-09-19  Angus Leeming  <leeming@lyx.org>
171
172         * PreviewedInset.[Ch] (generatePreview, previewWanted): now passed
173         a 'Buffer const &' argument.
174
175 2003-09-18  Angus Leeming  <leeming@lyx.org>
176
177         * PreviewedInset.C (latexString): add a Buffer const & arg.
178         * PreviewedInset.C (addPreview): pass the buffer to latexString.
179
180 2003-09-16  Angus Leeming  <leeming@lyx.org>
181
182         * PreviewedInset.[Ch] (c-tor) move out of line.
183         (d-tor): make private.
184         (inset): return a const reference rather than a non-const pointer.
185
186 2003-09-16  Angus Leeming  <leeming@lyx.org>
187
188         * GraphicsImage.h: separate interface from implementation. Make all the
189         pure virtual functions private.
190
191 2003-09-16  Angus Leeming  <leeming@lyx.org>
192
193         * PreviewLoader.C: add #include "LColor.h".
194
195 2003-09-15  Lars Gullik Bjønnes  <larsbj@gullik.net>
196
197         * GraphicsConverter.C
198         * PreviewLoader.C: remove usage of STRCONV
199
200 2003-09-14  Angus Leeming  <leeming@lyx.org>
201
202         * PreviewLoader.C (remove): consider all InProgressProcesses when
203         ascertaining which ones to remove from the list, not every other one.
204
205 2003-09-09  Lars Gullik Bjønnes  <larsbj@lyx.org>
206
207         * GraphicsCacheItem.C: change Assert to BOOST_ASSERT
208         * Previews.C: ditto
209
210 2003-09-08  Angus Leeming  <leeming@lyx.org>
211
212         * GraphicsImage.C:
213         * GraphicsParams.C:
214         * PreviewLoader.C: remove redundant using directives.
215
216 2003-09-07  Angus Leeming  <leeming@lyx.org>
217
218         * GraphicsTypes.h:
219         * Previews.h: remove #include "support/std_string.h".
220
221 2003-09-06  Angus Leeming  <leeming@lyx.org>
222
223         * PreviewedInset.C: add #include "insets/inset.h"
224
225 2003-09-05  Angus Leeming  <leeming@lyx.org>
226
227         * *.C: strip out redundant #includes. (26 in total.)
228
229 2003-09-04  Angus Leeming  <leeming@lyx.org>
230
231         * LoaderQueue.C (get):
232
233 2003-09-04  Angus Leeming  <leeming@lyx.org>
234
235         * GraphicsCache.C:
236         * GraphicsCacheItem.C:
237         * GraphicsConverter.C:
238         * PreviewImage.C:
239         * PreviewLoader.C:
240         * PreviewedInset.C:
241         * Previews.C: 'namespace support = lyx::support' rather than
242         'using lyx::support'.
243
244         * Previews.h: cleaned up some comments.
245
246         * LoaderQueue.[Ch]: move #include "GraphicsCacheItem.h" into the .C file.
247
248 2003-07-26  Jean-Marc Lasgouttes  <lasgouttes@lyx.org>
249
250         * GraphicsTypes.h: do not declare displayTranstor here (and remove
251         extra include)
252
253 2003-07-27  José Matos  <jamatos@fep.up.pt>
254
255         * PreviewLoader.C (Impl::dumpPreamble): comply with makeLaTeXFile
256         argument change.
257
258 2003-07-21  Angus Leeming  <leeming@lyx.org>
259
260         * GraphicsCache.h:
261         * GraphicsCacheItem.[Ch]:
262         * GraphicsParams.h:
263         * PreviewLoader.h:
264         * PreviewedInset.[Ch]:
265         * Previews.h: use namespace lyx::graphics rather than grfx shortcut.
266
267 2003-07-04  Lars Gullik Bjønnes  <larsbj@gullik.net>
268
269         * Change namespace grfx to lyx::graphics.
270
271 2003-07-01  Lars Gullik Bjønnes  <larsbj@gullik.net>
272
273         * introcude namespace lyx::support
274
275 2003-06-04  Angus Leeming  <leeming@lyx.org>
276
277         * GraphicsLoader.C (Loader copy c-tor): make it work as expected. ;-)
278         (operator=): if it has a copy c-tor, it should have this too.
279
280 2003-06-03  Angus Leeming  <leeming@lyx.org>
281
282         * GraphicsLoader.[Ch] (Loader): add copy constructor.
283
284 2003-05-23  Angus Leeming  <leeming@lyx.org>
285
286         * PreviewLoader.C (dumpPreamble): rename fragile as moving_arg.
287
288 2003-05-22  Angus Leeming  <leeming@lyx.org>
289
290         * PreviewLoader.C (dumpPreamble): no longer pass a free_spacing arg to
291         the inset::latex method.
292
293 2003-05-22  Angus Leeming  <leeming@lyx.org>
294
295         * PreviewLoader.C (dumpPreamble): no longer pass a fragile arg to
296         the inset::latex method.
297
298 2003-05-22  Angus Leeming  <leeming@lyx.org>
299
300         * PreviewLoader.C (dumpPreamble): the 'nice' param passed to
301         makeLaTeXFile is now encapsulated within runparams.
302
303 2003-05-22  Angus Leeming  <leeming@lyx.org>
304
305         * PreviewLoader.C (dumpPreamble):
306         pass around a LatexRunParams parameter.
307
308 2003-05-13 André Pönitz <poenitz@gmx.net>
309
310         * GraphicsConverter.C:
311         * PreviewLoader.C: use tostr from own header
312
313 2003-05-12 André Pönitz <poenitz@gmx.net>
314
315         * PreviewLoader.C:  boost::format -> bformat
316
317 2003-04-15  Angus Leeming  <leeming@lyx.org>
318
319         * GraphicsConverter.C: #include lstrings.h.
320
321 2003-02-28  Alfredo Braunstein <abraunst@libero.it>
322
323         * GraphicsConverter.C
324         * PreviewLoader.C: added #include "format.h"
325
326 2003-02-26  Angus Leeming  <leeming@lyx.org>
327
328         * PreviewedInset.[Ch]: strip out the caching of the BufferView and
329         use the cache of the parent inset instead.
330
331         * PreviewLoader.C (startLoading): Prevent a crash if the user is
332         not using a tmp directory.
333
334 2003-02-26  Alfredo Braunstein  <abraunst@libero.it>
335
336         * GraphicsLoader.[Ch],
337         * PreviewImage.[Ch],
338         * PreviewedInset.C: Removed unneeded list of owner insets
339
340 2003-02-25  Alfredo Braunstein  <abraunst@libero.it>
341
342         * GraphicsConverter (startConversion): add the call to
343         ForkedCallQueue::add
344
345         * GraphicsLoader.[Ch],
346         * PreviewImage.[Ch],
347         * PreviewedInset.C: Removed unneeded BufferView
348
349 2003-02-25  Alfredo Braunstein  <abraunst@libero.it>
350
351         * LoaderQueue.[Ch]: a simplification of the code, eliminated
352         the unneeded input bucket.
353
354         * GraphicsCacheItem.C (imageConverted): move warning inside the
355         !success block.
356
357 2003-02-25  Alfredo Braunstein  <abraunst@libero.it>
358
359         * PreviewLoader.C (FindFirst): use ==, not < with std::find.
360
361 2003-02-21  Alfredo Braunstein  <abraunst@libero.it>
362
363         * LoaderQueue.[Ch] (setPriority): added
364
365         * PreviewLoader.C (finishedGenerating): reversed the loading order so
366         first images get 'touched' last, and so load first.
367
368 2003-02-20  Alfredo Braunstein  <abraunst@libero.it>
369
370         * LoaderQueue.[Ch]: added. Implements a service queue that loads
371         images in background
372         * GraphicsSupport.[Ch]: removed
373         * Makefile.am: the changes above
374         * GraphicsLoader.C: use the loading queue
375
376 2003-01-21  Angus Leeming  <leeming@lyx.org>
377
378         * PreviewLoader.C (dumpPreamble): ensure that \lyxlock does not prevent
379         previews from being generated.
380
381 2003-01-13  Angus Leeming  <leeming@lyx.org>
382
383         * GraphicsCacheItem.C (findTargetFormat): define the default conversion
384         format to be PPM not XPM.
385
386 2002-12-17  Lars Gullik Bjønnes  <larsbj@gullik.net>
387
388         * Makefile.am (EXTRA_DIST): remove variable
389
390 2002-12-13  Angus Leeming  <leeming@lyx.org>
391
392         * GraphicsImageXPM.[Ch]: removed.
393
394         * Makefile.am: associated change.
395
396 2002-12-01  Lars Gullik Bjønnes  <larsbj@gullik.net>
397
398         * several files: ws changes
399
400 2002-11-21  Angus Leeming  <leeming@lyx.org>
401
402         * GraphicsConverter.C (build_script, move_file):
403         Don't use "if [ $? -ne 0 ]; then..."
404
405 2002-11-04  Lars Gullik Bjønnes  <larsbj@gullik.net>
406
407         * PreviewLoader.C (IncrementedFileName): STRCONV
408         (startLoading): ditto
409
410         * GraphicsConverter.C (Impl): STRCONV
411         (move_file): ditto
412
413         * GraphicsTypes.C: include config.h
414
415 2002-10-25  Angus Leeming  <leeming@lyx.org>
416
417         * GraphicsConverter.C (Impl::converted)
418         * PreviewLoader.C (Impl::finishedGenerating): no longer receives a
419         string as first arg, reflecting change in ForkedCall interface.
420
421         * PreviewLoader.C: use pid rather than command as identifier in
422         InProgress map.
423
424 2002-10-18  Angus Leeming  <leeming@lyx.org>
425
426         * GraphicsCacheItem.C (findTargetFormat): add debug message.
427
428 2002-09-24  Lars Gullik Bjønnes  <larsbj@gullik.net>
429
430         * Makefile.am (INCLUDES): loose SIGC_INCLUDES
431
432 2002-09-10  Jean-Marc Lasgouttes  <Jean-Marc.Lasgouttes@inria.fr>
433
434         * GraphicsConverter.C (build_script): do not use ChangeExtension
435         on a base name
436         (Impl): ditto
437
438 2002-09-05  Angus Leeming  <leeming@lyx.org>
439
440         * all files: modify the headers as discussed on the list.
441
442 2002-09-04  Angus Leeming  <leeming@lyx.org>
443
444         * PreviewLoader.C (startLoading): pass the desired output format to the
445         conversion script.
446
447 2002-09-04  Angus Leeming  <leeming@lyx.org>
448
449         * PreviewLoader.C: remove this ndigits stuff as an unnecessary extra.
450
451 2002-09-03  Angus Leeming  <leeming@lyx.org>
452
453         * PreviewLoader.C: fix crash reported by Norbert Koksch when
454         generating more than 999 preview snippets. Use filenames with 5 digit
455         numbers, not 3, in the first instance, although more general code is
456         commented out. I don't suppose /anyone/ has 100000 formulae in one
457         document...
458
459 2002-09-03  Angus Leeming  <leeming@lyx.org>
460
461         * PreviewLoader.C: activate #ifdef USING_NEW_PREVIEW_STY code.
462
463 2002-09-03  Angus Leeming  <leeming@lyx.org>
464
465         * GraphicsConverter.C (Impl c-tor): remove lyxpreview2xpm cruft.
466
467 2002-09-03  Martin Vermeer  <martin.vermeer@hut.fi>
468
469         * GraphicsConverter.C (Impl c-tor): "hide" crash by prefixing
470         convertDefault command with "sh ".
471
472 2002-08-28  Rob Lahaye  <lahaye@snu.ac.kr>
473
474         * GraphicsImage.C: small style fix to width/height setting.
475
476         * GraphicsTypes.h: have a displayTranslator here.
477
478         * Makefile.am:
479         * GraphicsTypes.C: new file added for the setDisplayTranslator();
480
481 2002-08-23  Rob Lahaye  <lahaye@snu.ac.kr>
482
483         * GraphicsImage.C:
484         * GraphicsParams.[Ch]: remove keepLyXAspectRatio, width and height
485         because this input has gone from the graphics dialog.
486
487         * GraphicsTypes.h: add enum DisplayType DefaultDisplay
488
489 2002-08-20  Lars Gullik Bjønnes  <larsbj@birdstep.com>
490
491         * GraphicsImageXPM.h: inlcude boost/shared_ptr.hpp, remove include
492         for support/smart_ptr.h, switch to boost smart ptr.
493
494         * GraphicsImageXPM.C: reorder includes, include boost/bind.hpp
495         (~Data): let the smart_ptr handle cleanup
496         (reset): use nifty 3rd arg
497         (resetData): ditto
498         (free_color_table): free the table manually
499
500 2002-08-09  Angus Leeming  <leeming@lyx.org>
501
502         * PreviewLoader.C (dumpPreamble): pass Buffer::filePath() to
503         Buffer::makeLaTeXFile() so that LaTeX can find \input files because
504         input@path is now set correctly.
505
506 2002-08-06  Angus Leeming  <leeming@lyx.org>
507
508         * PreviewLoader.C: add support for preview.sty 0.73 (currently
509         #ifdef-ed out, awaiting the formal release).
510
511         * PreviewedInset.[Ch] (removePreview): new method. Useful if previewing
512         the contents of a file that has changed.
513
514 2002-08-05  Angus Leeming  <leeming@lyx.org>
515
516         * PreviewLoader.C (dumpPreamble): add lyx to the list of options output
517         to preview.sty. Works only for versions of preview.sty > 0.72b but
518         doesn't hurt earlier versions. Allows me to test the new parsing of
519         LyX-specific data from the generated log file.
520
521 2002-08-02  Angus Leeming  <leeming@lyx.org>
522
523         * GraphicsLoader.C: cache the BufferView as a weak_ptr.
524
525         * PreviewLoader.[Ch] (buffer): new method, returning the owner.
526         (add): don't add empty snippets.
527
528         * PreviewedInset.[Ch]: cache the BufferView as a weak_ptr.
529         (view, setView): access to to the cache_.
530
531 2002-08-02  Angus Leeming  <leeming@lyx.org>
532
533         * PreviewedInset.[Ch]: cache the LaTeX snippet.
534
535 2002-08-01  Angus Leeming  <leeming@lyx.org>
536
537         * PreviewedInset.[Ch]: new files. An abstract base class that can help
538         insets to generate previews.
539         The daughter class must instantiate three small methods.
540         The Inset would own an instance of this daughter class and invoke it
541         as necessary. For example, mathd/formula.C gets previews at the cost
542         of 15 or so lines of code.
543
544         * Makefile.am: add PreviewedInset.[Ch].
545
546         * PreviewLoader.C (add): add debug message.
547
548         * Previews.C (generateBufferPreviews): remove if-block from loop.
549
550 2002-07-29  Lars Gullik Bjønnes  <larsbj@gullik.net>
551
552         * PreviewLoader.C (setFontScalingFactor): strip,frontStrip ->
553         trim,ltrim,rtrim
554         (setAscentFractions): ditto
555
556 2002-07-28  Lars Gullik Bjønnes  <larsbj@gullik.net>
557
558         * PreviewLoader.C (setAscentFractions): modify because of strip
559         changes
560
561 2002-07-22  Lars Gullik Bjønnes  <larsbj@birdstep.com>
562
563         * GraphicsConverter.C (build_script): take a ostream as a more
564         general argument than ostringstream.
565
566 2002-07-22  Herbert Voss  <voss@lyx.org>
567
568         * GraphicsConverter.C: get the "default converter" run again
569
570 2002-07-21  Jean-Marc Lasgouttes  <lasgouttes@freesurf.fr>
571
572         * PreviewLoader.C: use BufferParams::getLyXTextClass
573
574 2002-07-21  Herbert Voss  <voss@lyx.org>
575
576         * GraphicsImage.C: get the LyXAspectRatio run.
577
578         * GraphicsParams.[Ch]: add bool keepLyXXAspectRatio
579
580 2002-07-20  Jean-Marc Lasgouttes  <lasgouttes@freesurf.fr>
581
582         * PreviewLoader.C (startLoading): pass an interger as resolution
583         to the lyxpreview converter
584
585         * GraphicsParams.C: include <cstdlib>
586
587 2002-07-19  Jean-Marc Lasgouttes  <lasgouttes@freesurf.fr>
588
589         * PreviewLoader.C (startLoading): use LibScriptSearch to find the
590         preview converter script
591
592 2002-07-18  Jean-Marc Lasgouttes  <lasgouttes@freesurf.fr>
593
594         * GraphicsCacheItem.C (reset): use erase() instead of clear() for
595         strings
596
597 2002-07-18  Angus Leeming  <leeming@lyx.org>
598
599         * GraphicsCacheItem.[Ch]: add a FileMonitor variable to the the Impl
600         class.
601         (startMonitoring, monitoring, checksum): new methods to interact with
602         the FileMonitor.
603
604         * GraphicsLoader.[Ch] (startMonitoring, monitoring, checksum): new
605         methods invoking the CacheItem methods of the same name.
606         (resetFile): if monitoring and the file changes, start monitoring this
607         new file.
608
609 2002-07-17  Jean-Marc Lasgouttes  <lasgouttes@freesurf.fr>
610
611         * Makefile.am: remove FileMonitor.[Ch]
612
613 2002-06-17  Herbert Voss  <voss@lyx.org>
614
615         * GraphicsCachItem.C (findTargetFormat): remove the speciell case
616         for old ps-files (Garst). It's now handled by defining a converter and
617         disabling the ps-support of xforms.
618
619 2002-07-17  Angus Leeming  <leeming@lyx.org>
620
621         Be true to the Pimpl idiom, moving all signals into the respective
622         Impl classes and defining methods to connect them to an outside slot.
623         Const-ify all visible class methods as they act only on a const pimpl_.
624
625         * GraphicsCache.[Ch] (add, remove): const-ify.
626
627         * GraphicsCacheItem.[Ch] (startLoading): const-ify.
628         (statusChanged): move the signal into the Impl class.
629         (connect): new method, enabling a listener to connect to this signal.
630
631         * GraphicsConverter.[Ch]: (startConversion): const-ify.
632         (finishedConversion): move the signal into the Impl class.
633         (connect): new method, enabling a listener to connect to this signal.
634
635         * GraphicsLoader.[Ch] (reset, startLoading): const-ify.
636         (statusChanged): move the signal into the Impl class.
637         (connect): new method, enabling a listener to connect to this signal.
638
639         * PreviewLoader.[Ch] (add, remove, startLoading): const-ify.
640         (imageReady): move the signal into the Impl class.
641         (connect): new method, enabling a listener to connect to this signal.
642         (emitSignal): new method, enabling PreviewImage to tell the outside
643         world that the file has been loaded into memory.
644
645         * Previews.[Ch] (loader, removeLoader, generateBufferPreviews):
646         const-ify.
647
648         * GraphicsCache.C:
649         * GraphicsCacheItem.C:
650         * GraphicsConverter.[Ch]:
651         * GraphicsImage.h:
652         * GraphicsImageXPM.C:
653         * GraphicsLoader.C:
654         * PreviewLoader.[Ch]: whitespace clean-up.
655
656 2002-07-16  Jean-Marc Lasgouttes  <lasgouttes@freesurf.fr>
657
658         * PreviewLoader.C (setConverter): remove unused variable
659
660         * GraphicsImageXPM.C (isDrawable): implement
661         (setPixmap): the opaque color is black, not white
662
663 2002-07-15  Jean-Marc Lasgouttes  <lasgouttes@freesurf.fr>
664
665         * GraphicsImageXPM.C (color_none_id):
666         (contains_color_none): use ascii_lowercase instead of lowercase
667
668 2002-07-16  Angus Leeming  <leeming@lyx.org>
669
670         * PreviewLoader.C: greater use of STL algorithms.
671
672         * Previews.[Ch]: use const in more places.
673         (generateBufferPreviews): now takes a Buffer const & argument, not a
674         pointer.
675
676 2002-07-15  John Levon  <moz@compsoc.man.ac.uk>
677
678         * GraphicsImage.h: remove getPixmap/X, add isDrawable()
679
680 2002-07-12  Angus Leeming  <leeming@lyx.org>
681
682         * GraphicsLoader.[Ch]: smart loading of images. Images are loaded only
683         if visible 2 secs after the call to load them is first made.
684
685         * GraphicsSupport.[Ch]: new files. isInsetVisible interrogates the
686         BufferView to ascertain whether the inset is visible or not.
687
688         * Makefile.am: added GraphicsSupport.[Ch].
689
690         * PreviewImage.[Ch]: use this smart loader.
691
692         * PreviewLoader.C: don't load generated image files indiscimminantly.
693         Instead emit the imageReady signal and allow the image owner to decide.
694
695 2002-07-12  John Levon  <moz@compsoc.man.ac.uk>
696
697         * GraphicsCache.C: remove init_graphics()
698
699 2002-07-09  Angus Leeming  <leeming@lyx.org>
700
701         * PreviewLoader.C (setAscentFractions): fix bug due to use of integer
702         arithmetic when it should be floating.
703
704 2002-07-09  Angus Leeming  <leeming@lyx.org>
705
706         * PreviewLoader.C (startLoading): prepend LaTeX file with "\batchmode".
707         Output equation labels as "(#)" if lyxrc preference is set.
708         (setFontScalingFactor): use lyxrc variable preview_scale_factor
709         rather than hard-coding this.
710
711 2002-07-09  Angus Leeming  <leeming@lyx.org>
712
713         * PreviewLoader.C: Further refactoring of the code. Should now be
714         pretty clean.
715
716         * PreviewMetrics.[Ch]: removed. Had a v. short shelf life and is now
717         past its sell-by date. The code to read the metrics file is now found
718         as a helper function in PreviewLoader.C.
719
720         * GraphicsImageXPM.C (scale): use boost::tie.
721
722 2002-07-08  Herbert Voss  <voss@lyx.org>
723
724         * PreviewLoader.C: use of preview_size_factor to get the right
725         font-size! 0.9 is the default.
726
727 2002-07-08  Angus Leeming  <leeming@lyx.org>
728
729         * PreviewLoader.C: Add "delayed" and "showlabels" options to the
730         invocation of preview.sty.
731         Perform something of an internal clean-up.
732
733 2002-07-06  Angus Leeming  <leeming@lyx.org>
734
735         * PreviewLoader.C: ensure that the metrics data is used by the
736         correct image!
737
738         * PreviewLoader.C:
739         * PreviewImage.C: (Impl d-tor): remove all generated files that still
740         exist (perhaps because the process was curtailed before the images
741         were loaded.)
742
743         * PreviewLoader.C (unique_filename): store the files in Buffer::tmppath.
744
745 2002-07-05  Angus Leeming  <leeming@lyx.org>
746
747         * PreviewImage.h:
748         * PreviewImage.C:
749         * PreviewLoader.h:
750         * PreviewLoader.C:
751         * PreviewMetrics.h:
752         * PreviewMetrics.C:
753         * Previews.h:
754         * Previews.C: new files. The previewed LaTeX snippet stuff.
755
756         * Makefile.am: add these files.
757
758 2002-07-05  Angus Leeming  <leeming@lyx.org>
759
760         * GraphicsLoader.h: whitespace.
761
762 2002-07-04  Lars Gullik Bjønnes  <larsbj@birdstep.com>
763
764         * GraphicsImage.[Ch]: newImage and loadableFormats changed to
765         boost::function from boost::signal.
766
767 2002-07-01  Jean-Marc Lasgouttes  <lasgouttes@freesurf.fr>
768
769         * GraphicsConverter.C (convert): do not use ChangeExtension
770         because to_file_base may contain a dot.
771
772 2002-06-28  Angus Leeming  <leeming@lyx.org>
773
774         * GraphicsCacheItem.[Ch]: refactor some of the more convoluted logic
775         by moving those SignalPtrs into the grfx::Image and grfx::Converter
776         classes where they really belong.
777         Use the Pimpl idiom to hide the class internals from public view.
778
779         * GraphicsTypes: remove the typedefs, leaving only the enums.
780
781         * GraphicsImage.h: now has a finishedLoading signal, as opposed to being
782         passed a reference to one in the load() method.
783
784         * GraphicsConverter.[Ch]: totally refactored. An instance of
785         grfx::Converter now represents a single conversion process.
786         Thus grfx::CachItem now has a grfx::Converter * that is set when the
787         conversion is initiated and destroyed on completion.
788
789         * GraphicsCache.[Ch]:
790         * GraphicsCacheItem.[Ch]:
791         * GraphicsConverter.[Ch]:
792         * GraphicsLoader.[Ch]: use the Pimpl idiom to hide the class internals
793         from public view.
794         Note that I have done this only after making the above changes,
795         so not only should we have a clean, minimal and well documented
796         interface to these classes in the header files, but the class internals
797         should be much clearer too.
798
799         * Renamed classes
800         grfx::GCache -> grfx::Cache,
801         grfx::GCacheItem -> grfx::CacheItem,
802         grfx::GConverter -> grfx::Converter,
803         grfx::GImage -> grfx::Image,
804         grfx::GImageXPM -> grfx::ImageXPM,
805         grfx::GParams -> grfx::Params.
806
807 2002-06-26  Angus Leeming  <leeming@lyx.org>
808
809         * GraphicsLoader.[Ch]: use boost::scoped_ptr in preference to
810         std::auto_ptr. Define an empty Loader d-tor out-of-line to ensure it
811         compiles.
812
813 2002-06-26  Angus Leeming  <leeming@lyx.org>
814
815         * GraphicsTypes.h: add "Ready" to the ImageStatus enum.
816         move the DisplayType enum out of grfx::GParams to here.
817
818         * GraphicsCacheItem.h: re-write preliminary description to reflect
819         current reality.
820
821         * GraphicsParams.[Ch]:
822         * GraphicsImageXPM.C (load, setPixmap): changes aassociated with moving
823         grfx::DisplayType out of grfx::GParams.
824
825         * GraphicsLoader.[Ch]: new files. Factor out the image loading stuff
826         that was in frontends/screen.C and insets/insetgraphics.C into a
827         single, easy-to-use class.
828
829         * Makefile.am: add these files.
830
831 2002-06-25  Angus Leeming  <leeming@lyx.org>
832
833         * GraphicsCache.[Ch]:
834         * GraphicsCacheItem.[Ch]:
835         * GraphicsTypes.h: rewrite the graphics cache to just load a graphics
836         file into memory. The cache no longer controls the generation of the
837         pixmap. Instead, it just emits a signal when the loading status of an
838         image changes.
839         The cache no longer stores InsetGraphics pointers and nor does it
840         assume responsibility for modifying an image (scaling, rotating etc).
841         Instead, that must now be performed elsewhere.
842
843 2002-06-19  Angus Leeming  <leeming@lyx.org>
844
845         * GraphicsConverter.C: add using std::endl directive.
846
847 2002-06-17  Herbert Voss  <voss@lyx.org>
848
849         * GraphicsCachItem.C: (findTargetFormat)return xpm-format as a
850         default when nothing different was found
851         (convertToDisplayFormat): handle zipped files in the right way and
852         choose always convert as a default converter when no other
853         userdefined was found
854
855         * GraphicsConverter.C: add more lyxerr comments and choose
856         convert when no other userdefined converter was found
857
858 2002-06-10  Herbert Voss  <voss@lyx.org>
859
860         * GraphicsImageXPM.C (convertTo7chars): get another special color
861         format from convert work in the right way
862
863 2002-06-12  John Levon  <moz@compsoc.man.ac.uk>
864
865         * GraphicsCache.C: use right colormap incantation
866
867 2002-06-12  John Levon  <moz@compsoc.man.ac.uk>
868
869         * GraphicsCache.C: use lyx_gui namespace
870
871         * GraphicsImageXPM.C: back down to using xforms
872           directly again
873
874 2002-06-07  Angus Leeming  <leeming@lyx.org>
875
876         Fixes needed to compile with Compaq cxx 6.5.
877         * GraphicsConverter.h: forward declare class ConvProcess.
878
879         * GraphicsImageXPM.C:
880         all c-library variables have been moved into namespace std.
881         Wrap using std::xyz declarations inside a #ifndef CXX_GLOBAL_CSTD block.
882
883 2002-06-06  Angus Leeming  <a.leeming@ic.ac.uk>
884
885         * GraphicsImageXPM.C (rotate): rotate in the same sense as xdvi!
886
887 2002-05-30  Lars Gullik Bjønnes  <larsbj@birdstep.com>
888
889         * GraphicsImageXPM.C: SigC to boot::signals changes.
890         (newImage): fix () bug when using new.
891
892 2002-05-29  Lars Gullik Bjønnes  <larsbj@birdstep.com>
893
894         * switch from SigC signals to boost::signals.
895
896 2002-05-29  André Pönitz <poenitz@gmx.net>
897
898         * GraphicsParam.C: remove unneeded #include, move vomment
899
900 2002-05-28  André Pönitz <poenitz@gmx.net>
901
902         * GraphicsParam.[Ch]: move inset related stuff to inset/insetgraphics
903
904 2002-05-24  John Levon  <moz@compsoc.man.ac.uk>
905
906         * GraphicsImageXPM.C: ColorHandler moved
907
908 2002-05-24  Juergen Vigna  <jug@sad.it>
909
910         * GraphicsCache.h:
911         * GraphicsImage.h: include LString.h first.
912
913 2002-05-22  Lars Gullik Bjønnes  <larsbj@birdstep.com>
914
915         * GraphicsCacheItem.h: use more specific smart_ptr header.
916         * GraphicsTypes.h: ditto
917         * GraphicsImage.h: ditto
918         * GraphicsConverter.h: ditto
919
920 2002-04-28  John Levon  <moz@compsoc.man.ac.uk>
921
922         * GraphicsImageXPM.C: understand convert's use of "opaque"
923           as a colour name
924
925 2002-04-19  Marco Morandini <morandini@aero.polimi.it>
926
927         * GraphicsCache.[Ch] (loadableFormats): new method. A wrapper for
928         GImage::loadableFormats() that ensures that the signal is connected
929         to the derived class' method.
930
931 2002-04-18  Lars Gullik Bjønnes  <larsbj@birdstep.com>
932
933         * GraphicsImageXPM.C (convertTo7chars): drop all conversions and
934         only work on the string.
935
936 2002-04-17  Angus Leeming  <a.leeming@ic.ac.uk>
937
938         * GraphicsImageXPM.C (Data::reset): Fix the loading of xpm files by
939         the simple image loader when it encounters colour strings like
940         #rrrrggggbbbb.
941
942 2002-04-16  Angus Leeming  <a.leeming@ic.ac.uk>
943
944         * GraphicsCacheItem.C (convertToDisplayFormat):
945         * GraphicsConverter.C (build_script): remove the Alerts when things go
946         wrong as the inset displays the message anyway. Moreover, Alert seems
947         pretty temperamemtal at the moment.
948
949 2002-04-16  Rob Lahaye  <lahaye@users.sourceforge.net>
950
951         * GraphicsImageXPM.C: fix clipping for boundingbox y-coordinates
952
953 2002-04-08  Angus Leeming  <a.leeming@ic.ac.uk>
954
955         * GraphicsCacheItem.C (findTargetFormat): fix bug waiting to bite:
956         a reference to a temp object that's going out of scope...
957
958 2002-04-09  Herbert Voss  <voss@lyx.org>
959
960         * GraphicsParams.C (BoundingBox c-tor): fix rounding errors by using
961         LyXLength::inBP instead of inPixels.
962
963 2002-04-10  Herbert Voss  <voss@perce.de>
964
965         * GraphicsCache.[Ch]:
966         * GraphicsCacheItem.[Ch]: add width/height functions from Angus
967         to read the "Bounding Box" from non (e)ps files.
968
969 2002-04-08  Angus Leeming  <a.leeming@ic.ac.uk>
970
971         * GraphicsParams.C (c-tor): if clipping, then check the Bounding Box of
972         the EPS file too, to ensure that the clipped Bounding Box is relative
973         to the original. (From Herbert.)
974
975 2002-04-04  Angus Leeming  <a.leeming@ic.ac.uk>
976
977         * GraphicsParams.C (BoundingBox c-tor): ensure that the member
978         variables are initialised. Clean-up parsing of the string (with thanks
979         to Herbert.)
980
981 2002-03-26  Angus Leeming  <a.leeming@ic.ac.uk>
982
983         * GraphicsCacheItem.C (convertToDisplayFormat): don't launch that Alert
984         if the file can't be found.
985
986         * GraphicsParams.h (c-tor): remove string() as default argument.
987
988         * GraphicsCacheItem.C: a couple of changes as a result.
989
990 2002-03-22  Angus Leeming  <a.leeming@ic.ac.uk>
991
992         * GraphicsCache.[Ch] (update): now passed filepath to determine absolute
993         path to graphics file.
994
995         * GraphicsParams.[Ch] (c-tor): now passed filepath.
996
997 2002-03-21  Lars Gullik Bjønnes  <larsbj@birdstep.com>
998
999         * most files: ws cleanup
1000
1001         * Makefile.am: remove ld -r stuff
1002
1003 2002-03-20  Lars Gullik Bjønnes  <larsbj@birdstep.com>
1004
1005         * Makefile.am: special rules if partial linking
1006
1007 2002-03-14  Angus Leeming  <a.leeming@ic.ac.uk>
1008
1009         * GraphicsCache.C: use Lars' preferred idiom for a for-loop.
1010
1011 2002-03-11  Lars Gullik Bjønnes  <larsbj@birdstep.com>
1012
1013         * GraphicsConverter.[Ch] (converted): make first arg const ref.
1014
1015         * GraphicsCacheItem.h: doxy change
1016
1017         * GraphicsCacheItem.C: ws change
1018
1019 2002-03-05  Angus Leeming  <a.leeming@ic.ac.uk>
1020
1021         * Makefile.am: if there is no image loading class leveraging the power
1022         of the appropriate gui library, then compile the basic alternative
1023         found in GraphicsImageXPM.[Ch].
1024
1025 2002-03-04  Angus Leeming  <a.leeming@ic.ac.uk>
1026
1027         * GraphicsCache.C: change associated with move of initialiseGraphics
1028         to GUIRuntime.
1029
1030 2002-02-28  Angus Leeming  <a.leeming@ic.ac.uk>
1031
1032         * GraphicsParams.[Ch]:
1033         * GraphicsImage.C:
1034         * GraphicsImageXPM.C: properly resolve more warnings about comparison
1035         between signed and unsigned integer expressions.
1036
1037         * Makefile.am: add GraphicsTypes.h which I'd carelessly left out.
1038
1039         * GraphicsCache.C: move connections to the GImage-derived classes to
1040         the frontends.
1041
1042         * GraphicsImageXPM.C (copy c-tor): don't copy pixmap.
1043
1044         * GraphicsCacheItem.C (findTargetFormat): if we can load direct without
1045         conversion, then do that.
1046
1047 2002-02-27  Angus Leeming  <a.leeming@ic.ac.uk>
1048
1049         * GraphicsCache.C: improve commentary to graphicsInit and where it
1050         should really go.
1051
1052         * GraphicsImageXPM.C (~Data, free_color_table): resolve the crash
1053         that became a memory leak properly. (Let the shared_c_ptr free the
1054         color table.)
1055         (reset, mapcolor): tidy up and introduce a work around for XPM files
1056         with crappy color entries. Print out a nice friendly message on what's
1057         gone wrong and how to resolve it properly.
1058
1059 2002-02-27  Angus Leeming  <a.leeming@ic.ac.uk>
1060
1061         * GraphicsImageXPM.[Ch]: more rigorous use of types (signed/unsigned).
1062         (Data d-tor): introduce memory leak temporarily, to "fix" a crash
1063         in free_color_table.
1064         (unique_color_string): use the correct string c-tor.
1065
1066 2002-02-15  Angus Leeming  <a.leeming@ic.ac.uk>
1067
1068         * ImageLoader.[Ch]:
1069         * ImageLoaderXPM.[Ch]: removed.
1070
1071         * GraphicsConverter.[Ch]:
1072         * GraphicsImage.[Ch]:
1073         * GraphicsImageXPM.[Ch]:
1074         * GraphicsParams.[Ch]:
1075         * GraphicsTypes.h: new files.
1076
1077         * All files. A total re-write of the graphics cache. The cache now
1078         supports asynchronous file conversion and file loading. Images
1079         can be cropped, rotated and scaled for display on the LyX screen.
1080         The old LyXImage and ImageLoader have been combined in a new class
1081         GImage. Ditto, ImageLoaderXPM's functionality has been moved into
1082         GImageXPM.
1083
1084 2002-02-07  Herbert Voss  <voss@lyx.org>
1085
1086         * GraphicsCacheItem.C: use unzipFile() from support/filetools
1087
1088 2002-01-31  Herbert Voss  <voss@lyx.org>
1089
1090         * GraphicsCacheItem.h: handle filetype without the file extension;
1091         getting type from contents; handle zipped files
1092
1093 2002-01-27  Herbert Voss  <voss@lyx.org>
1094
1095         * GraphicsCacheItem.h: added Converting to the ImageStatus enum.
1096
1097 2002-01-17  John Levon  <moz@compsoc.man.ac.uk>
1098
1099         * ImageLoaderXPM.C: don't set XpmColorKey flag if we don't use it
1100
1101 2001-12-19  Jean-Marc Lasgouttes  <lasgouttes@freesurf.fr>
1102
1103         * GraphicsCacheItem.h: do not include <config.h> in header files
1104
1105 2001-09-21  Angus Leeming  <a.leeming@ic.ac.uk>
1106
1107         * ImageLoaderXPM.C (runImageLoader): If the pixmap contains a
1108         transparent colour, then set it to the colour of the background.
1109         Also take account of the monochrome, grayscale of color
1110         preferences option.
1111
1112 2001-09-20  Angus Leeming  <a.leeming@ic.ac.uk>
1113
1114         * GraphicsCacheItem.C (convertImage): only convert if "from" and "to"
1115         are different. Thus, don't delete the "to" if it's the original!
1116
1117 2001-09-01  John Levon  <moz@compsoc.man.ac.uk>
1118
1119         * ImageLoadXPM.C: remove setting of alloc colour mask,
1120           led to crash as we don't define a callback
1121
1122 2001-07-29  Baruch Even  <baruch@lyx.org>
1123
1124         * ImageLoaderXPM.C (runImageLoader): When loading agree to use non-exact
1125         colors with closeness of 10000.
1126
1127         * GraphicsCacheItem.C: Fixed a compilation bug introduced earlier.
1128
1129 2001-07-29  Baruch Even  <baruch@lyx.org>
1130
1131         * GraphicsCacheItem.C (findTargetFormat): Removed error dialog box,
1132         too annoying.
1133
1134 2001-07-23  Baruch Even  <baruch@lyx.org>
1135
1136         * GraphicsCacheItem.C (convertImage): Fixed a bug with regard to loading
1137         the image after conversion.
1138
1139 2001-07-17  Baruch Even  <baruch@lyx.org>
1140
1141         * GraphicsCacheItem.h:
1142         * GraphicsCacheItem.C: Shuffled things a bit to make it easier to switch
1143         from synchronous to asynchronous and to ease the coming changes.
1144
1145 2001-07-03  Jean-Marc Lasgouttes  <Jean-Marc.Lasgouttes@inria.fr>
1146
1147         * ImageLoaderXPM.C (runImageLoader): get display information from
1148         GUIRunTime.
1149
1150 2001-06-14  Angus Leeming  <a.leeming@ic.ac.uk>
1151
1152         * GraphicsCache.C:
1153         * GraphicsCacheItem.C:
1154         * ImageLoader.C:
1155         * ImageLoaderXPM.C: removed // -*- C++ -*- as first line.
1156
1157 2001-04-17  Lars Gullik Bjønnes  <larsbj@birdstep.com>
1158
1159         * GraphicsCache.h: inherit privately from noncopyable
1160         * ImageLoader.h: ditto
1161         * GraphicsCacheItem.h: ditto
1162
1163 2001-04-16  Allan Rae  <rae@lyx.org>
1164
1165         * ImageLoaderXPM.C (runImageLoader): #warning triggers an error on Sun
1166         CC 6.0 as an unrecognised preprocessor directive.  So ensure they're
1167         wrapped.
1168
1169 2001-04-02  Baruch Even  <baruch@lyx.org>
1170
1171         * GraphicsCacheItem.[Ch]: Changed to used the Converter class instead
1172         of hard coding ImageMagick.
1173
1174 2001-03-10  Baruch Even  <baruch@lyx.org>
1175
1176         * GraphicsCache.C: Style change from (*it).field to it->field
1177
1178 2001-03-15  Lars Gullik Bjønnes  <larsbj@trylle.birdstep.com>
1179
1180         * GraphicsCache.h: noncopyable is in namespace boost
1181         * ImageLoader.h: ditto
1182         * GraphicsCacheItem.h: ditto
1183
1184 2001-03-07  Baruch Even  <baruch@lyx.org>
1185
1186         * GraphicsCache.C (d-tor): Removed the assert, the assumption it carried
1187         was false and it's not needed anyhow since the shared_ptr's in the cache
1188         will destroy everything on exit.
1189
1190 2001-02-28  Baruch Even  <baruch@ev-en.org>
1191
1192         * GraphicsCache.h:
1193         * GraphicsCache.C: Changed the singleton pattern implementation, the
1194         former version "leaked" in the sense that it was not deallocated at
1195         program end.
1196
1197 2001-02-20  Baruch Even  <baruch@ev-en.org>
1198
1199         * GraphicsCache.C: Changed to use shared_ptr<GraphicsCacheItem>
1200         instead of a pure pointer.
1201
1202         * GraphicsCacheItem.[Ch]:
1203         * GraphicsCacheItem_pimpl.[Ch]: Collapsed them into GraphicsCacheItem,
1204         removed the reference counting that was inside. Also fixed a bug where
1205         a temporary file wouldn't get erased.
1206
1207         * ImageLoader.[Ch]: Changed the semantics of the image_ pointers usage.
1208         Ownership is now dropped when the caller requests the image_ pointer.
1209
1210 2001-02-20  Baruch Even  <baruch@ev-en.org>
1211
1212         * GraphicsCache.C: Cleared up the confusion on when and how it is
1213         emptied.
1214
1215         * GraphicsCacheItem.C: Indentation change.
1216
1217         * GraphicsCacheItem_pimpl.C: Fixed the loading logic so that it will
1218         figure correctly when the image has been loaded successfully.
1219
1220 2001-02-08  Jean-Marc Lasgouttes  <Jean-Marc.Lasgouttes@inria.fr>
1221
1222         * ImageLoader.C: add a "using" directive.
1223
1224         * ImageLoader.h: remove extra comma at the end of enum; add an
1225         std:: qualifier for vector.
1226
1227 2001-01-21  Baruch Even  <baruch@ev-en.org>
1228
1229         * GraphicsCacheItem.[Ch]: Changes due to the storage of width and
1230         height in the image itself and minor cleanups.
1231
1232         * GraphicsCacheItem_impl.[Ch]: Changes due to the switch to use a
1233         new ImageLoader class instead of the older Renderer class. This
1234         means change of responsibilities.