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