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