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