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