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