Mercurial > hg > easaier-soundaccess
comparison data/model/SDLWidget.h @ 167:2ac52ea3c1c4
video mouse events are in SDL now.
The code is really better now, but there is a display bug when you zoom in, zoom out
author | benoitrigolleau |
---|---|
date | Fri, 16 Nov 2007 15:18:44 +0000 |
parents | f2d2c1084e7c |
children |
comparison
equal
deleted
inserted
replaced
166:0442224a9553 | 167:2ac52ea3c1c4 |
---|---|
20 SDLWidget(); | 20 SDLWidget(); |
21 virtual ~SDLWidget(); | 21 virtual ~SDLWidget(); |
22 void setInitSize(int w, int h); | 22 void setInitSize(int w, int h); |
23 | 23 |
24 signals: | 24 signals: |
25 void sizeChanged(int w, int h); | |
26 void zoomfactorChanged(float factor); | |
27 void initSizeChanged(); | 25 void initSizeChanged(); |
28 | 26 |
29 public slots: | 27 public slots: |
30 void setZoomFactor( float ); | 28 |
31 void wheelEvent( QWheelEvent* ); | |
32 | 29 |
33 protected: | 30 protected: |
34 | 31 |
35 bool windowInitialized; | 32 bool windowInitialized; |
36 SDL_Surface *screen; | 33 SDL_Surface *screen; |
37 int m_width; | 34 int m_width; |
38 int m_height; | 35 int m_height; |
39 | 36 |
40 virtual void showEvent(QShowEvent *e); | 37 virtual void showEvent(QShowEvent *e); |
41 | 38 |
42 protected slots: | 39 protected slots: |
43 void updateMinSize(); | 40 void updateMinSize(); |
44 | 41 |
45 private: | |
46 float m_zoomFactor; | |
47 }; | 42 }; |
48 | 43 |
49 | 44 |
50 #endif | 45 #endif |