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