Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | File Members | Related Pages

QtDasherScreen Class Reference

#include </home/clem/local/src/opie/inputmethods/dasher/QtDasherScreen.h>

Inheritance diagram for QtDasherScreen:

Inheritance graph
[legend]
Collaboration diagram for QtDasherScreen:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 QtDasherScreen (int _width, int _height, CDasherInterface *_interface, QWidget *_parent=0, Dasher::CDashEditbox *edit=0)
 ~QtDasherScreen ()
void SetFont (std::string Name)
void SetFontSize (Dasher::Opts::FontSize)
 Set the Dasher font to Normal, Big or VBig.
Dasher::Opts::FontSize GetFontSize ()
 Return the Dasher font size.
void TextSize (symbol, int *Width, int *Height, int) const
 Set Width and Height to those of the character Character at size Size.
void DrawText (symbol Character, int x1, int y1, int Size) const
 Draw character Character of size Size positioned at x1 and y1.
void DrawRectangle (int x1, int y1, int x2, int y2, int Color, Opts::ColorSchemes ColorScheme) const
 Draw a filled rectangle.
void Polyline (point *Points, int Number) const
void DrawPolygon (point *Points, int Number, int Color, Opts::ColorSchemes ColorScheme) const
 Draw a filled polygon.
void Blank () const
 Signal that a frame is being started.
void Display ()
 Signal that a frame is finished - the screen should be updated.
void paintEvent (QPaintEvent *)
void mousePressEvent (QMouseEvent *e)
void mouseReleaseEvent (QMouseEvent *e)

Public Attributes

std::vector< int > FontSizes
std::vector< QFont > Fonts
QFont font
int fontsize

Protected Slots

void timer ()

Protected Member Functions

QColor getColor (int Color, const Opts::ColorSchemes ColorScheme) const
long get_time ()

Protected Attributes

CDasherInterfaceinterface
Dasher::CDashEditboxedit
bool paused
QPainter * painter
QPixmap * pixmap
std::string fontname

Constructor & Destructor Documentation

QtDasherScreen::QtDasherScreen int  _width,
int  _height,
CDasherInterface _interface,
QWidget *  _parent = 0,
Dasher::CDashEditbox edit = 0
 

Definition at line 19 of file QtDasherScreen.cc.

References Dasher::CDasherInterface::ChangeEdit(), Dasher::CDasherInterface::ChangeLanguageModel(), Dasher::CDasherInterface::ChangeScreen(), Dasher::CDasherInterface::ChangeView(), edit, font, fontname, fontsize, interface, painter, paused, pixmap, Dasher::CDasherInterface::SetSettingsStore(), and timer().

QtDasherScreen::~QtDasherScreen  ) 
 

Definition at line 79 of file QtDasherScreen.cc.

References painter.


Member Function Documentation

void QtDasherScreen::Blank  )  const [inline, virtual]
 

Signal that a frame is being started.

Implements Dasher::CDasherScreen.

Definition at line 76 of file QtDasherScreen.h.

References Dasher::CDasherScreen::m_iHeight, Dasher::CDasherScreen::m_iWidth, painter, and pixmap.

void QtDasherScreen::Display  )  [inline, virtual]
 

Signal that a frame is finished - the screen should be updated.

Implements Dasher::CDasherScreen.

Definition at line 82 of file QtDasherScreen.h.

References painter.

void QtDasherScreen::DrawPolygon point Points,
int  Number,
int  Color,
Opts::ColorSchemes  ColorScheme
const [virtual]
 

Draw a filled polygon.

Parameters:
Points array of points defining the edge of the polygon
Number number of points in the array
Color colour of the polygon (numeric)
Colorscheme Which colourscheme is to be used

Implements Dasher::CDasherScreen.

Definition at line 140 of file QtDasherScreen.cc.

References getColor(), painter, and Points_to_QPointArray().

void QtDasherScreen::DrawRectangle int  x1,
int  y1,
int  x2,
int  y2,
int  Color,
Opts::ColorSchemes  ColorScheme
const [virtual]
 

Draw a filled rectangle.

Draw a coloured rectangle on the screen

Parameters:
x1 top left of rectangle (x coordinate)
y1 top left corner of rectangle (y coordinate)
x2 bottom right of rectangle (x coordinate)
y2 bottom right of rectangle (y coordinate)
Color the colour to be used (numeric)
ColorScheme Which colourscheme is to be used

Implements Dasher::CDasherScreen.

Definition at line 115 of file QtDasherScreen.cc.

References getColor(), and painter.

void QtDasherScreen::DrawText symbol  Character,
int  x1,
int  y1,
int  Size
const [inline, virtual]
 

Draw character Character of size Size positioned at x1 and y1.

Implements Dasher::CDasherScreen.

Definition at line 55 of file QtDasherScreen.h.

References font, Dasher::CDasherInterface::GetDisplayText(), interface, and painter.

