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