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

FunctionKeyboard Class Reference

#include </home/clem/local/src/opie/noncore/apps/opie-console/function_keyboard.h>

Collaboration diagram for FunctionKeyboard:

Collaboration graph
[legend]
List of all members.

Signals

void keyPressed (FKey, ushort, ushort, bool)

Public Member Functions

 FunctionKeyboard (QWidget *parent=0)
 ~FunctionKeyboard ()
void changeRows (int)
void changeCols (int)
void load (const Profile &)
void loadDefaults ()
void paintEvent (QPaintEvent *)
void paintKey (uint, uint)
void mousePressEvent (QMouseEvent *)
void mouseReleaseEvent (QMouseEvent *)
void resizeEvent (QResizeEvent *)
QSize sizeHint () const

Private Attributes

QMap< QString, FKeykeys
uint numRows
int test
uint numCols
uint keyHeight
double keyWidth
int pressedRow
int pressedCol
QObject * parent

Friends

class FunctionKeyboardConfig

Constructor & Destructor Documentation

FunctionKeyboard::FunctionKeyboard QWidget *  parent = 0  ) 
 

Definition at line 14 of file function_keyboard.cpp.

References QMap< Key, T >::isEmpty(), keys, and loadDefaults().

FunctionKeyboard::~FunctionKeyboard  ) 
 

Definition at line 48 of file function_keyboard.cpp.


Member Function Documentation

void FunctionKeyboard::changeCols int   ) 
 

Definition at line 57 of file function_keyboard.cpp.

References keyWidth, numCols, and width.

Referenced by FunctionKeyboardConfig::slotChangeCols().

void FunctionKeyboard::changeRows int   ) 
 

Definition at line 50 of file function_keyboard.cpp.

References numRows.

Referenced by FunctionKeyboardConfig::slotChangeRows().

void FunctionKeyboard::keyPressed FKey  ,
ushort  ,
ushort  ,
bool 
[signal]
 

Referenced by mousePressEvent(), and mouseReleaseEvent().

void FunctionKeyboard::load const Profile  ) 
 

Definition at line 63 of file function_keyboard.cpp.

References QMap< Key, T >::clear(), i, QMap< Key, T >::isEmpty(), QString::isEmpty(), keys, keyWidth, l, loadDefaults(), Opie::Core::OResource::loadPixmap(), QString::number(), numCols, numRows, Profile::readEntry(), Profile::readNumEntry(), QStringList::split(), TRUE, and width.

void FunctionKeyboard::loadDefaults  ) 
 

Definition at line 219 of file function_keyboard.cpp.

References DEFAULT_COLS, DEFAULT_ROWS, QMap< Key, T >::insert(), Qt::Key_Down, Qt::Key_Enter, Qt::Key_Escape, Qt::Key_Space, Qt::Key_Tab, Qt::Key_Up, keys, keyWidth, numCols, numRows, and width.

Referenced by FunctionKeyboard(), FunctionKeyboardConfig::load(), and load().

void FunctionKeyboard::mousePressEvent QMouseEvent *   ) 
 

Definition at line 177 of file function_keyboard.cpp.

References keyHeight, keyPressed(), keys, keyWidth, QString::number(), paintKey(), pressedCol, and pressedRow.

void FunctionKeyboard::mouseReleaseEvent QMouseEvent *   ) 
 

Definition at line 190 of file function_keyboard.cpp.

References col, keyPressed(), keys, QString::number(), paintKey(), pressedCol, pressedRow, and row.

void FunctionKeyboard::paintEvent QPaintEvent *   ) 
 

Definition at line 98 of file function_keyboard.cpp.

References Qt::AlignHCenter, Qt::AlignVCenter, QMap< Key, T >::contains(), height, i, QString::isEmpty(), keyHeight, keys, keyWidth, QString::number(), numCols, numRows, p, pix, and width.

void FunctionKeyboard::paintKey uint  ,
uint 
 

Definition at line 143 of file function_keyboard.cpp.

References Qt::AlignHCenter, Qt::AlignVCenter, QString::isEmpty(), keyHeight, keys, keyWidth, QString::number(), numCols, p, pix, pressedCol, and pressedRow.

Referenced by mousePressEvent(), mouseReleaseEvent(), FunctionKeyboardConfig::slotChangeIcon(), and FunctionKeyboardConfig::slotChangeLabelText().

void FunctionKeyboard::resizeEvent QResizeEvent *   ) 
 

Definition at line 205 of file function_keyboard.cpp.

References keyHeight, keyWidth, numCols, and width.

QSize FunctionKeyboard::sizeHint  )  const
 

Definition at line 214 of file function_keyboard.cpp.

References keyHeight, numRows, and width.


Friends And Related Function Documentation

friend class FunctionKeyboardConfig [friend]
 

Definition at line 44 of file function_keyboard.h.


Member Data Documentation

uint FunctionKeyboard::keyHeight [private]
 

Definition at line 72 of file function_keyboard.h.

Referenced by mousePressEvent(), paintEvent(), paintKey(), resizeEvent(), and sizeHint().

QMap<QString, FKey> FunctionKeyboard::keys [private]
 

Definition at line 67 of file function_keyboard.h.

Referenced by FunctionKeyboard(), FunctionKeyboardConfig::load(), load(), loadDefaults(), mousePressEvent(), mouseReleaseEvent(), paintEvent(), paintKey(), FunctionKeyboardConfig::save(), FunctionKeyboardConfig::slotChangeIcon(), FunctionKeyboardConfig::slotChangeLabelText(), FunctionKeyboardConfig::slotChangeQCode(), FunctionKeyboardConfig::slotChangeUnicode(), and FunctionKeyboardConfig::slotKeyPressed().

double FunctionKeyboard::keyWidth [private]
 

Definition at line 73 of file function_keyboard.h.

Referenced by changeCols(), load(), loadDefaults(), mousePressEvent(), paintEvent(), paintKey(), and resizeEvent().

uint FunctionKeyboard::numCols [private]
 

Definition at line 71 of file function_keyboard.h.

Referenced by changeCols(), load(), loadDefaults(), paintEvent(), paintKey(), and resizeEvent().

uint FunctionKeyboard::numRows [private]
 

Definition at line 69 of file function_keyboard.h.

Referenced by changeRows(), load(), loadDefaults(), paintEvent(), and sizeHint().

QObject* FunctionKeyboard::parent [private]
 

Definition at line 77 of file function_keyboard.h.

int FunctionKeyboard::pressedCol [private]
 

Definition at line 75 of file function_keyboard.h.

Referenced by mousePressEvent(), mouseReleaseEvent(), and paintKey().

int FunctionKeyboard::pressedRow [private]
 

Definition at line 75 of file function_keyboard.h.

Referenced by mousePressEvent(), mouseReleaseEvent(), and paintKey().

int FunctionKeyboard::test [private]
 

Definition at line 70 of file function_keyboard.h.


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