Mercurial > hg > easaier-soundaccess
view data/model/SDLWidget.h @ 139:2d883a374b79
Zoom with the mouse wheel, for the SDLWidget.
author | benoitrigolleau |
---|---|
date | Fri, 09 Nov 2007 13:21:34 +0000 |
parents | e236ce53a2e7 |
children | e63e8272dcb0 |
line wrap: on
line source
#ifndef _SDL_WIDGET_H #define _SDL_WIDGET_H #include <QWidget> #include <QShowEvent> #include <QTimer> #ifdef WIN32 #include <SDL.h> #endif #ifdef __unix__ #include <SDL/SDL.h> #endif #undef main class SDLWidget : public QWidget { Q_OBJECT public: SDLWidget(); virtual ~SDLWidget(); signals: void sizeChanged(int w, int h); public slots: void setZoomFactor( float ); void wheelEvent( QWheelEvent* ); protected: bool windowInitialized; SDL_Surface *screen; virtual void showEvent(QShowEvent *e); private: float zoomFactor; }; #endif