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