summaryrefslogtreecommitdiffstats
path: root/scribus/pageitempreview.h
blob: 0efa38fcf1104ee90964eecac525c799d3e4e395 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
//
// C++ Interface: pageitempreview
//
// Description: 
//
//
// Author: Pierre Marchand <pierremarc@oep-h.com>, (C) 2008
//
// Copyright: See COPYING file that comes with this distribution
//
//

#ifndef PAGEITEMPREVIEW_H
#define PAGEITEMPREVIEW_H

#include <QThread>
#include <QMutex>
#include <QImage>

class PageItem;
class PageItemPreview : public QThread
{
	public:
		PageItemPreview(PageItem* pi);
		~PageItemPreview();
		
		bool isReady() const;
		QImage * getImage();
		
	private:
		PageItem * m_pageitem;
		bool m_completed;
		QImage m_image;
		
		QMutex m_mutex;
		
		void run();
};

#endif // PAGEITEMPREVIEW_H