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

InputMethods Class Reference

#include </home/clem/local/src/opie/core/launcher/inputmethods.h>

Collaboration diagram for InputMethods:

Collaboration graph
[legend]
List of all members.

Signals

void inputToggled (bool on)

Public Member Functions

 InputMethods (QWidget *)
 ~InputMethods ()
QRect inputRect () const
bool shown () const
QString currentShown () const
void showInputMethod (const QString &id)
void showInputMethod ()
void hideInputMethod ()
void unloadInputMethods ()
void loadInputMethods ()
virtual bool eventFilter (QObject *, QEvent *)
void readConfig ()

Private Slots

void chooseKbd ()
void chooseIm ()
void showKbd (bool)
void resetStates ()
void sendKey (ushort unicode, ushort scancode, ushort modifiers, bool, bool)
void qcopReceive (const QCString &msg, const QByteArray &data)

Private Member Functions

void setPreferedHandlers ()
QStringList plugins () const
void installTranslator (const QString &)
void unloadMethod (QValueList< InputMethod > &)
void chooseMethod (InputMethod *im)
void chooseKeyboard (InputMethod *im)
void updateKeyboards (InputMethod *im)

Private Attributes

QToolButton * kbdButton
QToolButton * kbdChoice
QWidgetStack * imButton
QToolButton * imChoice
InputMethodmkeyboard
InputMethodimethod
QValueList< InputMethodinputMethodList
QValueList< InputMethodinputModifierList
int inputWidgetStyle
int inputWidgetWidth

Constructor & Destructor Documentation

InputMethods::InputMethods QWidget *   ) 
 

Definition at line 91 of file inputmethods.cpp.

References channel, chooseIm(), chooseKbd(), imButton, imChoice, kbdButton, kbdChoice, loadInputMethods(), qApp, qcopReceive(), readConfig(), resetStates(), showKbd(), tri_xpm, and TRUE.

InputMethods::~InputMethods  ) 
 

Definition at line 149 of file inputmethods.cpp.

References imethod, mkeyboard, InputMethod::name(), Config::setGroup(), unloadInputMethods(), and Config::writeEntry().


Member Function Documentation

void InputMethods::chooseIm  )  [private, slot]
 

Definition at line 395 of file inputmethods.cpp.

References QValueList< T >::begin(), chooseMethod(), QValueList< T >::end(), i, imChoice, imethod, inputModifierList, s, and TRUE.

Referenced by InputMethods().

void InputMethods::chooseKbd  )  [private, slot]
 

Definition at line 353 of file inputmethods.cpp.

References QValueList< T >::begin(), chooseKeyboard(), QValueList< T >::end(), i, imethod, inputMethodList, kbdChoice, QString::mid(), mkeyboard, s, and TRUE.

Referenced by InputMethods().

void InputMethods::chooseKeyboard InputMethod im  )  [private]
 

Definition at line 419 of file inputmethods.cpp.

References InputMethod::icon(), kbdButton, mkeyboard, showKbd(), TRUE, and InputMethod::widget.

Referenced by chooseKbd(), and showInputMethod().

void InputMethods::chooseMethod InputMethod im  )  [private]
 

Definition at line 492 of file inputmethods.cpp.

References InputMethod::extInterface, imButton, imethod, ExtInputMethodInterface::inputMethod(), mkeyboard, InputMethod::name(), InputMethod::newIM, Config::setGroup(), updateKeyboards(), and Config::writeEntry().

Referenced by chooseIm().

QString InputMethods::currentShown  )  const
 

Definition at line 598 of file inputmethods.cpp.

References mkeyboard, InputMethod::name(), QString::null, and InputMethod::widget.

Referenced by TaskBar::toggleSymbolInput().

bool InputMethods::eventFilter QObject *  ,
QEvent * 
[virtual]
 

Definition at line 611 of file inputmethods.cpp.

References kbdButton, and showKbd().

void InputMethods::hideInputMethod  ) 
 

Definition at line 161 of file inputmethods.cpp.

