ZIMA CAD Parts
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
thumbnail.h
Go to the documentation of this file.
1 #ifndef THUMBNAIL_H
2 #define THUMBNAIL_H
3 
4 #include "item.h"
5 
6 class Thumbnail
7 {
8 public:
9  Thumbnail(Item *item, QString name);
10  QString& name();
11  QString& fullName();
12  bool isLocalized() const;
13  QString& language();
14  QString absolutePath();
15  QPixmap& pixmap();
16  QPixmap& scaledPixmap(int width);
17  bool isReady() const;
18  void setReady(bool ready);
19 
20 private:
21  Item *m_item;
22  QString m_name;
23  QString m_fullName;
24  QString m_lang;
25  QPixmap m_pixmap;
26  QPixmap m_scaledPixmap;
27  bool m_ready;
28 };
29 
30 #endif // THUMBNAIL_H
QPixmap & pixmap()
Definition: thumbnail.cpp:44
bool isLocalized() const
Definition: thumbnail.cpp:29
QPixmap & scaledPixmap(int width)
Definition: thumbnail.cpp:52
Definition: item.h:130
bool isReady() const
Definition: thumbnail.cpp:60
QString & fullName()
Definition: thumbnail.cpp:24
Thumbnail(Item *item, QString name)
Definition: thumbnail.cpp:3
Definition: thumbnail.h:6
void setReady(bool ready)
Definition: thumbnail.cpp:64
QString absolutePath()
Definition: thumbnail.cpp:39
QString & language()
Definition: thumbnail.cpp:34
QString & name()
Definition: thumbnail.cpp:19