Add rtask module.
[bertos.git] / bertos / drv / lcd_gfx_qt.h
index a5538f39299fcfc8dad995e4cda52dd8692e49de..9840f24cd44817db4765c07619b514999eb62117 100644 (file)
@@ -30,7 +30,6 @@
  * All Rights Reserved.
  * -->
  *
- * \version $Id$
  * \author Bernie Innocenti <bernie@codewiz.org>
  *
  * \brief Custom control for graphics LCD emulation (interface)
 #ifndef DRV_LCD_GFX_QT_H
 #define DRV_LCD_GFX_QT_H
 
+// uint8_t
+#include <gfx/gfx.h>
+#include <cfg/compiler.h>
+
 #include <QtGui/QColor>
 #include <QtGui/QFrame>
 
+#define LCD_WIDTH      128
+
 // fwd decls
 class QSizePolicy;
 class QPaintEvent;
 class QResizeEvent;
 
+#define CONFIG_EMULLCD_SCALE 1
 
 class EmulLCD : public QFrame
 {
@@ -62,11 +68,12 @@ public:
 
 // Base class overrides
 protected:
-       virtual QSizePolicy sizePolicy() const;
-       virtual QSize sizeHint() const;
-       virtual QSize minimumSizeHint() const;
        virtual void paintEvent(QPaintEvent *event);
 
+       #if CONFIG_EMULLCD_SCALE
+               virtual int heightForWidth(int w) const;
+       #endif
+
 // Operations
 public:
        void writeRaster(uint8_t *raster);
@@ -84,4 +91,8 @@ protected:
        unsigned char raster[(WIDTH + 7 / 8) * HEIGHT];
 };
 
+
+void lcd_gfx_qt_init(Bitmap *lcd_bitmap);
+void lcd_gfx_qt_blitBitmap(const Bitmap *bm);
+
 #endif // DRV_LCD_GFX_QT_H