summaryrefslogtreecommitdiffstats
path: root/libk9copy/k9drawimage.h
blob: f15a956008e8dbd9fab50577b48d0526311c6148 (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
//
// C++ Interface: k9drawimage
//
// Description: 
//
//
// Author: Jean-Michel PETIT <[email protected]>, (C) 2007
//
// Copyright: See COPYING file that comes with this distribution
//
//
#ifndef K9DRAWIMAGE_H
#define K9DRAWIMAGE_H

#include <tqwidget.h>
#include <tqpixmap.h>

/**
	@author Jean-Michel PETIT <[email protected]>
*/
class k9DrawImage : public TQWidget
{
TQ_OBJECT
  
public:
    k9DrawImage(TQWidget *parent = 0, const char *name = 0);
    void setImage(TQString _fileName);
    void setImage(const TQImage &_image);
    ~k9DrawImage();
private:
    TQPixmap m_pixmap;

protected:
    void paintEvent ( TQPaintEvent *);
};

#endif