comparison layer/ImageLayer.h @ 318:e9fe3923bdf4

* RemoteFile -> FileSource now it's used all over the place for local files as well.
author Chris Cannam
date Thu, 18 Oct 2007 16:20:26 +0000
parents c0b9eec70639
children 020c485aa7e0
comparison
equal deleted inserted replaced
317:e251c3599ea8 318:e9fe3923bdf4
26 26
27 #include <map> 27 #include <map>
28 28
29 class View; 29 class View;
30 class QPainter; 30 class QPainter;
31 class RemoteFile; 31 class FileSource;
32 32
33 class ImageLayer : public Layer 33 class ImageLayer : public Layer
34 { 34 {
35 Q_OBJECT 35 Q_OBJECT
36 36
113 113
114 //!!! how to reap no-longer-used images? 114 //!!! how to reap no-longer-used images?
115 115
116 typedef std::map<QString, QImage> ImageMap; 116 typedef std::map<QString, QImage> ImageMap;
117 typedef std::map<const View *, ImageMap> ViewImageMap; 117 typedef std::map<const View *, ImageMap> ViewImageMap;
118 typedef std::map<QString, RemoteFile *> RemoteFileMap; 118 typedef std::map<QString, FileSource *> FileSourceMap;
119 119
120 static ImageMap m_images; 120 static ImageMap m_images;
121 static QMutex m_imageMapMutex; 121 static QMutex m_imageMapMutex;
122 mutable ViewImageMap m_scaled; 122 mutable ViewImageMap m_scaled;
123 mutable RemoteFileMap m_remoteFiles; 123 mutable FileSourceMap m_remoteFiles;
124 124
125 QString getLocalFilename(QString img) const; 125 QString getLocalFilename(QString img) const;
126 void checkAddRemote(QString img) const; 126 void checkAddRemote(QString img) const;
127 127
128 ImageModel *m_model; 128 ImageModel *m_model;