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