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