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