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