]> git.lyx.org Git - lyx.git/blob - src/graphics/ChangeLog
Ensure that the metrics data is used by the correct image!
[lyx.git] / src / graphics / ChangeLog
1 2002-07-06  Angus Leeming  <leeming@lyx.org>
2
3         * PreviewLoader.C: ensure that the metrics data is used by the
4         correct image!
5
6 2002-07-05  Angus Leeming  <leeming@lyx.org>
7
8         * PreviewImage.h:
9         * PreviewImage.C:
10         * PreviewLoader.h:
11         * PreviewLoader.C:
12         * PreviewMetrics.h:
13         * PreviewMetrics.C:
14         * Previews.h:
15         * Previews.C: new files. The previewed LaTeX snippet stuff.
16
17         * Makefile.am: add these files.
18
19 2002-07-05  Angus Leeming  <leeming@lyx.org>
20
21         * GraphicsLoader.h: whitespace.
22
23 2002-07-04  Lars Gullik Bjønnes  <larsbj@birdstep.com>
24
25         * GraphicsImage.[Ch]: newImage and loadableFormats changed to
26         boost::function from boost::signal.
27
28 2002-07-01  Jean-Marc Lasgouttes  <lasgouttes@freesurf.fr>
29
30         * GraphicsConverter.C (convert): do not use ChangeExtension
31         because to_file_base may contain a dot.
32
33 2002-06-28  Angus Leeming  <leeming@lyx.org>
34
35         * GraphicsCacheItem.[Ch]: refactor some of the more convoluted logic
36         by moving those SignalPtrs into the grfx::Image and grfx::Converter
37         classes where they really belong.
38         Use the Pimpl idiom to hide the class internals from public view.
39
40         * GraphicsTypes: remove the typedefs, leaving only the enums.
41
42         * GraphicsImage.h: now has a finishedLoading signal, as opposed to being
43         passed a reference to one in the load() method.
44
45         * GraphicsConverter.[Ch]: totally refactored. An instance of
46         grfx::Converter now represents a single conversion process.
47         Thus grfx::CachItem now has a grfx::Converter * that is set when the
48         conversion is initiated and destroyed on completion.
49
50         * GraphicsCache.[Ch]:
51         * GraphicsCacheItem.[Ch]:
52         * GraphicsConverter.[Ch]:
53         * GraphicsLoader.[Ch]: use the Pimpl idiom to hide the class internals
54         from public view.
55         Note that I have done this only after making the above changes,
56         so not only should we have a clean, minimal and well documented
57         interface to these classes in the header files, but the class internals
58         should be much clearer too.
59
60         * Renamed classes
61         grfx::GCache -> grfx::Cache,
62         grfx::GCacheItem -> grfx::CacheItem,
63         grfx::GConverter -> grfx::Converter,
64         grfx::GImage -> grfx::Image,
65         grfx::GImageXPM -> grfx::ImageXPM,
66         grfx::GParams -> grfx::Params.
67
68 2002-06-26  Angus Leeming  <leeming@lyx.org>
69
70         * GraphicsLoader.[Ch]: use boost::scoped_ptr in preference to
71         std::auto_ptr. Define an empty Loader d-tor out-of-line to ensure it
72         compiles.
73
74 2002-06-26  Angus Leeming  <leeming@lyx.org>
75
76         * GraphicsTypes.h: add "Ready" to the ImageStatus enum.
77         move the DisplayType enum out of grfx::GParams to here.
78
79         * GraphicsCacheItem.h: re-write preliminary description to reflect
80         current reality.
81
82         * GraphicsParams.[Ch]:
83         * GraphicsImageXPM.C (load, setPixmap): changes aassociated with moving
84         grfx::DisplayType out of grfx::GParams.
85
86         * GraphicsLoader.[Ch]: new files. Factor out the image loading stuff
87         that was in frontends/screen.C and insets/insetgraphics.C into a
88         single, easy-to-use class.
89
90         * Makefile.am: add these files.
91
92 2002-06-25  Angus Leeming  <leeming@lyx.org>
93
94         * GraphicsCache.[Ch]:
95         * GraphicsCacheItem.[Ch]:
96         * GraphicsTypes.h: rewrite the graphics cache to just load a graphics
97         file into memory. The cache no longer controls the generation of the
98         pixmap. Instead, it just emits a signal when the loading status of an
99         image changes.
100         The cache no longer stores InsetGraphics pointers and nor does it
101         assume responsibility for modifying an image (scaling, rotating etc).
102         Instead, that must now be performed elsewhere.
103
104 2002-06-19  Angus Leeming  <leeming@lyx.org>
105
106         * GraphicsConverter.C: add using std::endl directive.
107
108 2002-06-17  Herbert Voss  <voss@lyx.org>
109
110         * GraphicsCachItem.C: (findTargetFormat)return xpm-format as a
111         default when nothing different was found
112         (convertToDisplayFormat): handle zipped files in the right way and
113         choose always convert as a default converter when no other
114         userdefined was found
115
116         * GraphicsConverter.C: add more lyxerr comments and choose
117         convert when no other userdefined converter was found
118
119 2002-06-10  Herbert Voss  <voss@lyx.org>
120
121         * GraphicsImageXPM.C (convertTo7chars): get another special color
122         format from convert work in the right way
123
124 2002-06-12  John Levon  <moz@compsoc.man.ac.uk>
125
126         * GraphicsCache.C: use right colormap incantation
127
128 2002-06-12  John Levon  <moz@compsoc.man.ac.uk>
129
130         * GraphicsCache.C: use lyx_gui namespace
131
132         * GraphicsImageXPM.C: back down to using xforms
133           directly again
134
135 2002-06-07  Angus Leeming  <leeming@lyx.org>
136
137         Fixes needed to compile with Compaq cxx 6.5.
138         * GraphicsConverter.h: forward declare class ConvProcess.
139
140         * GraphicsImageXPM.C:
141         all c-library variables have been moved into namespace std.
142         Wrap using std::xyz declarations inside a #ifndef CXX_GLOBAL_CSTD block.
143
144 2002-06-06  Angus Leeming  <a.leeming@ic.ac.uk>
145
146         * GraphicsImageXPM.C (rotate): rotate in the same sense as xdvi!
147
148 2002-05-30  Lars Gullik Bjønnes  <larsbj@birdstep.com>
149
150         * GraphicsImageXPM.C: SigC to boot::signals changes.
151         (newImage): fix () bug when using new.
152
153 2002-05-29  Lars Gullik Bjønnes  <larsbj@birdstep.com>
154
155         * switch from SigC signals to boost::signals.
156
157 2002-05-29  André Pönitz <poenitz@gmx.net>
158
159         * GraphicsParam.C: remove unneeded #include, move vomment
160
161 2002-05-28  André Pönitz <poenitz@gmx.net>
162
163         * GraphicsParam.[Ch]: move inset related stuff to inset/insetgraphics
164
165 2002-05-24  John Levon  <moz@compsoc.man.ac.uk>
166
167         * GraphicsImageXPM.C: ColorHandler moved
168
169 2002-05-24  Juergen Vigna  <jug@sad.it>
170
171         * GraphicsCache.h:
172         * GraphicsImage.h: include LString.h first.
173
174 2002-05-22  Lars Gullik Bjønnes  <larsbj@birdstep.com>
175
176         * GraphicsCacheItem.h: use more specific smart_ptr header.
177         * GraphicsTypes.h: ditto
178         * GraphicsImage.h: ditto
179         * GraphicsConverter.h: ditto
180
181 2002-04-28  John Levon  <moz@compsoc.man.ac.uk>
182
183         * GraphicsImageXPM.C: understand convert's use of "opaque"
184           as a colour name
185
186 2002-04-19  Marco Morandini <morandini@aero.polimi.it>
187
188         * GraphicsCache.[Ch] (loadableFormats): new method. A wrapper for
189         GImage::loadableFormats() that ensures that the signal is connected
190         to the derived class' method.
191
192 2002-04-18  Lars Gullik Bjønnes  <larsbj@birdstep.com>
193
194         * GraphicsImageXPM.C (convertTo7chars): drop all conversions and
195         only work on the string.
196
197 2002-04-17  Angus Leeming  <a.leeming@ic.ac.uk>
198
199         * GraphicsImageXPM.C (Data::reset): Fix the loading of xpm files by
200         the simple image loader when it encounters colour strings like
201         #rrrrggggbbbb.
202
203 2002-04-16  Angus Leeming  <a.leeming@ic.ac.uk>
204
205         * GraphicsCacheItem.C (convertToDisplayFormat):
206         * GraphicsConverter.C (build_script): remove the Alerts when things go
207         wrong as the inset displays the message anyway. Moreover, Alert seems
208         pretty temperamemtal at the moment.
209
210 2002-04-16  Rob Lahaye  <lahaye@users.sourceforge.net>
211         * GraphicsImageXPM.C: fix clipping for boundingbox y-coordinates
212
213 2002-04-08  Angus Leeming  <a.leeming@ic.ac.uk>
214
215         * GraphicsCacheItem.C (findTargetFormat): fix bug waiting to bite:
216         a reference to a temp object that's going out of scope...
217
218 2002-04-09  Herbert Voss  <voss@lyx.org>
219
220         * GraphicsParams.C (BoundingBox c-tor): fix rounding errors by using
221         LyXLength::inBP instead of inPixels.
222
223 2002-04-10  Herbert Voss  <voss@perce.de>
224
225         * GraphicsCache.[Ch]:
226         * GraphicsCacheItem.[Ch]: add width/height functions from Angus
227         to read the "Bounding Box" from non (e)ps files.
228
229 2002-04-08  Angus Leeming  <a.leeming@ic.ac.uk>
230
231         * GraphicsParams.C (c-tor): if clipping, then check the Bounding Box of
232         the EPS file too, to ensure that the clipped Bounding Box is relative
233         to the original. (From Herbert.)
234
235 2002-04-04  Angus Leeming  <a.leeming@ic.ac.uk>
236
237         * GraphicsParams.C (BoundingBox c-tor): ensure that the member
238         variables are initialised. Clean-up parsing of the string (with thanks
239         to Herbert.)
240
241 2002-03-26  Angus Leeming  <a.leeming@ic.ac.uk>
242
243         * GraphicsCacheItem.C (convertToDisplayFormat): don't launch that Alert
244         if the file can't be found.
245
246         * GraphicsParams.h (c-tor): remove string() as default argument.
247
248         * GraphicsCacheItem.C: a couple of changes as a result.
249
250 2002-03-22  Angus Leeming  <a.leeming@ic.ac.uk>
251
252         * GraphicsCache.[Ch] (update): now passed filepath to determine absolute
253         path to graphics file.
254
255         * GraphicsParams.[Ch] (c-tor): now passed filepath.
256
257 2002-03-21  Lars Gullik Bjønnes  <larsbj@birdstep.com>
258
259         * most files: ws cleanup
260
261         * Makefile.am: remove ld -r stuff
262
263 2002-03-20  Lars Gullik Bjønnes  <larsbj@birdstep.com>
264
265         * Makefile.am: special rules if partial linking
266
267 2002-03-14  Angus Leeming  <a.leeming@ic.ac.uk>
268
269         * GraphicsCache.C: use Lars' preferred idiom for a for-loop.
270
271 2002-03-11  Lars Gullik Bjønnes  <larsbj@birdstep.com>
272
273         * GraphicsConverter.[Ch] (converted): make first arg const ref.
274
275         * GraphicsCacheItem.h: doxy change
276
277         * GraphicsCacheItem.C: ws change
278
279 2002-03-05  Angus Leeming  <a.leeming@ic.ac.uk>
280
281         * Makefile.am: if there is no image loading class leveraging the power
282         of the appropriate gui library, then compile the basic alternative
283         found in GraphicsImageXPM.[Ch].
284
285 2002-03-04  Angus Leeming  <a.leeming@ic.ac.uk>
286
287         * GraphicsCache.C: change associated with move of initialiseGraphics
288         to GUIRuntime.
289
290 2002-02-28  Angus Leeming  <a.leeming@ic.ac.uk>
291
292         * GraphicsParams.[Ch]:
293         * GraphicsImage.C:
294         * GraphicsImageXPM.C: properly resolve more warnings about comparison
295         between signed and unsigned integer expressions.
296
297         * Makefile.am: add GraphicsTypes.h which I'd carelessly left out.
298
299         * GraphicsCache.C: move connections to the GImage-derived classes to
300         the frontends.
301
302         * GraphicsImageXPM.C (copy c-tor): don't copy pixmap.
303
304         * GraphicsCacheItem.C (findTargetFormat): if we can load direct without
305         conversion, then do that.
306
307 2002-02-27  Angus Leeming  <a.leeming@ic.ac.uk>
308
309         * GraphicsCache.C: improve commentary to graphicsInit and where it
310         should really go.
311
312         * GraphicsImageXPM.C (~Data, free_color_table): resolve the crash
313         that became a memory leak properly. (Let the shared_c_ptr free the
314         color table.)
315         (reset, mapcolor): tidy up and introduce a work around for XPM files
316         with crappy color entries. Print out a nice friendly message on what's
317         gone wrong and how to resolve it properly.
318
319 2002-02-27  Angus Leeming  <a.leeming@ic.ac.uk>
320
321         * GraphicsImageXPM.[Ch]: more rigorous use of types (signed/unsigned).
322         (Data d-tor): introduce memory leak temporarily, to "fix" a crash
323         in free_color_table.
324         (unique_color_string): use the correct string c-tor.
325
326 2002-02-15  Angus Leeming  <a.leeming@ic.ac.uk>
327
328         * ImageLoader.[Ch]:
329         * ImageLoaderXPM.[Ch]: removed.
330
331         * GraphicsConverter.[Ch]:
332         * GraphicsImage.[Ch]:
333         * GraphicsImageXPM.[Ch]:
334         * GraphicsParams.[Ch]:
335         * GraphicsTypes.h: new files.
336
337         * All files. A total re-write of the graphics cache. The cache now
338         supports asynchronous file conversion and file loading. Images
339         can be cropped, rotated and scaled for display on the LyX screen.
340         The old LyXImage and ImageLoader have been combined in a new class
341         GImage. Ditto, ImageLoaderXPM's functionality has been moved into
342         GImageXPM.
343
344 2002-02-07  Herbert Voss  <voss@lyx.org>
345
346         * GraphicsCacheItem.C: use unzipFile() from support/filetools
347
348 2002-01-31  Herbert Voss  <voss@lyx.org>
349
350         * GraphicsCacheItem.h: handle filetype without the file extension;
351         getting type from contents; handle zipped files
352
353 2002-01-27  Herbert Voss  <voss@lyx.org>
354
355         * GraphicsCacheItem.h: added Converting to the ImageStatus enum.
356
357 2002-01-17  John Levon  <moz@compsoc.man.ac.uk>
358
359         * ImageLoaderXPM.C: don't set XpmColorKey flag if we don't use it
360
361 2001-12-19  Jean-Marc Lasgouttes  <lasgouttes@freesurf.fr>
362
363         * GraphicsCacheItem.h: do not include <config.h> in header files
364
365 2001-09-21  Angus Leeming  <a.leeming@ic.ac.uk>
366
367         * ImageLoaderXPM.C (runImageLoader): If the pixmap contains a
368         transparent colour, then set it to the colour of the background.
369         Also take account of the monochrome, grayscale of color
370         preferences option.
371
372 2001-09-20  Angus Leeming  <a.leeming@ic.ac.uk>
373
374         * GraphicsCacheItem.C (convertImage): only convert if "from" and "to"
375         are different. Thus, don't delete the "to" if it's the original!
376
377 2001-09-01  John Levon  <moz@compsoc.man.ac.uk>
378
379         * ImageLoadXPM.C: remove setting of alloc colour mask,
380           led to crash as we don't define a callback
381
382 2001-07-29  Baruch Even  <baruch@lyx.org>
383
384         * ImageLoaderXPM.C (runImageLoader): When loading agree to use non-exact
385         colors with closeness of 10000.
386
387         * GraphicsCacheItem.C: Fixed a compilation bug introduced earlier.
388
389 2001-07-29  Baruch Even  <baruch@lyx.org>
390
391         * GraphicsCacheItem.C (findTargetFormat): Removed error dialog box,
392         too annoying.
393
394 2001-07-23  Baruch Even  <baruch@lyx.org>
395
396         * GraphicsCacheItem.C (convertImage): Fixed a bug with regard to loading
397         the image after conversion.
398
399 2001-07-17  Baruch Even  <baruch@lyx.org>
400
401         * GraphicsCacheItem.h:
402         * GraphicsCacheItem.C: Shuffled things a bit to make it easier to switch
403         from synchronous to asynchronous and to ease the coming changes.
404
405 2001-07-03  Jean-Marc Lasgouttes  <Jean-Marc.Lasgouttes@inria.fr>
406
407         * ImageLoaderXPM.C (runImageLoader): get display information from
408         GUIRunTime.
409
410 2001-06-14  Angus Leeming  <a.leeming@ic.ac.uk>
411
412         * GraphicsCache.C:
413         * GraphicsCacheItem.C:
414         * ImageLoader.C:
415         * ImageLoaderXPM.C: removed // -*- C++ -*- as first line.
416
417 2001-04-17  Lars Gullik Bjønnes  <larsbj@birdstep.com>
418
419         * GraphicsCache.h: inherit privately from noncopyable
420         * ImageLoader.h: ditto
421         * GraphicsCacheItem.h: ditto
422
423 2001-04-16  Allan Rae  <rae@lyx.org>
424
425         * ImageLoaderXPM.C (runImageLoader): #warning triggers an error on Sun
426         CC 6.0 as an unrecognised preprocessor directive.  So ensure they're
427         wrapped.
428
429 2001-04-02  Baruch Even  <baruch@lyx.org>
430
431         * GraphicsCacheItem.[Ch]: Changed to used the Converter class instead
432         of hard coding ImageMagick.
433
434 2001-03-10  Baruch Even  <baruch@lyx.org>
435
436         * GraphicsCache.C: Style change from (*it).field to it->field
437
438 2001-03-15  Lars Gullik Bjønnes  <larsbj@trylle.birdstep.com>
439
440         * GraphicsCache.h: noncopyable is in namespace boost
441         * ImageLoader.h: ditto
442         * GraphicsCacheItem.h: ditto
443
444 2001-03-07  Baruch Even  <baruch@lyx.org>
445
446         * GraphicsCache.C (d-tor): Removed the assert, the assumption it carried
447         was false and it's not needed anyhow since the shared_ptr's in the cache
448         will destroy everything on exit.
449
450 2001-02-28  Baruch Even  <baruch@ev-en.org>
451
452         * GraphicsCache.h:
453         * GraphicsCache.C: Changed the singleton pattern implementation, the
454         former version "leaked" in the sense that it was not deallocated at
455         program end.
456
457 2001-02-20  Baruch Even  <baruch@ev-en.org>
458
459         * GraphicsCache.C: Changed to use shared_ptr<GraphicsCacheItem>
460         instead of a pure pointer.
461
462         * GraphicsCacheItem.[Ch]:
463         * GraphicsCacheItem_pimpl.[Ch]: Collapsed them into GraphicsCacheItem,
464         removed the reference counting that was inside. Also fixed a bug where
465         a temporary file wouldn't get erased.
466
467         * ImageLoader.[Ch]: Changed the semantics of the image_ pointers usage.
468         Ownership is now dropped when the caller requests the image_ pointer.
469
470 2001-02-20  Baruch Even  <baruch@ev-en.org>
471
472         * GraphicsCache.C: Cleared up the confusion on when and how it is
473         emptied.
474
475         * GraphicsCacheItem.C: Indentation change.
476
477         * GraphicsCacheItem_pimpl.C: Fixed the loading logic so that it will
478         figure correctly when the image has been loaded successfully.
479
480 2001-02-08  Jean-Marc Lasgouttes  <Jean-Marc.Lasgouttes@inria.fr>
481
482         * ImageLoader.C: add a "using" directive.
483
484         * ImageLoader.h: remove extra comma at the end of enum; add an
485         std:: qualifier for vector.
486
487 2001-01-21  Baruch Even  <baruch@ev-en.org>
488
489         * GraphicsCacheItem.[Ch]: Changes due to the storage of width and
490         height in the image itself and minor cleanups.
491
492         * GraphicsCacheItem_impl.[Ch]: Changes due to the switch to use a
493         new ImageLoader class instead of the older Renderer class. This
494         means change of responsibilities.