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