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