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