References FALSE, and kbdButton.

Referenced by loadInputMethods(), TaskBar::receive(), and TaskBar::toggleSymbolInput().

QRect InputMethods::inputRect  )  const
 

Definition at line 193 of file inputmethods.cpp.

References mkeyboard, and InputMethod::widget.

Referenced by TaskBar::calcMaxWindowRect(), and FirstUse::calcMaxWindowRect().

void InputMethods::inputToggled bool  on  )  [signal]
 

Referenced by showKbd().

void InputMethods::installTranslator const QString  )  [private]
 

Definition at line 229 of file inputmethods.cpp.

References QValueList< T >::begin(), QValueList< T >::end(), qApp, and QPEApplication::qpeDir().

Referenced by loadInputMethods().

void InputMethods::loadInputMethods  ) 
 

Definition at line 271 of file inputmethods.cpp.

References QValueList< T >::append(), QValueList< T >::begin(), QValueList< T >::count(), QValueList< T >::end(), InputMethod::extInterface, FALSE, hideInputMethod(), IID_ExtInputMethod, IID_InputMethod, imButton, imChoice, imethod, input, ExtInputMethodInterface::inputMethod(), InputMethodInterface::inputMethod(), inputMethodList, inputModifierList, inputWidgetStyle, installTranslator(), InputMethod::interface, QValueList< T >::isEmpty(), ExtInputMethodInterface::keyboardWidget(), l, InputMethod::libName, InputMethod::library, list, mkeyboard, InputMethod::newIM, InputMethodInterface::onKeyPress(), plugins(), qHeapSort(), QLibrary, QPEApplication::qpeDir(), QS_OK, QLibrary::queryInterface(), sendKey(), setPreferedHandlers(), ExtInputMethodInterface::statusWidget(), TRUE, unloadInputMethods(), updateKeyboards(), and InputMethod::widget.

Referenced by InputMethods(), and TaskBar::receive().

QStringList InputMethods::plugins  )  const [private]
 

Definition at line 219 of file inputmethods.cpp.

References QDir::entryList(), and QPEApplication::qpeDir().

Referenced by loadInputMethods().

void InputMethods::qcopReceive const QCString msg,
const QByteArray data
[private, slot]
 

Definition at line 518 of file inputmethods.cpp.

References InputMethod::extInterface, imethod, InputMethod::newIM, and ExtInputMethodInterface::qcopReceive().

Referenced by InputMethods().

void InputMethods::readConfig  ) 
 

Definition at line 623 of file inputmethods.cpp.

References inputWidgetStyle, inputWidgetWidth, Config::readBoolEntry(), Config::readNumEntry(), and Config::setGroup().

Referenced by InputMethods(), and TaskBar::receive().

void InputMethods::resetStates  )  [private, slot]
 

Definition at line 187 of file inputmethods.cpp.

References InputMethod::interface, mkeyboard, InputMethod::newIM, and InputMethodInterface::resetState().

Referenced by InputMethods().

void InputMethods::sendKey ushort  unicode,
ushort  scancode,
ushort  modifiers,
bool  ,
bool 
[private, slot]
 

Definition at line 604 of file inputmethods.cpp.

References QWSServer::sendKeyEvent().

Referenced by loadInputMethods().

void InputMethods::setPreferedHandlers  )  [private]
 

Definition at line 245 of file inputmethods.cpp.

References QValueList< T >::begin(), QValueList< T >::end(), InputMethod::icon(), imethod, inputMethodList, inputModifierList, QString::isEmpty(), QValueList< T >::isEmpty(), kbdButton, mkeyboard, oendl, owarn, Config::readEntry(), and Config::setGroup().

Referenced by loadInputMethods().

void InputMethods::showInputMethod  ) 
 

Definition at line 166 of file inputmethods.cpp.

References kbdButton, and TRUE.

void InputMethods::showInputMethod const QString id  ) 
 

Definition at line 171 of file inputmethods.cpp.

References QValueList< T >::begin(), chooseKeyboard(), QValueList< T >::end(), i, and inputMethodList.