long QtDasherScreen::get_time  )  [protected]
 

Definition at line 61 of file QtDasherScreen.cc.

Referenced by mousePressEvent(), and timer().

QColor QtDasherScreen::getColor int  Color,
const Opts::ColorSchemes  ColorScheme
const [protected]
 

Definition at line 84 of file QtDasherScreen.cc.

References Dasher::Opts::Groups, Dasher::Opts::Nodes1, Dasher::Opts::Nodes2, Dasher::Opts::Objects, Dasher::Opts::Special1, and Dasher::Opts::Special2.

Referenced by DrawPolygon(), and DrawRectangle().

Dasher::Opts::FontSize QtDasherScreen::GetFontSize  )  [inline, virtual]
 

Return the Dasher font size.

Implements Dasher::CDasherScreen.

Definition at line 43 of file QtDasherScreen.h.

References Dasher::Opts::Normal.

void QtDasherScreen::mousePressEvent QMouseEvent *  e  ) 
 

Definition at line 149 of file QtDasherScreen.cc.

References get_time(), interface, paused, and Dasher::CDasherInterface::Unpause().

void QtDasherScreen::mouseReleaseEvent QMouseEvent *  e  ) 
 

Definition at line 155 of file QtDasherScreen.cc.

References interface, p, Dasher::CDasherInterface::PauseAt(), and paused.

void QtDasherScreen::paintEvent QPaintEvent *   )  [inline]
 

Definition at line 87 of file QtDasherScreen.h.

References bitBlt(), and pixmap.

void QtDasherScreen::Polyline point Points,
int  Number
const [virtual]
 

Parameters:
Number the number of points in the array

Implements Dasher::CDasherScreen.

Definition at line 131 of file QtDasherScreen.cc.

References painter, and Points_to_QPointArray().

void QtDasherScreen::SetFont std::string  Name  )  [inline, virtual]
 

Set the Dasher font (ie, the screen font) to Name

This is the font used to render letters in the main screen

Implements Dasher::CDasherScreen.

Definition at line 36 of file QtDasherScreen.h.

References fontname.

void QtDasherScreen::SetFontSize Dasher::Opts::FontSize   )  [inline, virtual]
 

Set the Dasher font to Normal, Big or VBig.

Implements Dasher::CDasherScreen.

Definition at line 39 of file QtDasherScreen.h.

void QtDasherScreen::TextSize symbol  ,
int *  Width,
int *  Height,
int 
const [inline, virtual]
 

Set Width and Height to those of the character Character at size Size.

Implements Dasher::CDasherScreen.

Definition at line 49 of file QtDasherScreen.h.

References font.

void QtDasherScreen::timer  )  [protected, slot]
 

Definition at line 162 of file QtDasherScreen.cc.

References get_time(), interface, paused, and Dasher::CDasherInterface::TapOn().

Referenced by QtDasherScreen().


Member Data Documentation

Dasher::CDashEditbox* QtDasherScreen::edit [protected]
 

Definition at line 101 of file QtDasherScreen.h.

Referenced by QtDasherScreen().

QFont QtDasherScreen::font
 

Definition at line 74 of file QtDasherScreen.h.

Referenced by DrawText(), QtDasherScreen(), and TextSize().

std::string QtDasherScreen::fontname [protected]
 

Definition at line 109 of file QtDasherScreen.h.

Referenced by QtDasherScreen(), and SetFont().

std::vector<QFont> QtDasherScreen::Fonts
 

Definition at line 73 of file QtDasherScreen.h.

int QtDasherScreen::fontsize
 

Definition at line 75 of file QtDasherScreen.h.

Referenced by QtDasherScreen().

std::vector<int> QtDasherScreen::FontSizes
 

Definition at line 72 of file QtDasherScreen.h.

CDasherInterface* QtDasherScreen::interface [protected]
 

Definition at line 100 of file QtDasherScreen.h.

Referenced by DrawText(), mousePressEvent(), mouseReleaseEvent(), QtDasherScreen(), and timer().

QPainter* QtDasherScreen::painter [protected]
 

Definition at line 105 of file QtDasherScreen.h.

Referenced by Blank(), Display(), DrawPolygon(), DrawRectangle(), DrawText(), Polyline(), QtDasherScreen(), and ~QtDasherScreen().

bool QtDasherScreen::paused [protected]
 

Definition at line 103 of file QtDasherScreen.h.

Referenced by mousePressEvent(), mouseReleaseEvent(), QtDasherScreen(), and timer().

QPixmap* QtDasherScreen::pixmap [protected]
 

Definition at line 107 of file QtDasherScreen.h.

Referenced by Blank(), paintEvent(), and QtDasherScreen().


The documentation for this class was generated from the following files:
Generated on Sat Nov 5 17:49:13 2005 for OPIE by  doxygen 1.4.2