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