Referenced by TaskBar::receive(), and TaskBar::toggleSymbolInput().

void InputMethods::showKbd bool   )  [private, slot]
 

Definition at line 525 of file inputmethods.cpp.

References height, inputToggled(), inputWidgetStyle, inputWidgetWidth, l, mkeyboard, odebug, oendl, pos, qApp, Config::readNumEntry(), InputMethod::resetState(), Config::setGroup(), t, InputMethod::widget, width, Config::write(), and Config::writeEntry().

Referenced by chooseKeyboard(), eventFilter(), InputMethods(), and updateKeyboards().

bool InputMethods::shown  )  const
 

Definition at line 593 of file inputmethods.cpp.

References mkeyboard, and InputMethod::widget.

void InputMethods::unloadInputMethods  ) 
 

Definition at line 201 of file inputmethods.cpp.

References QValueList< T >::clear(), inputMethodList, inputModifierList, and unloadMethod().

Referenced by loadInputMethods(), and ~InputMethods().

void InputMethods::unloadMethod QValueList< InputMethod > &   )  [private]
 

Definition at line 210 of file inputmethods.cpp.

References QValueList< T >::begin(), and QValueList< T >::end().

Referenced by unloadInputMethods().

void InputMethods::updateKeyboards InputMethod im  )  [private]
 

Definition at line 445 of file inputmethods.cpp.

References QValueList< T >::begin(), QValueList< T >::count(), QValueList< T >::end(), FALSE, InputMethod::icon(), inputMethodList, kbdButton, kbdChoice, keyboardCompatible(), mkeyboard, and showKbd().

Referenced by chooseMethod(), and loadInputMethods().


Member Data Documentation

QWidgetStack* InputMethods::imButton [private]
 

Definition at line 102 of file inputmethods.h.

Referenced by chooseMethod(), InputMethods(), and loadInputMethods().

QToolButton* InputMethods::imChoice [private]
 

Definition at line 103 of file inputmethods.h.

Referenced by chooseIm(), InputMethods(), and loadInputMethods().

InputMethod* InputMethods::imethod [private]
 

Definition at line 105 of file inputmethods.h.

Referenced by chooseIm(), chooseKbd(), chooseMethod(), loadInputMethods(), qcopReceive(), setPreferedHandlers(), and ~InputMethods().

QValueList<InputMethod> InputMethods::inputMethodList [private]
 

Definition at line 106 of file inputmethods.h.

Referenced by chooseKbd(), loadInputMethods(), setPreferedHandlers(), showInputMethod(), unloadInputMethods(), and updateKeyboards().

QValueList<InputMethod> InputMethods::inputModifierList [private]
 

Definition at line 107 of file inputmethods.h.

Referenced by chooseIm(), loadInputMethods(), setPreferedHandlers(), and unloadInputMethods().

int InputMethods::inputWidgetStyle [private]
 

Definition at line 108 of file inputmethods.h.

Referenced by loadInputMethods(), readConfig(), and showKbd().

int InputMethods::inputWidgetWidth [private]
 

Definition at line 109 of file inputmethods.h.

Referenced by readConfig(), and showKbd().

QToolButton* InputMethods::kbdButton [private]
 

Definition at line 100 of file inputmethods.h.

Referenced by chooseKeyboard(), eventFilter(), hideInputMethod(), InputMethods(), setPreferedHandlers(), showInputMethod(), and updateKeyboards().

QToolButton* InputMethods::kbdChoice [private]
 

Definition at line 101 of file inputmethods.h.

Referenced by chooseKbd(), InputMethods(), and updateKeyboards().

InputMethod* InputMethods::mkeyboard [private]
 

Definition at line 104 of file inputmethods.h.

Referenced by chooseKbd(), chooseKeyboard(), chooseMethod(), currentShown(), inputRect(), loadInputMethods(), resetStates(), setPreferedHandlers(), showKbd(), shown(), updateKeyboards(), and ~InputMethods().


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