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