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