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