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