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