Home · All Namespaces · All Classes · Grouped Classes · Modules · Functions |
The InputMethods class provides an implementation of Qt Extended server input method handling. More...
#include <InputMethods>
Inherits QWidget.
The InputMethods class provides an implementation of Qt Extended server input method handling.
InputMethods is the core class for the Qt Extended servers input method handling. It is very closely related to the InputMethod service and InputMethodSelector classes.
InputMethods is primarily resposible for loading input method plugins and maintaining the hints set for different widgets. It also acts on the messages from the InputMethod service, either taking direct action or passing them on to the InputMethodSelector.
This class is part of the Qt Extended server and cannot be used by other Qt Extended applications.
This enum describes which types of input an input method processes.
Constant | Value | Description |
---|---|---|
InputMethods::Any | 0 | The input method can process both mouse and keypad input |
InputMethods::Mouse | 1 | The input method processes mouse or pointer input. |
InputMethods::Keypad | 2 | The input method processes keypad input. |
This enum defines values that input method menu items can return to activate system actions based for these menu items.
Constant | Value | Description |
---|---|---|
InputMethods::NextInputMethod | -2 | This value results in the input method being changed to the next input method in alphabetic order. |
InputMethods::ChangeInputMethod | -3 | This value causes the input method selection menu to be shown, and to recieve keyboard focus, facilitating changing input methods with the keyboard. |
Create a new InputMethods object with parent and flags that handles input according to t.
Unloads all input methods.
Checks whether the activated menu item belonged to the server, and either responds or passes the information on to the current input method appropriately.
Server menu items typically have values less than 0, so v is generally passed to the current input method if it is greater than or equal to 0.
See also QtopiaInputMethod::menuActionActivated().
Activate the input method selector choice pop-up (a menu of available input methods), and give it keyboard focus.
Returns the name of the current input method, or an empty QString if there is no current input method.
See also QtopiaInputMethod::name().
Deactivates and hides the current input method.
Sets the input hint for the current input method for widget wid. h is the hint for the input method, according to QtopiaApplication::InputMethodHint. The password flag sets password mode, indicating that input should be hidden after being entered, and defaults to false. This value is recorded for when this widget gains focus in the future, and if wid refers to the last active widget, the hint is forwarded to the current input method immediately.
This is an overloaded member function, provided for convenience.
Sets the input hint for widget wid, according to the hint h. This information is recorded for this widget should it gain focus, and if wid refers to the last active window, the hint is immediately forwarded to the current input method.
Sets the password hint for wid to passwordFlag, provided an input hint has previously been set for that widget. If no hint has been set for that widget previously, this function does nothing.
See also inputMethodHint().
Returns the geometry of the current input methods input widget, or an empty QRect if there is no current input method, or no input widget for the current input method.
Connect to this signal to recieve notifications of changes in the state of input methods. on describes whether the input methods have just turned on (true), or off (false).
Creates a QPluginManager for input methods to load input method plugins out of the plugins/inputmethods directory.
If InputMethods already has a QPluginManager, this function does nothing.
Returns true if the input method selector is visible, false otherwise. This indicates the visibility of the widget used to change input methods, not the drop-down menu itself. In Qtopia, this widget is only visible if at least 2 input methods have been loaded, and the widget with focus accepts text input.
See also InputMethodSelector::isVisible() and InputMethodSelector::count().
Cycle to the next input method.
Set system-wide description for allowable inputmethods to the given type. Note: Triggers a reloading of all inputmethod plugins
Selects the the input method named name, if it exists, and activates and shows it. If the named input method does not exist, this function activates the current input method.
This is an overloaded member function, provided for convenience.
Shows and activates the current input method.
Returns true if the current input method is active and visible, otherwise returns false.
Clears the current input method, and clears and destroys all previously loaded input methods. Called from InputMethods destructor.
Connect to this signal to receive notification of changes in the visibility of input methods. This is synonymous with activation, input methods do not need to have an input widget to be visible in this sense. visible is true if the input method is becoming visible/activating, false if it becoming invisible/deactivating.
Copyright © 2009 Trolltech | Trademarks | Qt Extended 4.4.3 |