Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: orxonox.OLD/branches/scriptimprovements/src/lib/gui/qt/q_image_widget.h @ 10611

Last change on this file since 10611 was 8145, checked in by bensch, 18 years ago

trunk: merged the gui back
merged with command:
svn merge -r8114:HEAD https://svn.orxonox.net/orxonox/branches/gui .
→ no conflicts

File size: 1.5 KB
Line 
1/***************************************************************************
2                          QImageWidget.h  -  description
3                             -------------------
4    begin                : Fri Nov 17 2000
5    copyright            : (C) 2000 by Rainer Lehrig
6    email                : lehrig@t-online.de
7 ***************************************************************************/
8
9/***************************************************************************
10 *                                                                         *
11 *   This program is free software; you can redistribute it and/or modify  *
12 *   it under the terms of the GNU General Public License as published by  *
13 *   the Free Software Foundation; either version 2 of the License, or     *
14 *   (at your option) any later version.                                   *
15 *                                                                         *
16 ***************************************************************************/
17#ifndef _QIMAGE_WIDGET_H_
18#define _QIMAGE_WIDGET_H_
19
20#include <QtGui/QWidget>
21#include <QtGui/QImage>
22
23class QImageWidget : public QWidget
24{
25    Q_OBJECT
26public:
27    QImageWidget(QWidget *parent=0);
28    ~QImageWidget();
29    virtual void         setGeometry(int nx, int ny, int nw, int nh);
30    void                  setImage(const QImage& newimage);
31
32protected:
33    virtual void paintEvent( QPaintEvent * );
34
35private:
36    int           conversion_flags;
37    int           x,y,w,h;
38    QImage        image;                        // the loaded image
39};
40
41
42#endif
Note: See TracBrowser for help on using the repository browser.