projects
/
bertos.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Add reg definition for adc driver.
[bertos.git]
/
bertos
/
drv
/
lcd_gfx_qt.h
diff --git
a/bertos/drv/lcd_gfx_qt.h
b/bertos/drv/lcd_gfx_qt.h
index a5538f39299fcfc8dad995e4cda52dd8692e49de..9840f24cd44817db4765c07619b514999eb62117 100644
(file)
--- a/
bertos/drv/lcd_gfx_qt.h
+++ b/
bertos/drv/lcd_gfx_qt.h
@@
-30,7
+30,6
@@
* All Rights Reserved.
* -->
*
* All Rights Reserved.
* -->
*
- * \version $Id$
* \author Bernie Innocenti <bernie@codewiz.org>
*
* \brief Custom control for graphics LCD emulation (interface)
* \author Bernie Innocenti <bernie@codewiz.org>
*
* \brief Custom control for graphics LCD emulation (interface)
@@
-39,14
+38,21
@@
#ifndef DRV_LCD_GFX_QT_H
#define DRV_LCD_GFX_QT_H
#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>
#include <QtGui/QColor>
#include <QtGui/QFrame>
+#define LCD_WIDTH 128
+
// fwd decls
class QSizePolicy;
class QPaintEvent;
class QResizeEvent;
// fwd decls
class QSizePolicy;
class QPaintEvent;
class QResizeEvent;
+#define CONFIG_EMULLCD_SCALE 1
class EmulLCD : public QFrame
{
class EmulLCD : public QFrame
{
@@
-62,11
+68,12
@@
public:
// Base class overrides
protected:
// Base class overrides
protected:
- virtual QSizePolicy sizePolicy() const;
- virtual QSize sizeHint() const;
- virtual QSize minimumSizeHint() const;
virtual void paintEvent(QPaintEvent *event);
virtual void paintEvent(QPaintEvent *event);
+ #if CONFIG_EMULLCD_SCALE
+ virtual int heightForWidth(int w) const;
+ #endif
+
// Operations
public:
void writeRaster(uint8_t *raster);
// Operations
public:
void writeRaster(uint8_t *raster);
@@
-84,4
+91,8
@@
protected:
unsigned char raster[(WIDTH + 7 / 8) * HEIGHT];
};
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
#endif // DRV_LCD_GFX_QT_H