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