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