You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
|
//
|
|
|
|
// C++ Interface: k9drawimage
|
|
|
|
//
|
|
|
|
// Description:
|
|
|
|
//
|
|
|
|
//
|
|
|
|
// Author: Jean-Michel PETIT <k9copy@free.fr>, (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 <k9copy@free.fr>
|
|
|
|
*/
|
|
|
|
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
|