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