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