X-Git-Url: https://codewiz.org/gitweb?a=blobdiff_plain;f=drv%2Flcd_lm44_qt.h;h=da01e62e84dc041b1c510781352a8f75694fbb00;hb=HEAD;hp=9259992de627e0d912b1acd78be398708381dfcb;hpb=a08ff2655e6d37b5b9e6e11d78d75b6fdc1b7d0b;p=bertos.git diff --git a/drv/lcd_lm44_qt.h b/drv/lcd_lm44_qt.h deleted file mode 100755 index 9259992d..00000000 --- a/drv/lcd_lm44_qt.h +++ /dev/null @@ -1,84 +0,0 @@ -/** - * \file - * - * - * \version $Id$ - * - * \author Bernardo Innocenti - * - * \brief Custom Qt widget for emulating a graphics LCD display (implementation) - */ - -/*#* - *#* $Log$ - *#* Revision 1.1 2006/01/16 03:51:35 bernie - *#* Add LCD Qt emulator. - *#* - *#*/ - -#ifndef EMULLCD_H -#define EMULLCD_H - -#include -#include -#include - -// fwd decls -class QSizePolicy; -class QPaintEvent; -class QResizeEvent; - -/** - * Qt widget to emulate a dot-matrix LCD display. - */ -class EmulLCD : public QFrame -{ - Q_OBJECT - -public: -// Attributes - enum { COLS = 20, ROWS = 4 }; - -// Construction - EmulLCD(QWidget *parent = 0, const char *name = 0); - virtual ~EmulLCD(); - -// Base class overrides -protected: - virtual QSizePolicy sizePolicy() const; - virtual QSize sizeHint() const; - virtual void drawContents(QPainter *p); - -// Operations -public: - void MoveCursor (int col, int row); - void ShowCursor (bool show = true); - void PutChar (unsigned char c); - char GetChar (); - void Clear (); - void SetCGRamAddr (unsigned char addr); - -// Implementation -protected: - void SetPainter(QPainter & p); - void RedrawText(QPainter & p); - void PrintChar(QPainter & p, int row, int col); - void AdvanceCursor(); - - QFont lcd_font; ///< Display character font - QColor fg_color, bg_color; ///< LCD colors - int font_width, font_height; ///< Font dimensions - int frame_width; ///< Frame width (and height) - int cr_row, cr_col; ///< Cursor position - int cgramaddr; ///< CGRAM Address (-1 disabled) - unsigned char ddram[ROWS][COLS];///< Display data RAM - unsigned char cgram[8*8]; ///< CGRAM - bool show_cursor; ///< Cursor enabled? -}; - -#endif // !defined(EMULLCD_H) -