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