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