]> git.lyx.org Git - lyx.git/blob - src/graphics/GraphicsTypes.h
redraw fix 1.
[lyx.git] / src / graphics / GraphicsTypes.h
1 // -*- C++ -*-
2 /**
3  *  \file GraphicsTypes.h
4  *  Copyright 2002 the LyX Team
5  *  Read the file COPYING
6  *
7  *  \author Angus Leeming <a.leeming@ic.ac.uk>
8  *
9  *  All that header files outside the graphics subdirectory should need to
10  *  access.
11  */
12
13 #ifndef GRAPHICSTYPES_H
14 #define GRAPHICSTYPES_H
15
16 #ifdef __GNUG__
17 #pragma interface
18 #endif
19
20 namespace grfx {
21
22         /// The status of the loading process
23         enum ImageStatus {
24                 /** The data is in the cache, but no request to display it
25                  *  has been received.
26                  */
27                 WaitingToLoad,
28                 /// The image is in a loadable format and is being loaded.
29                 Loading,
30                 /// The image is being converted to a loadable format.
31                 Converting,
32                 /// The image has been loaded into memory.
33                 Loaded,
34                 /// The image is in memory and is being scaled, rotated, etc.
35                 ScalingEtc,
36                 /// All finished. Can display the image.
37                 Ready,
38                 ///
39                 ErrorNoFile,
40                 ///
41                 ErrorConverting,
42                 ///
43                 ErrorLoading,
44                 ///
45                 ErrorGeneratingPixmap,
46                 /// The data is not in the cache at all!
47                 ErrorUnknown
48         };
49
50         /// How is the image to be displayed on the LyX screen?
51         enum DisplayType {
52                 ///
53                 ColorDisplay,
54                 ///
55                 GrayscaleDisplay,
56                 ///
57                 MonochromeDisplay,
58                 ///
59                 NoDisplay
60         };
61 }
62
63 #endif // GRAPHICSTYPES_H