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