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