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