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