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