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