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