diff data/model/SDLWidget.h @ 145:e63e8272dcb0

the video size is updated automatically
author benoitrigolleau
date Tue, 13 Nov 2007 17:23:53 +0000
parents 2d883a374b79
children f2d2c1084e7c
line wrap: on
line diff
--- a/data/model/SDLWidget.h	Tue Nov 13 11:09:57 2007 +0000
+++ b/data/model/SDLWidget.h	Tue Nov 13 17:23:53 2007 +0000
@@ -19,21 +19,29 @@
 public:
 	SDLWidget();
 	virtual ~SDLWidget();
+	void setInitSize(int w, int h);
 
 signals:
 	void sizeChanged(int w, int h);
+	void zoomfactorChanged(int factor);
+	void initSizeChanged();
 
 public slots:
   void setZoomFactor( float );
   void wheelEvent( QWheelEvent* );
 
 protected:
-
+	
 	bool windowInitialized;
 	SDL_Surface *screen;
+	int m_width;
+	int m_height;
 
 	virtual void showEvent(QShowEvent *e);
 
+protected slots:
+		void updateMinSize();
+
 private:
   float zoomFactor;
 };