]> git.lyx.org Git - lyx.git/blob - src/graphics/ChangeLog
Rename ascii to plaintext and LatexRunParams to OutputParams.
[lyx.git] / src / graphics / ChangeLog
1 2003-11-05  José Matos  <jamatos@lyx.org>
2
3         * PreviewLoader.C (dumpPreamble): rename ascii to plaintext
4         and LatexRunParams to OutputParams.
5
6 2003-10-22  Angus Leeming  <leeming@lyx.org>
7
8         * PreviewImage.C (statusChanged): always pass on the signal, not just
9         when the preview is ready for display.
10
11 2003-10-22  Angus Leeming  <leeming@lyx.org>
12
13         * GraphicsConverter.C (Impl c-tor): add a warning message if the file
14         to contain the conversion script cannot be opened.
15
16 2003-10-22  Angus Leeming  <leeming@lyx.org>
17
18         * PreviewLoader.C (startLoading): do nothing if the buffer is not yet
19         loaded.
20
21 2003-10-13  Angus Leeming  <leeming@lyx.org>
22
23         * GraphicsTypes.[Ch] (setDisplayTranslator): removed.
24         Make displayTranslator a function,
25
26 2003-10-10  Angus Leeming  <leeming@lyx.org>
27
28         * PreviewedInset.[Ch]: removed.
29
30         * Makefile.am: remove PreviewedInset.[Ch].
31
32 2003-10-09  Angus Leeming  <leeming@lyx.org>
33
34         * PreviewedInset.[Ch] (previewReady): remove the side effects.
35         Now simply reports whether the preview is ready.
36
37 2003-10-09  Angus Leeming  <leeming@lyx.org>
38
39         * PreviewedInset.[Ch]: move PreviewedInset out of namespace lyx::graphics.
40         Remove the inset and view member functions.
41         Add a new connect member function and preview_ready_signal_ member
42         variable, to enable the class to tell an arbirary connectee that the
43         preview is ready.
44
45 2003-10-09  Angus Leeming  <leeming@lyx.org>
46
47         * PreviewedInset.[Ch] (removePreview, previewReady): these functions
48         are now passed a 'Buffer const &', eliminating most of the remaining
49         need for PreviewedInset to use a BufferView cache.
50
51 2003-10-07  Martin Vermeer  <martin.vermeer@hut.fi>
52
53         * GraphicsCache.h:
54         * PreviewImage.h: add <string> and other small fixes to make
55         Lars' std::string patch compile with STLport.
56
57 2003-09-29  Angus Leeming  <leeming@lyx.org>
58
59         * GraphicsParams.[Ch] (asString): removed. Replaced with
60         operator<<(std::ostream &, BoundingBox const &).
61
62 2003-09-25  Angus Leeming  <leeming@lyx.org>
63
64         * GraphicsParams.[Ch] (asString): new member function.
65
66 2003-09-21  Lars Gullik Bjønnes  <larsbj@gullik.net>
67
68         * Previews.C (Previews): fix new bug
69
70         * GraphicsCache.C (Cache): fix new bug
71
72 2003-09-19  Angus Leeming  <leeming@lyx.org>
73
74         * PreviewedInset.[Ch] (generatePreview, previewWanted): now passed
75         a 'Buffer const &' argument.
76
77 2003-09-18  Angus Leeming  <leeming@lyx.org>
78
79         * PreviewedInset.C (latexString): add a Buffer const & arg.
80         * PreviewedInset.C (addPreview): pass the buffer to latexString.
81
82 2003-09-16  Angus Leeming  <leeming@lyx.org>
83
84         * PreviewedInset.[Ch] (c-tor) move out of line.
85         (d-tor): make private.
86         (inset): return a const reference rather than a non-const pointer.
87
88 2003-09-16  Angus Leeming  <leeming@lyx.org>
89
90         * GraphicsImage.h: separate interface from implementation. Make all the
91         pure virtual functions private.
92
93 2003-09-16  Angus Leeming  <leeming@lyx.org>
94
95         * PreviewLoader.C: add #include "LColor.h".
96
97 2003-09-15  Lars Gullik Bjønnes  <larsbj@gullik.net>
98
99         * GraphicsConverter.C
100         * PreviewLoader.C: remove usage of STRCONV
101
102 2003-09-14  Angus Leeming  <leeming@lyx.org>
103
104         * PreviewLoader.C (remove): consider all InProgressProcesses when
105         ascertaining which ones to remove from the list, not every other one.
106
107 2003-09-09  Lars Gullik Bjønnes  <larsbj@lyx.org>
108
109         * GraphicsCacheItem.C: change Assert to BOOST_ASSERT
110         * Previews.C: ditto
111
112 2003-09-08  Angus Leeming  <leeming@lyx.org>
113
114         * GraphicsImage.C:
115         * GraphicsParams.C:
116         * PreviewLoader.C: remove redundant using directives.
117
118 2003-09-07  Angus Leeming  <leeming@lyx.org>
119
120         * GraphicsTypes.h:
121         * Previews.h: remove #include "support/std_string.h".
122
123 2003-09-06  Angus Leeming  <leeming@lyx.org>
124
125         * PreviewedInset.C: add #include "insets/inset.h"
126
127 2003-09-05  Angus Leeming  <leeming@lyx.org>
128
129         * *.C: strip out redundant #includes. (26 in total.)
130
131 2003-09-04  Angus Leeming  <leeming@lyx.org>
132
133         * LoaderQueue.C (get):
134
135 2003-09-04  Angus Leeming  <leeming@lyx.org>
136
137         * GraphicsCache.C:
138         * GraphicsCacheItem.C:
139         * GraphicsConverter.C:
140         * PreviewImage.C:
141         * PreviewLoader.C:
142         * PreviewedInset.C:
143         * Previews.C: 'namespace support = lyx::support' rather than
144         'using lyx::support'.
145
146         * Previews.h: cleaned up some comments.
147
148         * LoaderQueue.[Ch]: move #include "GraphicsCacheItem.h" into the .C file.
149
150 2003-07-26  Jean-Marc Lasgouttes  <lasgouttes@lyx.org>
151
152         * GraphicsTypes.h: do not declare displayTranstor here (and remove
153         extra include)
154
155 2003-07-27  José Matos  <jamatos@fep.up.pt>
156
157         * PreviewLoader.C (Impl::dumpPreamble): comply with makeLaTeXFile
158         argument change.
159
160 2003-07-21  Angus Leeming  <leeming@lyx.org>
161
162         * GraphicsCache.h:
163         * GraphicsCacheItem.[Ch]:
164         * GraphicsParams.h:
165         * PreviewLoader.h:
166         * PreviewedInset.[Ch]:
167         * Previews.h: use namespace lyx::graphics rather than grfx shortcut.
168
169 2003-07-04  Lars Gullik Bjønnes  <larsbj@gullik.net>
170
171         * Change namespace grfx to lyx::graphics.
172
173 2003-07-01  Lars Gullik Bjønnes  <larsbj@gullik.net>
174
175         * introcude namespace lyx::support
176
177 2003-06-04  Angus Leeming  <leeming@lyx.org>
178
179         * GraphicsLoader.C (Loader copy c-tor): make it work as expected. ;-)
180         (operator=): if it has a copy c-tor, it should have this too.
181
182 2003-06-03  Angus Leeming  <leeming@lyx.org>
183
184         * GraphicsLoader.[Ch] (Loader): add copy constructor.
185
186 2003-05-23  Angus Leeming  <leeming@lyx.org>
187
188         * PreviewLoader.C (dumpPreamble): rename fragile as moving_arg.
189
190 2003-05-22  Angus Leeming  <leeming@lyx.org>
191
192         * PreviewLoader.C (dumpPreamble): no longer pass a free_spacing arg to
193         the inset::latex method.
194
195 2003-05-22  Angus Leeming  <leeming@lyx.org>
196
197         * PreviewLoader.C (dumpPreamble): no longer pass a fragile arg to
198         the inset::latex method.
199
200 2003-05-22  Angus Leeming  <leeming@lyx.org>
201
202         * PreviewLoader.C (dumpPreamble): the 'nice' param passed to
203         makeLaTeXFile is now encapsulated within runparams.
204
205 2003-05-22  Angus Leeming  <leeming@lyx.org>
206
207         * PreviewLoader.C (dumpPreamble):
208         pass around a LatexRunParams parameter.
209
210 2003-05-13 André Pönitz <poenitz@gmx.net>
211
212         * GraphicsConverter.C:
213         * PreviewLoader.C: use tostr from own header
214
215 2003-05-12 André Pönitz <poenitz@gmx.net>
216
217         * PreviewLoader.C:  boost::format -> bformat
218
219 2003-04-15  Angus Leeming  <leeming@lyx.org>
220
221         * GraphicsConverter.C: #include lstrings.h.
222
223 2003-02-28  Alfredo Braunstein <abraunst@libero.it>
224
225         * GraphicsConverter.C
226         * PreviewLoader.C: added #include "format.h"
227
228 2003-02-26  Angus Leeming  <leeming@lyx.org>
229
230         * PreviewedInset.[Ch]: strip out the caching of the BufferView and
231         use the cache of the parent inset instead.
232
233         * PreviewLoader.C (startLoading): Prevent a crash if the user is
234         not using a tmp directory.
235
236 2003-02-26  Alfredo Braunstein  <abraunst@libero.it>
237
238         * GraphicsLoader.[Ch],
239         * PreviewImage.[Ch],
240         * PreviewedInset.C: Removed unneeded list of owner insets
241
242 2003-02-25  Alfredo Braunstein  <abraunst@libero.it>
243
244         * GraphicsConverter (startConversion): add the call to
245         ForkedCallQueue::add
246
247         * GraphicsLoader.[Ch],
248         * PreviewImage.[Ch],
249         * PreviewedInset.C: Removed unneeded BufferView
250
251 2003-02-25  Alfredo Braunstein  <abraunst@libero.it>
252
253         * LoaderQueue.[Ch]: a simplification of the code, eliminated
254         the unneeded input bucket.
255
256         * GraphicsCacheItem.C (imageConverted): move warning inside the
257         !success block.
258
259 2003-02-25  Alfredo Braunstein  <abraunst@libero.it>
260
261         * PreviewLoader.C (FindFirst): use ==, not < with std::find.
262
263 2003-02-21  Alfredo Braunstein  <abraunst@libero.it>
264
265         * LoaderQueue.[Ch] (setPriority): added
266
267         * PreviewLoader.C (finishedGenerating): reversed the loading order so
268         first images get 'touched' last, and so load first.
269
270 2003-02-20  Alfredo Braunstein  <abraunst@libero.it>
271
272         * LoaderQueue.[Ch]: added. Implements a service queue that loads
273         images in background
274         * GraphicsSupport.[Ch]: removed
275         * Makefile.am: the changes above
276         * GraphicsLoader.C: use the loading queue
277
278 2003-01-21  Angus Leeming  <leeming@lyx.org>
279
280         * PreviewLoader.C (dumpPreamble): ensure that \lyxlock does not prevent
281         previews from being generated.
282
283 2003-01-13  Angus Leeming  <leeming@lyx.org>
284
285         * GraphicsCacheItem.C (findTargetFormat): define the default conversion
286         format to be PPM not XPM.
287
288 2002-12-17  Lars Gullik Bjønnes  <larsbj@gullik.net>
289
290         * Makefile.am (EXTRA_DIST): remove variable
291
292 2002-12-13  Angus Leeming  <leeming@lyx.org>
293
294         * GraphicsImageXPM.[Ch]: removed.
295
296         * Makefile.am: associated change.
297
298 2002-12-01  Lars Gullik Bjønnes  <larsbj@gullik.net>
299
300         * several files: ws changes
301
302 2002-11-21  Angus Leeming  <leeming@lyx.org>
303
304         * GraphicsConverter.C (build_script, move_file):
305         Don't use "if [ $? -ne 0 ]; then..."
306
307 2002-11-04  Lars Gullik Bjønnes  <larsbj@gullik.net>
308
309         * PreviewLoader.C (IncrementedFileName): STRCONV
310         (startLoading): ditto
311
312         * GraphicsConverter.C (Impl): STRCONV
313         (move_file): ditto
314
315         * GraphicsTypes.C: include config.h
316
317 2002-10-25  Angus Leeming  <leeming@lyx.org>
318
319         * GraphicsConverter.C (Impl::converted)
320         * PreviewLoader.C (Impl::finishedGenerating): no longer receives a
321         string as first arg, reflecting change in ForkedCall interface.
322
323         * PreviewLoader.C: use pid rather than command as identifier in
324         InProgress map.
325
326 2002-10-18  Angus Leeming  <leeming@lyx.org>
327
328         * GraphicsCacheItem.C (findTargetFormat): add debug message.
329
330 2002-09-24  Lars Gullik Bjønnes  <larsbj@gullik.net>
331
332         * Makefile.am (INCLUDES): loose SIGC_INCLUDES
333
334 2002-09-10  Jean-Marc Lasgouttes  <Jean-Marc.Lasgouttes@inria.fr>
335
336         * GraphicsConverter.C (build_script): do not use ChangeExtension
337         on a base name
338         (Impl): ditto
339
340 2002-09-05  Angus Leeming  <leeming@lyx.org>
341
342         * all files: modify the headers as discussed on the list.
343
344 2002-09-04  Angus Leeming  <leeming@lyx.org>
345
346         * PreviewLoader.C (startLoading): pass the desired output format to the
347         conversion script.
348
349 2002-09-04  Angus Leeming  <leeming@lyx.org>
350
351         * PreviewLoader.C: remove this ndigits stuff as an unnecessary extra.
352
353 2002-09-03  Angus Leeming  <leeming@lyx.org>
354
355         * PreviewLoader.C: fix crash reported by Norbert Koksch when
356         generating more than 999 preview snippets. Use filenames with 5 digit
357         numbers, not 3, in the first instance, although more general code is
358         commented out. I don't suppose /anyone/ has 100000 formulae in one
359         document...
360
361 2002-09-03  Angus Leeming  <leeming@lyx.org>
362
363         * PreviewLoader.C: activate #ifdef USING_NEW_PREVIEW_STY code.
364
365 2002-09-03  Angus Leeming  <leeming@lyx.org>
366
367         * GraphicsConverter.C (Impl c-tor): remove lyxpreview2xpm cruft.
368
369 2002-09-03  Martin Vermeer  <martin.vermeer@hut.fi>
370
371         * GraphicsConverter.C (Impl c-tor): "hide" crash by prefixing
372         convertDefault command with "sh ".
373
374 2002-08-28  Rob Lahaye  <lahaye@snu.ac.kr>
375
376         * GraphicsImage.C: small style fix to width/height setting.
377
378         * GraphicsTypes.h: have a displayTranslator here.
379
380         * Makefile.am:
381         * GraphicsTypes.C: new file added for the setDisplayTranslator();
382
383 2002-08-23  Rob Lahaye  <lahaye@snu.ac.kr>
384
385         * GraphicsImage.C:
386         * GraphicsParams.[Ch]: remove keepLyXAspectRatio, width and height
387         because this input has gone from the graphics dialog.
388
389         * GraphicsTypes.h: add enum DisplayType DefaultDisplay
390
391 2002-08-20  Lars Gullik Bjønnes  <larsbj@birdstep.com>
392
393         * GraphicsImageXPM.h: inlcude boost/shared_ptr.hpp, remove include
394         for support/smart_ptr.h, switch to boost smart ptr.
395
396         * GraphicsImageXPM.C: reorder includes, include boost/bind.hpp
397         (~Data): let the smart_ptr handle cleanup
398         (reset): use nifty 3rd arg
399         (resetData): ditto
400         (free_color_table): free the table manually
401
402 2002-08-09  Angus Leeming  <leeming@lyx.org>
403
404         * PreviewLoader.C (dumpPreamble): pass Buffer::filePath() to
405         Buffer::makeLaTeXFile() so that LaTeX can find \input files because
406         input@path is now set correctly.
407
408 2002-08-06  Angus Leeming  <leeming@lyx.org>
409
410         * PreviewLoader.C: add support for preview.sty 0.73 (currently
411         #ifdef-ed out, awaiting the formal release).
412
413         * PreviewedInset.[Ch] (removePreview): new method. Useful if previewing
414         the contents of a file that has changed.
415
416 2002-08-05  Angus Leeming  <leeming@lyx.org>
417
418         * PreviewLoader.C (dumpPreamble): add lyx to the list of options output
419         to preview.sty. Works only for versions of preview.sty > 0.72b but
420         doesn't hurt earlier versions. Allows me to test the new parsing of
421         LyX-specific data from the generated log file.
422
423 2002-08-02  Angus Leeming  <leeming@lyx.org>
424
425         * GraphicsLoader.C: cache the BufferView as a weak_ptr.
426
427         * PreviewLoader.[Ch] (buffer): new method, returning the owner.
428         (add): don't add empty snippets.
429
430         * PreviewedInset.[Ch]: cache the BufferView as a weak_ptr.
431         (view, setView): access to to the cache_.
432
433 2002-08-02  Angus Leeming  <leeming@lyx.org>
434
435         * PreviewedInset.[Ch]: cache the LaTeX snippet.
436
437 2002-08-01  Angus Leeming  <leeming@lyx.org>
438
439         * PreviewedInset.[Ch]: new files. An abstract base class that can help
440         insets to generate previews.
441         The daughter class must instantiate three small methods.
442         The Inset would own an instance of this daughter class and invoke it
443         as necessary. For example, mathd/formula.C gets previews at the cost
444         of 15 or so lines of code.
445
446         * Makefile.am: add PreviewedInset.[Ch].
447
448         * PreviewLoader.C (add): add debug message.
449
450         * Previews.C (generateBufferPreviews): remove if-block from loop.
451
452 2002-07-29  Lars Gullik Bjønnes  <larsbj@gullik.net>
453
454         * PreviewLoader.C (setFontScalingFactor): strip,frontStrip ->
455         trim,ltrim,rtrim
456         (setAscentFractions): ditto
457
458 2002-07-28  Lars Gullik Bjønnes  <larsbj@gullik.net>
459
460         * PreviewLoader.C (setAscentFractions): modify because of strip
461         changes
462
463 2002-07-22  Lars Gullik Bjønnes  <larsbj@birdstep.com>
464
465         * GraphicsConverter.C (build_script): take a ostream as a more
466         general argument than ostringstream.
467
468 2002-07-22  Herbert Voss  <voss@lyx.org>
469
470         * GraphicsConverter.C: get the "default converter" run again
471
472 2002-07-21  Jean-Marc Lasgouttes  <lasgouttes@freesurf.fr>
473
474         * PreviewLoader.C: use BufferParams::getLyXTextClass
475
476 2002-07-21  Herbert Voss  <voss@lyx.org>
477
478         * GraphicsImage.C: get the LyXAspectRatio run.
479
480         * GraphicsParams.[Ch]: add bool keepLyXXAspectRatio
481
482 2002-07-20  Jean-Marc Lasgouttes  <lasgouttes@freesurf.fr>
483
484         * PreviewLoader.C (startLoading): pass an interger as resolution
485         to the lyxpreview converter
486
487         * GraphicsParams.C: include <cstdlib>
488
489 2002-07-19  Jean-Marc Lasgouttes  <lasgouttes@freesurf.fr>
490
491         * PreviewLoader.C (startLoading): use LibScriptSearch to find the
492         preview converter script
493
494 2002-07-18  Jean-Marc Lasgouttes  <lasgouttes@freesurf.fr>
495
496         * GraphicsCacheItem.C (reset): use erase() instead of clear() for
497         strings
498
499 2002-07-18  Angus Leeming  <leeming@lyx.org>
500
501         * GraphicsCacheItem.[Ch]: add a FileMonitor variable to the the Impl
502         class.
503         (startMonitoring, monitoring, checksum): new methods to interact with
504         the FileMonitor.
505
506         * GraphicsLoader.[Ch] (startMonitoring, monitoring, checksum): new
507         methods invoking the CacheItem methods of the same name.
508         (resetFile): if monitoring and the file changes, start monitoring this
509         new file.
510
511 2002-07-17  Jean-Marc Lasgouttes  <lasgouttes@freesurf.fr>
512
513         * Makefile.am: remove FileMonitor.[Ch]
514
515 2002-06-17  Herbert Voss  <voss@lyx.org>
516
517         * GraphicsCachItem.C (findTargetFormat): remove the speciell case
518         for old ps-files (Garst). It's now handled by defining a converter and
519         disabling the ps-support of xforms.
520
521 2002-07-17  Angus Leeming  <leeming@lyx.org>
522
523         Be true to the Pimpl idiom, moving all signals into the respective
524         Impl classes and defining methods to connect them to an outside slot.
525         Const-ify all visible class methods as they act only on a const pimpl_.
526
527         * GraphicsCache.[Ch] (add, remove): const-ify.
528
529         * GraphicsCacheItem.[Ch] (startLoading): const-ify.
530         (statusChanged): move the signal into the Impl class.
531         (connect): new method, enabling a listener to connect to this signal.
532
533         * GraphicsConverter.[Ch]: (startConversion): const-ify.
534         (finishedConversion): move the signal into the Impl class.
535         (connect): new method, enabling a listener to connect to this signal.
536
537         * GraphicsLoader.[Ch] (reset, startLoading): const-ify.
538         (statusChanged): move the signal into the Impl class.
539         (connect): new method, enabling a listener to connect to this signal.
540
541         * PreviewLoader.[Ch] (add, remove, startLoading): const-ify.
542         (imageReady): move the signal into the Impl class.
543         (connect): new method, enabling a listener to connect to this signal.
544         (emitSignal): new method, enabling PreviewImage to tell the outside
545         world that the file has been loaded into memory.
546
547         * Previews.[Ch] (loader, removeLoader, generateBufferPreviews):
548         const-ify.
549
550         * GraphicsCache.C:
551         * GraphicsCacheItem.C:
552         * GraphicsConverter.[Ch]:
553         * GraphicsImage.h:
554         * GraphicsImageXPM.C:
555         * GraphicsLoader.C:
556         * PreviewLoader.[Ch]: whitespace clean-up.
557
558 2002-07-16  Jean-Marc Lasgouttes  <lasgouttes@freesurf.fr>
559
560         * PreviewLoader.C (setConverter): remove unused variable
561
562         * GraphicsImageXPM.C (isDrawable): implement
563         (setPixmap): the opaque color is black, not white
564
565 2002-07-15  Jean-Marc Lasgouttes  <lasgouttes@freesurf.fr>
566
567         * GraphicsImageXPM.C (color_none_id):
568         (contains_color_none): use ascii_lowercase instead of lowercase
569
570 2002-07-16  Angus Leeming  <leeming@lyx.org>
571
572         * PreviewLoader.C: greater use of STL algorithms.
573
574         * Previews.[Ch]: use const in more places.
575         (generateBufferPreviews): now takes a Buffer const & argument, not a
576         pointer.
577
578 2002-07-15  John Levon  <moz@compsoc.man.ac.uk>
579
580         * GraphicsImage.h: remove getPixmap/X, add isDrawable()
581
582 2002-07-12  Angus Leeming  <leeming@lyx.org>
583
584         * GraphicsLoader.[Ch]: smart loading of images. Images are loaded only
585         if visible 2 secs after the call to load them is first made.
586
587         * GraphicsSupport.[Ch]: new files. isInsetVisible interrogates the
588         BufferView to ascertain whether the inset is visible or not.
589
590         * Makefile.am: added GraphicsSupport.[Ch].
591
592         * PreviewImage.[Ch]: use this smart loader.
593
594         * PreviewLoader.C: don't load generated image files indiscimminantly.
595         Instead emit the imageReady signal and allow the image owner to decide.
596
597 2002-07-12  John Levon  <moz@compsoc.man.ac.uk>
598
599         * GraphicsCache.C: remove init_graphics()
600
601 2002-07-09  Angus Leeming  <leeming@lyx.org>
602
603         * PreviewLoader.C (setAscentFractions): fix bug due to use of integer
604         arithmetic when it should be floating.
605
606 2002-07-09  Angus Leeming  <leeming@lyx.org>
607
608         * PreviewLoader.C (startLoading): prepend LaTeX file with "\batchmode".
609         Output equation labels as "(#)" if lyxrc preference is set.
610         (setFontScalingFactor): use lyxrc variable preview_scale_factor
611         rather than hard-coding this.
612
613 2002-07-09  Angus Leeming  <leeming@lyx.org>
614
615         * PreviewLoader.C: Further refactoring of the code. Should now be
616         pretty clean.
617
618         * PreviewMetrics.[Ch]: removed. Had a v. short shelf life and is now
619         past its sell-by date. The code to read the metrics file is now found
620         as a helper function in PreviewLoader.C.
621
622         * GraphicsImageXPM.C (scale): use boost::tie.
623
624 2002-07-08  Herbert Voss  <voss@lyx.org>
625
626         * PreviewLoader.C: use of preview_size_factor to get the right
627         font-size! 0.9 is the default.
628
629 2002-07-08  Angus Leeming  <leeming@lyx.org>
630
631         * PreviewLoader.C: Add "delayed" and "showlabels" options to the
632         invocation of preview.sty.
633         Perform something of an internal clean-up.
634
635 2002-07-06  Angus Leeming  <leeming@lyx.org>
636
637         * PreviewLoader.C: ensure that the metrics data is used by the
638         correct image!
639
640         * PreviewLoader.C:
641         * PreviewImage.C: (Impl d-tor): remove all generated files that still
642         exist (perhaps because the process was curtailed before the images
643         were loaded.)
644
645         * PreviewLoader.C (unique_filename): store the files in Buffer::tmppath.
646
647 2002-07-05  Angus Leeming  <leeming@lyx.org>
648
649         * PreviewImage.h:
650         * PreviewImage.C:
651         * PreviewLoader.h:
652         * PreviewLoader.C:
653         * PreviewMetrics.h:
654         * PreviewMetrics.C:
655         * Previews.h:
656         * Previews.C: new files. The previewed LaTeX snippet stuff.
657
658         * Makefile.am: add these files.
659
660 2002-07-05  Angus Leeming  <leeming@lyx.org>
661
662         * GraphicsLoader.h: whitespace.
663
664 2002-07-04  Lars Gullik Bjønnes  <larsbj@birdstep.com>
665
666         * GraphicsImage.[Ch]: newImage and loadableFormats changed to
667         boost::function from boost::signal.
668
669 2002-07-01  Jean-Marc Lasgouttes  <lasgouttes@freesurf.fr>
670
671         * GraphicsConverter.C (convert): do not use ChangeExtension
672         because to_file_base may contain a dot.
673
674 2002-06-28  Angus Leeming  <leeming@lyx.org>
675
676         * GraphicsCacheItem.[Ch]: refactor some of the more convoluted logic
677         by moving those SignalPtrs into the grfx::Image and grfx::Converter
678         classes where they really belong.
679         Use the Pimpl idiom to hide the class internals from public view.
680
681         * GraphicsTypes: remove the typedefs, leaving only the enums.
682
683         * GraphicsImage.h: now has a finishedLoading signal, as opposed to being
684         passed a reference to one in the load() method.
685
686         * GraphicsConverter.[Ch]: totally refactored. An instance of
687         grfx::Converter now represents a single conversion process.
688         Thus grfx::CachItem now has a grfx::Converter * that is set when the
689         conversion is initiated and destroyed on completion.
690
691         * GraphicsCache.[Ch]:
692         * GraphicsCacheItem.[Ch]:
693         * GraphicsConverter.[Ch]:
694         * GraphicsLoader.[Ch]: use the Pimpl idiom to hide the class internals
695         from public view.
696         Note that I have done this only after making the above changes,
697         so not only should we have a clean, minimal and well documented
698         interface to these classes in the header files, but the class internals
699         should be much clearer too.
700
701         * Renamed classes
702         grfx::GCache -> grfx::Cache,
703         grfx::GCacheItem -> grfx::CacheItem,
704         grfx::GConverter -> grfx::Converter,
705         grfx::GImage -> grfx::Image,
706         grfx::GImageXPM -> grfx::ImageXPM,
707         grfx::GParams -> grfx::Params.
708
709 2002-06-26  Angus Leeming  <leeming@lyx.org>
710
711         * GraphicsLoader.[Ch]: use boost::scoped_ptr in preference to
712         std::auto_ptr. Define an empty Loader d-tor out-of-line to ensure it
713         compiles.
714
715 2002-06-26  Angus Leeming  <leeming@lyx.org>
716
717         * GraphicsTypes.h: add "Ready" to the ImageStatus enum.
718         move the DisplayType enum out of grfx::GParams to here.
719
720         * GraphicsCacheItem.h: re-write preliminary description to reflect
721         current reality.
722
723         * GraphicsParams.[Ch]:
724         * GraphicsImageXPM.C (load, setPixmap): changes aassociated with moving
725         grfx::DisplayType out of grfx::GParams.
726
727         * GraphicsLoader.[Ch]: new files. Factor out the image loading stuff
728         that was in frontends/screen.C and insets/insetgraphics.C into a
729         single, easy-to-use class.
730
731         * Makefile.am: add these files.
732
733 2002-06-25  Angus Leeming  <leeming@lyx.org>
734
735         * GraphicsCache.[Ch]:
736         * GraphicsCacheItem.[Ch]:
737         * GraphicsTypes.h: rewrite the graphics cache to just load a graphics
738         file into memory. The cache no longer controls the generation of the
739         pixmap. Instead, it just emits a signal when the loading status of an
740         image changes.
741         The cache no longer stores InsetGraphics pointers and nor does it
742         assume responsibility for modifying an image (scaling, rotating etc).
743         Instead, that must now be performed elsewhere.
744
745 2002-06-19  Angus Leeming  <leeming@lyx.org>
746
747         * GraphicsConverter.C: add using std::endl directive.
748
749 2002-06-17  Herbert Voss  <voss@lyx.org>
750
751         * GraphicsCachItem.C: (findTargetFormat)return xpm-format as a
752         default when nothing different was found
753         (convertToDisplayFormat): handle zipped files in the right way and
754         choose always convert as a default converter when no other
755         userdefined was found
756
757         * GraphicsConverter.C: add more lyxerr comments and choose
758         convert when no other userdefined converter was found
759
760 2002-06-10  Herbert Voss  <voss@lyx.org>
761
762         * GraphicsImageXPM.C (convertTo7chars): get another special color
763         format from convert work in the right way
764
765 2002-06-12  John Levon  <moz@compsoc.man.ac.uk>
766
767         * GraphicsCache.C: use right colormap incantation
768
769 2002-06-12  John Levon  <moz@compsoc.man.ac.uk>
770
771         * GraphicsCache.C: use lyx_gui namespace
772
773         * GraphicsImageXPM.C: back down to using xforms
774           directly again
775
776 2002-06-07  Angus Leeming  <leeming@lyx.org>
777
778         Fixes needed to compile with Compaq cxx 6.5.
779         * GraphicsConverter.h: forward declare class ConvProcess.
780
781         * GraphicsImageXPM.C:
782         all c-library variables have been moved into namespace std.
783         Wrap using std::xyz declarations inside a #ifndef CXX_GLOBAL_CSTD block.
784
785 2002-06-06  Angus Leeming  <a.leeming@ic.ac.uk>
786
787         * GraphicsImageXPM.C (rotate): rotate in the same sense as xdvi!
788
789 2002-05-30  Lars Gullik Bjønnes  <larsbj@birdstep.com>
790
791         * GraphicsImageXPM.C: SigC to boot::signals changes.
792         (newImage): fix () bug when using new.
793
794 2002-05-29  Lars Gullik Bjønnes  <larsbj@birdstep.com>
795
796         * switch from SigC signals to boost::signals.
797
798 2002-05-29  André Pönitz <poenitz@gmx.net>
799
800         * GraphicsParam.C: remove unneeded #include, move vomment
801
802 2002-05-28  André Pönitz <poenitz@gmx.net>
803
804         * GraphicsParam.[Ch]: move inset related stuff to inset/insetgraphics
805
806 2002-05-24  John Levon  <moz@compsoc.man.ac.uk>
807
808         * GraphicsImageXPM.C: ColorHandler moved
809
810 2002-05-24  Juergen Vigna  <jug@sad.it>
811
812         * GraphicsCache.h:
813         * GraphicsImage.h: include LString.h first.
814
815 2002-05-22  Lars Gullik Bjønnes  <larsbj@birdstep.com>
816
817         * GraphicsCacheItem.h: use more specific smart_ptr header.
818         * GraphicsTypes.h: ditto
819         * GraphicsImage.h: ditto
820         * GraphicsConverter.h: ditto
821
822 2002-04-28  John Levon  <moz@compsoc.man.ac.uk>
823
824         * GraphicsImageXPM.C: understand convert's use of "opaque"
825           as a colour name
826
827 2002-04-19  Marco Morandini <morandini@aero.polimi.it>
828
829         * GraphicsCache.[Ch] (loadableFormats): new method. A wrapper for
830         GImage::loadableFormats() that ensures that the signal is connected
831         to the derived class' method.
832
833 2002-04-18  Lars Gullik Bjønnes  <larsbj@birdstep.com>
834
835         * GraphicsImageXPM.C (convertTo7chars): drop all conversions and
836         only work on the string.
837
838 2002-04-17  Angus Leeming  <a.leeming@ic.ac.uk>
839
840         * GraphicsImageXPM.C (Data::reset): Fix the loading of xpm files by
841         the simple image loader when it encounters colour strings like
842         #rrrrggggbbbb.
843
844 2002-04-16  Angus Leeming  <a.leeming@ic.ac.uk>
845
846         * GraphicsCacheItem.C (convertToDisplayFormat):
847         * GraphicsConverter.C (build_script): remove the Alerts when things go
848         wrong as the inset displays the message anyway. Moreover, Alert seems
849         pretty temperamemtal at the moment.
850
851 2002-04-16  Rob Lahaye  <lahaye@users.sourceforge.net>
852
853         * GraphicsImageXPM.C: fix clipping for boundingbox y-coordinates
854
855 2002-04-08  Angus Leeming  <a.leeming@ic.ac.uk>
856
857         * GraphicsCacheItem.C (findTargetFormat): fix bug waiting to bite:
858         a reference to a temp object that's going out of scope...
859
860 2002-04-09  Herbert Voss  <voss@lyx.org>
861
862         * GraphicsParams.C (BoundingBox c-tor): fix rounding errors by using
863         LyXLength::inBP instead of inPixels.
864
865 2002-04-10  Herbert Voss  <voss@perce.de>
866
867         * GraphicsCache.[Ch]:
868         * GraphicsCacheItem.[Ch]: add width/height functions from Angus
869         to read the "Bounding Box" from non (e)ps files.
870
871 2002-04-08  Angus Leeming  <a.leeming@ic.ac.uk>
872
873         * GraphicsParams.C (c-tor): if clipping, then check the Bounding Box of
874         the EPS file too, to ensure that the clipped Bounding Box is relative
875         to the original. (From Herbert.)
876
877 2002-04-04  Angus Leeming  <a.leeming@ic.ac.uk>
878
879         * GraphicsParams.C (BoundingBox c-tor): ensure that the member
880         variables are initialised. Clean-up parsing of the string (with thanks
881         to Herbert.)
882
883 2002-03-26  Angus Leeming  <a.leeming@ic.ac.uk>
884
885         * GraphicsCacheItem.C (convertToDisplayFormat): don't launch that Alert
886         if the file can't be found.
887
888         * GraphicsParams.h (c-tor): remove string() as default argument.
889
890         * GraphicsCacheItem.C: a couple of changes as a result.
891
892 2002-03-22  Angus Leeming  <a.leeming@ic.ac.uk>
893
894         * GraphicsCache.[Ch] (update): now passed filepath to determine absolute
895         path to graphics file.
896
897         * GraphicsParams.[Ch] (c-tor): now passed filepath.
898
899 2002-03-21  Lars Gullik Bjønnes  <larsbj@birdstep.com>
900
901         * most files: ws cleanup
902
903         * Makefile.am: remove ld -r stuff
904
905 2002-03-20  Lars Gullik Bjønnes  <larsbj@birdstep.com>
906
907         * Makefile.am: special rules if partial linking
908
909 2002-03-14  Angus Leeming  <a.leeming@ic.ac.uk>
910
911         * GraphicsCache.C: use Lars' preferred idiom for a for-loop.
912
913 2002-03-11  Lars Gullik Bjønnes  <larsbj@birdstep.com>
914
915         * GraphicsConverter.[Ch] (converted): make first arg const ref.
916
917         * GraphicsCacheItem.h: doxy change
918
919         * GraphicsCacheItem.C: ws change
920
921 2002-03-05  Angus Leeming  <a.leeming@ic.ac.uk>
922
923         * Makefile.am: if there is no image loading class leveraging the power
924         of the appropriate gui library, then compile the basic alternative
925         found in GraphicsImageXPM.[Ch].
926
927 2002-03-04  Angus Leeming  <a.leeming@ic.ac.uk>
928
929         * GraphicsCache.C: change associated with move of initialiseGraphics
930         to GUIRuntime.
931
932 2002-02-28  Angus Leeming  <a.leeming@ic.ac.uk>
933
934         * GraphicsParams.[Ch]:
935         * GraphicsImage.C:
936         * GraphicsImageXPM.C: properly resolve more warnings about comparison
937         between signed and unsigned integer expressions.
938
939         * Makefile.am: add GraphicsTypes.h which I'd carelessly left out.
940
941         * GraphicsCache.C: move connections to the GImage-derived classes to
942         the frontends.
943
944         * GraphicsImageXPM.C (copy c-tor): don't copy pixmap.
945
946         * GraphicsCacheItem.C (findTargetFormat): if we can load direct without
947         conversion, then do that.
948
949 2002-02-27  Angus Leeming  <a.leeming@ic.ac.uk>
950
951         * GraphicsCache.C: improve commentary to graphicsInit and where it
952         should really go.
953
954         * GraphicsImageXPM.C (~Data, free_color_table): resolve the crash
955         that became a memory leak properly. (Let the shared_c_ptr free the
956         color table.)
957         (reset, mapcolor): tidy up and introduce a work around for XPM files
958         with crappy color entries. Print out a nice friendly message on what's
959         gone wrong and how to resolve it properly.
960
961 2002-02-27  Angus Leeming  <a.leeming@ic.ac.uk>
962
963         * GraphicsImageXPM.[Ch]: more rigorous use of types (signed/unsigned).
964         (Data d-tor): introduce memory leak temporarily, to "fix" a crash
965         in free_color_table.
966         (unique_color_string): use the correct string c-tor.
967
968 2002-02-15  Angus Leeming  <a.leeming@ic.ac.uk>
969
970         * ImageLoader.[Ch]:
971         * ImageLoaderXPM.[Ch]: removed.
972
973         * GraphicsConverter.[Ch]:
974         * GraphicsImage.[Ch]:
975         * GraphicsImageXPM.[Ch]:
976         * GraphicsParams.[Ch]:
977         * GraphicsTypes.h: new files.
978
979         * All files. A total re-write of the graphics cache. The cache now
980         supports asynchronous file conversion and file loading. Images
981         can be cropped, rotated and scaled for display on the LyX screen.
982         The old LyXImage and ImageLoader have been combined in a new class
983         GImage. Ditto, ImageLoaderXPM's functionality has been moved into
984         GImageXPM.
985
986 2002-02-07  Herbert Voss  <voss@lyx.org>
987
988         * GraphicsCacheItem.C: use unzipFile() from support/filetools
989
990 2002-01-31  Herbert Voss  <voss@lyx.org>
991
992         * GraphicsCacheItem.h: handle filetype without the file extension;
993         getting type from contents; handle zipped files
994
995 2002-01-27  Herbert Voss  <voss@lyx.org>
996
997         * GraphicsCacheItem.h: added Converting to the ImageStatus enum.
998
999 2002-01-17  John Levon  <moz@compsoc.man.ac.uk>
1000
1001         * ImageLoaderXPM.C: don't set XpmColorKey flag if we don't use it
1002
1003 2001-12-19  Jean-Marc Lasgouttes  <lasgouttes@freesurf.fr>
1004
1005         * GraphicsCacheItem.h: do not include <config.h> in header files
1006
1007 2001-09-21  Angus Leeming  <a.leeming@ic.ac.uk>
1008
1009         * ImageLoaderXPM.C (runImageLoader): If the pixmap contains a
1010         transparent colour, then set it to the colour of the background.
1011         Also take account of the monochrome, grayscale of color
1012         preferences option.
1013
1014 2001-09-20  Angus Leeming  <a.leeming@ic.ac.uk>
1015
1016         * GraphicsCacheItem.C (convertImage): only convert if "from" and "to"
1017         are different. Thus, don't delete the "to" if it's the original!
1018
1019 2001-09-01  John Levon  <moz@compsoc.man.ac.uk>
1020
1021         * ImageLoadXPM.C: remove setting of alloc colour mask,
1022           led to crash as we don't define a callback
1023
1024 2001-07-29  Baruch Even  <baruch@lyx.org>
1025
1026         * ImageLoaderXPM.C (runImageLoader): When loading agree to use non-exact
1027         colors with closeness of 10000.
1028
1029         * GraphicsCacheItem.C: Fixed a compilation bug introduced earlier.
1030
1031 2001-07-29  Baruch Even  <baruch@lyx.org>
1032
1033         * GraphicsCacheItem.C (findTargetFormat): Removed error dialog box,
1034         too annoying.
1035
1036 2001-07-23  Baruch Even  <baruch@lyx.org>
1037
1038         * GraphicsCacheItem.C (convertImage): Fixed a bug with regard to loading
1039         the image after conversion.
1040
1041 2001-07-17  Baruch Even  <baruch@lyx.org>
1042
1043         * GraphicsCacheItem.h:
1044         * GraphicsCacheItem.C: Shuffled things a bit to make it easier to switch
1045         from synchronous to asynchronous and to ease the coming changes.
1046
1047 2001-07-03  Jean-Marc Lasgouttes  <Jean-Marc.Lasgouttes@inria.fr>
1048
1049         * ImageLoaderXPM.C (runImageLoader): get display information from
1050         GUIRunTime.
1051
1052 2001-06-14  Angus Leeming  <a.leeming@ic.ac.uk>
1053
1054         * GraphicsCache.C:
1055         * GraphicsCacheItem.C:
1056         * ImageLoader.C:
1057         * ImageLoaderXPM.C: removed // -*- C++ -*- as first line.
1058
1059 2001-04-17  Lars Gullik Bjønnes  <larsbj@birdstep.com>
1060
1061         * GraphicsCache.h: inherit privately from noncopyable
1062         * ImageLoader.h: ditto
1063         * GraphicsCacheItem.h: ditto
1064
1065 2001-04-16  Allan Rae  <rae@lyx.org>
1066
1067         * ImageLoaderXPM.C (runImageLoader): #warning triggers an error on Sun
1068         CC 6.0 as an unrecognised preprocessor directive.  So ensure they're
1069         wrapped.
1070
1071 2001-04-02  Baruch Even  <baruch@lyx.org>
1072
1073         * GraphicsCacheItem.[Ch]: Changed to used the Converter class instead
1074         of hard coding ImageMagick.
1075
1076 2001-03-10  Baruch Even  <baruch@lyx.org>
1077
1078         * GraphicsCache.C: Style change from (*it).field to it->field
1079
1080 2001-03-15  Lars Gullik Bjønnes  <larsbj@trylle.birdstep.com>
1081
1082         * GraphicsCache.h: noncopyable is in namespace boost
1083         * ImageLoader.h: ditto
1084         * GraphicsCacheItem.h: ditto
1085
1086 2001-03-07  Baruch Even  <baruch@lyx.org>
1087
1088         * GraphicsCache.C (d-tor): Removed the assert, the assumption it carried
1089         was false and it's not needed anyhow since the shared_ptr's in the cache
1090         will destroy everything on exit.
1091
1092 2001-02-28  Baruch Even  <baruch@ev-en.org>
1093
1094         * GraphicsCache.h:
1095         * GraphicsCache.C: Changed the singleton pattern implementation, the
1096         former version "leaked" in the sense that it was not deallocated at
1097         program end.
1098
1099 2001-02-20  Baruch Even  <baruch@ev-en.org>
1100
1101         * GraphicsCache.C: Changed to use shared_ptr<GraphicsCacheItem>
1102         instead of a pure pointer.
1103
1104         * GraphicsCacheItem.[Ch]:
1105         * GraphicsCacheItem_pimpl.[Ch]: Collapsed them into GraphicsCacheItem,
1106         removed the reference counting that was inside. Also fixed a bug where
1107         a temporary file wouldn't get erased.
1108
1109         * ImageLoader.[Ch]: Changed the semantics of the image_ pointers usage.
1110         Ownership is now dropped when the caller requests the image_ pointer.
1111
1112 2001-02-20  Baruch Even  <baruch@ev-en.org>
1113
1114         * GraphicsCache.C: Cleared up the confusion on when and how it is
1115         emptied.
1116
1117         * GraphicsCacheItem.C: Indentation change.
1118
1119         * GraphicsCacheItem_pimpl.C: Fixed the loading logic so that it will
1120         figure correctly when the image has been loaded successfully.
1121
1122 2001-02-08  Jean-Marc Lasgouttes  <Jean-Marc.Lasgouttes@inria.fr>
1123
1124         * ImageLoader.C: add a "using" directive.
1125
1126         * ImageLoader.h: remove extra comma at the end of enum; add an
1127         std:: qualifier for vector.
1128
1129 2001-01-21  Baruch Even  <baruch@ev-en.org>
1130
1131         * GraphicsCacheItem.[Ch]: Changes due to the storage of width and
1132         height in the image itself and minor cleanups.
1133
1134         * GraphicsCacheItem_impl.[Ch]: Changes due to the switch to use a
1135         new ImageLoader class instead of the older Renderer class. This
1136         means change of responsibilities.