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